|
|
@ -123,9 +123,7 @@ |
|
|
|
<el-col :span="24" style="padding: 0px"> |
|
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> |
|
|
|
<el-form-item label="采购系统:"> |
|
|
|
<el-select :disabled="dialogStatus == 'edit'" v-model="formobj.purchaseSystemSid" placeholder="请选择" @change="changePurchase" filterable clearable> |
|
|
|
<el-option v-for="item in purchase_list" :key="item.deptSid" :label="item.purchaseSystemName" :value="item.deptSid"/> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="formobj.purchaseSystem" size="mini" placeholder="" clearable readonly/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="合同编号:"> |
|
|
|
<el-input v-model="listQuery.contractNo" size="mini" placeholder="" style="width: 110px" clearable/> |
|
|
@ -273,7 +271,6 @@ |
|
|
|
import { fetchDetailBySid, saveOrUpdate, fetchDetails, submit } from '@/api/moneycarriedforward/moneycarriedforward' |
|
|
|
import { listAll } from '@/api/anruifinmanagement/paymentConfirmation' |
|
|
|
import amountpledged from '../anruifinmanagement/paymentConfirmation/relation/amountpledged' |
|
|
|
import { fetchDetailsByUseOrgSid, getOrgSidByPath } from '@/api/jichuxinxi/dictcommons' |
|
|
|
import upload from '@/components/uploadFile/upload' |
|
|
|
|
|
|
|
export default { |
|
|
@ -292,7 +289,6 @@ export default { |
|
|
|
overduereceivableKey: 1, |
|
|
|
selectedreceivableKey: 2, |
|
|
|
overduereceivable_list: [], |
|
|
|
purchase_list: [], |
|
|
|
image_list1: [], |
|
|
|
accept: '.jpg,.jpeg,.png,.JPG,.JPEG', |
|
|
|
formobj: { |
|
|
@ -329,7 +325,7 @@ export default { |
|
|
|
purchaseSystemSid: '' |
|
|
|
}, |
|
|
|
rules: {}, |
|
|
|
submitdisabled: false, |
|
|
|
submitdisabled: false |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -345,15 +341,6 @@ export default { |
|
|
|
e.target.value = parseFloat(e.target.value) |
|
|
|
} |
|
|
|
}, |
|
|
|
DataDictionary() { |
|
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { |
|
|
|
fetchDetailsByUseOrgSid(res.data).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.purchase_list = resp.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 已选明细表中计算剩余应收 |
|
|
|
changeMoney(row) { |
|
|
|
if (row.receivable !== '') { |
|
|
@ -428,14 +415,10 @@ export default { |
|
|
|
return resNum |
|
|
|
}, |
|
|
|
getlist() { |
|
|
|
if (this.formobj.purchaseSystemName === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择采购系统' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.listQuery.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.listQuery.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
listAll(this.listQuery).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
if (res.success) { |
|
|
|
this.overduereceivable_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
@ -443,25 +426,6 @@ export default { |
|
|
|
handleFilter() { |
|
|
|
this.getlist() |
|
|
|
}, |
|
|
|
changePurchase(value) { |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.finFundsCarriedForwardVehDetailsVos.length; i++) { |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos[i].thisUseMoney === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查本次使用金额是否已全部填写' }) |
|
|
|
this.formobj.purchaseSystemSid = '' |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (value !== '') { |
|
|
|
const choose = this.purchase_list.filter((item) => item.deptSid === value) |
|
|
|
this.formobj.purchaseSystem = choose[0].purchaseSystemName |
|
|
|
this.listQuery.purchaseSystemSid = this.formobj.purchaseSystemSid |
|
|
|
this.getlist() |
|
|
|
} else { |
|
|
|
this.overduereceivable_list = [] |
|
|
|
} |
|
|
|
}, |
|
|
|
handReset() { |
|
|
|
this.listQuery.contractNo = '' |
|
|
|
this.listQuery.customerName = '' |
|
|
@ -472,7 +436,6 @@ export default { |
|
|
|
this.getlist() |
|
|
|
}, |
|
|
|
showAdd(title, sids) { |
|
|
|
this.DataDictionary() |
|
|
|
this.viewTitle = '【新建】款项结转' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
@ -481,18 +444,21 @@ export default { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
this.formobj.orgSidPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
if (this.formobj.purchaseSystem !== '') { |
|
|
|
this.listQuery.purchaseSystemSid = this.formobj.purchaseSystemSid |
|
|
|
this.getlist() |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.DataDictionary() |
|
|
|
this.viewTitle = '【编辑】款项结转' |
|
|
|
this.dialogStatus = 'edit' |
|
|
|
fetchDetails(row.sid).then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
|
this.formobj.instanceId = resp.data.procInsId |
|
|
|
if (this.formobj.kxqrsImages !== null && this.formobj.kxqrsImages.length >0) { |
|
|
|
if (this.formobj.kxqrsImages !== null && this.formobj.kxqrsImages.length > 0) { |
|
|
|
this.formobj.kxqrsImages.forEach((e) => { |
|
|
|
this.image_list1.push({ |
|
|
|
name: '', |
|
|
@ -514,8 +480,14 @@ export default { |
|
|
|
}, |
|
|
|
// 应收未收明细表添加数据到已选应收明细表 |
|
|
|
handAdd(row) { |
|
|
|
if (this.formobj.collectionMoney === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请先填写收款金额' }) |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.finFundsCarriedForwardVehDetailsVos.length; i++) { |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos[i].thisUseMoney === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查本次使用金额是否已全部填写' }) |
|
|
|
this.formobj.purchaseSystemSid = '' |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
var nowDate = new Date() |
|
|
|
var date = { |
|
|
@ -561,9 +533,14 @@ export default { |
|
|
|
}, |
|
|
|
// 跳转选择已认款项列表 |
|
|
|
handleSelect() { |
|
|
|
if (this.formobj.purchaseSystemSid === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请先选择采购系统' }) |
|
|
|
return |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.finFundsCarriedForwardVehDetailsVos.length; i++) { |
|
|
|
if (this.formobj.finFundsCarriedForwardVehDetailsVos[i].thisUseMoney === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请检查本次使用金额是否已全部填写' }) |
|
|
|
this.formobj.purchaseSystemSid = '' |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divSelect'].showData(this.formobj.yxysFinFundsCarriedForwardYXYSKXVos, this.formobj.purchaseSystemSid) |
|
|
|