Browse Source

新增和编辑页面注释物料成分和是否为tc

jbb 2 years ago
parent
commit
1ce4dd0b80

+ 18 - 18
src/views/shipment-details/addShipDetDrawer.vue

@@ -134,7 +134,7 @@
 
               <!-- 是否TC功能 :rules="rules.isTC"-->
               <!-- isTc ' 是否 tc 功能 0 否 1 是', -->
-              <template slot="isTC" slot-scope="text, record, index">
+              <!-- <template slot="isTC" slot-scope="text, record, index">
                 <a-form-model-item prop="isTc">
                   <a-select v-model="record.isTc">
                     <a-select-option value="">请选择</a-select-option>
@@ -142,14 +142,14 @@
                     <a-select-option value="0">否</a-select-option>
                   </a-select>
                 </a-form-model-item>
-              </template>
+              </template> -->
 
               <!-- 物料成分 :rules="rules.materialComposition"-->
-              <template slot="materialComposition" slot-scope="text, record, index">
+              <!-- <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-form-model-item>
-              </template>
+              </template> -->
 
               <!-- 采购/委外订单号 :rules="rules.purOrSubOrder"-->
               <template slot="purOrSubOrder" slot-scope="text, record, index">
@@ -440,20 +440,20 @@ export default {
           width: 120,
           className: 'replacecolor'
         },
-        {
-          title: '是否TC功能',
-          dataIndex: 'isTC',
-          width: 90,
-          scopedSlots: { customRender: 'isTC' },
-          className: 'replacecolor'
-        },
-        {
-          title: '物料成分',
-          dataIndex: 'materialComposition',
-          // scopedSlots: { customRender: 'materialComposition' },
-          width: 140,
-          className: 'replacecolor'
-        },
+        // {
+        //   title: '是否TC功能',
+        //   dataIndex: 'isTC',
+        //   width: 90,
+        //   scopedSlots: { customRender: 'isTC' },
+        //   className: 'replacecolor'
+        // },
+        // {
+        //   title: '物料成分',
+        //   dataIndex: 'materialComposition',
+        //   // scopedSlots: { customRender: 'materialComposition' },
+        //   width: 140,
+        //   className: 'replacecolor'
+        // },
 
         // {
         //   title: '销售类型',

+ 28 - 29
src/views/shipment-details/editShipDetDrawer.vue

@@ -91,7 +91,7 @@
 
               <!-- 是否TC功能 :rules="rules.isTC"-->
               <!-- isTc ' 是否 tc 功能 0 否 1 是', -->
-              <template slot="isTC" slot-scope="text, record, index">
+              <!-- <template slot="isTC" slot-scope="text, record, index">
                 <a-form-model-item prop="isTc">
                   <a-select v-model="record.isTc"  @change='changeTc'>
                     <a-select-option value="">请选择</a-select-option>
@@ -99,14 +99,14 @@
                     <a-select-option value="0">否</a-select-option>
                   </a-select>
                 </a-form-model-item>
-              </template>
+              </template> -->
 
               <!-- 物料成分 :rules="rules.materialComposition"-->
-              <template slot="materialComposition" slot-scope="text, record, index">
+              <!-- <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"  @change="changeMaterialComposition(record)"/>
                 </a-form-model-item>
-              </template>
+              </template> -->
 
               <!-- 采购/委外订单号 :rules="rules.purOrSubOrder"-->
               <template slot="purOrSubOrder" slot-scope="text, record, index">
@@ -397,20 +397,20 @@ export default {
           width: 120,
           className: 'replacecolor'
         },
-        {
-          title: '是否TC功能',
-          dataIndex: 'isTC',
-          width: 90,
-          scopedSlots: { customRender: 'isTC' },
-          className: 'replacecolor'
-        },
-        {
-          title: '物料成分',
-          dataIndex: 'materialComposition',
-          scopedSlots: { customRender: 'materialComposition' },
-          width: 140,
-          className: 'replacecolor'
-        },
+        // {
+        //   title: '是否TC功能',
+        //   dataIndex: 'isTC',
+        //   width: 90,
+        //   scopedSlots: { customRender: 'isTC' },
+        //   className: 'replacecolor'
+        // },
+        // {
+        //   title: '物料成分',
+        //   dataIndex: 'materialComposition',
+        //   scopedSlots: { customRender: 'materialComposition' },
+        //   width: 140,
+        //   className: 'replacecolor'
+        // },
 
         // {
         //   title: '销售类型',
@@ -799,17 +799,16 @@ export default {
       this.$forceUpdate()
    },
 
-   //
-   changeTc(val){
-      this.syShippingDetailsItemList.map(item =>{
-      item.isTc = val
-      })
-   },
-   changeMaterialComposition(val){
-      this.syShippingDetailsItemList.map(item =>{
-      item.materialComposition = val.materialComposition
-      })
-   },
+  //  changeTc(val){
+  //     this.syShippingDetailsItemList.map(item =>{
+  //     item.isTc = val
+  //     })
+  //  },
+  //  changeMaterialComposition(val){
+  //     this.syShippingDetailsItemList.map(item =>{
+  //     item.materialComposition = val.materialComposition
+  //     })
+  //  },
 
    //输入手册纱单价或者手册纱占比时触发
    changeManualYarn(data,val){