|
|
@ -182,7 +182,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>收款单位名称</div> |
|
|
|
<el-form-item prop="receiveCompany"> |
|
|
|
<el-select class="addinputInfo addinputw" v-model="formobj.receiveCompany" placeholder="请选择" @change="changerRceiveCompany" clearable filterable> |
|
|
|
<el-select class="addinputInfo addinputw" :disabled="sids.length > 1" v-model="formobj.receiveCompany" placeholder="请选择" @change="changerRceiveCompany" clearable filterable> |
|
|
|
<el-option v-for="item in receiveCompany_list" :key="item.sid" :label="item.name" :value="item.name"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -190,7 +190,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="span-sty"><span class="icon">*</span>收款银行账号</div> |
|
|
|
<el-form-item prop="receiveBankAccount"> |
|
|
|
<el-select class="addinputInfo addinputw" v-model="formobj.receiveBankAccount" placeholder="请选择" @change="changeReceiveBankAccount" clearable filterable> |
|
|
|
<el-select class="addinputInfo addinputw" :disabled="sids.length > 1" v-model="formobj.receiveBankAccount" placeholder="请选择" @change="changeReceiveBankAccount" clearable filterable> |
|
|
|
<el-option v-for="item in receiveBankAccount_list" :key="item.receiveBankAccount" :label="item.receiveBankAccount" :value="item.receiveBankAccount"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
@ -488,19 +488,12 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSelectionChange(row) { |
|
|
|
console.log('aaa', row) |
|
|
|
const aa = [] |
|
|
|
const bb = [] |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
bb.push({ |
|
|
|
state: element.state, |
|
|
|
receiveBankAccount: element.receiveBankAccount |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
this.nodeState_list = bb |
|
|
|
console.log('获取sids数组', this.sids) |
|
|
|
this.nodeState_list = row |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
indexMethod(index) { |
|
|
@ -514,7 +507,6 @@ export default { |
|
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
req.listPage(this.listQuery).then((response) => { |
|
|
|
console.log('列表查询结果:', response) |
|
|
|
this.listLoading = false |
|
|
|
if (response.success) { |
|
|
|
this.list = response.data.records |
|
|
@ -666,7 +658,6 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择至少一条以上记录进行批量处理' }) |
|
|
|
return |
|
|
|
} else { |
|
|
|
console.log(this.nodeState_list) |
|
|
|
if (this.nodeState_list.length > 0) { |
|
|
|
for (var i = 0; i < this.nodeState_list.length; i++) { |
|
|
|
if (this.nodeState_list[i].state !== '未支付') { |
|
|
@ -682,6 +673,17 @@ export default { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.dialogVisible = true |
|
|
|
this.disabledCost = true |
|
|
|
var num = 0 |
|
|
|
for (let i = 0; i < this.nodeState_list.length; i++) { |
|
|
|
if (i === 0) { |
|
|
|
this.formobj.receiveCompany = this.nodeState_list[i].receiveCompany |
|
|
|
this.formobj.receiveBankAccount = this.nodeState_list[i].receiveBankAccount |
|
|
|
this.formobj.receiveBank = this.nodeState_list[i].receiveBank |
|
|
|
} |
|
|
|
num = Math.round((parseFloat(num) + parseFloat(this.nodeState_list[i].cost !== '' ? this.nodeState_list[i].cost : 0)) * 100) / 100 |
|
|
|
} |
|
|
|
this.formobj.cost = num |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|