xiaodai2022 2 years ago
parent
commit
5fed6a5840

+ 4 - 3
src/views/serviceParam/business/addEdit.vue

@@ -312,19 +312,20 @@ export default {
       });
     },
     async initData() {
+      console.log(this.kh,this.id)
       let res = {};
       if (this.kh + "" === "0") {
         res = await asyncRequest.zdetail({ id: this.id });
       } else {
-        res = await asyncRequest.qdetail({ id: this.id });
+        res = await asyncRequest.qdetail({ companyNo: this.id });
       }
       const { code, data, message } = res;
       if (code === 0) {
-        const { pid, name, pname, companyName, parent, member } = data;
+        const { pid, name, pname, companyName, parent, member,id } = data;
         console.log(data);
         this.organName = pname;
         this.ruleForm = {
-          id: this.id,
+          id: id,
           region: this.kh + "" || "0",
           pid: parent ? parent : pid ? pid : "0",
           name: name || "",

+ 5 - 5
src/views/serviceParam/business/index.vue

@@ -308,12 +308,12 @@ export default {
   },
   methods: {
     openModal(row, type, kh) {
-      const { status, id } = row;
+      const { status, id, code } = row;
       if (type === "005" && status === "1") {
         this.$message.warning("禁用后,才可以修改!");
         return;
       }
-      this.modelId = id;
+      this.modelId = kh + "" === "0" ? id : code;
       this.kh = kh;
       this.isDetail = type;
       this.showModel = true;
@@ -354,8 +354,8 @@ export default {
         end: "",
         companyNo: "",
       };
-      this.select= "1";
-      this.sinput= "";
+      this.select = "1";
+      this.sinput = "";
       this.searchList();
     },
     getNext(index) {
@@ -439,7 +439,7 @@ export default {
         });
     },
     async searchList() {
-         if (
+      if (
         (this.parmValue.start !== "" && this.parmValue.end === "") ||
         (this.parmValue.start == "" && this.parmValue.end != "")
       ) {

+ 8 - 8
src/views/serviceParam/supplier/detail.vue

@@ -187,13 +187,13 @@ export default {
     },
     // 点击业务审核的保存按钮
 
-    async examForm(e) {
-      console.log(e);
-      if (!this.loading) {
-        let type = e.state === "1" ? "1" : e.rebut;
-        await this.setstatus(type, "提交采购部门审核", e.remark);
-      }
-    },
+    // async examForm(e) {
+    //   console.log(e);
+    //   if (!this.loading) {
+    //     let type = e.state === "1" ? "1" : e.rebut;
+    //     await this.setstatus(type, "提交采购部门审核", e.remark);
+    //   }
+    // },
     async setstatus(type, detail, remark) {
       await this.$confirm(`确定要${detail}?`, {
         confirmButtonText: "确定",
@@ -238,7 +238,7 @@ export default {
     async initData() {
       this.loading = true;
       const { code, message, data } = await asyncRequest.detail({
-        id: this.queryId,
+        code: this.queryId,
       });
       this.loading = false;
       if (code === 0) {

+ 3 - 3
src/views/serviceParam/supplier/index.vue

@@ -208,7 +208,7 @@
           <i
             class="el-icon-view tb-icon"
             
-             @click="getRouter('supplierDetail', scope.row.id )"
+             @click="getRouter('supplierDetail', scope.row.code )"
           ></i>
         </el-tooltip>
         <el-tooltip
@@ -454,7 +454,7 @@ export default {
         // this.parmValue.sselect = this.sselect ;
         // this.parmValue.sinput= this.sinput;
         //
-        console.log(this.parmValue)
+        console.log(queryId)
          let routerModel = {
           options: JSON.parse(JSON.stringify(this.parmValue)),
           router: this.$route.path,
@@ -512,7 +512,7 @@ export default {
         return;
       }
       this.routeGoto("supplierDetail", {
-        id: row.id,
+        id: row.code,
         type: "edit",
       });
     },

+ 1 - 1
src/views/serviceParam/workCompany/addEdit.vue

@@ -480,7 +480,7 @@ export default {
     },
 
     async initData() {
-      const res = await asyncRequest.detail({ id: this.id });
+      const res = await asyncRequest.detail({ companyNo: this.id });
       if (res && res.code === 0 && res.data) {
         const {
           id,

+ 1 - 1
src/views/serviceParam/workCompany/index.vue

@@ -394,7 +394,7 @@ export default {
         return;
       }
       this.showModel = true;
-      this.modelId = row.id;
+      this.modelId = row.companyNo;
       this.isDetail = type;
     },
     async searchList() {