|
@@ -26,15 +26,14 @@
|
|
|
>删除</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- :disabled="toDeleteIds.length < 1"
|
|
|
- type="refresh"
|
|
|
- icon="el-icon-refresh"
|
|
|
- :size="size"
|
|
|
- @click="apsSync"
|
|
|
- >APS同步</el-button
|
|
|
+ :disabled="toDeleteIds.length < 1"
|
|
|
+ type="refresh"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ :size="size"
|
|
|
+ @click="apsSync"
|
|
|
+ >APS同步</el-button
|
|
|
>
|
|
|
- </template
|
|
|
- >
|
|
|
+ </template>
|
|
|
<template #menu="{ row, index, type }">
|
|
|
<el-button @click="binding(row)" text type="primary"
|
|
|
>BOM
|
|
@@ -63,11 +62,13 @@
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
<el-dropdown split-button style="margin-left: 10px"
|
|
|
- >BOM导入
|
|
|
+ >BOM导入
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item
|
|
|
- @click="downloadTemplate('/api/v1/base/materialBom/bom/template')"
|
|
|
+ @click="
|
|
|
+ downloadTemplate('/api/v1/base/materialBom/bom/template')
|
|
|
+ "
|
|
|
>
|
|
|
<i-ep-download />下载模板
|
|
|
</el-dropdown-item>
|
|
@@ -105,30 +106,27 @@
|
|
|
<script setup lang="ts">
|
|
|
import { ref, getCurrentInstance } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
-import {syncAps} from "@/api/aps";
|
|
|
-import {
|
|
|
- useCommonStoreHook,
|
|
|
- useDictionaryStore,
|
|
|
-} from "@/store";
|
|
|
-import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
+import { syncAps } from "@/api/aps";
|
|
|
+import { useCommonStoreHook, useDictionaryStore } from "@/store";
|
|
|
+import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
const { dicts } = useDictionaryStore();
|
|
|
-const apsSync = () =>{
|
|
|
+const apsSync = () => {
|
|
|
ElMessageBox.confirm("是否同步所选中数据?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}).then(async () => {
|
|
|
- let param = {type: 2,codes: toDeleteIds.value}
|
|
|
- syncAps(param).then((data)=>{
|
|
|
+ let param = { type: 2, codes: toDeleteIds.value };
|
|
|
+ syncAps(param).then((data) => {
|
|
|
if (data.code === "200") {
|
|
|
ElMessage.success(data.msg);
|
|
|
} else {
|
|
|
ElMessage.error(data.msg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
});
|
|
|
-}
|
|
|
+};
|
|
|
const test = () => {
|
|
|
isShowTable.value = true;
|
|
|
tableType.value = tableType.value == 1 ? 2 : 1;
|
|
@@ -199,10 +197,10 @@ option.value = Object.assign(option.value, {
|
|
|
width: 130,
|
|
|
overHidden: true,
|
|
|
search: true,
|
|
|
+ editDisabled: true,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- editDisabled: false,
|
|
|
message: "请填写物料编码",
|
|
|
trigger: "blur",
|
|
|
},
|