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

修改挂账单bug

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