yusheng 14 stundas atpakaļ
vecāks
revīzija
7bfba9fcf2

+ 6 - 1
src/components/contact/parentList.vue

@@ -42,6 +42,8 @@
             :datasource="datasource"
             :initLoad="false"
             row-key="id"
+            highlight-current-row
+            @current-change="handleCurrentChange"
           >
             <template #radio="{ row }">
               <el-radio
@@ -212,7 +214,10 @@
           assignStatus: 0
         });
       },
-
+      handleCurrentChange(val) {
+        this.current = val;
+        this.currentId = val.id;
+      },
       async getTreeData() {
         try {
           this.treeLoading = true;

+ 14 - 2
src/views/recordComponents/workOrderReport.vue

@@ -744,7 +744,7 @@
         }
       },
       addContactName(row, index) {
-        if (row.paramValue == '运输单位'||row.paramValue == '收货单位') {
+        if (row.paramValue == '运输单位' || row.paramValue == '收货单位') {
           this.currentIndex = index;
           this.handParent('09');
         }
@@ -858,7 +858,10 @@
           //宇信
           if (
             this.$store.state.user.info.clientEnvironmentId == 10 &&
-            ['productionRecords', 'qualityTestRecords'].includes(this.pageName)
+            ['productionRecords', 'qualityTestRecords'].includes(
+              this.pageName
+            ) &&
+            this.title == '报工'
           ) {
             //客户:5#和6#默认是重油公司7#默认是红山 2008389016775864321==7#
             if (this.addForm.productLineId == '2008389016775864321') {
@@ -873,6 +876,15 @@
                 this.addForm.contactName || '中国石油新疆油田分公司(重油公司)';
             }
           }
+          if (
+            this.$store.state.user.info.clientEnvironmentId == 10 &&
+            ['TransportAsh'].includes(this.pageName) &&
+            this.title == '报工'
+          ) {
+            //拉灰默认供应商
+            this.addForm.supplierName = '新疆盛洁环境技术有限责任公司';
+            this.addForm.supplierId = '2064175320499007489';
+          }
           this.setValue();
           this.$nextTick(() => {
             this.$refs.formRef.clearValidate();