Commit be1f37af authored by 黄奎's avatar 黄奎

页面修改

parent 3f5481ce
...@@ -152,10 +152,11 @@ ...@@ -152,10 +152,11 @@
</div> </div>
</td> </td>
<td style="border:none"> <td style="border:none">
<template> <template v-if="AuthorityObj.isShowEdit">
<template v-if="!isEditOrder"> <template v-if="!isEditOrder">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="editOrder(item)" v-if="AuthorityObj.isShowEdit" /> @click="editOrder(item)" />
</template>
</template> </template>
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
<q-list> <q-list>
...@@ -239,7 +240,6 @@ ...@@ -239,7 +240,6 @@
</q-item> </q-item>
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
</template>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -491,7 +491,8 @@ ...@@ -491,7 +491,8 @@
<tr> <tr>
<td :rowspan="3" style="text-align: left"> <td :rowspan="3" style="text-align: left">
<div style="font-size: 18px;color: #2961FE;margin-bottom: 20px;font-weight: bold" <div style="font-size: 18px;color: #2961FE;margin-bottom: 20px;font-weight: bold"
@click="goOrderdetails(item)">{{item.OrderId}}</div> @click="goOrderdetails(item)">
{{item.OrderId}}</div>
<div>{{item.EnterName}}</div> <div>{{item.EnterName}}</div>
<div style="margin-top: 10px">{{item.CreateTime}}</div> <div style="margin-top: 10px">{{item.CreateTime}}</div>
<div style="margin-top: 30px;margin-bottom: 10px">班级</div> <div style="margin-top: 30px;margin-bottom: 10px">班级</div>
...@@ -845,7 +846,7 @@ ...@@ -845,7 +846,7 @@
chooseStudent: "", //收款单据,单选学生 chooseStudent: "", //收款单据,单选学生
isShowReward: false, // 是否可以修改额外金额 isShowReward: false, // 是否可以修改额外金额
isEditOrder: false, //是否有【总经理】修改订单但权限 isEditOrder: false, //是否有【总经理】修改订单但权限
newModityOrderType:0, newModityOrderType: 0,
} }
}, },
created() { created() {
...@@ -869,9 +870,19 @@ ...@@ -869,9 +870,19 @@
watch: { watch: {
modityOrderType: { modityOrderType: {
handler(newValue) { handler(newValue) {
if(this.isEditOrder){ var localStorageData = window.localStorage["loginUserInfo"];
this.newModityOrderType=3; let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
}else{ var isNewEditOrder = false;
if (ActionMenuList && ActionMenuList.length > 0) {
ActionMenuList.forEach(x => {
if (x.FunctionCode == 'Edit_Order') {
isNewEditOrder = true
}
})
}
if (isNewEditOrder) {
this.newModityOrderType = 3;
} else {
this.newModityOrderType = newValue; this.newModityOrderType = newValue;
} }
}, },
......
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