huang_an 2 anni fa
parent
commit
5ac75075ba

+ 19 - 19
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -41,7 +41,7 @@
                   ? '领料单'
                   : '来源单据'
               "
-              prop="documentSource"
+              prop="sourceBizNo"
               :rules="[
                 { required: true, message: '请选择来源单据', trigger: 'change' }
               ]"
@@ -49,9 +49,9 @@
             >
               <el-select
                 filterable
-                v-model="formData.documentSource"
+                v-model="formData.sourceBizNo"
                 :disabled="
-                  !!(formData.documentSource && warehousingMaterialList.length)
+                  !!(formData.sourceBizNo && warehousingMaterialList.length)
                 "
                 clearable
                 placeholder="请输入"
@@ -74,13 +74,13 @@
                   : '来源单据'
               "
               v-else
-              prop="documentSource"
+              prop="sourceBizNo"
             >
               <el-input
                 @input="$forceUpdate()"
                 placeholder="请输入"
                 @change="handleDocumentSourceChange"
-                v-model="formData.documentSource"
+                v-model="formData.sourceBizNo"
                 @click.native="
                   formData.bizType == 4
                     ? handlePickorder()
@@ -567,7 +567,7 @@
             verifyDeptName: '', //审核部门名称
             deliveryName: '', //送货人名称
             fromUserPhone: '', //送货人电话
-            documentSource: '', //销售订单
+            sourceBizNo: '', //销售订单
             urgent: '', //紧急状态
             supplierId: '', //供应商ID
             supplierName: '', //供应商名称
@@ -622,7 +622,7 @@
     },
     methods: {
       onClear() {
-        this.formData.documentSource = '';
+        this.formData.sourceBizNo = '';
         this.warehousingMaterialList = [];
         this.$forceUpdate();
       },
@@ -631,13 +631,13 @@
         this.formData.extInfo.assetType = row.tableData[0].productId;
         this.$refs.trees.valueTitle = row.tableData[0].productName;
         this.title = row.tableData[0].productName;
-        this.formData.documentSource = row.orderNo;
+        this.formData.sourceBizNo = row.orderNo;
         this.onSelectTableData(row.tableData, 1);
         this.$forceUpdate();
       },
       pickOrderRow(row) {
         row.tableData = [];
-        this.formData.documentSource = row.code;
+        this.formData.sourceBizNo = row.code;
         for (const key in row.orderInfoList) {
           if (row.orderInfoList[key].bomDetailDTOS.length != 0) {
             for (const i in row.orderInfoList[key].bomDetailDTOS) {
@@ -683,8 +683,8 @@
         this.$refs.pickOrderRef.open();
       },
       async handleDocumentSourceChange() {
-        // this.formData.documentSource = '';
-        if (!this.formData.documentSource) {
+        // this.formData.sourceBizNo = '';
+        if (!this.formData.sourceBizNo) {
           if (this.formData.bizType == 4) {
             this.warehousingMaterialList = [];
           }
@@ -700,7 +700,7 @@
         const loading = this.$loading({ fullscreen: true });
 
         const res = await getSparePartsInfo({
-          code: this.formData.documentSource
+          code: this.formData.sourceBizNo
         });
         if (res?.success && res.data.length) {
           const curMap = {
@@ -848,7 +848,7 @@
       listDel(row, index) {
         this.warehousingMaterialList.splice(index, 1);
         if (this.warehousingMaterialList.length == 0) {
-          this.formData.documentSource = '';
+          this.formData.sourceBizNo = '';
         }
       },
       // 出库明细生成条码信息
@@ -934,7 +934,7 @@
               arr[key].count = arr[key].outInNum;
             }
             obj.outInDetailAddPOList = arr;
-            obj.extInfo.documentSource = obj.documentSource;
+            obj.extInfo.sourceBizNo = obj.sourceBizNo;
             this.saveLoading = true;
 
             // console.log('明细', this.warehousingMaterialList);
@@ -1075,7 +1075,7 @@
         if (!this.formData.bizType && this.formData.bizType !== 0)
           return this.$message.error('请选择出库场景');
 
-        if (this.formData.bizType == 4 && !this.formData.documentSource) {
+        if (this.formData.bizType == 4 && !this.formData.sourceBizNo) {
           return this.$message.error('请选择来源单据');
         }
 
@@ -1084,7 +1084,7 @@
       handleChange(data) {
         this.title = data?.dictValue;
         if (this.formData.bizType == 4) {
-          this.formData.documentSource = '';
+          this.formData.sourceBizNo = '';
         }
       },
       handleChanges(code) {
@@ -1092,14 +1092,14 @@
         this.title = data?.dictValue;
         this.selectEquiType = data?.dictCode;
         if (this.formData.bizType == 4) {
-          this.formData.documentSource = '';
+          this.formData.sourceBizNo = '';
         }
       },
       handleBizSceneChange() {
         if (this.formData.extInfo.assetType == 7) {
-          this.formData.extInfo.documentSource = '';
+          this.formData.extInfo.sourceBizNo = '';
         }
-        this.formData.documentSource = '';
+        this.formData.sourceBizNo = '';
       },
       getSupplier() {
         return new Promise((resolve, reject) => {

+ 1 - 2
src/views/warehouseManagement/outgoingManagement/details.vue

@@ -40,7 +40,7 @@
                 <el-form-item
                   :label="infoData.bizType == 4 ? '领料单' : '来源单据'"
                 >
-                  <span>{{ infoData.documentSource }}</span>
+                  <span>{{ infoData.sourceBizNo }}</span>
                 </el-form-item>
               </el-col>
               <el-col :span="8">
@@ -352,7 +352,6 @@
         console.log(res);
         this.infoData = {
           ...res,
-          documentSource: res.extInfo.documentSource,
           assetType: res.extInfo.assetType,
           fromUserPhone: res.fromUserPhone,
           verifyDeptName: res.extInfo.verifyDeptName

+ 1 - 1
src/views/warehouseManagement/outgoingManagement/index.vue

@@ -210,7 +210,7 @@
           },
 
           {
-            prop: 'extInfo.documentSource',
+            prop: 'sourceBizNo',
             label: '来源单据',
             align: 'center',
             showOverflowTooltip: true