|
|
@@ -237,9 +237,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 有分组点数据时显示 -->
|
|
|
- <div v-else-if="JobForm.sopGroupList&&JobForm.sopGroupList[0].groupName!=='默认分组'" class="group-container">
|
|
|
- <div v-for="group in JobForm.sopGroupList" :key="group.id" class="group-card-user">
|
|
|
+ <!-- 有分组点数据时显示 &&JobForm.ticketGroupList[0].groupName!=='默认分组'-->
|
|
|
+ <div v-else-if="JobForm.ticketGroupList" class="group-container">
|
|
|
+ <div v-for="group in JobForm.ticketGroupList" :key="group.id" class="group-card-user">
|
|
|
<div class="group-title">{{ group.groupName }}</div>
|
|
|
<div class="user-list">
|
|
|
<img src="@/assets/images/添加.png" class="user-card" @click="goSetting('SetJobUser', JobForm,group.id)"/>
|
|
|
@@ -280,20 +280,27 @@
|
|
|
|
|
|
|
|
|
<div class="bottom-btn">
|
|
|
- <el-button @click="submit">
|
|
|
+ <el-button @click="submit('1')">
|
|
|
<el-icon>
|
|
|
- <Check/>
|
|
|
+ <Check />
|
|
|
</el-icon>
|
|
|
- 确 定
|
|
|
+ 创建并启动
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="submit('0')">
|
|
|
+ <el-icon>
|
|
|
+ <Check />
|
|
|
+ </el-icon>
|
|
|
+ 创 建
|
|
|
</el-button>
|
|
|
|
|
|
<el-button @click="cancel">
|
|
|
<el-icon>
|
|
|
- <Close/>
|
|
|
+ <Close />
|
|
|
</el-icon>
|
|
|
取 消
|
|
|
</el-button>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
@@ -314,7 +321,7 @@ import {handleTree} from '@/utils/tree'
|
|
|
import {ref} from 'vue'
|
|
|
import {Handle, useVueFlow, VueFlow} from '@vue-flow/core'
|
|
|
import {deleteJobTicketStepList, insertJobTicketStep} from "@/api/job/jobStep";
|
|
|
-import {getJobTicketGroupPage} from "@/api/job/jobPointGroup";
|
|
|
+import {getJobTicketGroupPage, selectJobTicketGroupById} from "@/api/job/jobPointGroup";
|
|
|
|
|
|
const JobForm = reactive({
|
|
|
id: null,
|
|
|
@@ -329,7 +336,8 @@ const JobForm = reactive({
|
|
|
ticketStatus: null,
|
|
|
ticketStartTime: null,
|
|
|
ticketEndTime: null,
|
|
|
- remark: null
|
|
|
+ remark: null,
|
|
|
+ ticketGroupList:null,
|
|
|
})
|
|
|
const Visible=ref<boolean>(false)
|
|
|
const JobAutoName = ref(false)
|
|
|
@@ -392,6 +400,15 @@ const goSetting = (type, JobForm,groupId) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 获取Job点位分组详细信息
|
|
|
+// const JobPointGroupsDetails=async()=>{
|
|
|
+// try {
|
|
|
+// const groupsdetails=await jobPointGroup.selectJobTicketGroupById({
|
|
|
+// id:1
|
|
|
+// })
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
// 获取所有点位和分组的数据
|
|
|
const fetchAllGroupsAndPoints = async () => {
|
|
|
try {
|
|
|
@@ -665,10 +682,16 @@ const submit = async () => {
|
|
|
pageSize: -1,
|
|
|
modeId: JobForm.modeId
|
|
|
})
|
|
|
- const ticketStepData = dataNew.list.map((item) => ({
|
|
|
- ...item,
|
|
|
+ // const ticketStepData = dataNew.list.map((item) => ({
|
|
|
+ // ...item,
|
|
|
+ // ticketId: data,
|
|
|
+ // }))
|
|
|
+
|
|
|
+ const ticketStepData = dataNew.list.map(({ id, ...rest }) => ({
|
|
|
+ ...rest,
|
|
|
ticketId: data,
|
|
|
}))
|
|
|
+
|
|
|
// 导入步骤数据
|
|
|
await insertJobTicketStep(ticketStepData)
|
|
|
successMessage = t('common.createSuccess')
|