Commit f33a7e46 authored by 华国豪's avatar 华国豪 🙄

‘资金调拨修改@’

parent a4b55356
......@@ -164,7 +164,7 @@
<p>收款对象</p>
<div>
<span class="_lable">收款方式:</span>
<el-select filterable v-model='item.Type' @change="FinancialInstitutions_post_GetAccountList(item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-select filterable v-model='item.Type' @change="FinancialInstitutions_post_GetAccountList(1, index, item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-option v-for='item in AccList'
:label='item.Name'
:value='item.ID'
......@@ -172,7 +172,7 @@
</el-option>
</el-select>
<span class="_lable">账户类型:</span>
<el-select filterable v-model='item.mode' @change="FinancialInstitutions_post_GetAccountList(item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-select filterable v-model='item.mode' @change="FinancialInstitutions_post_GetAccountList(1, index, item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-option v-for='item in shouAccList'
:label='item.Name'
:value='item.ID'
......@@ -181,10 +181,10 @@
</el-select>
<span class="_lable">到款账户:</span>
<el-select filterable v-model='item.AccountId' @change="getAccInfo(1, index, item.AccountId)" class="w250 _border_b_1">
<el-option v-for='item in shouAccNumList'
:label='item.allName'
:value='item.ID'
:key='item.ID'>
<el-option v-for='sItem in item.shouAccNumList'
:label='sItem.allName'
:value='sItem.ID'
:key='sItem.ID'>
</el-option>
</el-select>
</div>
......@@ -256,7 +256,7 @@
<p>付款方式</p>
<div>
<span class="_lable">付款方式:</span>
<el-select filterable v-model='item.Type' @change="FinancialInstitutions_post_GetAccountList(item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-select filterable v-model='item.Type' @change="FinancialInstitutions_post_GetAccountList(2, index, item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-option v-for='item in AccList'
:label='item.Name'
:value='item.ID'
......@@ -264,7 +264,7 @@
</el-option>
</el-select>
<span class="_lable">账户类型:</span>
<el-select filterable v-model='item.mode' @change="FinancialInstitutions_post_GetAccountList(item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-select filterable v-model='item.mode' @change="FinancialInstitutions_post_GetAccountList(2, index, item.Type, item.mode),item.AccountId=''" class="w100 _border_b_1">
<el-option v-for='item in shouAccList'
:label='item.Name'
:value='item.ID'
......@@ -273,10 +273,10 @@
</el-select>
<span class="_lable">付款账户:</span>
<el-select filterable v-model='item.AccountId' @change="getAccInfo(2, index, item.AccountId)" class="w250 _border_b_1">
<el-option v-for='item in shouAccNumList'
:label='item.allName'
:value='item.ID'
:key='item.ID'>
<el-option v-for='sItem in item.shouAccNumList'
:label='sItem.allName'
:value='sItem.ID'
:key='sItem.ID'>
</el-option>
</el-select>
</div>
......@@ -418,11 +418,19 @@ export default {
this.msg.TemplateId = data.TemplateId
this.msg.Status = data.Status
this.msg.IsPublic = 0
this.msg.RB_Depart_Id = data.RB_Depart_Id
this.msg.RB_Depart_Id = this.getLocalStorage().RB_Department_Id
this.msg.RB_Branch_Id = data.RB_Branch_Id
this.msg.Description = data.Description
this.msg.IsHave = data.IsHave
this.msg.emList = data.FrID
this.msg.Description = ''
this.msg.IsHave = 1
this.msg.emList = []
this.inList.forEach((x, index)=>{
x.mode = x.AccountTypeId
this.FinancialInstitutions_post_GetAccountList(1, index, x.Type, x.mode)
})
this.outList.forEach((x, index)=>{
x.mode = x.AccountTypeId
this.FinancialInstitutions_post_GetAccountList(2, index, x.Type, x.mode)
})
}else{
this.$message.error(res.data.message);
}
......@@ -577,7 +585,7 @@ export default {
}
},err=>{})
},
FinancialInstitutions_post_GetAccountList: function (Type, id) {
FinancialInstitutions_post_GetAccountList: function (out, index, Type, id) {
if (!id) return
this.queryAccMsg.TypeId = id
this.queryAccMsg.BankType = Type
......@@ -587,28 +595,37 @@ export default {
List.forEach(x => {
x.allName = x.BackNo+"("+x.Alias+")";
});
this.shouAccNumList = List
if (out===1) {
this.inList[index].shouAccNumList = List
} else {
this.outList[index].shouAccNumList = List
}
this.$forceUpdate()
}else{
this.$message.error(res.data.message);
}
},err=>{})
},
getAccInfo: function (type, i, id) {
this.shouAccNumList.forEach(x => {
if (x.ID === id) {
if (type===1) {
if (type===1) {
this.inList[i].shouAccNumList.forEach(x=>{
if (x.ID === id) {
this.inList[i].Rate = x.Rate
this.inList[i].AccountId = x.ID
this.inList[i].CurrencyId = x.CurrencyId
this.inList[i].CurrencyName = x.CurrencyName
} else {
}
})
} else {
this.outList[i].shouAccNumList.forEach(x=>{
if (x.ID === id) {
this.outList[i].Rate = x.Rate
this.outList[i].AccountId = x.ID
this.outList[i].CurrencyId = x.CurrencyId
this.outList[i].CurrencyName = x.CurrencyName
}
}
})
})
}
},
uploadFileBtn: function (file) { //上传
if(file.file.size > 1024 * 1024 * 10) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment