手机端添加收付款账户显示

main-20240105
赵夫琳 8 months ago
parent 8e5da8c9a4
commit 0a4373fba9

@ -39,8 +39,7 @@
import { createVendorPayment, getVendorPayment, updateVendorPayment } from "@/api/bs/vendorPayment"; import { createVendorPayment, getVendorPayment, updateVendorPayment } from "@/api/bs/vendorPayment";
import VerifyFunc from '@/utils/verify' import VerifyFunc from '@/utils/verify'
import { getDictDatas, DICT_TYPE } from "@/utils/dict"; import { getDictDatas, DICT_TYPE } from "@/utils/dict";
import { getVendorPage } from "@/api/bs/vendor"; import { vendorBankPage } from "@/api/bs/vendor";
import { getBankAccountInfoPage } from "@/api/bs/bankAccountInfo";
import { listUser } from "@/api/system/user"; import { listUser } from "@/api/system/user";
export default { export default {
//import使 //import使
@ -216,13 +215,13 @@ export default {
this.$loading(true, 'demo1') this.$loading(true, 'demo1')
return new Promise((resolve) => { return new Promise((resolve) => {
Promise.all([ Promise.all([
getVendorPage({ pageNo: 1, pageSize: 999 }), vendorBankPage({ pageNo: 1, pageSize: 999 }),
]).then(responses => { ]).then(responses => {
// //
this.allGysList = (responses[0].data.list || []).map(item => { this.allGysList = (responses[0].data.list || []).map(item => {
return { return {
id: item.id, id: item.id,
title: item.vendorName title: `${item.vendorName}-付款账户:${item.bankNumber}`
} }
}); });
this.$loading(false, 'demo1') this.$loading(false, 'demo1')

@ -197,7 +197,7 @@ export default {
this.allBankList = (responses[1].data.list || []).map(item => { this.allBankList = (responses[1].data.list || []).map(item => {
return { return {
id: item.id, id: item.id,
title: `${item.bankName}-${item.bankAccount}` title: `${item.bankName}-收款账户:${item.bankAccount}`
} }
}); });
resolve() resolve()

@ -393,6 +393,10 @@ export default {
}), }),
// proposerPerson:this.userInfo.id // proposerPerson:this.userInfo.id
} }
if (!this.oaReimburseFeeitemList.length) {
this.$loading(false, 'form')
return this.$fm('暂无付款计划,无法提交!')
}
this.$loading(true, 'form') this.$loading(true, 'form')
createSupplierContract(newForm).then((res) => { createSupplierContract(newForm).then((res) => {
this.$loading(false, 'form') this.$loading(false, 'form')
@ -405,10 +409,6 @@ export default {
this.$loading(false, 'form') this.$loading(false, 'form')
}) })
// }) // })
if (!this.oaReimburseFeeitemList.length) {
this.$loading(false, 'form')
return this.$fm('暂无付款计划,无法提交!')
}
}).catch((err) => { }).catch((err) => {
this.$loading(false, 'form') this.$loading(false, 'form')
if (err && err.length > 0 && err[0].name) { if (err && err.length > 0 && err[0].name) {
@ -566,8 +566,10 @@ export default {
}).then((res) => { }).then((res) => {
this.typeList = res.data || [] this.typeList = res.data || []
}) })
getProjectPage({type:2,pageNo: 1, getProjectPage({
pageSize: 500}).then(res=>{ type: 2, pageNo: 1,
pageSize: 500
}).then(res => {
this.projectList = res.data.list || [] this.projectList = res.data.list || []
}) })
listData({ listData({

Loading…
Cancel
Save