Browse Source

优化出库管理表单,添加客户名称显示并清理注释代码

yusheng 9 months ago
parent
commit
20981d0c6d
1 changed files with 9 additions and 11 deletions
  1. 9 11
      src/views/bpm/outgoingManagement/outbound.vue

+ 9 - 11
src/views/bpm/outgoingManagement/outbound.vue

@@ -147,14 +147,11 @@
                 </el-option>
               </el-select> </el-form-item
           ></el-col>
-          <!-- <el-col :span="6">
-            <el-form-item label="领料人联系方式" prop="fromUserPhone">
-              <el-input
-                placeholder="请输入"
-                disabled
-                v-model="formData.extInfo.fromUserPhone"
-                clearable /></el-form-item
-          ></el-col> -->
+          <el-col :span="6">
+            <el-form-item label="客户名称">
+              <span>{{ formData.clientName }}</span>
+            </el-form-item> </el-col
+          >
           <el-col :span="12">
             <el-form-item label="备注" prop="remark">
               <el-input
@@ -581,7 +578,7 @@
         qualityResults, // 质检结果
         treeList: [],
         formData: {
-          storageTime:"",
+          storageTime: '',
           extInfo: {
             assetType: [], //物品类型id
             assetTypeName: '', //物品类型名称
@@ -644,8 +641,7 @@
       this.getListItems();
       this.initDeptData().then(() => {
         this.initFormData();
-        this.getNowFormatDate()
-
+        this.getNowFormatDate();
       });
     },
     methods: {
@@ -1111,6 +1107,8 @@
         }
         // 销售相关逻辑
         if (this.saleProductList?.length > 0) {
+          this.formData.clientName=this.form.contactName;
+          this.formData.clientCode=this.form.contactCode;
           // 获取领料人列表
           this.getStaffList({ id: this.form.deptId }).then(() => {
             // 获取领料人和领料部门