Browse Source

与ccpm项目进行客户,合同,项目数据同步

sangwenwei 8 months ago
parent
commit
360855c449

+ 7 - 0
src/api/cw/projectRecords/ProjectRecordsService.js

@@ -9,6 +9,13 @@ export default {
 			params: params,
 		});
 	},
+	getAllList: function (params) {
+		return request({
+			url: prefix + "/cwProjectRecords/getAllList",
+			method: "get",
+			params: params,
+		});
+	},
 	zxList: function (params) {
 		return request({
 			url: prefix + "/cwProjectRecords/zxList",

+ 7 - 0
src/api/cw/workClientInfo/WorkClientService.js

@@ -16,6 +16,13 @@ export default {
 			params: params,
 		});
 	},
+	findAllList: function (params) {
+		return request({
+			url: prefix + "/cw_work_client/info/findAllList",
+			method: "get",
+			params: params,
+		});
+	},
 	queryById: function (id) {
 		return request({
 			url: prefix + "/cw_work_client/info/queryById",

+ 6 - 0
src/views/cw/invoice/InvoiceFormTask.vue

@@ -1436,6 +1436,9 @@
 					  r.clientName = item.clientContactsName
 					  this.inputForm.financeInvoiceBaseDTOList[this.programRow] = r
 					  this.bj1 = rows.bj1
+					  if(this.programRow === 0){
+						  this.inputForm.reconciliationArea = item.areaId
+					  }
 				  } else {
 					  let r = {
 						  programName: item.projectName,
@@ -1451,6 +1454,9 @@
 					  this.inputForm.financeInvoiceBaseDTOList.push(r)
 					  this.bj1 = rows.bj1
 					  this.baseKey = Math.random()
+					  if(this.programRow === 0){
+						  this.inputForm.reconciliationArea = item.areaId
+					  }
 				  }
 			  })
 			  this.$forceUpdate()

+ 1 - 1
src/views/cw/invoice/ProgramPageForm.vue

@@ -305,7 +305,7 @@
       list () {
         this.loading = true
         this.searchForm.status = '5'
-        projectRecordsService.list({
+        projectRecordsService.getAllList({
           'current': this.tablePage.currentPage,
           'size': this.tablePage.pageSize,
           'orders': this.tablePage.orders,

+ 1 - 1
src/views/cw/workClientInfo/WorkClientChooseRadio.vue

@@ -152,7 +152,7 @@
         this.dataList = []
         this.loading = true
         this.searchForm.isTrue = '1'
-        workClientService.listTree({
+        workClientService.findAllList({
           'current': this.tablePage.currentPage,
           'size': this.tablePage.pageSize,
           'orders': this.tablePage.orders,