|
|
|
|
@ -192,6 +192,32 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:property>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="width: 200px">
|
|
|
|
|
<span style="color: red; font-weight: 600; padding-right: 4px"
|
|
|
|
|
>*</span
|
|
|
|
|
>是否为资产
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-switch v-model="paymentRegistrationForm.property" :active-value="1" :inactive-value="0"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:property_type_id v-if="paymentRegistrationForm.property">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="width: 200px">
|
|
|
|
|
<span style="color: red; font-weight: 600; padding-right: 4px"
|
|
|
|
|
>*</span
|
|
|
|
|
>资产类型
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select v-model="paymentRegistrationForm.property_type_id" style="width: 150px">
|
|
|
|
|
<el-option v-for="item in flowIds" :key="item.id" :value="item.id" :label="item.name"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #files v-if="paymentRegistrationForm.type === '结算款'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
@ -273,11 +299,22 @@ import { getFundLog, addFundLog } from "@/api/paymentRegistration/fundLog";
|
|
|
|
|
import { getBudget } from "@/api/budget/budget";
|
|
|
|
|
import { detailContract, editorContract } from "@/api/contract/contract";
|
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
|
import { parseTime } from "@/utils";
|
|
|
|
|
import {deepCopy, parseTime} from "@/utils";
|
|
|
|
|
import {getOatoken} from "@/api/oatoken";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
flowIds: [
|
|
|
|
|
{
|
|
|
|
|
flow_id: 14,
|
|
|
|
|
name: "供应品验收",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
flow_id: 57,
|
|
|
|
|
name: "固定资产验收"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
fileList: [],
|
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
|
searchContent: "",
|
|
|
|
|
@ -321,6 +358,8 @@ export default {
|
|
|
|
|
//audit_money: "",
|
|
|
|
|
type: "",
|
|
|
|
|
isLast: false,
|
|
|
|
|
property: 0,
|
|
|
|
|
property_type_id: "",
|
|
|
|
|
plan: [],
|
|
|
|
|
remark: "",
|
|
|
|
|
files: []
|
|
|
|
|
@ -490,7 +529,9 @@ export default {
|
|
|
|
|
remark: this.paymentRegistrationForm.remark,
|
|
|
|
|
audit_money: '',
|
|
|
|
|
//audit_money: this.paymentRegistrationForm.audit_money,
|
|
|
|
|
files:this.fileList? this.fileList.map(i => i?.response?.id):[]
|
|
|
|
|
files:this.fileList? this.fileList.map(i => i?.response?.id):[],
|
|
|
|
|
property: this.paymentRegistrationForm.property,
|
|
|
|
|
property_type_id: this.paymentRegistrationForm.property_type_id,
|
|
|
|
|
};
|
|
|
|
|
addFundLog(data).then((res) => {
|
|
|
|
|
//付款申请后同时更新一下合同中审计金额
|
|
|
|
|
@ -509,7 +550,7 @@ export default {
|
|
|
|
|
zongjia: this.contract?.money,
|
|
|
|
|
zhifucishu: this.contract?.sign_plan?.length || 0,
|
|
|
|
|
total: data.apply_money,
|
|
|
|
|
out_pay_id: res
|
|
|
|
|
out_pay_id: res,
|
|
|
|
|
});
|
|
|
|
|
this.isShowPaymentRegistration = false;
|
|
|
|
|
Message({
|
|
|
|
|
@ -522,7 +563,6 @@ export default {
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//计划
|
|
|
|
|
//获取预算计划
|
|
|
|
|
async getBudgets() {
|
|
|
|
|
@ -576,6 +616,25 @@ export default {
|
|
|
|
|
this.$refs["planTable"].clearSelection();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getAssetsFlowIds () {
|
|
|
|
|
let copy = deepCopy(this.flowIds)
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
number: "asset_flow_ids"
|
|
|
|
|
})
|
|
|
|
|
try {
|
|
|
|
|
this.flowIds = res?.detail?.map(i => {
|
|
|
|
|
let data = JSON.parse(i.remark)
|
|
|
|
|
return {
|
|
|
|
|
id: i.id,
|
|
|
|
|
name: i.value,
|
|
|
|
|
...data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.flowIds = copy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
priceFormat() {
|
|
|
|
|
@ -608,6 +667,9 @@ export default {
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getPlanTypes();
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getAssetsFlowIds()
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|