Commit 577ec548 authored by 黄奎's avatar 黄奎

也没修过

parent 6aa10b4e
......@@ -41,7 +41,8 @@
<!--留学就业订单-->
<template v-if="orderType==2||OrderMsg.OrderType==2">
<q-select standout="bg-primary text-white" option-value="Id" class="q-pb-lg" option-label="Name"
v-model="OrderMsg.OrderNature" :options="OrderStatus" emit-value map-options label="订单性质" />
v-model="OrderMsg.OrderNature" :options="OrderStatus" emit-value map-options label="订单性质"
@input="OrderNatureChange" />
<q-input filled stack-label :dense="false" maxlength="10" @keyup.native="checkPrice(OrderMsg,'PreferPrice')"
:disable="OrderMsg.OrderNature==1&&isHaveModify" v-model="OrderMsg.PreferPrice" class="col-12 q-pb-lg"
label="应收" />
......@@ -127,7 +128,7 @@
Name: '返佣'
}
],
isHaveModify:false
isHaveModify: false
}
},
created() {
......@@ -135,21 +136,24 @@
this.getEmployee();
var localStorageData = window.localStorage["loginUserInfo"];
let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
if(ActionMenuList && ActionMenuList.length>0){
ActionMenuList.forEach(x=>{
if(x.FunctionCode == 'E_ModifyStudyOrderPrice'){
if (ActionMenuList && ActionMenuList.length > 0) {
ActionMenuList.forEach(x => {
if (x.FunctionCode == 'E_ModifyStudyOrderPrice') {
this.isHaveModify = true
}
})
}
},
mounted() {
console.log("saveObj", this.saveObj);
console.log("orderType", this.orderType);
this.initData()
},
methods: {
//订单性质切换
OrderNatureChange() {
if (this.OrderMsg.OrderNature == 1) {
this.countPrice();
}
},
initData() {
if (this.saveObj && this.saveObj.OrderId > 0) {
getClassOrderInfo({
......@@ -269,7 +273,9 @@
},
//修改订单
saveOrderInfo() {
this.OrderMsg.PreferPrice = (this.OrderMsg.GuestNum * this.OrderMsg.Unit_Price) - this.OrderMsg.LessPrice;
if (this.OrderMsg.OrderType == 1) {
this.OrderMsg.PreferPrice = (this.OrderMsg.GuestNum * this.OrderMsg.Unit_Price) - this.OrderMsg.LessPrice;
}
setClassOrder(this.OrderMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
......
This diff is collapsed.
......@@ -2,7 +2,6 @@
<div class="page-body myOrder">
<div class="row col" style="height: 40px">
<div class="row col" style="justify-content: space-between;align-items: center;margin-bottom: 10px">
<div>
<template v-if="data&& data.ClassInfo">
{{data.ClassInfo.ClassName}}
......
......@@ -84,7 +84,7 @@
</div>
</div>
<div class="page-content">
<orderlist :dataList="data.List" :authObj="authObj" @success="refreshClassOrder" ref="orderL" :isEdit="false">
<orderlist :dataList="data.List" :authObj="authObj" @success="refreshClassOrder" ref="orderL" >
</orderlist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
......@@ -156,6 +156,7 @@
isShowFinanceBtn: true, //显示财务单据按钮
isShowTransOrder: true, //显示转交订单按钮
isShowSaleRemark: true, //显示修改销售备注
isShowOperate:false,//不显示操作列
},
EmployeeList:[],//业务员
......
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