|
@@ -122,7 +122,7 @@
|
|
|
<!-- 门幅 -->
|
|
|
<template slot="width" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="width">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.width" />
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.width" @change="changeNetWeight(record)"/>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
|
|
@@ -143,7 +143,7 @@
|
|
|
<!-- 净重 -->
|
|
|
<template slot="netWeight" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="netWeight">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.netWeight" />
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.netWeight" @change="changeNetWeight(record)" />
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
|
|
@@ -174,6 +174,7 @@
|
|
|
<a-input style="width:100%" type="text" v-model="record.supplierDyeingPlant" />
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
+
|
|
|
|
|
|
<!-- 供应商编码(印厂) -->
|
|
|
<template slot="supplierCodePrintingPlant" slot-scope="text, record, index">
|
|
@@ -568,12 +569,20 @@ export default {
|
|
|
this.addFabricData = data.syPackingListFabricItem
|
|
|
this.addFabricData.map(item =>{
|
|
|
item.inventoryQuantity = 0
|
|
|
+ item.meter = 0
|
|
|
})
|
|
|
}else {
|
|
|
this.$message.error(res.message);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ changeNetWeight(event){
|
|
|
+ if(Number(event.netWeight) !==0 && Number(event.width) !== 0 && Number(event.gramWeight) !== 0 && event.netWeight!==null && event.netWeight!=="" && event.width !== "" && event.gramWeight !== ""){
|
|
|
+ event.meter = event.netWeight/(event.width/100)/(event.gramWeight/1000)
|
|
|
+ }else {
|
|
|
+ event.meter = 0
|
|
|
+ }
|
|
|
+ },
|
|
|
// 増行
|
|
|
handleAddColumn() {
|
|
|
console.log('増行')
|