|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div class="mainContentBox">
|
|
|
+ {{ permission }}
|
|
|
<avue-crud
|
|
|
ref="crudRef"
|
|
|
v-model:search="search"
|
|
@@ -341,6 +342,7 @@ import { queryDictDataByType } from "@/api/system/dict";
|
|
|
import { getProExcel } from "@/api/excel";
|
|
|
import proWorkOrderExcel from "./components/proWorkOrderExcel.vue";
|
|
|
import { getWorkshopData } from "@/api/report";
|
|
|
+import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
const updateTitle = ref("生产随工单");
|
|
|
const workshopName = ref("");
|
|
@@ -373,12 +375,7 @@ const test = () => {
|
|
|
tableType.value = tableType.value == 1 ? 2 : 1;
|
|
|
};
|
|
|
const processRouteType = ref("");
|
|
|
-const permission = ref({
|
|
|
- delBtn: checkPerm(buttonPermission.PLAN.BTNS.work_order_del),
|
|
|
- addBtn: checkPerm(buttonPermission.PLAN.BTNS.work_order_add),
|
|
|
- editBtn: checkPerm(buttonPermission.PLAN.BTNS.work_order_edit),
|
|
|
- menu: true,
|
|
|
-});
|
|
|
+const permission = ref({});
|
|
|
const disabledDate = (time) => {
|
|
|
return time.getTime() < Date.now(); // 8.64e7 毫秒数代表一天
|
|
|
};
|
|
@@ -716,7 +713,7 @@ option.value = Object.assign(option.value, {
|
|
|
prop: "materialModel",
|
|
|
},
|
|
|
{
|
|
|
- label: "筛选单",
|
|
|
+ label: "是否H级",
|
|
|
prop: "hOrder",
|
|
|
type: "select", //类型为下拉选择框
|
|
|
width: 100,
|
|
@@ -1055,5 +1052,21 @@ onMounted(() => {
|
|
|
queryDictDataByType("aps_priority").then((data) => {
|
|
|
apsPriority.value = data.data;
|
|
|
});
|
|
|
+
|
|
|
+ console.log(
|
|
|
+ "aaaaa",
|
|
|
+ permission.value,
|
|
|
+ ButtonPermKeys.PLAN.BTNS.work_order_del,
|
|
|
+ checkPerm,
|
|
|
+ "ddddd",
|
|
|
+ checkPerm(ButtonPermKeys.PLAN.BTNS.work_order_del)
|
|
|
+ );
|
|
|
+
|
|
|
+ permission.value = {
|
|
|
+ delBtn: checkPerm(ButtonPermKeys.PLAN.BTNS.work_order_del),
|
|
|
+ addBtn: checkPerm(ButtonPermKeys.PLAN.BTNS.work_order_add),
|
|
|
+ editBtn: checkPerm(buttonPermission.PLAN.BTNS.work_order_edit),
|
|
|
+ menu: true,
|
|
|
+ };
|
|
|
});
|
|
|
</script>
|