diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue
index 418c899..058dd8f 100644
--- a/src/views/system/goodsOrder/index.vue
+++ b/src/views/system/goodsOrder/index.vue
@@ -6,8 +6,23 @@
size="small"
:inline="true"
v-show="showSearch"
- label-width="68px"
+ label-width="90px"
>
+
+
+
+
+
+
+
+
修改物流单号
录入物流单号
录入物流单号
不可录入物流单号
@@ -168,7 +189,7 @@
type="text"
icon="el-icon-edit"
@click="seeOrder(scope.row)"
- v-hasPermi="['system:nurseType:edit']"
+ v-hasPermi="['system:goodsOrder:goodsOrderByOrder']"
>查看商品信息
@@ -178,7 +199,7 @@
type="text"
icon="el-icon-edit"
@click="refund(scope.row.id)"
- v-hasPermi="['system:nurseType:edit']"
+ v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
>确认退款
确认退款
@@ -562,6 +583,7 @@ import {
goodsOrderrefund,
weChatRefundOrderApply,
} from "@/api/system/goodsOrder";
+import { getListByUser } from "@/api/system/userlist.js";
export default {
name: "GoodsOrder",
@@ -575,6 +597,7 @@ export default {
innerrefund: false,
orderList: [],
refundlist: [],
+ nurseStationlist: [],
orderStatuslist: [
{
value: "WAIT_PAY",
@@ -650,6 +673,11 @@ export default {
queryexpressNo: {
id: "",
expressNo: null,
+ },
+ //权限查询
+ getListByUserquery: {
+ pageNum: 1,
+ pageSize: 10,
},
refundinfo: {
id: "",
@@ -662,6 +690,7 @@ export default {
},
created() {
this.getList();
+ this.info();
},
methods: {
// 退款类型
@@ -760,7 +789,7 @@ export default {
this.queryexpressNo.expressNo = "";
this.getList();
this.innerlogistics = false;
-
+
});
},
// 取消按钮
@@ -792,7 +821,7 @@ export default {
}
this.getList();
this.innerrefund = false;
-
+
});
},
// refund(id){
@@ -872,8 +901,20 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
- this.reset();
- this.resetForm("queryForm");
+ if (this.nurseStationlist[0].isAdmin == '1') {
+ this.resetForm("queryForm");
+ this.queryParams = {
+ pageNum: 1,
+ pageSize: 10
+ }
+ } else {
+ this.queryParams.pageNum = 1;
+ this.queryParams.pageSize = 10
+ this.queryParams.orderNo = null
+ this.queryParams.orderStatus = null
+
+
+ }
this.handleQuery();
},
@@ -942,6 +983,40 @@ export default {
},
`goodsOrder_${new Date().getTime()}.xlsx`
);
+ },
+ //权限列表
+ info() {
+ // goodsCategory().then((res) => {
+ // console.log(this.form);
+ // this.goodsCategorylist = res.rows;
+ // });
+ getListByUser(this.getListByUserquery).then((res) => {
+ if (res.rows[0].isAdmin == "1") {
+ this.nurseStationlist = res.rows;
+ this.total2 = res.total;
+ } else {
+ this.total2 = res.total;
+ this.nurseStationlist = res.rows;
+ this.queryParams.nurseStationId = res.rows[0].id;
+ this.handleQuery();
+ }
+ });
+ },
+ //滑动下拉框
+ loadMore() {
+ var a = Math.ceil(this.total2 / 10);
+ if (this.nurseStationlist.length + 1 >= this.total2) {
+ } else {
+ if (this.getListByUserquery.pageNum >= a) {
+ } else {
+ this.getListByUserquery.pageNum++;
+ getListByUser(this.getListByUserquery).then((res) => {
+ res.rows.forEach((e) => {
+ this.nurseStationlist.push(e);
+ });
+ });
+ }
+ }
},
// orderStatus(code) {
// var obj = {
diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue
index f8f43e0..721c1d3 100644
--- a/src/views/system/order/index.vue
+++ b/src/views/system/order/index.vue
@@ -135,7 +135,7 @@
type="text"
icon="el-icon-zoom-in"
@click="seeLook(scope.row)"
- v-hasPermi="['system:nurseType:edit']"
+ v-hasPermi="['system:appointmentOrder:query']"
>查看
派单
@@ -162,7 +162,7 @@
icon="el-icon-error"
v-if="scope.row.orderStatus == 'WAIT_REFUND'"
@click="cencel(scope.row)"
- v-hasPermi="['system:nurseType:edit']"
+ v-hasPermi="['system:appointmentOrder:confirmCancel']"
>取消预约
取消预约
\ No newline at end of file
+