|
@@ -28,13 +28,10 @@
|
|
|
<script setup lang="ts">
|
|
|
import { ref, getCurrentInstance } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
- import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
|
import { useCommonStoreHook, useDictionaryStore } from "@/store";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
- import {addStock} from "@/api/inStock"
|
|
|
- import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
|
// 数据字典相关
|
|
|
-
|
|
|
+ const { dicts } = useDictionaryStore();
|
|
|
const test = () => {
|
|
|
isShowTable.value = true;
|
|
|
tableType.value = tableType.value == 1 ? 2 : 1;
|
|
@@ -64,26 +61,10 @@
|
|
|
Methords; //增删改查
|
|
|
const { selectionChange, multipleDelete } = Methords; //选中和批量删除事件
|
|
|
const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等工具
|
|
|
- // checkBtnPerm(ButtonPermKeys.PLAN.BTNS.order_add) :permission="permission"
|
|
|
- // const permission = reactive({
|
|
|
- // delBtn: checkPerm(buttonPermission.PLAN.BTNS.order_del),
|
|
|
- // addBtn: checkPerm(buttonPermission.PLAN.BTNS.order_add),
|
|
|
- // editBtn: checkPerm(buttonPermission.PLAN.BTNS.order_edit),
|
|
|
- // menu: true,
|
|
|
- // });
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
search.value.workOrderCode=props.workOrderCode;
|
|
|
dataNoPageList();
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
// 设置表格列或者其他自定义的option
|
|
|
option.value = Object.assign(option.value, {
|
|
|
selection: true,
|
|
@@ -98,6 +79,9 @@
|
|
|
{
|
|
|
label: "接收人",
|
|
|
prop: "recipient",
|
|
|
+ type: "select",
|
|
|
+ dicData: dicts.user_name_list,
|
|
|
+ props: {"label": "dictLabel","value":"dictValue"},
|
|
|
},
|
|
|
{
|
|
|
label: "入库数量",
|
|
@@ -116,6 +100,9 @@
|
|
|
{
|
|
|
label: "创建人",
|
|
|
prop: "creator",
|
|
|
+ type: "select",
|
|
|
+ dicData: dicts.user_name_list,
|
|
|
+ props: {"label": "dictLabel","value":"dictValue"},
|
|
|
},
|
|
|
{
|
|
|
label: "创建时间",
|