|
|
|
|
@ -12,10 +12,13 @@
|
|
|
|
|
<DatePicker
|
|
|
|
|
:value="planSelect.year"
|
|
|
|
|
placeholder="选择所属年份"
|
|
|
|
|
placement="bottom"
|
|
|
|
|
placement="bottom-start"
|
|
|
|
|
style="width: 180px;margin-right: 10px;"
|
|
|
|
|
type="year"
|
|
|
|
|
@on-change="(e) => (planSelect.year = e)"
|
|
|
|
|
@on-change="(e) => {
|
|
|
|
|
planSelect.year = e
|
|
|
|
|
getBudgets()
|
|
|
|
|
}"
|
|
|
|
|
></DatePicker>
|
|
|
|
|
<el-select
|
|
|
|
|
placeholder="科室选择"
|
|
|
|
|
@ -143,6 +146,8 @@
|
|
|
|
|
>查看已选预算计划</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-popover>
|
|
|
|
|
<br>
|
|
|
|
|
<Tag v-show="form.use_framework_buy" checkable color="warning">已使用框架协议</Tag>
|
|
|
|
|
|
|
|
|
|
<Divider></Divider>
|
|
|
|
|
|
|
|
|
|
@ -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();
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
@ -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();
|
|
|
|
|
|