Browse Source

完善付款申请--开票单位取值

master
yunuo970428 4 months ago
parent
commit
c5e5decde2
  1. 11
      anrui-buscenter/anrui-finmanage-ui/src/api/jichuxinxi/dictcommons.js
  2. 10
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue
  3. 18
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue

11
anrui-buscenter/anrui-finmanage-ui/src/api/jichuxinxi/dictcommons.js

@ -231,3 +231,14 @@ export function fetchBySidByTops(sid) {
method: 'get'
})
}
// 根据分公司全路径Sid获取分公司下开票信息(采购系统不能为空)
// 开票单位
export function getInvoicingList(data) {
return request({
url: '/fin/v1/fincompanyinvoicing/getInvoicingList',
method: 'GET',
params: data
})
}

10
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue

@ -66,7 +66,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>
@ -253,7 +253,7 @@
<script>
import req from '@/api/anruifinmanagement/payment'
import { typeValues, getOrgSidByPath, fetchBySid, getListOrg, brandDown, selectNameByOrg } from '@/api/jichuxinxi/dictcommons'
import { typeValues, getOrgSidByPath, fetchBySid, getInvoicingList, brandDown, selectNameByOrg } from '@/api/jichuxinxi/dictcommons'
import vehcile from './relation/vehcile'
import paymentInformationAdd from './relation/paymentInformationAdd'
import paymentInformationInfo from './relation/paymentInformationInfo'
@ -358,7 +358,7 @@ export default {
this.costTitle_list = res.data
}
})
getListOrg().then((res) => {
getInvoicingList({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.payCompany_list = res.data
}
@ -456,9 +456,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 = ''
}

18
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue

@ -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 = ''
}

Loading…
Cancel
Save