Commit 27cf338d authored by 华国豪's avatar 华国豪 🙄

修改挂账单bug

parent 8600892a
......@@ -302,7 +302,7 @@
</el-form-item>
</td>
<td height="26px">
<el-select filterable v-model='da.HangingAccountsType' :placeholder="$t('rule.qxzfyshuoming')" class=" _border_b_1">
<el-select filterable v-model='da.HangingAccountsType' @change="$forceUpdate()" :placeholder="$t('rule.qxzfyshuoming')" class=" _border_b_1">
<el-option :label='$t("fnc.w_shou")' :value='1' key='1'></el-option>
<el-option :label='$t("fnc.w_zhi")' :value='2' key='2'></el-option>
</el-select>
......@@ -681,7 +681,8 @@ export default {
leaderType:1,
resultCode:null,
loading2: false,
EmployeeId:0
EmployeeId:0,
isFist: true,
}
},methods:{
changeTCNum(t, i){
......@@ -1107,7 +1108,7 @@ export default {
if(i){
msg.ID=i;
}else{
this.msg.ClientID='';
this.msg.ClientID = this.isFist ? this.msg.ClientID : '';
this.msg.AccountNumber='';
this.msg.RemitterName='';
this.msg.IsLeader=1;
......@@ -1116,6 +1117,7 @@ export default {
if(res.data.resultCode == 1) {
let data = res.data.data;
let ClientAccountList = [];
this.isFist = false
if(i){
data.forEach(x=>{
let obj = {
......@@ -1211,7 +1213,6 @@ export default {
data.IsLeader = 1;
this.msg = JSON.parse(JSON.stringify(data));
this.msg.ClientType = this.msg.ClientType==0?'':this.msg.ClientType;
this.msg.ClientID = this.msg.ClientID==0?'':this.msg.ClientID;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
......@@ -1243,7 +1244,7 @@ export default {
x.currenName = y.Name;
}
})
allPrice = allPrice+parseFloat(x.bTotalPrice);
allPrice = x.HangingAccountsType === 1 ? allPrice + parseFloat(x.bTotalPrice) : allPrice - parseFloat(x.bTotalPrice);
});
this.allPrice = allPrice;
this.allPriceTo =this.$commonUtils.addCommas(Math.round(this.allPrice * 100) / 100)
......
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