From 41e0df8413624e6034c967f3afae30da59370879 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 11 十二月 2023 16:20:15 +0800 Subject: [PATCH] modified: src/components/verifition/Verify/VerifyPoints.vue modified: src/const/crud/admin/sys-public-param.js modified: src/page/full-screen/fullScreenPlus.vue modified: src/page/index/logo.vue modified: src/page/index/sidebar/sidebarItem.vue modified: src/page/login/index.vue modified: src/page/login/thirdpartylogin.vue modified: src/util/elAttr.js modified: src/views/accounting/unitworkfactor/unitworkfactor-form.vue modified: src/views/accounting/unitworkfactor/updateQuota-form.vue modified: src/views/basic/discmaintenance/discmaintenance-form.vue modified: src/views/basic/log/index.vue modified: src/views/basic/part/part-form.vue modified: src/views/basic/part/print-label-form.vue modified: src/views/basic/poc/index.vue modified: src/views/basic/tabletest/index.vue modified: src/views/basic/template/index.vue modified: src/views/basic/template/template-form.vue modified: src/views/basic/workstation/workstation-form.vue modified: src/views/common/custom-table.vue modified: src/views/common/documentDetail.vue modified: src/views/common/operationParamTemplate.vue modified: src/views/common/rawMaterial-part.vue modified: src/views/common/search-select.vue modified: src/views/common/ztt-table.vue modified: src/views/huawei/code19bind/list.vue modified: src/views/huawei/code19gen/form.vue modified: src/views/huawei/grossweightcode/list.vue modified: src/views/huawei/grossweightcode/task-secret-form.vue modified: src/views/oa/JiegouModal.vue modified: src/views/oa/PeizhiModal.vue modified: src/views/oa/technology-document-new.vue modified: src/views/oa/technology-document.vue modified: src/views/plan/customer/index.vue modified: src/views/plan/customerorder/confirm-pull-customerorder.vue modified: src/views/plan/customerorder/customerorder-config-history.vue modified: src/views/plan/customerorder/customerorder-form.vue modified: src/views/plan/customerorder/customerorder-return.vue modified: src/views/plan/customerorder/customerorder-ztt-table.vue modified: src/views/plan/customerorder/index.vue modified: src/views/plan/customerorder/other-customer-order-line.vue modified: src/views/plan/customerorder/sample-customerorder-form.vue modified: src/views/plan/customerorder/schedule-table.vue modified: src/views/plan/manufacturingorder/auto-operationtask.vue modified: src/views/plan/manufacturingorder/customerorder.vue modified: src/views/plan/manufacturingorder/customize-param-template.vue modified: src/views/plan/manufacturingorder/order-operation-form.vue modified: src/views/plan/manufacturingorder/productorder-form.vue modified: src/views/plan/manufacturingorderapply/index.vue modified: src/views/plan/masterproductionschedule/auto-manufacturingorder.vue modified: src/views/plan/operationtask/gantt.vue modified: src/views/plan/operationtask/operationtask-form.vue modified: src/views/plan/operationtask/task-material.vue modified: src/views/plan/productionschedul/index.vue modified: src/views/plan/productionschedul/template-form.vue modified: src/views/plan/schedule/gantt.vue modified: src/views/plan/schedulelookover/ganttview.vue modified: src/views/plan/segmentmerge/index.vue modified: src/views/plan/segmentmerge/operate-dialog.vue modified: src/views/plan/segmentmerge/operation-technology-form.vue modified: src/views/product/dutyrecord/index.vue modified: src/views/product/producttraceability/index.vue modified: src/views/product/producttraceability/traceability-diagram.vue modified: src/views/product/workbench/batchproductout-form-new.vue modified: src/views/product/workbench/batchproductout-form.vue modified: src/views/product/workbench/feed-form.vue modified: src/views/product/workbench/feed-pane.vue modified: src/views/product/workbench/feed-tab.vue modified: src/views/product/workbench/handymantype.vue modified: src/views/product/workbench/index.vue modified: src/views/product/workbench/mould-pane.vue modified: src/views/product/workbench/operation-task-pane.vue modified: src/views/product/workbench/product-record-form.vue modified: src/views/product/workbench/productout-form-by-batch.vue modified: src/views/product/workbench/productout-form.vue modified: src/views/product/workbench/productrecord-tab.vue modified: src/views/product/workbench/producttracking-tab.vue modified: src/views/product/workbench/shift-productout-form.vue modified: src/views/product/workbench/splitTaskForm.vue modified: src/views/product/workbench/taskinfo-pane.vue modified: src/views/quality/Packaging_ledger/pack-from.vue modified: src/views/quality/apply/index.vue modified: src/views/quality/exception/exception.vue modified: src/views/quality/exception/index.vue modified: src/views/quality/finishedProductInspection/finishedProduct-form.vue modified: src/views/quality/finishedProductInspection/finishedProduct-print.vue modified: src/views/quality/finishedProductInspection/finishedProducter-print.vue modified: src/views/quality/finishedProductInspection/index.vue modified: src/views/quality/newReport/ReportForm.vue modified: src/views/quality/processInspect/index.vue modified: src/views/quality/processInspect/processInspect-form.vue modified: src/views/quality/processconfiguration/index.vue modified: src/views/quality/processconfiguration/table-form.vue modified: src/views/quality/rawMaterial/QrcodeReader.vue modified: src/views/quality/rawMaterial/index.vue modified: src/views/quality/rawMaterial/rawMaterial-form.vue modified: src/views/quality/report/index.vue modified: src/views/quality/standardbind/standardbind-form.vue modified: src/views/quality/statistics/rateChart.vue modified: src/views/quality/testitemlayout/index.vue modified: src/views/quality/testplan/testplan-form.vue modified: src/views/quality/unqualifiedprocess/examineApproveform.vue modified: src/views/quality/unqualifiedprocess/index.vue modified: src/views/quality/unqualifiedprocess/loaction-form.vue modified: src/views/quality/unqualifiedprocess/unqualifiedprocessform.vue modified: src/views/technology/completeproductstructure/completeproductstructure-form.vue modified: src/views/technology/document/checkStandardTable.vue modified: src/views/technology/document/document-form.vue modified: src/views/technology/document/extendsOperation.vue modified: src/views/technology/document/extendsTestStandard.vue modified: src/views/technology/document/extendsTestStandardParam.vue modified: src/views/technology/document/teststandard.vue modified: src/views/technology/structure/single-structure-form.vue modified: src/views/warehouse/changestock/index.vue modified: src/views/warehouse/check/check-detail.vue modified: src/views/warehouse/pallettransports/ifslocation-form.vue modified: src/views/warehouse/pallettransports/ifsstock-form.vue modified: src/views/warehouse/pallettransports/index.vue modified: src/views/warehouse/returnstock/ifslocation-form.vue modified: src/views/warehouse/returnstock/index.vue modified: src/views/warehouse/returnstock/returnstock-form.vue modified: src/views/warehouse/returnstock/stock-part.vue modified: src/views/warehouse/stock/print-label-form.vue modified: src/views/warehouse/stock/small-print-label-form.vue modified: src/views/warehouse/stock/small-warehousing-label-form.vue modified: src/views/warehouse/stock/stock-table.vue modified: src/views/warehouse/stock/warehousing-label-form.vue modified: src/views/zte/pkgidbind/index.vue --- src/views/product/workbench/index.vue | 322 +++++++++++++++++++++++++++++------------------------ 1 files changed, 178 insertions(+), 144 deletions(-) diff --git a/src/views/product/workbench/index.vue b/src/views/product/workbench/index.vue index 82cebc3..ea1a613 100644 --- a/src/views/product/workbench/index.vue +++ b/src/views/product/workbench/index.vue @@ -49,22 +49,22 @@ <el-image src="/img/workbench/icon_bg.png"></el-image> <span class="item-name">鎶ュ伐</span> </div> - <div + <!-- <div v-show="isShowStepBusiness" :class="['wb-header-menu-item', stepShow ? 'item-show' : '']" @click="selectItem('step')" > <el-image src="/img/workbench/icon_gb.png"></el-image> <span class="item-name">宸ユ</span> - </div> - <div + </div> --> + <!-- <div v-show="permissions.product_menu_split" :class="['wb-header-menu-item', splitTaskShow ? 'item-show' : '']" @click="selectItem('splitTask')" > <el-image src="/img/workbench/icon_sp.png"></el-image> <span class="item-name">鍒嗗壊</span> - </div> + </div> --> <div :class="['wb-header-menu-item', artificialShow ? 'item-show' : '']" @click="selectItem('artificial')" @@ -256,7 +256,7 @@ > </div> </div> - <div class="start-end-div"> + <div class="start-end-div" > <div> <span style="margin-left:8px;font-size:12px;line-height:32px;" @@ -314,11 +314,11 @@ </div> <div style="float:right;width:10%;"> <div class="open-edit-duty-div"> - <div> + <!-- <div> <span class="duty-edit-span" @click="clearDutyRecord" >娓呯┖</span > - </div> + </div> --> <div> <span class="duty-edit-span" @click="openDutyEdit" >缂栬緫</span @@ -378,15 +378,24 @@ <el-tooltip class="item" effect="dark" - content="鎵归噺鎻愪氦" + content="娓呯┖" placement="top" > - <button + <!-- <button class="duty-circle-button" @click="submitSaveDutyRecord" > <i - class="el-icon-document-checked" + class="el-icon-delete" + style="color: #FFFFFF;" + ></i> + </button> --> + <button + class="duty-circle-button" + @click="clearDutyRecord" + > + <i + class="el-icon-delete" style="color: #FFFFFF;" ></i> </button> @@ -464,7 +473,7 @@ :inline="true" style="margin-left: 10px" > - <el-form-item prop="orderNumber" label="閿�鍞鍗曞彿"> + <!-- <el-form-item prop="orderNumber" label="閿�鍞鍗曞彿"> <el-input placeholder="璇疯緭鍏ラ攢鍞鍗曞彿" v-model="operateTaskForm.orderNumber" @@ -472,8 +481,8 @@ @keyup.enter.native="queryInfoForOrderNumber" @clear="queryInfoForOrderNumber" ></el-input> - </el-form-item> - <el-form-item prop="spec" label="鎴愬搧瑙勬牸"> + </el-form-item> --> + <!-- <el-form-item prop="spec" label="鎴愬搧瑙勬牸"> <el-select placeholder="璇烽�夋嫨鎴愬搧瑙勬牸" v-model="operateTaskForm.spec" @@ -498,19 +507,19 @@ > </el-option> </el-select> - </el-form-item> - <el-form-item prop="outBatchNo" label="SN"> + </el-form-item> --> + <el-form-item prop="outBatchNo" label="杞﹂棿璁㈠崟"> <el-input - placeholder="璇疯緭鍏ユ姇鍏ュ崐鎴愬搧SN鍙�" + placeholder="璇疯緭鍏ヨ溅闂磋鍗曞彿" v-model="operateTaskForm.outBatchNo" clearable @keyup.enter.native="refreshOperateTasksByConditions" @clear="refreshOperateTasksByConditions" ></el-input> </el-form-item> - <el-form-item prop="mpsNo" label="璁″垝鍙�"> + <el-form-item prop="mpsNo" label="宸ュ崟鍙�"> <el-input - placeholder="璇疯緭鍏ヨ鍒掑彿" + placeholder="璇疯緭鍏ュ伐鍗曞彿" v-model="operateTaskForm.mpsNo" clearable @keyup.enter.native="refreshOperateTasksByConditions" @@ -519,35 +528,37 @@ </el-form-item> </el-form> </div> - <div class="task-div-content"> - <div v-if="!isShowNormalTracking" class="task-list-div"> - <operationTaskPane - ref="operateTaskDiv" - :workstationId="dutyForm.workstationId" - :productSn="operateTaskForm.SN" - :orderNumber="operateTaskForm.orderNumber" - :spec="operateTaskForm.spec" - :outBatchNo="operateTaskForm.outBatchNo" - :mpsNo="operateTaskForm.mpsNo" - @changeCurrOperateTask="changeCurrOperateTask" - @refreshReport="refreshWorkReportPageData" - /> - </div> - <div v-if="isShowNormalTracking" class="task-list-div"> - <operationTaskTable - ref="operateTaskTableDiv" - :workstationId="dutyForm.workstationId" - :productSn="operateTaskForm.SN" - :orderNumber="operateTaskForm.orderNumber" - :spec="operateTaskForm.spec" - :mpsNo="operateTaskForm.mpsNo" - @changeCurrOperateTask="changeCurrOperateTask" - /> - </div> - </div> + <!-- :style="{ backgroundColor: taskStatusColor() }" --> + <div class="task-div-content" > + <div v-if="!isShowNormalTracking" class="task-list-div" > + <operationTaskPane + ref="operateTaskDiv" + :workstationId="dutyForm.workstationId" + :productSn="operateTaskForm.SN" + :orderNumber="operateTaskForm.orderNumber" + :spec="operateTaskForm.spec" + :outBatchNo="operateTaskForm.outBatchNo" + :mpsNo="operateTaskForm.mpsNo" + @changeCurrOperateTask="changeCurrOperateTask" + @refreshReport="refreshWorkReportPageData" + /> + </div> + <div v-if="isShowNormalTracking" class="task-list-div" > + <operationTaskTable + ref="operateTaskTableDiv" + :workstationId="dutyForm.workstationId" + :productSn="operateTaskForm.SN" + :orderNumber="operateTaskForm.orderNumber" + :spec="operateTaskForm.spec" + :mpsNo="operateTaskForm.mpsNo" + @changeCurrOperateTask="changeCurrOperateTask" + /> + </div> + + </div> </div> </div> - <div :style="{ width: mainMiddleWidth }" v-show="mainMiddleShow"> + <div :style="{ width: mainMiddleWidth } " v-show="mainMiddleShow"> <div style="height:86px;width:14px;position: absolute;top:50%"> <el-tooltip effect="dark" content="鏀剁缉" placement="left"> <img @@ -1424,7 +1435,7 @@ .task-div-content { // height: calc(100% - 40px); flex: 1; - padding: 0px 15px; + padding: 10px 15px; box-sizing: border-box; overflow-y: auto; margin-bottom: 10px; @@ -1476,7 +1487,8 @@ .warning-info { margin-left: 20px; - font-size: 16px; + font-size: 13px; + font-weight: bold; color: red; letter-spacing: 3px; } @@ -1491,7 +1503,7 @@ getPartNamesByOrderNo, getProductSnByCustomerNoAndPartName } from '@/api/product/personboard' -import { getObj as getSysParam } from '@/api/admin/sys-public-param' +import { getObj as getSysParam} from '@/api/admin/sys-public-param' import { getAllCrewList } from '@/api/basic/crew' import { getAllShiftList } from '@/api/basic/shift' import { getAllWorkstationList, updateById } from '@/api/basic/workstation' @@ -1551,6 +1563,10 @@ }, data() { return { + dutyForm: {}, + operateTaskForm: {}, + isShowNormalTracking: false, + // taskStatusColor: '', showBan: false, dutyCanEdit: false, saveButton: false, @@ -1657,97 +1673,9 @@ currItem: 'task' } }, - computed: { - ...mapGetters(['userInfo', 'tagWel', 'permissions']) - }, - created() { - document.title = '宸ヤ綔鍙扳�斺�擹TTMES' - if (!this.dutyForm.workstationId) { - const k = localStorage.getItem(storage_key) - if (k) { - this.dutyForm.workstationId = parseInt(k) - } - } - this.initOptions() - this.getSysParam(sysParam.SHOW_STEP_BUSINESS) - this.getTrackingParam(sysParam.SHOW_TRACKING_TYPE) - this.timer = setInterval(this.clockTimer, 1000) - console.log(this.permissions, 'ASSS') - }, - watch: { - 'dutyForm.workstationId'(val) { - if (val) { - localStorage.setItem(storage_key, val) - } - // 宸ヤ綔绔欐敼鍙樻椂锛屾暣涓〉闈㈢殑鍔ㄦ�佹暟鎹渶瀹炴椂鍔犺浇銆侀〉闈㈢紦瀛樻暟鎹渶 鍒濆鍖� - this.initPageVariable() - this.loadInfoByWorkstation() - }, - 'dutyForm.startTime'(val, oldval) { - if (val) { - this.checkTime() - } else { - this.warningShow = false - } - }, - 'dutyForm.endTime'(val, oldval) { - if (val) { - this.checkTime() - } else { - this.warningShow = false - } - }, - 'operateTaskForm.orderNumber'(val) { - /* this.$nextTick(() => { - this.queryInfoForOrderNumber() - }) */ - }, - 'operateTaskForm.spec'(val) { - if (val == '' || val == null) { - this.SNs = [] - this.operateTaskForm.SN = '' - } else { - const that = this - that.SNs = [] - getProductSnByCustomerNoAndPartName({ - customerOrderNo: this.operateTaskForm.orderNumber, - partName: val - }).then((res) => { - const result = res.data.data - result.forEach(function(item) { - const obj = { - key: item, - value: item - } - that.SNs.push(obj) - }) - }) - } - this.$nextTick(() => { - if (this.partNames.length !== 0) { - this.refreshOperateTasks() - } - }) - }, - 'operateTaskForm.SN'(val) { - this.$nextTick(() => { - if (this.SNs.length !== 0) { - this.refreshOperateTasks() - } - }) - }, - 'operateTaskForm.outBatchNo'(val) { - /* this.$nextTick(() => { - this.refreshOperateTasks() - }) */ - }, - 'operateTaskForm.mpsNo'(val) { - /* this.$nextTick(() => { - this.refreshOperateTasks() - }) */ - } - }, methods: { + // changeCurrOperateTask() {}, + // refreshWorkReportPageData() {}, refreshOperateTasksByConditions() { this.$nextTick(() => { this.refreshOperateTasks() @@ -1783,7 +1711,6 @@ customerOrderNo: this.operateTaskForm.orderNumber }).then((res) => { const result = res.data.data - console.log(result) result.forEach(function(item) { const obj = { key: item, @@ -1791,7 +1718,6 @@ } that.partNames.push(obj) }) - console.log(that.partNames) }) }, 500) } else { @@ -2250,9 +2176,9 @@ if (!this.dutyForm.endTime) { return { result: false, msg: '缁撴潫鏃堕棿涓嶈兘涓虹┖' } } - if (!this.dutyForm.dutyTime) { + /* if (!this.dutyForm.dutyTime) { return { result: false, msg: '鐝鏃堕棿涓嶈兘涓虹┖' } - } + } */ if (!this.dutyForm.shiftId) { return { result: false, msg: '鐝涓嶈兘涓虹┖' } } @@ -2289,7 +2215,6 @@ (e) => e.id === this.dutyForm.workstationId ).workCenter } - console.log(this.paramObj_StationSave) this.visible_StationSave = true }, Select_StationSave() { @@ -2589,6 +2514,115 @@ beforeDestroy() { clearInterval(this.timer) } - } + }, + computed: { + ...mapGetters(['userInfo', 'tagWel', 'permissions']), +// 鍗婁釜鏈堜箣鍓嶆槸榛勮壊 褰撳ぉ鍜屼笁澶╀箣鍐呭氨鏄孩鑹� 涓夊ぉ涔嬪悗灏辨槸钃濊壊 +// taskStatusColor() { +// return function(date) { +// const now = new Date(); +// const halfMonthAgo = new Date(now - 15 * 24 * 60 * 60 * 1000); +// const threeDaysAgo = new Date(now - 3 * 24 * 60 * 60 * 1000); +// const oneDayAgo = new Date(now - 24 * 60 * 60 * 1000); +// const today = new Date(now); + +// if (halfMonthAgo <= date && date <= threeDaysAgo) { +// return 'yellow'; +// } else if (today <= date && date <= threeDaysAgo) { +// return 'red'; +// } else { +// return 'blue'; +// } +// }; +// } + + }, + created() { + document.title = '宸ヤ綔鍙扳�斺�擬ES' + if (!this.dutyForm.workstationId) { + const k = localStorage.getItem(storage_key) + if (k) { + this.dutyForm.workstationId = parseInt(k) + } + } + this.initOptions() + this.getSysParam(sysParam.SHOW_STEP_BUSINESS) + this.getTrackingParam(sysParam.SHOW_TRACKING_TYPE) + this.timer = setInterval(this.clockTimer, 1000) + }, + watch: { + 'dutyForm.workstationId'(val) { + if (val) { + localStorage.setItem(storage_key, val) + } + // 宸ヤ綔绔欐敼鍙樻椂锛屾暣涓〉闈㈢殑鍔ㄦ�佹暟鎹渶瀹炴椂鍔犺浇銆侀〉闈㈢紦瀛樻暟鎹渶 鍒濆鍖� + this.initPageVariable() + this.loadInfoByWorkstation() + }, + 'dutyForm.startTime'(val, oldval) { + if (val) { + this.checkTime() + } else { + this.warningShow = false + } + }, + 'dutyForm.endTime'(val, oldval) { + if (val) { + this.checkTime() + } else { + this.warningShow = false + } + }, + 'operateTaskForm.orderNumber'(val) { + /* this.$nextTick(() => { + this.queryInfoForOrderNumber() + }) */ + }, + 'operateTaskForm.spec'(val) { + if (val == '' || val == null) { + this.SNs = [] + this.operateTaskForm.SN = '' + } else { + const that = this + that.SNs = [] + getProductSnByCustomerNoAndPartName({ + customerOrderNo: this.operateTaskForm.orderNumber, + partName: val + }).then((res) => { + const result = res.data.data + result.forEach(function(item) { + const obj = { + key: item, + value: item + } + that.SNs.push(obj) + }) + }) + } + this.$nextTick(() => { + if (this.partNames.length !== 0) { + this.refreshOperateTasks() + } + }) + }, + 'operateTaskForm.SN'(val) { + this.$nextTick(() => { + if (this.SNs.length !== 0) { + this.refreshOperateTasks() + } + }) + }, + 'operateTaskForm.outBatchNo'(val) { + /* this.$nextTick(() => { + this.refreshOperateTasks() + }) */ + }, + 'operateTaskForm.mpsNo'(val) { + /* this.$nextTick(() => { + this.refreshOperateTasks() + }) */ + } + }, + } </script> -- Gitblit v1.9.3