From fb722a8f8399e20f0a9cbaa13efcece81aecc984 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Sun, 7 Apr 2024 17:19:20 +0800 Subject: [PATCH] 1 --- src/api/paymentRegistration/fundLog.js | 5 +- .../contract/components/editorContract.vue | 23 ++- src/views/contract/contractEdit.vue | 31 +++- src/views/contract/contractList.vue | 23 +-- src/views/finance/paymentRegistrationList.vue | 33 ++-- .../statisticalReport/budgetProgress.vue | 149 +++++++++++++++++- 6 files changed, 221 insertions(+), 43 deletions(-) diff --git a/src/api/paymentRegistration/fundLog.js b/src/api/paymentRegistration/fundLog.js index efcc4c9..3c24108 100644 --- a/src/api/paymentRegistration/fundLog.js +++ b/src/api/paymentRegistration/fundLog.js @@ -1,10 +1,11 @@ import request from "@/utils/request"; -export function getFundLog(params){ +export function getFundLog(params,noloading=false){ return request({ method:'get', url:'/api/admin/fund_log/index', - params + params, + noloading }) } diff --git a/src/views/contract/components/editorContract.vue b/src/views/contract/components/editorContract.vue index 8f530a1..7699032 100644 --- a/src/views/contract/components/editorContract.vue +++ b/src/views/contract/components/editorContract.vue @@ -237,7 +237,7 @@
@@ -538,6 +538,12 @@ import { resetSelect } from '@/utils' minWidth: 180, align: "left", }, + { + title: "预存金额", + key: "plan_price", + align: "right", + width: 180 + }, { title: "采购形势", width: 120, @@ -580,7 +586,7 @@ import { resetSelect } from '@/utils' row.useMoney = 0 return } - if (e <= (Number(row.money) - Number(row.use_money_total))) { + if (e <= (Number(row.money) - Number(row.has_money_total))) { row.useMoney = e this.plan.forEach(item => { if (item.value.plan_id == row.id) { @@ -703,7 +709,8 @@ import { resetSelect } from '@/utils' id: id }) this.contrantId = res.id - this.selections = [] + this.selections = res.to_contracts.map(i => i.to_contract) + console.log(this.selections) this.detail = { name: res.name, is_contract: res.is_contract, @@ -773,7 +780,7 @@ import { resetSelect } from '@/utils' return { contract_id: this.contrantId, to_contract_id: i.id, - use_money: i.money + use_money: this.detail.price } }) }).then(res => { diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue index 37e525c..3f577c5 100644 --- a/src/views/contract/contractEdit.vue +++ b/src/views/contract/contractEdit.vue @@ -12,10 +12,13 @@ 查看已选预算计划 +
+ 已使用框架协议 @@ -753,7 +758,7 @@ shape="circle" @click=" $router.push({ - path: isLedger ? '/contract/contract/contractLedger' : '/contract/contract/contractList', + path: '/contract/contract/contractList', query: { keyword: form.name, }, @@ -790,6 +795,10 @@ :page-size="contractSelect.page_size" layout="prev, pager, next, jumper" :total="contractTotal" + @current-change="e => { + contractSelect.page = e; + getContractToContracts(); + }" >
@@ -1148,6 +1157,12 @@ export default { minWidth: 180, align: "left", }, + { + label: "预存金额", + prop: "plan_price", + width: 120, + align: "right" + }, { prop: "purchase_type.value", label: "采购形势", @@ -1266,7 +1281,7 @@ export default { }); return; } - if (i._inputMoney > Number(i.money) - Number(i.use_money_total)) { + if (i._inputMoney > Number(i.money) - Number(i.has_money_total)) { this.$message({ type: "warning", message: `【${i.year}】${i.name} 使用金额大于剩余预算!`, @@ -1293,6 +1308,8 @@ export default { this.btnLoading = true if (!this.form.use_framework_buy) { this.form.contract_to_contracts = [] + } else { + this.form.contract_plan_links = [] } if (this.type === 'add') { addContrant(this.form,true).then(res => { @@ -1344,7 +1361,7 @@ export default { })?.label, yusuan: row?.plan_price?.toString(), zijinlaiyuan: row.money_way_detail?.value, - zijinlaiyuanjuti: row?.plans.reduce((pre,cur,index)=>(index === 0 ? cur?.name : pre+cur?.name+","),"") + zijinlaiyuanjuti: row?.plans.reduce((pre,cur,index)=>(index === 0 ? cur?.name : pre+cur?.name+";"),"") }; let url = `${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/8&auth_token=${this.$store.getters.oa_token}&out_caigou_id=${ row.id @@ -1371,10 +1388,10 @@ export default { return this.id ? { contract_id: this.contractId, to_contract_id: i.id, - use_money: i.money + use_money: this.form.plan_price } : { to_contract_id: i.id, - use_money: i.money + use_money: this.form.plan_price } }) done(); diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index b2cddc4..beb1bfa 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -77,6 +77,11 @@ +
+ 是否简易流程 + +
+
项目类型