Browse Source

发运明细-编辑-分销点可编辑

jingbb 4 months ago
parent
commit
e9b3062791
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/views/shipment-details/editShipDetDrawer.vue

+ 13 - 0
src/views/shipment-details/editShipDetDrawer.vue

@@ -87,6 +87,12 @@
                   <a-input style="width:100%" type="text" v-model="record.smallPo" @change="changeSmallPo(record)"/>
                 </a-form-model-item>
               </template>
+              <!-- 分销点 -->
+              <template slot="distributionPoint" slot-scope="text, record, index">
+                <a-form-model-item prop="distributionPoint">
+                  <a-input style="width:100%" type="text" v-model="record.distributionPoint" @change="changeDistributionPoint(record)"/>
+                </a-form-model-item>
+              </template>
               <!-- 运输方式 -->
               <template slot="typeOfShipping" slot-scope="text, record, index">
                 <a-form-model-item prop="typeOfShipping">
@@ -375,6 +381,7 @@ export default {
           width: 110,
           className: 'replacecolor',
            ellipsis: true,
+           scopedSlots: { customRender: 'distributionPoint' },
         },
         {
           title: '存货编码',
@@ -842,6 +849,12 @@ export default {
         item.smallPo = record.smallPo
       })
     },
+    // 修改分销点
+    changeDistributionPoint(record){
+      this.syShippingDetailsItemList.map(item=>{
+        item.distributionPoint = record.distributionPoint
+      })
+    },
     changeTypeOfShipping(record){
       this.syShippingDetailsItemList.map(item=>{
         item.typeOfShipping = record.typeOfShipping