jz.kai пре 3 година
родитељ
комит
c74072a4db
4 измењених фајлова са 21 додато и 3 уклоњено
  1. 1 1
      .env.production
  2. 1 1
      .env.test
  3. 5 1
      src/api/base/formmain1970.js
  4. 14 0
      src/views/base/dataComparison-main.vue

+ 1 - 1
.env.production

@@ -1,3 +1,3 @@
 OUT_PUT_DIR=dist/comparison-portal
 
-VUE_APP_BACKEND_URL=http://localhost:8086/comparison-server
+VUE_APP_BACKEND_URL=http://192.168.15.99:8080/comparison-server

+ 1 - 1
.env.test

@@ -1,3 +1,3 @@
 OUT_PUT_DIR=dist/comparison-portal
 
-VUE_APP_BACKEND_URL=http://localhost:8086/comparison-server
+VUE_APP_BACKEND_URL=http://192.168.15.99:8080/comparison-server

+ 5 - 1
src/api/base/formmain1970.js

@@ -9,6 +9,10 @@ function edit(id){
   return request.get(constant.serverUrl + "/oa/formmain1970/edit/" + id);
 }
 
+function pageListByPBVID(formData){
+  return request.post(constant.serverUrl + "/oa/formmain1970/pageListByPBVID", formData);
+}
+
 export default {
-  pageList,edit
+  pageList,edit,pageListByPBVID
 }

+ 14 - 0
src/views/base/dataComparison-main.vue

@@ -319,6 +319,20 @@ export default {
     purBillVouchCurrentRow(newVal, oldVal) {
       var self = this;
 
+      //合同列表
+      var formData1 = new FormData();
+      formData1.append("PBVID", newVal.pbvid);
+      formmain1970Api
+      .pageListByPBVID(formData1)
+      .then(function (response) {
+        var jsonData = response.data.data;
+        self.contractData = jsonData.data;
+      })
+      .catch((error) => {
+        // self.$message.error(error + "");
+      });
+
+      //对比结果
       if(newVal.status == "未审核"){
         self.btnDisabled = false;
         var formData = new FormData();