|
@@ -18,6 +18,19 @@
|
|
|
@current-change="dataList"
|
|
|
@selection-change="selectionChange"
|
|
|
>
|
|
|
+ <template #isImportant="scope">
|
|
|
+ <el-switch
|
|
|
+ :active-value="1"
|
|
|
+ :inactive-value="0"
|
|
|
+ inline-prompt
|
|
|
+ active-text="是"
|
|
|
+ inactive-text="否"
|
|
|
+ v-model="scope.row.isImportant"
|
|
|
+ @click="changeItem(scope.row)"
|
|
|
+ class="ml-2"
|
|
|
+ style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template #menu-left="{ size }">
|
|
|
<el-button
|
|
|
:disabled="toDeleteIds.length < 1"
|
|
@@ -95,14 +108,6 @@
|
|
|
>下发</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- icon="el-icon-setting"
|
|
|
- text
|
|
|
- @click="showSeqPage(row)"
|
|
|
- type="primary"
|
|
|
- :size="size"
|
|
|
- >产品管号</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
icon="el-icon-delete"
|
|
|
text
|
|
|
v-if="row.workOrderState === '3'"
|
|
@@ -341,6 +346,7 @@ import { getProExcel } from "@/api/excel";
|
|
|
import { exportDataInfo } from "@/api/order";
|
|
|
import { getJobInfo, getWorkshopData } from "@/api/report";
|
|
|
import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
|
+import {updateWorkOrderInfo} from "@/api/plan"
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
const updateTitle = ref("生产随工单");
|
|
|
const workshopName = ref("");
|
|
@@ -940,6 +946,15 @@ option.value = Object.assign(option.value, {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
+ label: "是否重要订单",
|
|
|
+ slot: true,
|
|
|
+ headerAlign: "center",
|
|
|
+ prop: "isImportant",
|
|
|
+ width: 100,
|
|
|
+ addDisplay: false,
|
|
|
+ editDisplay: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "工单编号",
|
|
|
prop: "workOrderCode",
|
|
|
rules: [
|
|
@@ -1243,4 +1258,11 @@ const countPlanNum = () => {
|
|
|
form.value.planNum = form.value.seqMax - form.value.seqMin + 1;
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+const changeItem = (row) => {
|
|
|
+ updateWorkOrderInfo(row).then(() => {
|
|
|
+ ElMessage.success("操作成功");
|
|
|
+ dataList();
|
|
|
+ });
|
|
|
+};
|
|
|
</script>
|