소스 검색

添加货运单号

wangzhuo 1 년 전
부모
커밋
1158105b34
1개의 변경된 파일32개의 추가작업 그리고 5개의 파일을 삭제
  1. 32 5
      src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

+ 32 - 5
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -285,6 +285,7 @@ import M from "minimatch";
 import da from "element-ui/src/locale/lang/da";
 import { number } from "echarts";
 import {getCorpTypes} from "@/api/tirePartsMall/basicData/commodityInformation";
+import {getWorkDicts} from "../../../../api/system/dictbiz";
 export default {
     name: "detailsPage",
 
@@ -338,6 +339,7 @@ export default {
             activeNameTabs:'searchList',
             data:[],
 
+            courierCompaniesList: [],
 
             inventory: 0,
             isStatus: 1,
@@ -535,13 +537,28 @@ export default {
                         label: "dictValue",
                         value: "dictValue"
                     },
-                    value: '物流'
+                    value: '物流',
+                    change:(res)=>{
+                    }
                 }, {
-                    label: '物流公司',
+                    label: '货运公司',
+                    type: 'select',
+                    prop: "logisticsCorpName",
+                    allowCreate: true,
+                    filterable: true,
                     disabled: false,
-
-                    prop: "logisticsCorpName"
-                }, {
+                    dicUrl: "/api/blade-system/dict-biz/dictionary?code=tyre_express_company",
+                    props: {
+                      label: "dictValue",
+                      value: "dictValue"
+                    }
+                },
+                  {
+                    label: '货运单号',
+                    disabled: false,
+                    prop: "expressNo"
+                  },
+                  {
                     label: '成本',
                     prop: "cost",
                     display: true,
@@ -908,6 +925,10 @@ export default {
         //             this.isExamineBtn = false
         //         }
 
+        getWorkDicts("tyre_express_company").then(res => {
+          this.courierCompaniesList = res.data.data;
+        })
+
         this.findObject(this.optionContactsBack.column, "goodsId").change = ({ value, column }) => {
             if (this.formContacts.goodsId !== value) {
                 goodsDetail({ id: value, customId: this.dicUrlWithCustomId, stock: this.form.storageId ? this.form.storageId : '' }).then(res => {
@@ -1741,6 +1762,12 @@ export default {
                     //     its.goodsName = goodsName
 
                     // })
+                  for (let courierCompanies of this.courierCompaniesList) {
+                    if (courierCompanies.dictValue === this.form.logisticsCorpName) {
+                      this.form.logisticsCorpId = courierCompanies.dictKey
+                      break
+                    }
+                  }
 
                     submit({
                         bsType: "XS",