|
|
@ -123,11 +123,21 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>备注</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="20" class="trightb"> |
|
|
|
<el-col :span="12" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="formobj.remarks" :disabled="forbidden" style="width: 800px" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span class="icon">*</span>采购系统</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="purchaseSystemName"> |
|
|
|
<el-select v-model="formobj.purchaseSystemName" placeholder="请选择" :disabled="forbidden" @change="changePurchase" filterable clearable> |
|
|
|
<el-option v-for="item in purchase_list_list" :key="item.deptSid" :label="item.purchaseSystemName" :value="item.purchaseSystemName"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
@ -292,9 +302,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { save, dataDictionary, listAll, fetchDetailBySid } from '@/api/anruifinmanagement/paymentConfirmation.js' |
|
|
|
import { save, listAll, fetchDetailBySid } from '@/api/anruifinmanagement/paymentConfirmation.js' |
|
|
|
import Upload from '@/components/uploadFile/filesUpload' // 上传文件 |
|
|
|
import { selAccountByOrgSid } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import { selAccountByOrgSid, typeValues, fetchDetailsByUseOrgSid, getOrgSidByPath } from '@/api/jichuxinxi/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'acknowledgementReceiptAdd', |
|
|
@ -311,6 +321,7 @@ export default { |
|
|
|
collectionBankNum_list: [], |
|
|
|
receiptType_list: [], |
|
|
|
overduereceivable_list: [], |
|
|
|
purchase_list: [], |
|
|
|
forbidden: false, |
|
|
|
list1: [], |
|
|
|
list2: [], |
|
|
@ -339,6 +350,8 @@ export default { |
|
|
|
payBank: '', |
|
|
|
payAccount: '', |
|
|
|
accountSid: '', |
|
|
|
purchaseSystemName: '', |
|
|
|
purchaseSystemSid: '', |
|
|
|
finSelectedReceivablesDetaileds: [], |
|
|
|
paymentVoucherAppendixs: [], |
|
|
|
remittanceConfirmationAppendixs: [] |
|
|
@ -349,13 +362,15 @@ export default { |
|
|
|
customerPhone: '', |
|
|
|
sids: [], |
|
|
|
createBySid: '', |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
orgPath: '' |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
collectionMoney: [{ required: true, message: '收款金额不能为空', trigger: 'blur' }], |
|
|
|
collectionDate: [{ required: true, message: '收款日期不能为空', trigger: 'change' }], |
|
|
|
collectionTypeValue: [{ required: true, message: '收款方式不能为空', trigger: 'change' }], |
|
|
|
payerName: [{ required: true, message: '付款方不能为空', trigger: 'blur' }] |
|
|
|
payerName: [{ required: true, message: '付款方不能为空', trigger: 'blur' }], |
|
|
|
purchaseSystemName: [{ required: true, message: '采购系统不能为空', trigger: 'change' }] |
|
|
|
}, |
|
|
|
submitdisabled: false, |
|
|
|
balance: '', // 余额 |
|
|
@ -388,16 +403,23 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
DataDictionary() { |
|
|
|
dataDictionary({ type: 'receiptBank' }).then((res) => { |
|
|
|
typeValues({ type: 'receiptBank' }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.receiptBank_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
dataDictionary({ type: 'customerPayType' }).then((res) => { |
|
|
|
typeValues({ type: 'customerPayType' }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.receiptType_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
fetchDetailsByUseOrgSid(res.data).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.purchase_list = resp.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
selAccountByOrgSid({ userSid: window.sessionStorage.getItem('userSid'), orgPath: '' }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.collectionBankNum_list = resp.data |
|
|
@ -421,6 +443,10 @@ export default { |
|
|
|
this.formobj.receivingName = aa.accountName |
|
|
|
this.formobj.collectionBank = aa.depositBank |
|
|
|
}, |
|
|
|
changePurchase(value) { |
|
|
|
const choose = this.purchase_list.filter((item) => item.purchaseSystemName === value) |
|
|
|
this.formobj.purchaseSystemSid = choose[0].deptSid |
|
|
|
}, |
|
|
|
changeCollectionType(value) { |
|
|
|
let aa = null |
|
|
|
this.receiptType_list.forEach((e) => { |
|
|
@ -492,6 +518,7 @@ export default { |
|
|
|
}, |
|
|
|
getlist() { |
|
|
|
this.listQuery.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.listQuery.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
listAll(this.listQuery).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.overduereceivable_list = res.data |
|
|
@ -508,7 +535,8 @@ export default { |
|
|
|
customerPhone: '', |
|
|
|
sids: [], |
|
|
|
createBySid: '', |
|
|
|
vinNo: '' |
|
|
|
vinNo: '', |
|
|
|
orgPath: '' |
|
|
|
} |
|
|
|
this.getlist() |
|
|
|
}, |
|
|
@ -724,6 +752,8 @@ export default { |
|
|
|
payBank: '', |
|
|
|
payAccount: '', |
|
|
|
accountSid: '', |
|
|
|
purchaseSystemName: '', |
|
|
|
purchaseSystemSid: '', |
|
|
|
finSelectedReceivablesDetaileds: [], |
|
|
|
paymentVoucherAppendixs: [], |
|
|
|
remittanceConfirmationAppendixs: [] |
|
|
|