Commit 3c510473 authored by 华国豪's avatar 华国豪 🙄

修改人头费计算问题

parent 424c81b7
......@@ -12,13 +12,13 @@
<li>
<span>
<em>旅客名称</em>
<el-input v-model="msg.AccountName" @keyup.enter.native="getList" class="w150"></el-input>
<el-input v-model="msg.AccountName" @keyup.enter.native="getList" class=""></el-input>
</span>
</li>
<li style="display:none;">
<span>
<em>同行</em>
<el-select class="w150" v-model="msg.CustomerId" filterable :placeholder="$t('pub.pleaseSel')">
<el-select class="" v-model="msg.CustomerId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option>
<el-option v-for="item in CustomerList" :label="item.CustomerName" :value="item.CustomerId"
......@@ -29,7 +29,7 @@
<li>
<span>
<em>销售</em>
<el-select class="w150" v-model="msg.SaleId" filterable :placeholder="$t('pub.pleaseSel')">
<el-select class="" v-model="msg.SaleId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option>
<el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
......@@ -40,7 +40,7 @@
<li>
<span>
<em>接单领队</em>
<el-select class="w150" v-model="msg.ReciveLeaderId" filterable :placeholder="$t('pub.pleaseSel')">
<el-select class="" v-model="msg.ReciveLeaderId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option>
<el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID"
......@@ -51,7 +51,7 @@
<li>
<span>
<em>订单状态</em>
<el-select filterable v-model="msg.COrderState" class="w150">
<el-select filterable v-model="msg.COrderState" class="">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option v-for="item in OrderStatusList" :label="item.Name" :value="item.Id"
:key="item.ID"></el-option>
......@@ -108,7 +108,7 @@
<td>
<el-button-group>
<el-tooltip class="item" effect="dark" content="分派领队" placement="top">
<el-button type="primary" size="mini" icon="iconfont icon-jinyong" @click="SetAccountStatus(item.Id,1)">
<el-button type="primary" size="mini" icon="iconfont icon-jinyong" @click="SetAccountStatus(item.CorderId,1)">
</el-button>
</el-tooltip>
</el-button-group>
......@@ -125,6 +125,29 @@
</tr>
</tfoot>
</table>
<el-dialog
custom-class="w400"
title="分配领队"
:visible.sync="outerVisible"
center
:before-close="closeChangeMachie"
>
<el-form :model="addMsg" label-width="130px">
<el-form-item label="领队" prop="state">
<el-select filterable v-model="addMsg.ReciveLeaderId" prop="ParentId" >
<el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID" :key="item.ID"></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button
class="hollowFixedBtn"
@click="outerVisible = false"
>{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -142,6 +165,11 @@
pageSize: 10,
total: 0,
},
addMsg: {
ReciveLeaderId: '',
OrderIdList: [],
},
outerVisible: false,
loading: false,
dataList: [],
//账户修改
......@@ -170,6 +198,27 @@
},
filters: {},
methods: {
closeChangeMachie(done) {
done();
},
submitForm(){
this.apipost(
'ShopOrder_get_SetShopOrderAllotLeader', this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.outerVisible = false;
this.getList();
}
},
err => {}
)
},
SetAccountStatus(id){
this.addMsg.OrderIdList = []
this.addMsg.ReciveLeaderId = ''
this.addMsg.OrderIdList.push(id)
this.outerVisible = true;
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
......
......@@ -1343,11 +1343,8 @@
return
}
let list = this.listCost
let allPrice = 0;
let yizhiPrice = list[0].TotalPrice;
for (let i = 0; i < list.length; i++) {
allPrice = list[i].UnitPrice * list[i].PeopleNum
}
let allPrice = obj.UnitPrice * obj.PeopleNum;
let yizhiPrice = obj.TotalPrice;
if (allPrice < inputPrice + yizhiPrice) {
this.$message.error('金额有误')
return
......@@ -1393,11 +1390,11 @@
this.listCost[this.dialogFormVisibleIndex] = obj
this.$forceUpdate()
this.$message.success("制单成功")
this.getNavT()
} else {
this.$message.error(res.data.message)
}
this.dialogFormVisibleLoding = false
this.dialogFormVisible = false
}, null)
},
goZhiDan: function (obj) {
......@@ -1452,6 +1449,8 @@
} else {
this.$message.error(res.data.message);
}
this.dialogFormVisibleLoding = false
this.dialogFormVisible = false
},
err => {}
);
......
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