| | |
| | | <img class="selectedImg" src="/img/workbench/icon_selected.png" /> |
| | | <div class="header"> |
| | | <div>工单号:{{ item.taskNo }}</div> |
| | | <!-- <div class="tag" :style="{ backgroundColor: getTagColor(item.planFinishDay) }"> |
| | | {{ getTagText(item.planFinishDay) }} |
| | | </div> --> |
| | | <el-alert |
| | | center |
| | | style="width: 80px;height:30px;line-height: 30px;" |
| | | style="width: 80px;height:28px;line-height: 100%;font-size:10px" |
| | | :title="getTagText(item.planFinishDay)" |
| | | :type="getTagColor(item.planFinishDay)" |
| | | effect="dark" |
| | |
| | | } |
| | | .status-change-div { |
| | | width: 20%; |
| | | max-width: 100px; |
| | | max-width: 160px; |
| | | } |
| | | .status-change-div >>> .el-select { |
| | | width: 100%; |
| | |
| | | .then((res) => { |
| | | if (!res.data.data) { |
| | | changeSubmitState(taskId, true).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | getDraftProductOut(taskId).then((response) => { |
| | | console.log(response) |
| | | const list = response.data.data || [] |
| | | if (list.length > 0) { |
| | | this.batchChangeSubmit(list, 0, currItem) |
| | | } else { |
| | | changeSubmitState(taskId, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | currItem.statusAction = null |
| | | this.$message.warning('没有可提交的数据') |
| | |
| | | .catch((error) => { |
| | | console.log(error) |
| | | changeSubmitState(taskId, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | }) |
| | | } |
| | |
| | | this.batchChangeSubmit(list, i, currItem) |
| | | } else { |
| | | changeSubmitState(this.taskID, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | // 批量提交完成,刷新报工页面数据 |
| | | this.$emit('refreshReport') |
| | |
| | | console.log(error) |
| | | loading.close() |
| | | changeSubmitState(this.taskID, false).then((res) => { |
| | | console.log(res) |
| | | }) |
| | | const errorMsg = '报工单号' + list[i].productNo + ':' |
| | | this.$message.error(errorMsg + '处理失败') |
| | |
| | | break |
| | | } |
| | | } |
| | | console.log(this.operationTasks) |
| | | // console.log(this.operationTasks) |
| | | // 若当前工单在工单列表未被找到且当前工单状态为已完成或已取消时,则将当前工单重置为空并抛出事件,否则不管 |
| | | if (isResetCurrOpertionTaskFlag) { |
| | | getOperationTaskById(taskId).then((res) => { |