| | |
| | | </span> --> |
| | | </div> |
| | | <div class="gongx"> |
| | | <el-steps v-if="taskData.AllProcedures" :active="taskData.CurrentProcedureIndex?taskData.CurrentProcedureIndex:0" finish-status="success" class="steps"> |
| | | <el-steps v-if="taskData.AllProcedures" :active="taskData.CurrentProcedureIndex ?? 0" finish-status="success" class="steps"> |
| | | <el-step icon="" :title="item" v-for="(item,index) in taskData.AllProcedures" :key="index"></el-step> |
| | | </el-steps> |
| | | </div> |
| | |
| | | - |
| | | {{ formatDate(taskData.Order.endTime) }}</el-descriptions-item |
| | | > |
| | | <el-descriptions-item label="货物描述">{{ |
| | | taskData.Order.orderAttr || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="通道"> |
| | | {{ channelNameConfig[taskData.Channel] || "--" }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="客户编码">{{ |
| | | taskData.Order.customer || "--" |
| | | }}</el-descriptions-item> |
| | |
| | | import AddIssue from "../components/AddIssue.vue"; |
| | | import ProcessModel from "../components/ProcessModel.vue"; |
| | | import TaskControlModal from "@/components/TaskControlModal.vue"; |
| | | import {channelNameConfig} from "@/common/constants"; |
| | | export default { |
| | | components: { |
| | | TaskControlModal, |
| | |
| | | listData:[], |
| | | resResult:null, |
| | | resprocInfoTimer:null, |
| | | channelNameConfig: channelNameConfig |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | this.getDate3(); |
| | | this.getDate2(); |
| | | }, 5000); |
| | | this.getTaskInfo(); |
| | | |
| | | let channelType = this.getChannelTypeFromUrl() |
| | | channelType = channelType ?? 1 |
| | | this.activeName = channelType |
| | | this.getTaskInfo(channelType); |
| | | this.getTaskCountStatistics() |
| | | }, |
| | | beforeDestroy() { |
| | |
| | | // } |
| | | }, |
| | | methods: { |
| | | |
| | | getModelList(){ |
| | | this.resResult=null |
| | | for (let i in this.TasksCopy){ |
| | |
| | | this.isUpdateIcon=true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.resResult=res; |
| | | this.resResult=res; |
| | | }) |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | this.$message.error('当前工序无编号,无法查看工序!') |
| | | |
| | | }, |
| | | getProcessModelList(){ |
| | | this.getModelList() |
| | |
| | | }, |
| | | cutClick(val) { |
| | | this.activeName = val; |
| | | this.updateChannelTypeToUrl(val) |
| | | if(this.activeName==2){ |
| | | this.Tasks=this.TasksCopy.slice(0,2) |
| | | if(this.Tasks.length<2){ |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | |
| | | getDateObj(date, fmt) { |
| | | if (/(y+)/.test(fmt)) { |
| | | fmt = fmt.replace( |
| | |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * 向URL中设置当前通道展示类型 |
| | | * @param {number} type 通道展示类型 |
| | | */ |
| | | updateChannelTypeToUrl(type){ |
| | | const activeName = this.getChannelTypeFromUrl(); |
| | | if (activeName === type){ |
| | | return |
| | | } |
| | | let path = this.$router.history.current.path |
| | | this.$router.push({path, query: {activeName: `${type ?? 1}`}}) |
| | | }, |
| | | /** |
| | | * 从URL获取当前通道展示类型 |
| | | * @return {number} |
| | | */ |
| | | getChannelTypeFromUrl(){ |
| | | let activeName = new URLSearchParams(location.search).get('activeName') |
| | | activeName = activeName ? +activeName : undefined |
| | | return activeName |
| | | }, |
| | | getProgressInfo() { |
| | | this.resprocInfoTimer=null |
| | | for (let i in this.TasksCopy){ |
| | |
| | | } |
| | | } |
| | | } |
| | | .el-step__head.is-process{ |
| | | color: #00cc66 !important; |
| | | border-color:#00cc66; |
| | | } |
| | | .el-step__title.is-process{ |
| | | color: #00cc66 !important; |
| | | } |
| | | .el-step__head.is-wait{ |
| | | color:#fff; |
| | | border-color:#fff; |
| | |
| | | .el-step__title.is-wait{ |
| | | color:#fff; |
| | | } |
| | | |
| | | // 使步骤条节点状态成功时,前面的线同步更改颜色 |
| | | .steps{ |
| | | /* 进行中状态:圈线 */ |
| | | & .el-step__head.is-process { |
| | | color: #00cc66; |
| | | border-color: #00cc66; |
| | | } |
| | | /* 进行中状态:圈内 */ |
| | | & .el-step__head.is-process > .el-step__icon { |
| | | background: #00cc66; |
| | | color: #00cc66; |
| | | } |
| | | /* 进行中状态:title(文字) */ |
| | | & .el-step__title.is-process { |
| | | color: #00cc66; |
| | | } |
| | | |
| | | /* 完成状态:圈线 */ |
| | | & .el-step__head.is-success { |
| | | color: #00cc66; |
| | | border-color: #00cc66; |
| | | } |
| | | /* 完成状态:title(文字) */ |
| | | & .el-step__title.is-success { |
| | | color: #00cc66; |
| | | } |
| | | /* 完成状态:line |
| | | * 描述:第一步完成,第二步进行时,之间的进度条有颜色 |
| | | */ |
| | | & .el-step__head.is-success > .el-step__line > .el-step__line-inner { |
| | | width: 100% !important; |
| | | border-width: 1px !important; |
| | | } |
| | | } |
| | | } |
| | | .set-title { |
| | | cursor: pointer; |