diff --git a/src/App.vue b/src/App.vue index 85ae734..d1b71b3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ diff --git a/src/api/paymentRegistration/collect.js b/src/api/paymentRegistration/collect.js new file mode 100644 index 0000000..d14e6c9 --- /dev/null +++ b/src/api/paymentRegistration/collect.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +export function getCollect(params, noloading = false) { + return request({ + method: 'get', + url: '/api/ht/fund_log_collect/index', + params, + noloading + }) +} + +export function addCollect(data) { + return request({ + method: 'post', + url: '/api/ht/fund_log_collect/save', + data + }) +} + +export function delCollect(params) { + return request({ + method: 'get', + url: '/api/ht/fund_log_collect/destroy', + params + }) +} + +export function detailCollect(params) { + return request({ + method: 'get', + url: '/api/ht/fund_log_collect/show', + params + }) +} diff --git a/src/components/contractIntegration/index.vue b/src/components/contractIntegration/index.vue index f7c3c6e..00bda76 100644 --- a/src/components/contractIntegration/index.vue +++ b/src/components/contractIntegration/index.vue @@ -167,7 +167,7 @@
工作名称 {{ shOaView.title? shOaView.title : '-' }}查看 - +
申请人 @@ -660,7 +660,7 @@ export default { flowLinksOfRound(roundIndex) { const list = Array.isArray(this.fundLogs) ? this.fundLogs : [] const item = list[roundIndex] - const links = item && Array.isArray(item.fund_log_flow_links) ? item.fund_log_flow_links : [] + const links = item && Array.isArray(item.fund_log_collect.flow_links) ? item.fund_log_collect.flow_links : [] return links }, // 付款审批流转:头部状态 @@ -677,7 +677,7 @@ export default { // 重置组件状态 this.resetComponent() }, - + // 重置组件状态 resetComponent() { this.id = '' @@ -692,13 +692,13 @@ export default { this.contractApprovalFlows = [] this.paymentApprovalFlows = [] }, - + // 根据URL参数重置并加载数据 resetAndLoadFromUrl() { this.resetComponent() this.checkUrlAndLoadData() }, - + // 重新加载数据 retryLoad() { if (this.id) { @@ -707,7 +707,7 @@ export default { this.detail = this.contractData } }, - + // 检查URL参数并加载数据 checkUrlAndLoadData() { const outContractId = this.$route.query.out_contract_id @@ -947,7 +947,7 @@ export default { console.log('合同详情抽屉组件加载完成') // 进入页面时不再主动拉取,改由路由侦听器(immediate)或父组件触发 }, - + beforeDestroy() { // 组件销毁前重置状态 this.resetComponent() @@ -1479,43 +1479,43 @@ export default { .step-content { grid-template-columns: 1fr; } - + .expense-info-content { grid-template-columns: 1fr; } - + .expense-info-item { flex-direction: column; align-items: flex-start; gap: 5px; } - + .expense-info-value { text-align: left; } - + .overview-step { width: 80px; height: 50px; font-size: 0.7rem; } - + .overview-step.payment { width: 60px; height: 40px; font-size: 0.6rem; } - + .payment-group-container { padding: 5px; gap: 5px; } - + .round-step-detail { width: 120px; height: 70px; } - + .round-step-title-detail { font-size: 0.7rem; } diff --git a/src/views/contract/components/EditContract.vue b/src/views/contract/components/EditContract.vue index 058b4bb..4930ddc 100644 --- a/src/views/contract/components/EditContract.vue +++ b/src/views/contract/components/EditContract.vue @@ -16,12 +16,12 @@ style="width: 100%" /> - - {{ item.data.yiti }}-{{ item.title }} - 查看 @@ -1056,12 +1056,12 @@ export default { } } }, - + // 资金上会流程是否必选 isMeetingFlowRequired() { return !this.form.is_common_purchase && this.form.total_money && Number(this.form.total_money) >= 100000 }, - + // 资金上会流程是否禁用 isMeetingFlowDisabled() { // 如果是一般采购,则不禁用 @@ -1082,7 +1082,7 @@ export default { // 调用父组件的toOaDetail方法 // 调用本地的toOaDetail方法 let url = `${process.env.VUE_APP_OUT_URL}/#/flow/detail?auth_token=${window.encodeURIComponent(getToken())}&isSinglePage=1&flow_id=${flowId}` - + this.oaUrl = url this.isShowOaModal = true }, @@ -1093,7 +1093,8 @@ export default { page_size:999, custom_model_id:103, sort_name:'created_at', - sort_type:'DESC' + sort_type:'DESC', + is_simple: 1 }) this.shList = res.data.data }, diff --git a/src/views/contract/components/detailPaymentRegistration.vue b/src/views/contract/components/detailPaymentRegistration.vue index c056101..48d5654 100644 --- a/src/views/contract/components/detailPaymentRegistration.vue +++ b/src/views/contract/components/detailPaymentRegistration.vue @@ -40,11 +40,11 @@ v-for="item in shList" :key="item.id" :value="item.id" - :label="item.data.yiti+'-'+item.title" + :label="item.data?item.data.yiti:'' +'-'+item.title" > - {{ item.data.yiti }}-{{ item.title }} - {{ item.data?item.data.yiti:''}}-{{ item.title }} + 查看 @@ -189,7 +189,7 @@ - + = 50000 }, - + // 资金上会流程是否禁用 isMeetingFlowDisabled() { return this.form.apply_money && Number(this.form.apply_money) < 50000 @@ -355,7 +355,7 @@ export default { // 查看OA流程 viewOaFlow(flowId) { const url = `${process.env.VUE_APP_OUT_URL}/#/flow/detail?auth_token=${window.encodeURIComponent(getToken())}&isSinglePage=1&flow_id=${flowId}` - + this.oaUrl = url this.isShowOaModal = true }, @@ -368,7 +368,8 @@ export default { page_size: 999, custom_model_id: 103, sort_name: 'created_at', - sort_type: 'DESC' + sort_type: 'DESC', + is_simple: 1 }) this.shList = res?.data?.data || [] } catch (e) { diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index 01c044c..be062a9 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -1,1204 +1,1205 @@ -