Просмотр исходного кода

合同调整,出货开票预测、项目成交预测查询调整

qymljy 4 месяцев назад
Родитель
Сommit
3a8c1e882b

+ 5 - 2
src/HDrpManagement/contractManage/components/editContract.vue

@@ -798,8 +798,11 @@ export default {
       this.form.discountrate === 0 ? this.form.discountrate = '' : this.form.discountrate = Math.round((this.form.discountrate * 100) * 100)/100
       this.address = this.form.province + this.form.city + this.form.county + this.form.address
       this.form.salername = this.form.leader[0].name
-      this.form.customername = this.data.ascription_enterprisename
-      this.form.customerid = this.data.ascription_enterpriseid
+      if (this.$route.query.type == '居间'){
+        this.form.enterprisename = this.data.ascription_enterprisename
+        this.form.customername = this.data.enterprisename
+      }
+
       this.drawer = true
       if (!this.form.reminddays){
         let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid

+ 4 - 4
src/HDrpManagement/contractManage/modules/detail.vue

@@ -847,7 +847,7 @@ export default {
           },
           {
             label:'居间商',
-            value:this.mainData.enterprisename
+            value:this.mainData.ascription_enterprisename
           },
           {
             label:'合同',
@@ -864,7 +864,7 @@ export default {
           },
           {
             label:'客户名称',
-            value:this.mainData.ascription_enterprisename
+            value:this.mainData.enterprisename
           },
           {
             label:'合同有效期',
@@ -1400,7 +1400,7 @@ export default {
                       },
                       {
                         label:'居间商',
-                        value:this.mainData.enterprisename
+                        value:this.mainData.ascription_enterprisename
                       },
                       {
                         label:'合同',
@@ -1417,7 +1417,7 @@ export default {
                       },
                       {
                         label:'客户名称',
-                        value:this.mainData.ascription_enterprisename
+                        value:this.mainData.enterprisename
                       },
                       {
                         label:'合同有效期',

+ 1 - 1
src/SDrpManagement/invoicePrediction/index.vue

@@ -235,6 +235,7 @@ export default {
   },
   methods: {
     listData() {
+      this.$refs.basicLayout.param.content.type = this.type;
       this.$refs.basicLayout.param.content.baseonproject = 0;
       this.$refs.basicLayout.listData();
     },
@@ -271,7 +272,6 @@ export default {
     },
   },
   mounted() {
-    this.$refs.basicLayout.param.content.type = 1;
     this.listData();
   },
 };

+ 1 - 1
src/SDrpManagement/projectPrediction/index.vue

@@ -226,6 +226,7 @@ export default {
   },
   methods: {
     listData() {
+      this.$refs.basicLayout.param.content.type = this.type;
       this.$refs.basicLayout.param.content.baseonproject = 1;
       this.$refs.basicLayout.listData();
     },
@@ -263,7 +264,6 @@ export default {
   },
 
   mounted() {
-    this.$refs.basicLayout.param.content.type = 1;
     this.listData();
   },
 };