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

‘资金调拨修改@’

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