|
|
|
|
@ -75,7 +75,7 @@
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>申请付款金额
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content xy-table-item-price">
|
|
|
|
|
<el-input readonly clearable placeholder="请填写付款金额" v-model="paymentRegistrationForm.applyMoney"
|
|
|
|
|
<el-input clearable placeholder="请填写付款金额" v-model="paymentRegistrationForm.applyMoney"
|
|
|
|
|
style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -86,7 +86,7 @@
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>本期扣款金额
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content xy-table-item-price">
|
|
|
|
|
<el-input readonly clearable placeholder="请填写扣款金额" v-model="paymentRegistrationForm.discountMoney"
|
|
|
|
|
<el-input clearable placeholder="请填写扣款金额" v-model="paymentRegistrationForm.deductionMoney"
|
|
|
|
|
style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -98,7 +98,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<!-- <el-input readonly clearable placeholder="选择款项类型或直接填写其他类型" v-model="paymentRegistrationForm.type" style="width: 300px;"/>-->
|
|
|
|
|
<el-select placeholder="选择款项类型或直接填写其他类型" v-model="paymentRegistrationForm.type" style="width: 200px;"
|
|
|
|
|
<el-select placeholder="选择款项类型或直接填写其他类型" v-model="paymentRegistrationForm.type" style="width: 300px;"
|
|
|
|
|
disabled filterable allow-create clearable>
|
|
|
|
|
<el-option v-for="item in paymentType" :key="item" :label="item" :value="item">
|
|
|
|
|
</el-option>
|
|
|
|
|
@ -132,10 +132,26 @@
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>资金列支渠道
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select multiple style="width: 300px;" v-model="paymentRegistrationForm.moneyWay" placeholder="请选择资金列支渠道"
|
|
|
|
|
@change="moneyWayChange">
|
|
|
|
|
<el-option v-for="item in planTypes" :value="item.id" :label="item.value"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-cascader
|
|
|
|
|
:show-all-levels="false"
|
|
|
|
|
:options="planTypes"
|
|
|
|
|
:props="{
|
|
|
|
|
emitPath: false,
|
|
|
|
|
multiple: true,
|
|
|
|
|
checkStrictly: false,
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id',
|
|
|
|
|
}"
|
|
|
|
|
:value="paymentRegistrationForm.moneyWay"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
@change="moneyWayChange"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-select multiple style="width: 300px;" v-model="paymentRegistrationForm.moneyWay" placeholder="请选择资金列支渠道"-->
|
|
|
|
|
<!-- @change="moneyWayChange">-->
|
|
|
|
|
<!-- <el-option v-for="item in planTypes" :value="item.id" :label="item.value"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -186,9 +202,9 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getparameter
|
|
|
|
|
} from "@/api/system/dictionary"
|
|
|
|
|
import {
|
|
|
|
|
getparameter, getparameterTree
|
|
|
|
|
} from '@/api/system/dictionary'
|
|
|
|
|
import {
|
|
|
|
|
getFundLog,
|
|
|
|
|
detailFundLog,
|
|
|
|
|
@ -312,13 +328,7 @@
|
|
|
|
|
{
|
|
|
|
|
label: "分类",
|
|
|
|
|
width: 136,
|
|
|
|
|
prop: 'type',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
let res = this.planTypes.filter(item => {
|
|
|
|
|
return item.id === value
|
|
|
|
|
})
|
|
|
|
|
return res[0]?.value || '未知'
|
|
|
|
|
}
|
|
|
|
|
prop: 'type_detail.value',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "科室",
|
|
|
|
|
@ -376,7 +386,9 @@
|
|
|
|
|
return total.toFixed(2)
|
|
|
|
|
},
|
|
|
|
|
//资金列支渠道选择后变化
|
|
|
|
|
moneyWayChange() {
|
|
|
|
|
moneyWayChange(e) {
|
|
|
|
|
this.paymentRegistrationForm.moneyWay = e;
|
|
|
|
|
|
|
|
|
|
let page = 1
|
|
|
|
|
let pageSize = this.plansSelect.page_size
|
|
|
|
|
let name = this.plansSelect.name
|
|
|
|
|
@ -404,10 +416,23 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async getPlanTypes() {
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
number: 'money_way'
|
|
|
|
|
})
|
|
|
|
|
this.planTypes = res.detail
|
|
|
|
|
const res = await getparameterTree({
|
|
|
|
|
id: 3
|
|
|
|
|
});
|
|
|
|
|
const dataHandler = (data) => {
|
|
|
|
|
data.forEach(i => {
|
|
|
|
|
if (i.hasOwnProperty('detail')) {
|
|
|
|
|
i.children = i.detail.map(j => {
|
|
|
|
|
j.name = j.value
|
|
|
|
|
return j;
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
dataHandler(i['children'])
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
this.planTypes = dataHandler(res?.children) || []
|
|
|
|
|
},
|
|
|
|
|
//翻页
|
|
|
|
|
pageChange(e) {
|
|
|
|
|
@ -456,7 +481,7 @@
|
|
|
|
|
})
|
|
|
|
|
this.paymentRegistrationForm.type = res.type
|
|
|
|
|
this.paymentRegistrationForm.isLast = res.is_end === 1
|
|
|
|
|
this.paymentRegistrationForm.deductionMoney = res.apply_money
|
|
|
|
|
this.paymentRegistrationForm.deductionMoney = res.discount_money
|
|
|
|
|
this.paymentRegistrationForm.applyMoney = res.apply_money
|
|
|
|
|
this.paymentRegistrationForm.remark = res.remark
|
|
|
|
|
for (var m of res.plan_link) {
|
|
|
|
|
@ -464,7 +489,6 @@
|
|
|
|
|
}
|
|
|
|
|
this.paymentRegistrationForm.plan = res.plan_link
|
|
|
|
|
|
|
|
|
|
this.paymentRegistrationForm.discountMoney = res.discount_money
|
|
|
|
|
this.paymentRegistrationForm.actMoney = res.apply_money
|
|
|
|
|
this.paymentRegistrationForm.moneyWay = res.money_way_id?.split(',').map(item => Number(item))
|
|
|
|
|
|
|
|
|
|
@ -513,6 +537,8 @@
|
|
|
|
|
contract_id: this.contract.id,
|
|
|
|
|
act_money: this.paymentRegistrationForm.actMoney,
|
|
|
|
|
status: 1,
|
|
|
|
|
apply_money: this.paymentRegistrationForm.applyMoney,
|
|
|
|
|
discount_money: this.paymentRegistrationForm.deductionMoney,
|
|
|
|
|
money_way_id: this.paymentRegistrationForm.moneyWay.toString(),
|
|
|
|
|
contract_plan_act_links: this.paymentRegistrationForm.plan
|
|
|
|
|
}).then(res => {
|
|
|
|
|
@ -658,4 +684,11 @@
|
|
|
|
|
z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
<style>
|
|
|
|
|
.el-cascader-panel li[aria-haspopup] .el-checkbox{
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|