Ver código fonte

售后服务管理费用清单工单名称字段修改

hezhanp 8 meses atrás
pai
commit
a7091c5fdc

+ 9 - 0
src/BIZComponents/processSubmitDialog/processSubmitDialog.vue

@@ -312,6 +312,7 @@
     methods: {
       init(row = {}) {
         this.form = { ...this.form, ...row };
+        console.log(row)
         // this.form.businessId = row.id;
         // this.form.businessKey = row.businessKey;
         // this.form.formCreateUserId = row.createUserId;
@@ -478,6 +479,14 @@
         }
         this.loading = true;
         try {
+          console.log(this.form)
+          
+          let params = {
+          ...this.form,
+            variables: {
+              // businessName: data.supplierName,
+            }
+          };
           await processInstanceCreateAPI(this.form);
           this.loading = false;
           this.$message('提交审核成功');

+ 17 - 17
src/views/salesServiceManagement/components/info.vue

@@ -343,12 +343,12 @@
       :detailList="detailList"
     /> -->
     <spareParts
-  ref="sparePartsRef"
-  :type="type"    
-  :source="source"      
-  obtain="仓库"        
-  v-if="form.part == 1"
-/>
+      ref="sparePartsRef"
+      :type="type"
+      :source="source"
+      obtain="仓库"
+      v-if="form.part == 1 && isPurchaseNeed"
+    />
     <div class="after_sales_target" v-if="salesShow">
       <headerTitle
         title="售后对象"
@@ -1305,12 +1305,12 @@ export default {
     //   return [];
     // },
     getSpareInfoData() {
-  if (this.$refs.sparePartsRef) {
-    // 调用spareParts的getTableValue获取配件列表数据
-    return this.$refs.sparePartsRef.getTableValue() || [];
-  }
-  return [];
-},
+      if (this.$refs.sparePartsRef) {
+        // 调用spareParts的getTableValue获取配件列表数据
+        return this.$refs.sparePartsRef.getTableValue() || [];
+      }
+      return [];
+    },
     async init(res) {
       // 原有字段初始化
       let productDetail = res.productDetail ? res.productDetail : [];
@@ -1351,11 +1351,11 @@ export default {
       );
 
       this.$set(this, 'detailList', res.costListVOS || []);
-       this.$nextTick(() => {
-    if (this.$refs.sparePartsRef && this.detailList.length > 0) {
-      this.$refs.sparePartsRef.setTableValue(this.detailList);
-    }
-  });
+      this.$nextTick(() => {
+        if (this.$refs.sparePartsRef && this.detailList.length > 0) {
+          this.$refs.sparePartsRef.setTableValue(this.detailList);
+        }
+      });
     },
     getValue() {
       return this.form;

+ 4 - 1
src/views/salesServiceManagement/cost/index.vue

@@ -234,6 +234,7 @@
 
       // 提交
       async openProcess(data) {
+        console.log(data)
         const res = await salesrealcostinfo(data.id);
 
         if (res.detailLst.length == 0) {
@@ -243,6 +244,7 @@
 
 
         this.processSubmitDialogFlag = true;
+            console.log(data.deptId)
         this.$nextTick(() => {
           let params = {
             businessId: data.id,
@@ -250,9 +252,10 @@
             formCreateUserId: data.createUserId,
             variables: {
               businessCode: data.code,
-              businessName: data.deptId,
+              businessName: data.workOrderName,
               businessType: '售后费用清单'
             }
+
           };
           this.$refs.processSubmitDialogRef.init(params);
         });