From e61eb3be4fc933c67cbe3a1a9d08d41ac2d26a1b Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期三, 18 三月 2026 11:48:13 +0800
Subject: [PATCH] Merge branch 'dev_衡阳_鹏创电子' of http://114.132.189.42:9002/r/product-inventory-management into dev_衡阳_鹏创电子
---
src/views/productionManagement/productionOrder/New.vue | 40 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 39 insertions(+), 1 deletions(-)
diff --git a/src/views/productionManagement/productionOrder/New.vue b/src/views/productionManagement/productionOrder/New.vue
index c9c478b..3f8a2e5 100644
--- a/src/views/productionManagement/productionOrder/New.vue
+++ b/src/views/productionManagement/productionOrder/New.vue
@@ -48,6 +48,33 @@
:value="item.id" />
</el-select>
</el-form-item>
+ <el-form-item
+ label="鐢熶骇鎵瑰彿"
+ prop="lotNo"
+ >
+ <el-input v-model="formState.lotNo" placeholder="璇疯緭鍏ョ敓浜ф壒鍙�" />
+ </el-form-item>
+
+ <el-form-item
+ label="浼樺厛绾�"
+ prop="priority"
+ :rules="[
+ {
+ required: true,
+ message: '璇烽�夋嫨浼樺厛绾�',
+ trigger: 'change',
+ },
+ ]"
+ >
+ <el-select v-model="formState.priority" placeholder="璇烽�夋嫨浼樺厛绾�" style="width: 100%;" clearable>
+ <el-option
+ v-for="dict in priority_type"
+ :key="dict.value"
+ :label="dict.label"
+ :value="dict.value"
+ />
+ </el-select>
+ </el-form-item>
<el-form-item
label="闇�姹傛暟閲�"
@@ -55,6 +82,7 @@
>
<el-input-number v-model="formState.quantity" :step="1" :min="1" style="width: 100%" />
</el-form-item>
+
</el-form>
<!-- 浜у搧閫夋嫨寮圭獥 -->
@@ -101,7 +129,9 @@
productName: "",
productModelName: "",
unit: "",
+ priority: undefined,
quantity: 0,
+ lotNo: "",
});
const isShow = computed({
@@ -115,7 +145,12 @@
const showProductSelectDialog = ref(false);
-let { proxy } = getCurrentInstance()
+let { proxy } = getCurrentInstance();
+const { priority_type } = proxy.useDict("priority_type");
+
+if (priority_type.value && priority_type.value.length > 0) {
+ formState.value.priority = priority_type.value[2].value;
+}
const closeModal = () => {
// 閲嶇疆琛ㄥ崟鏁版嵁
@@ -125,7 +160,10 @@
routeId: undefined,
productName: "",
productModelName: "",
+ unit: "",
+ priority: priority_type.value && priority_type.value.length > 0 ? priority_type.value[2].value : undefined,
quantity: '',
+ lotNo: "",
};
isShow.value = false;
};
--
Gitblit v1.9.3