Commit 31225839 authored by 黄奎's avatar 黄奎

页面修改

parent d362ccf3
...@@ -560,7 +560,7 @@ ...@@ -560,7 +560,7 @@
class=" _border_b_1"> class=" _border_b_1">
<!-- SelectDisablsed!=item.ID --> <!-- SelectDisablsed!=item.ID -->
<el-option v-for='item in GetCostTypeList' :label='item.Name' :value='item.ID' :key='item.ID' <el-option v-for='item in GetCostTypeList' :label='item.Name' :value='item.ID' :key='item.ID'
:disabled="SelectState"> :disabled="SelectState">
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
...@@ -639,7 +639,8 @@ ...@@ -639,7 +639,8 @@
</td> </td>
<td> <td>
<el-select filterable v-model='detailList.CurrencyId' :placeholder="$t('rule.qxzbzhong')" <el-select filterable v-model='detailList.CurrencyId' :placeholder="$t('rule.qxzbzhong')"
@change="getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1),Calculation(1)" class=" _border_b_1"> @change="getRate(detailList.CostTypeId,detailList.CurrencyId,1),addList(1),Calculation(1)"
class=" _border_b_1">
<el-option v-for='item in coinGetList' :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for='item in coinGetList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
...@@ -689,6 +690,16 @@ ...@@ -689,6 +690,16 @@
<td height="26px"></td> <td height="26px"></td>
<td height="26px"></td> <td height="26px"></td>
</tr> </tr>
<tr>
<td height="26px"></td>
<td height="26px"></td>
<td height="26px"></td>
<td height="26px">原币合计</td>
<td height="26px">{{ybSumPrice}}</td>
<td height="26px"></td>
<td height="26px"></td>
<td height="26px"></td>
</tr>
<tr> <tr>
<td>{{$t('fnc.sfjine')}}<br /><span class="_font_size12">{{$t('fnc.daxie')}}</span></td> <td>{{$t('fnc.sfjine')}}<br /><span class="_font_size12">{{$t('fnc.daxie')}}</span></td>
<td colspan="3">{{chinaAllPrice}}</td> <td colspan="3">{{chinaAllPrice}}</td>
...@@ -717,27 +728,26 @@ ...@@ -717,27 +728,26 @@
<div class="_explain"> <div class="_explain">
<p>{{$t('fnc.fjshuoming')}}</p> <p>{{$t('fnc.fjshuoming')}}</p>
<div> <div>
<div style="display: flex;"> <div style="display: flex;">
<p> <p>
{{$t('fnc.fygsbumen')}}:<span> {{$t('fnc.fygsbumen')}}:<span>
<el-select filterable v-model='msg.RB_Depart_Id' class="w135 _border_b_1"> <el-select filterable v-model='msg.RB_Depart_Id' class="w135 _border_b_1">
<el-option v-for='item in departmentList' :label='item.DepartmentName' :value='item.DepartmentID' <el-option v-for='item in departmentList' :label='item.DepartmentName' :value='item.DepartmentID'
:key='item.DepartmentID'> :key='item.DepartmentID'>
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
</p> </p>
<p v-if="StoredCustomerList&&StoredCustomerList.length" style="margin-left: 15px;">预收抵用:<span> <p v-if="StoredCustomerList&&StoredCustomerList.length" style="margin-left: 15px;">预收抵用:<span>
<el-select clearable v-model='msg.DepositCustomerId' class="w135 _border_b_1" <el-select clearable v-model='msg.DepositCustomerId' class="w135 _border_b_1"
@change="getSigningCustomerId(2)" @change="getSigningCustomerId(2)" :disabled="isDepositCustomer">
:disabled="isDepositCustomer"> <el-option v-for='item in StoredCustomerList' :label='item.customerName' :value='item.customerId'
<el-option v-for='item in StoredCustomerList' :label='item.customerName' :value='item.customerId' :key='item.customerId'>
:key='item.customerId'> </el-option>
</el-option> </el-select>
</el-select> </span>
</span> </p>
</p> </div>
</div>
<template v-if="GetDetail.FrID!=0"> <template v-if="GetDetail.FrID!=0">
<p v-if="GetDetail.OrderSource==9&&GetDetail.SourceID>0">{{$t("fnc.gnpiaowu")}}<span <p v-if="GetDetail.OrderSource==9&&GetDetail.SourceID>0">{{$t("fnc.gnpiaowu")}}<span
class="_jump_page _font_bold" class="_jump_page _font_bold"
...@@ -757,11 +767,10 @@ ...@@ -757,11 +767,10 @@
</div> </div>
<!-- <p v-if="GetDetail.OrderSource==4&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,4)" class="_jump_page _font_bold">机票收支</p> --> <!-- <p v-if="GetDetail.OrderSource==4&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,4)" class="_jump_page _font_bold">机票收支</p> -->
</template> </template>
<el-tooltip content="配置手配费" placement="top"></el-tooltip> <el-tooltip content="配置手配费" placement="top">
<el-switch v-if="isHandFee" v-model="is_HandFee" @change="getHandFee"> <el-switch v-if="isHandFee" v-model="is_HandFee" @change="getHandFee">
</el-switch> </el-switch>
</el-tooltip> </el-tooltip>
</div> </div>
<template v-if="(isHandFee&&is_HandFee)||(is_HandFee&&this.GetDetail.Status==0)"> <template v-if="(isHandFee&&is_HandFee)||(is_HandFee&&this.GetDetail.Status==0)">
<div> <div>
...@@ -893,10 +902,9 @@ ...@@ -893,10 +902,9 @@
<label> <label>
<!-- {{$t('fnc.xiayibu')}} --> <!-- {{$t('fnc.xiayibu')}} -->
下一步审核人:<span class="red">{{msg.AuditDescription}}</span></label> 下一步审核人:<span class="red">{{msg.AuditDescription}}</span></label>
<!-- $t('rule.qxzxybshren') --> <!-- $t('rule.qxzxybshren') -->
<el-select size="mini" style="width:300px" v-model="chosenPeople" multiple filterable remote <el-select size="mini" style="width:300px" v-model="chosenPeople" multiple filterable remote
reserve-keyword placeholder="请输入下一步审核人,并选中" :remote-method="remoteMethod" reserve-keyword placeholder="请输入下一步审核人,并选中" :remote-method="remoteMethod" :loading="loadingPeople">
:loading="loadingPeople">
<el-option v-for="item in peopleData" :key="item.empId" :label="`${item.name}`" :value="item.empId"> <el-option v-for="item in peopleData" :key="item.empId" :label="`${item.name}`" :value="item.empId">
<span style="float: left; font-size: 12px">{{ item.name }}</span> <span style="float: left; font-size: 12px">{{ item.name }}</span>
<span style="float: right; font-size: 12px; margin-right:20px;">{{ item.departmentName }}</span> <span style="float: right; font-size: 12px; margin-right:20px;">{{ item.departmentName }}</span>
...@@ -943,8 +951,8 @@ ...@@ -943,8 +951,8 @@
isDepositCustomer: false, isDepositCustomer: false,
ContractCustomer: null, ContractCustomer: null,
DepositCustomer: null, DepositCustomer: null,
CustomerIdList:[], CustomerIdList: [],
StoredCustomerList:[], StoredCustomerList: [],
yballPriceTo: 0, //原币合计 yballPriceTo: 0, //原币合计
maxmoneyData: 0, maxmoneyData: 0,
detailCurrDis: false, detailCurrDis: false,
...@@ -1016,6 +1024,7 @@ ...@@ -1016,6 +1024,7 @@
allPrice: 0, allPrice: 0,
allPriceTo: '', allPriceTo: '',
allPriceTocalc: '', allPriceTocalc: '',
ybSumPrice: '', //原币汇总
chinaAllPrice: this.$commonUtils.changeMoneyToChinese(this.allPrice), chinaAllPrice: this.$commonUtils.changeMoneyToChinese(this.allPrice),
DepartIDs: '0', DepartIDs: '0',
GetDetail: {}, GetDetail: {},
...@@ -1096,7 +1105,7 @@ ...@@ -1096,7 +1105,7 @@
], //类型 ], //类型
isHandFee: false, isHandFee: false,
is_HandFee: true, //是否开启 is_HandFee: true, //是否开启
HandlingChargeType:0,//月结制单 1转账手续费 2转账手续费差额 HandlingChargeType: 0, //月结制单 1转账手续费 2转账手续费差额
} }
}, },
methods: { methods: {
...@@ -1200,11 +1209,11 @@ ...@@ -1200,11 +1209,11 @@
}) })
} }
}) })
if(states){ if (states) {
this.msg.detailList.forEach((x, index) => { this.msg.detailList.forEach((x, index) => {
this.HandFeeDetail && this.HandFeeDetail.DetailList.forEach((y, indexs) => { this.HandFeeDetail && this.HandFeeDetail.DetailList.forEach((y, indexs) => {
let obj = x let obj = x
if ( y.Type == 3) { if (y.Type == 3) {
y.show = true, numToCE += Number(obj.Number), y.Num = numToCE y.show = true, numToCE += Number(obj.Number), y.Num = numToCE
states = false states = false
} }
...@@ -1219,7 +1228,7 @@ ...@@ -1219,7 +1228,7 @@
}, },
//获取手配费所有配置 //获取手配费所有配置
GetHandFeeList() { GetHandFeeList() {
if(!this.isHandFee||this.GetDetail.Status>0) return if (!this.isHandFee || this.GetDetail.Status > 0) return
this.apipost( this.apipost(
"handfee_post_GetHandFeeList", { "handfee_post_GetHandFeeList", {
BranchId: -1 BranchId: -1
...@@ -1448,18 +1457,18 @@ ...@@ -1448,18 +1457,18 @@
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,1})/g)[0]) || null e.target.value = (e.target.value.match(/^\d*(\.?\d{0,1})/g)[0]) || null
}, },
AddFinancial(z) { //保存 AddFinancial(z) { //保存
if(this.describeList&&this.describeList.length>0){ if (this.describeList && this.describeList.length > 0) {
let num = 0 let num = 0
this.msg.detailList.forEach(x=>{ this.msg.detailList.forEach(x => {
num+=Number(x.Number) num += Number(x.Number)
}) })
if(this.describeList.length!=num){ if (this.describeList.length != num) {
this.Error('费用总数量与旅客名单人数不符!') this.Error('费用总数量与旅客名单人数不符!')
return return
} }
} }
for(let i=0;i<this.msg.detailList.length;i++){ for (let i = 0; i < this.msg.detailList.length; i++) {
if(!this.msg.detailList[i].CurrencyId){ if (!this.msg.detailList[i].CurrencyId) {
this.Error('请完善费用的相关信息') this.Error('请完善费用的相关信息')
return return
} }
...@@ -1490,7 +1499,7 @@ ...@@ -1490,7 +1499,7 @@
this.msg.HandFeeList.push(JSON.parse(JSON.stringify(obj))) this.msg.HandFeeList.push(JSON.parse(JSON.stringify(obj)))
} }
}) })
if(this.msg.HandFeeList.length==0){ if (this.msg.HandFeeList.length == 0) {
this.Error('暂无可配置的手配费项,请关闭手配费') this.Error('暂无可配置的手配费项,请关闭手配费')
return return
} }
...@@ -1535,11 +1544,12 @@ ...@@ -1535,11 +1544,12 @@
this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2 ? this.orderObj.ReFinanceId2 : 0; this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2 ? this.orderObj.ReFinanceId2 : 0;
this.msg.ReFinanceIds = this.orderObj.ReFinanceIds ? this.orderObj.ReFinanceIds : ''; this.msg.ReFinanceIds = this.orderObj.ReFinanceIds ? this.orderObj.ReFinanceIds : '';
this.msg.ECOrderList = this.orderObj.ECOrderList ? this.orderObj.ECOrderList : []; this.msg.ECOrderList = this.orderObj.ECOrderList ? this.orderObj.ECOrderList : [];
this.msg.EduCommissionEmp = this.orderObj.EduCommissionEmp ? this.orderObj.EduCommissionEmp: null this.msg.EduCommissionEmp = this.orderObj.EduCommissionEmp ? this.orderObj.EduCommissionEmp : null
this.msg.MatchFrId = this.orderObj.MatchFrId ? this.orderObj.MatchFrId : 0; this.msg.MatchFrId = this.orderObj.MatchFrId ? this.orderObj.MatchFrId : 0;
this.msg.StandardCurrencyName = this.orderObj.StandardCurrencyName?this.orderObj.StandardCurrencyName:'' this.msg.StandardCurrencyName = this.orderObj.StandardCurrencyName ? this.orderObj.StandardCurrencyName : ''
} }
if(this.orderObj&&this.orderObj.OtherType&&this.orderObj.OtherType==75&&this.orderObj.ReFinances==''){ if (this.orderObj && this.orderObj.OtherType && this.orderObj.OtherType == 75 && this.orderObj.ReFinances ==
'') {
this.Error(`成本月结数据不能为空!`) this.Error(`成本月结数据不能为空!`)
return return
} }
...@@ -1549,9 +1559,9 @@ ...@@ -1549,9 +1559,9 @@
let yballPrice = 0 let yballPrice = 0
let totalAmount let totalAmount
this.msg && this.msg.detailList && this.msg.detailList.forEach((item, i) => { this.msg && this.msg.detailList && this.msg.detailList.forEach((item, i) => {
yballPrice += (Number(item.UnitPrice)*100) yballPrice += (Number(item.UnitPrice) * 100)
}) })
this.yballPriceTo = yballPrice/100 this.yballPriceTo = yballPrice / 100
totalAmount = Math.round(this.orderObj.Money * 100) / 100 totalAmount = Math.round(this.orderObj.Money * 100) / 100
if (totalAmount != this.yballPriceTo) { if (totalAmount != this.yballPriceTo) {
this.Error(`原币总金额需等于${this.orderObj.Money}!`) this.Error(`原币总金额需等于${this.orderObj.Money}!`)
...@@ -1562,11 +1572,11 @@ ...@@ -1562,11 +1572,11 @@
//验证总金额是否一致 //验证总金额是否一致
if (this.commissionObj) { if (this.commissionObj) {
let totalAmount let totalAmount
if(this.commissionObj){ if (this.commissionObj) {
this.msg.OtherType = this.commissionObj.OtherType ? this.commissionObj.OtherType : 0; this.msg.OtherType = this.commissionObj.OtherType ? this.commissionObj.OtherType : 0;
this.msg.ReFinanceId = this.commissionObj.PeroidsId ? this.commissionObj.PeroidsId : 0; this.msg.ReFinanceId = this.commissionObj.PeroidsId ? this.commissionObj.PeroidsId : 0;
this.msg.RelevanceFrId = this.commissionObj.EmpIds ? this.commissionObj.EmpIds : 0; this.msg.RelevanceFrId = this.commissionObj.EmpIds ? this.commissionObj.EmpIds : 0;
totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount * 100) / 100) totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount * 100) / 100)
} }
// if (this.orderObj && this.orderObj.Money && this.orderObj.isVerifyMoney) { // if (this.orderObj && this.orderObj.Money && this.orderObj.isVerifyMoney) {
// totalAmount = this.$commonUtils.addCommas(Math.round(this.orderObj.Money * 100) / 100) // totalAmount = this.$commonUtils.addCommas(Math.round(this.orderObj.Money * 100) / 100)
...@@ -1689,7 +1699,7 @@ ...@@ -1689,7 +1699,7 @@
} }
}) })
}).catch(() => { }).catch(() => {
if(this.orderObj&&(this.orderObj.EduCommissionEmp||this.orderObj.queryObj)){ if (this.orderObj && (this.orderObj.EduCommissionEmp || this.orderObj.queryObj)) {
location.reload() location.reload()
this.$router.push({ this.$router.push({
name: 'leaderReimbursement', name: 'leaderReimbursement',
...@@ -1698,7 +1708,7 @@ ...@@ -1698,7 +1708,7 @@
'blank': 'y', 'blank': 'y',
} }
}); });
}else{ } else {
this.$router.push({ this.$router.push({
name: 'FinancialDocuments', name: 'FinancialDocuments',
query: { query: {
...@@ -1723,7 +1733,8 @@ ...@@ -1723,7 +1733,8 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
res.data.data.forEach(y => { res.data.data.forEach(y => {
y.contentTips = y.AuditDescription + (y.AuditWay == "2" ? this.$t('fnc.huiqian') : this.$t('fnc.huoqian')) y.contentTips = y.AuditDescription + (y.AuditWay == "2" ? this.$t('fnc.huiqian') : this.$t(
'fnc.huoqian'))
}) })
this.AuditListData.AuditList = res.data.data; this.AuditListData.AuditList = res.data.data;
let data = JSON.parse(JSON.stringify(this.AuditListData.AuditList)); let data = JSON.parse(JSON.stringify(this.AuditListData.AuditList));
...@@ -1757,7 +1768,8 @@ ...@@ -1757,7 +1768,8 @@
} else { } else {
this.msg.detailList.push(list); this.msg.detailList.push(list);
} }
let allPrice = 0 let allPrice = 0;
let ybsumprice = 0;
this.msg.detailList.forEach(x => { this.msg.detailList.forEach(x => {
this.coinGetList.forEach(y => { this.coinGetList.forEach(y => {
if (y.ID == x.CurrencyId) { if (y.ID == x.CurrencyId) {
...@@ -1765,9 +1777,14 @@ ...@@ -1765,9 +1777,14 @@
} }
}) })
allPrice = allPrice + parseFloat(x.bTotalPrice); allPrice = allPrice + parseFloat(x.bTotalPrice);
//HK 2023-08-17新增
if (x.yTotalPrice) {
ybsumprice += Number(x.yTotalPrice);
}
}) })
this.$forceUpdate() this.$forceUpdate()
this.allPrice = allPrice; this.allPrice = allPrice;
this.ybSumPrice = ybsumprice.toFixed(x);
this.allPriceTo = this.$commonUtils.addCommas(Math.round(this.allPrice * 100) / 100) this.allPriceTo = this.$commonUtils.addCommas(Math.round(this.allPrice * 100) / 100)
this.allPriceTocalc = Math.round(this.allPrice * 100) / 100 this.allPriceTocalc = Math.round(this.allPrice * 100) / 100
this.chinaAllPrice = this.$commonUtils.changeMoneyToChinese(this.allPrice) this.chinaAllPrice = this.$commonUtils.changeMoneyToChinese(this.allPrice)
...@@ -2049,7 +2066,7 @@ ...@@ -2049,7 +2066,7 @@
item.UnitPriceTo = this.$commonUtils.addCommas(Math.round(price * 100) / 100) item.UnitPriceTo = this.$commonUtils.addCommas(Math.round(price * 100) / 100)
item.yTotalPrice = numberC * price; item.yTotalPrice = numberC * price;
item.yTotalPriceTo = this.$commonUtils.addCommas(Math.round(item.yTotalPrice * 100) / item.yTotalPriceTo = this.$commonUtils.addCommas(Math.round(item.yTotalPrice * 100) /
100); 100);
if (!isNaN(rate)) { if (!isNaN(rate)) {
let num = (numberC * price) * rate; let num = (numberC * price) * rate;
num = Math.round(num * 100) / 100; num = Math.round(num * 100) / 100;
...@@ -2115,7 +2132,8 @@ ...@@ -2115,7 +2132,8 @@
} }
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];
} else if(this.orderObj && (this.orderObj.RB_Branch_Id!=''&&this.orderObj.RB_Branch_Id!=null&&this.orderObj.RB_Branch_Id!=undefined)){ } else if (this.orderObj && (this.orderObj.RB_Branch_Id != '' && this.orderObj.RB_Branch_Id != null &&
this.orderObj.RB_Branch_Id != undefined)) {
this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id
} else if (this.$route.query.companyID) { } else if (this.$route.query.companyID) {
this.msg.RB_Branch_Id = parseInt(this.$route.query.companyID); this.msg.RB_Branch_Id = parseInt(this.$route.query.companyID);
...@@ -2180,51 +2198,51 @@ ...@@ -2180,51 +2198,51 @@
this.msg.SourceID = this.orderObj.SourceID ? this.orderObj.SourceID : 0; this.msg.SourceID = this.orderObj.SourceID ? this.orderObj.SourceID : 0;
this.msg.CallType = this.orderObj.CallType ? this.orderObj.CallType : 0; this.msg.CallType = this.orderObj.CallType ? this.orderObj.CallType : 0;
if(this.orderObj.OtherType==75) { if (this.orderObj.OtherType == 75) {
let msgObj = { let msgObj = {
ID: 0, ID: 0,
UnitPrice: '', UnitPrice: '',
UnitPriceTo: '', UnitPriceTo: '',
Number: 1, Number: 1,
Rate: '', Rate: '',
CostTypeId: this.orderObj.CostType, CostTypeId: this.orderObj.CostType,
CurrencyId: '', CurrencyId: '',
Remark: '', Remark: '',
CostTypeName: '支付月结预提成本或费用', CostTypeName: '支付月结预提成本或费用',
yTotalPrice: '', yTotalPrice: '',
yTotalPriceTo: '', yTotalPriceTo: '',
bTotalPrice: '', bTotalPrice: '',
bTotalPriceTo: '', bTotalPriceTo: '',
show: false, show: false,
} }
this.msg.detailList = [] this.msg.detailList = []
if(this.orderObj.CostType){ if (this.orderObj.CostType) {
msgObj.UnitPrice = this.orderObj.Money msgObj.UnitPrice = this.orderObj.Money
msgObj.UnitPriceTo = this.orderObj.Money msgObj.UnitPriceTo = this.orderObj.Money
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
}
if (this.orderObj.MoneyClosed) {
msgObj.UnitPrice = this.orderObj.MoneyClosed
msgObj.UnitPriceTo = this.orderObj.MoneyClosed
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
}
if (this.orderObj.CostType2 || this.orderObj.CostType3) {
if (this.orderObj.CostType2) {
msgObj.CostTypeId = this.orderObj.CostType2
msgObj.UnitPrice = this.orderObj.HandlingChargeMoney
msgObj.UnitPriceTo = this.orderObj.HandlingChargeMoney
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj))) this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
} }
if(this.orderObj.MoneyClosed){ if (this.orderObj.CostType3) {
msgObj.UnitPrice = this.orderObj.MoneyClosed msgObj.CostTypeName = '转账手续费'
msgObj.UnitPriceTo = this.orderObj.MoneyClosed msgObj.CostTypeId = this.orderObj.CostType3
msgObj.UnitPrice = this.orderObj.balanceMoney
msgObj.UnitPriceTo = this.orderObj.balanceMoney
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj))) this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
} }
if(this.orderObj.CostType2||this.orderObj.CostType3){ }
if(this.orderObj.CostType2){
msgObj.CostTypeId = this.orderObj.CostType2
msgObj.UnitPrice = this.orderObj.HandlingChargeMoney
msgObj.UnitPriceTo = this.orderObj.HandlingChargeMoney
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
}
if(this.orderObj.CostType3){
msgObj.CostTypeName = '转账手续费'
msgObj.CostTypeId = this.orderObj.CostType3
msgObj.UnitPrice = this.orderObj.balanceMoney
msgObj.UnitPriceTo = this.orderObj.balanceMoney
this.msg.detailList.push(JSON.parse(JSON.stringify(msgObj)))
}
}
}else{ } else {
this.detailList.CostTypeId = this.orderObj.CostType ? this.orderObj.CostType : ''; this.detailList.CostTypeId = this.orderObj.CostType ? this.orderObj.CostType : '';
this.detailList.UnitPrice = this.orderObj.Money ? this.orderObj.Money : 0; this.detailList.UnitPrice = this.orderObj.Money ? this.orderObj.Money : 0;
this.detailList.Number = this.orderObj.CostType ? 1 : 0 this.detailList.Number = this.orderObj.CostType ? 1 : 0
...@@ -2392,16 +2410,16 @@ ...@@ -2392,16 +2410,16 @@
if (x.Id == y) { if (x.Id == y) {
x.disabled = false; x.disabled = false;
if (num < 1 && !this.$route.query.edit) { if (num < 1 && !this.$route.query.edit) {
if(this.orderObj&&this.orderObj.RB_Branch_Id){ if (this.orderObj && this.orderObj.RB_Branch_Id) {
this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id
}else{ } else {
this.msg.RB_Branch_Id = x.Id this.msg.RB_Branch_Id = x.Id
} }
} }
if (Id === x.Id && !this.$route.query.edit) { if (Id === x.Id && !this.$route.query.edit) {
if(this.orderObj&&this.orderObj.RB_Branch_Id){ if (this.orderObj && this.orderObj.RB_Branch_Id) {
this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id
}else{ } else {
this.msg.RB_Branch_Id = x.Id this.msg.RB_Branch_Id = x.Id
} }
} }
...@@ -2583,8 +2601,8 @@ ...@@ -2583,8 +2601,8 @@
this.$route.query.id == 247 || this.$route.query.id == 247 ||
this.$route.query.id == 248 || this.$route.query.id == 248 ||
this.$route.query.id == 267) { this.$route.query.id == 267) {
this.is_HandFee = true this.is_HandFee = true
this.isHandFee = true this.isHandFee = true
} else { } else {
this.is_HandFee = false this.is_HandFee = false
this.isHandFee = false this.isHandFee = false
...@@ -2596,9 +2614,10 @@ ...@@ -2596,9 +2614,10 @@
this.emplyeeName = userInfo.emName; this.emplyeeName = userInfo.emName;
this.DepartIDs = this.msg.RB_Depart_Id = userInfo.RB_Department_Id; this.DepartIDs = this.msg.RB_Depart_Id = userInfo.RB_Department_Id;
if(this.orderObj&&this.orderObj.RB_Branch_Id!=''&&this.orderObj.RB_Branch_Id!=null&&this.orderObj.RB_Branch_Id!=undefined){ if (this.orderObj && this.orderObj.RB_Branch_Id != '' && this.orderObj.RB_Branch_Id != null && this.orderObj
.RB_Branch_Id != undefined) {
this.RB_Branch_id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id; this.RB_Branch_id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = this.orderObj.RB_Branch_Id;
}else{ } else {
this.RB_Branch_id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = userInfo.RB_Branch_id; this.RB_Branch_id = this.departmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id = userInfo.RB_Branch_id;
} }
this.companyMsg.RB_Group_Id = this.departmentMsg.RB_Group_Id = userInfo.RB_Group_id; this.companyMsg.RB_Group_Id = this.departmentMsg.RB_Group_Id = userInfo.RB_Group_id;
......
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