|
@@ -104,7 +104,7 @@
|
|
|
<!-- 物料成分 :rules="rules.materialComposition"-->
|
|
|
<template slot="materialComposition" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="materialComposition">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.materialComposition" />
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.materialComposition" @change="changeMaterialComposition(record)"/>
|
|
|
</a-form-model-item>
|
|
|
</template>
|
|
|
|
|
@@ -407,7 +407,7 @@ export default {
|
|
|
{
|
|
|
title: '物料成分',
|
|
|
dataIndex: 'materialComposition',
|
|
|
- // scopedSlots: { customRender: 'materialComposition' },
|
|
|
+ scopedSlots: { customRender: 'materialComposition' },
|
|
|
width: 140,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -658,7 +658,9 @@ export default {
|
|
|
{key:'customsDeclarationUnitPrice',value:'报关单价'},
|
|
|
{key:'shipmentQuantity',value:'发货数量'},
|
|
|
{key:'numberOfSets',value:'套装件数'},
|
|
|
- {key:'isTc',value:'是否TC功能'}, ]
|
|
|
+ {key:'isTc',value:'是否TC功能'},
|
|
|
+ {key:'materialComposition',value:'物料成分'},
|
|
|
+ ]
|
|
|
for(var j=0 ; j<required.length;j++){
|
|
|
if(tableRow[required[j].key] == null || tableRow[required[j].key] == "" || tableRow[required[j].key] == undefined){
|
|
|
this.$message.error('第'+(i+1)+'行'+required[j].value+'无值,无法保存');
|
|
@@ -803,6 +805,11 @@ export default {
|
|
|
item.isTc = val
|
|
|
})
|
|
|
},
|
|
|
+ changeMaterialComposition(val){
|
|
|
+ this.syShippingDetailsItemList.map(item =>{
|
|
|
+ item.materialComposition = val.materialComposition
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
//输入手册纱单价或者手册纱占比时触发
|
|
|
changeManualYarn(data,val){
|