diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue index 6a5f8c4234..a47ccea063 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue @@ -481,11 +481,6 @@ export default { this.costType_list = res.data } }) - getTypeValueList({ type: 'payCostType', groupNum: '001' }).then((res) => { - if (res.success) { - this.costTitle_list = res.data - } - }) getInvoicingList({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { if (res.success) { this.payCompany_list = res.data @@ -580,6 +575,16 @@ export default { this.formobj.costTypeKey = '' this.formobj.isVeh = '' } + if (this.formobj.costTypeKey !== '' && this.formobj.costTypeKey !== '004') { + getTypeValueList({ type: 'payCostType', groupNum: this.formobj.costTypeKey }).then((res) => { + if (res.success) { + this.costTitle_list = res.data + } + }) + } else { + this.costTitle_list = [] + } + this.formobj.detailsList = [] }, isVehChange(val) { if (val === '1') { diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue index 24d6c49c24..992d5954ec 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue @@ -497,11 +497,6 @@ export default { this.costType_list = res.data } }) - getTypeValueList({ type: 'payCostType', groupNum: '001' }).then((res) => { - if (res.success) { - this.costTitle_list = res.data - } - }) typeValues({ type: 'paymentType' }).then((res) => { if (res.success) { this.payment_list = res.data @@ -571,6 +566,16 @@ export default { this.formobj.costTypeKey = '' this.formobj.isVeh = '' } + if (this.formobj.costTypeKey !== '' && this.formobj.costTypeKey !== '004') { + getTypeValueList({ type: 'payCostType', groupNum: this.formobj.costTypeKey }).then((res) => { + if (res.success) { + this.costTitle_list = res.data + } + }) + } else { + this.costTitle_list = [] + } + this.formobj.detailsList = [] }, isVehChange(val) { if (val === '1') {