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

也没修过

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