|
@@ -276,7 +276,7 @@ export default {
|
|
|
{
|
|
|
title: '购入数量',
|
|
|
dataIndex: 'purchaseQuantity',
|
|
|
- width: '9%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
{
|
|
|
title: '余下数量',
|
|
|
dataIndex: 'fabricremainingQuantity',
|
|
|
- width: '7%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customCell: this.fabRemQuaCustomCell,
|
|
|
scopedSlots: { customRender: 'fabRemaQuaSlot' }
|
|
@@ -295,7 +295,7 @@ export default {
|
|
|
{
|
|
|
title: '损耗',
|
|
|
dataIndex: 'loss',
|
|
|
- width: '9%',
|
|
|
+ width: '6%',
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
@@ -316,6 +316,17 @@ export default {
|
|
|
// slots:{title:'remainingQuantitycostTitle'} ,
|
|
|
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '多发少发',
|
|
|
+ dataIndex: 'pilosityFewer',
|
|
|
+ width: '9%',
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ if(text!==''&&text){
|
|
|
+ return Number(text).toFixed(2)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
title: '备注',
|
|
|
dataIndex: 'remarks',
|
|
@@ -613,6 +624,15 @@ export default {
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ changeTaxrate(data){
|
|
|
+ this.sumInfo.fabricExcludTax =''
|
|
|
+ this.sumInfo.ingExcludAmount=''
|
|
|
+ this.sumInfo.amountTotal=''
|
|
|
+ this.sumInfo.fabricExcludTax =(Number(this.sumInfo.fabricAmount)/(1+Number(data))).toFixed(2)//合计中的不含税面料总额
|
|
|
+ this.sumInfo.ingExcludAmount = (Number(this.sumInfo.ingAmount).toFixed(2)/(1+Number(data))).toFixed(2)//辅料不含税金额合计
|
|
|
+ this.sumInfo.amountTotal = Number(this.sumInfo.fabricExcludTax)+Number(this.sumInfo.ingExcludAmount)+Number( this.sumInfo.shipProcesFees)//合计金额
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
tabsCallback(key) {
|
|
|
this.activeKey = key
|
|
|
// console.log('点击的是', this.activeKey)
|