From 663dbe4ddca1fa409e6acbc1f77d924c161b0c39 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 09 六月 2025 17:04:50 +0800
Subject: [PATCH] 提交一把订单
---
company/src/components/enterprise/confirmJobType.vue | 26 +++++++++++++++++++++-----
1 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/company/src/components/enterprise/confirmJobType.vue b/company/src/components/enterprise/confirmJobType.vue
index 638a430..5425aec 100644
--- a/company/src/components/enterprise/confirmJobType.vue
+++ b/company/src/components/enterprise/confirmJobType.vue
@@ -7,7 +7,7 @@
@confirm="confirm"
>
<el-form class="demo-form-inline">
- <el-form-item label="娲鹃仯鍗曚綅" required>
+ <el-form-item label="娲鹃仯鍗曚綅" required v-if="type !== 2">
<el-select v-model="dw" @change="selectChange" placeholder="璇烽�夋嫨">
<el-option
v-for="item in dispatching"
@@ -45,6 +45,7 @@
form: {
solutionId: ''
},
+ type: null,
data: [],
dw: [],
gz: [],
@@ -59,9 +60,17 @@
this.gz = ''
this.form.solutionId = arr.solutionId
this.data = arr.seleData
+ this.type = arr.type
this.visible = true
this.options=[]
- this.getFindListByDTO()
+ if (arr.type === 2) {
+ worktype({ id: arr.solutionId, queryType: 0 })
+ .then(res => {
+ this.options = res
+ })
+ } else {
+ this.getFindListByDTO()
+ }
},
getFindListByDTO () {
findListByDTO({
@@ -85,9 +94,16 @@
})
},
confirm() {
- if(!this.dw || !this.gz){
- this.$message.error("璇峰厛閫夋嫨娲鹃仯鍗曚綅鍜屽伐绉嶏紒")
- return;
+ if (this.type === 2) {
+ if(!this.gz){
+ this.$message.error("璇峰厛閫夋嫨宸ョ锛�")
+ return;
+ }
+ } else {
+ if(!this.dw || !this.gz){
+ this.$message.error("璇峰厛閫夋嫨娲鹃仯鍗曚綅鍜屽伐绉嶏紒")
+ return;
+ }
}
let obj = {
workTypeName: '',
--
Gitblit v1.9.3