diff --git a/.env.development b/.env.development index a247152..501c589 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ ENV = 'development' # base api -VUE_APP_BASE_API = '' +VUE_APP_BASE_API = 'http://hdcontract.ali251.langye.net' #VUE_APP_OUT_URL = http://suzhouhedaooa.langye.net VUE_APP_OUT_URL = http://192.168.60.18:2021 diff --git a/src/views/budget/budgetList.vue b/src/views/budget/budgetList.vue index ff7cea7..362cac4 100644 --- a/src/views/budget/budgetList.vue +++ b/src/views/budget/budgetList.vue @@ -39,7 +39,9 @@ - + + +
@@ -255,6 +257,7 @@ export default { ] }, list:[], + totalMoney:0, total:0, pageIndex:1, table:[ @@ -329,6 +332,30 @@ export default { } }, methods: { + //合计 + summary(param){ + const { columns, data } = param + const sums = [] + columns.map((column,index) => { + if(index === 0){ + sums[index] = '总计' + return + } + if(column.property === 'money'){ + sums[index] = this.totalMoney + return + } + // const values = data.map(item => Number(item[column.property])); + // if (!values.every(value => isNaN(value)) && (column.property === 'money' || column.property === 'plan_price'|| column.property === 'fund_log_total')) { + // + // sums[index] = sums[index].toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + // } else { + // sums[index] = ''; + // } + }) + return sums + }, + //翻页 pageChange(e){ this.pageIndex = e @@ -349,8 +376,9 @@ export default { type:this.select.type, plan_department_id:this.select.department }).then(res=>{ - this.list = res.data - this.total = res.total + this.list = res.list.data + this.total = res.list.total + this.totalMoney = res.total_money }) }, //新增提交 diff --git a/src/views/contract/components/detailContract.vue b/src/views/contract/components/detailContract.vue index 4df2a1c..66c9eb2 100644 --- a/src/views/contract/components/detailContract.vue +++ b/src/views/contract/components/detailContract.vue @@ -316,7 +316,7 @@ export default { return "服务" break; case 2: - return "货品" + return "货物" break; case 3: return "工程" diff --git a/src/views/contract/components/editorContract.vue b/src/views/contract/components/editorContract.vue index 0c71a67..3dbcd71 100644 --- a/src/views/contract/components/editorContract.vue +++ b/src/views/contract/components/editorContract.vue @@ -19,7 +19,7 @@
- +
@@ -64,7 +64,7 @@ *资金渠道
- +
@@ -279,7 +279,7 @@ export default { type:res.type, methods:res.purchase_type_id, modality:res.purchase_way_id, - fundingChannels:res.money_way_id, + fundingChannels:res.money_way_id.split(',').map(item =>{return Number(item)}), price:res.plan_price, isBudget:res.is_plan === 1 ? true : false, plan:res.plans.map(item=>{ @@ -301,7 +301,7 @@ export default { is_plan:this.detail.isBudget ? 1 : 0, purchase_type_id:this.detail.methods, purchase_way_id:this.detail.modality, - money_way_id:this.detail.fundingChannels, + money_way_id:this.detail.fundingChannels.toString(), plan_price:this.detail.price, name:this.detail.name, contract_plan_links:this.detail.plan.map(item=>{ diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index 61e293c..5f5c41d 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -323,9 +323,16 @@ export default { } } }, - async mounted() { - await this.getBudgets() - } + watch:{ + isShowPaymentRegistration(newVal){ + if(newVal){ + this.getBudgets() + } + } + }, + // async mounted() { + // await this.getBudgets() + // } } diff --git a/src/views/contract/components/printRegistration.vue b/src/views/contract/components/printRegistration.vue index 16cbcb7..e1dcbea 100644 --- a/src/views/contract/components/printRegistration.vue +++ b/src/views/contract/components/printRegistration.vue @@ -33,7 +33,7 @@
- +
进度款
@@ -41,7 +41,7 @@
质保金
-
+
✔ {{registration.type}}
(其他)
diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index d989f79..8bf3662 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -4,6 +4,13 @@
+
+ 关键字 + + + +
+
创建日期 @@ -94,7 +101,7 @@