diff --git a/.env.prod b/.env.prod index 0b6ddda..4b5b164 100644 --- a/.env.prod +++ b/.env.prod @@ -2,15 +2,15 @@ NODE_ENV = 'production' # 页面标题 -VUE_APP_TITLE = 芋道管理系统 +VUE_APP_TITLE = "车联通"后台管理系统 # 芋道管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'https://www.nuoyunr.com' # 根据服务器或域名修改 -PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' +PUBLIC_PATH = 'http://159.75.168.143:82' # 附件请求地址前缀 -VUE_APP_FILE_API = 'http://122.51.230.86:9000/' +VUE_APP_FILE_API = 'https://www.nuoyunr.com/minio/' # 二级部署路径 VUE_APP_APP_NAME ='yudao-admin' diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index 237abf5..ac2c3c7 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -44,24 +44,32 @@ 查看 - + 接单 通知施工 - + 开始施工 - + 过程记录 - + 施工完成 - - 终检 - + + + 重新指派 @@ -142,6 +150,7 @@ import {createUniqueCodeByHead} from "@/utils/createUniqueCode"; import {updateTicketWares} from "@/api/repair/tickets/TicketWares"; import {getIfLeader} from "@/api/repair/repairworker"; import UpdateRecord from "@/views/repair/tickets/form/UpdateRecord.vue"; +import {getUserProfile} from "@/api/system/user"; export default { name: "TicketManagerItem", @@ -180,13 +189,19 @@ export default { formData: {}, remark: null, leader: false, + nowUser: null } }, mounted() { this.listTickets() this.isLeader() + this.getNowUser() }, methods: { + async getNowUser(){ + const res = await getUserProfile() + this.nowUser = res.data + }, async isLeader(){ const res = await getIfLeader() this.leader = res.data diff --git a/src/views/repair/tickets/form/UpdateRecord.vue b/src/views/repair/tickets/form/UpdateRecord.vue index 4b1d114..8221ced 100644 --- a/src/views/repair/tickets/form/UpdateRecord.vue +++ b/src/views/repair/tickets/form/UpdateRecord.vue @@ -53,11 +53,11 @@ 部分完成 - + 完成并移交下一班组 + @click="doFinish(false)"> {{ isEndCheck ? "完成并移交总检" : "完成工单" }} @@ -190,20 +190,20 @@ export default { } catch { } }, - async doFinish() { + async doFinish(flag) { try { await this.$refs.formRef.validate() this.formLoading = true // 不论是什么按钮,这个工单子项是完了的 this.formData.item.itemStatus = "03" // 整体完成并指派下一个人 - if (this.isNext) { + if (this.isNext || flag) { this.formData['finishType'] = "01" await this.$refs.updateRepair.open(this.clickRow) return } // 整体完成并移交总检 - if (this.isEndCheck) { + if (this.isEndCheck || !flag) { this.formData['finishType'] = "02" this.formData.ticketsWorkStatus = "05" await this.doUpdate();