|
|
@ -65,7 +65,7 @@ |
|
|
|
<div class="span-sty">付款单位</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" v-model="formobj.payCompany" filterable placeholder="请选择" @change="changePayCompany" clearable> |
|
|
|
<el-option v-for="item in payCompany_list" :key="item.sid" :label="item.name" :value="item.name"/> |
|
|
|
<el-option v-for="item in payCompany_list" :key="item.companyInvoicingSid" :label="item.companyInvoicingName" :value="item.companyInvoicingName"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -252,7 +252,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import req from '@/api/anruifinmanagement/payment' |
|
|
|
import { typeValues, getListOrg, brandDown, selectNameByOrg } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import { typeValues, brandDown, selectNameByOrg, getInvoicingList } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import vehcile from './relation/vehcile' |
|
|
|
import paymentInformationAdd from './relation/paymentInformationAdd' |
|
|
|
import paymentInformationInfo from './relation/paymentInformationInfo' |
|
|
@ -374,11 +374,6 @@ export default { |
|
|
|
this.costTitle_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
getListOrg().then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.payCompany_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
typeValues({ type: 'paymentType' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.payment_list = res.data |
|
|
@ -400,6 +395,11 @@ export default { |
|
|
|
this.actualPay_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
getInvoicingList({ orgPath: this.formobj.orgSidPath }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.payCompany_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
brandDown({ useOrg: this.formobj.useOrgSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.carBrand_list = res.data |
|
|
@ -441,9 +441,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
changePayCompany(value) { |
|
|
|
const choose = this.payCompany_list.filter((item) => item.name === value) |
|
|
|
const choose = this.payCompany_list.filter((item) => item.companyInvoicingName === value) |
|
|
|
if (choose.length > 0 && choose !== null) { |
|
|
|
this.formobj.payCompanySid = choose[0].sid |
|
|
|
this.formobj.payCompanySid = choose[0].companyInvoicingSid |
|
|
|
} else { |
|
|
|
this.formobj.payCompanySid = '' |
|
|
|
} |
|
|
|