|
@@ -63,10 +63,9 @@
|
|
|
<el-button
|
|
|
icon="el-icon-setting"
|
|
|
text
|
|
|
- v-if="row.workOrderState !== '0' && row.workOrderState !== '1'"
|
|
|
@click="showSeqPage(row.workOrderCode)"
|
|
|
type="primary"
|
|
|
- :size="size">流水</el-button>
|
|
|
+ :size="size">流转卡号</el-button>
|
|
|
<el-button
|
|
|
icon="el-icon-delete"
|
|
|
text
|
|
@@ -145,6 +144,12 @@
|
|
|
|
|
|
<!-- <el-input width="250px" v-model="formData.apsTime" type="date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>-->
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="优先级" prop="priority" v-if="apsType === 1">
|
|
|
+ <el-select v-model="formData.priority" placeholder="排程类型"
|
|
|
+ style="width:200px;">
|
|
|
+ <el-option v-for="item in apsPriority" :label="item.dictLabel" :value="item.dictValue" :key="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="排程类型" prop="apsModel">
|
|
|
<el-select v-model="formData.apsModel" placeholder="排程类型"
|
|
|
style="width:200px;">
|
|
@@ -205,14 +210,16 @@ const dialog3 = reactive({
|
|
|
visible: false,
|
|
|
});
|
|
|
const dialog4 = reactive({
|
|
|
- title: "工单流水",
|
|
|
+ title: "流转卡号",
|
|
|
visible: false,
|
|
|
});
|
|
|
const dialog5 = reactive({
|
|
|
title: "排程确认",
|
|
|
visible: false,
|
|
|
});
|
|
|
+const apsType = ref(0)
|
|
|
const aps =(id)=>{
|
|
|
+ apsType.value = 0
|
|
|
formData.workOrderIds = [id]
|
|
|
dialog5.visible = true
|
|
|
}
|
|
@@ -252,18 +259,22 @@ const handleEdit = (row, index) =>{
|
|
|
crudRef.value && crudRef.value.rowEdit(row, index);
|
|
|
}
|
|
|
const aps1 =()=>{
|
|
|
+ apsType.value = 1
|
|
|
formData.workOrderIds = toDeleteIds
|
|
|
dialog5.visible = true
|
|
|
}
|
|
|
const dataFormRef = ref(ElForm);
|
|
|
const schedulingTypes = ref([])
|
|
|
+const apsPriority = ref([])
|
|
|
const formData = reactive({
|
|
|
apsTime: null,
|
|
|
+ priority: "1",
|
|
|
apsModel: "0",
|
|
|
workOrderId: 0
|
|
|
});
|
|
|
|
|
|
const rules = reactive({
|
|
|
+ priority: [{ required: true, message: "请选择优先级", trigger: "blur" }],
|
|
|
apsTime: [{ required: true, message: "排程时间不能为空", trigger: "blur" }],
|
|
|
apsModel: [{ required: true, message: "排程类型不能为空", trigger: "blur" }],
|
|
|
});
|
|
@@ -547,5 +558,8 @@ onMounted(() => {
|
|
|
queryDictDataByType("order_scheduling_type").then((data)=>{
|
|
|
schedulingTypes.value = data.data
|
|
|
})
|
|
|
+ queryDictDataByType("aps_priority").then((data)=>{
|
|
|
+ apsPriority.value = data.data
|
|
|
+ })
|
|
|
});
|
|
|
</script>
|