From 5d77f3004b88c8e4247d62e7b77a3227c0b1fae2 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 09:45:23 +0800 Subject: [PATCH] 原材料原始记录未跳转页面 --- src/views/business/materialOrder/index.vue | 41 ++++++++++++++++++++++++++++++----------- 1 files changed, 30 insertions(+), 11 deletions(-) diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue index bba1f96..a8837e7 100644 --- a/src/views/business/materialOrder/index.vue +++ b/src/views/business/materialOrder/index.vue @@ -8,7 +8,7 @@ @keyup.enter.native="refreshTable"> </el-input> </el-form-item> - <el-form-item label="濮旀墭缂栧彿" prop="entrustCode"> + <el-form-item label="濮旀墭缂栧彿" prop="entrustCode" v-if="tabIndex !== 0"> <el-input v-model="entity.entrustCode" clearable placeholder="璇疯緭鍏�" size="small" @keyup.enter.native="refreshTable"> </el-input> @@ -205,6 +205,7 @@ updateEntrustCode } from "@/api/business/rawMaterialOrder"; import { getWarehouseSubmit } from "@/api/business/materialInspection"; +import {mapGetters} from "vuex"; // import Inspection from "../do/b1-inspect-order-plan/Inspection.vue"; export default { @@ -823,6 +824,9 @@ outLoading: false } }, + computed: { + ...mapGetters(['nickName']) + }, mounted() { this.refreshTable() }, @@ -970,10 +974,7 @@ if (row.userName) { inspectorList = row.userName.split(',') } - let user = JSON.parse(localStorage.getItem('user')) - if (user) { - inspectorList.push(user.name) - } + inspectorList.push(this.nickName) this.inspectorList = inspectorList this.insInfo = row this.InspectInfoDialog = true @@ -1020,16 +1021,34 @@ }).catch(() => { }) }, viewInsInfo0() { - this.state = 3; - this.typeSource = this.insInfo.typeSource - this.orderId = this.insInfo.enterOrderId + let inspectorList = [] + inspectorList.push(this.nickName) this.InspectInfoDialog = false + this.$router.push({ + path: "/inspectionTask/inspection", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.enterOrderId, + inspectorList: inspectorList, + }, + }) }, viewInsInfo1() { - this.state = 3; - this.typeSource = this.insInfo.typeSource - this.orderId = this.insInfo.quarterOrderId + let inspectorList = [] + inspectorList.push(this.nickName) this.InspectInfoDialog = false + this.$router.push({ + path: "/inspectionTask/inspection", + query: { + sonLaboratory: '鍘熸潗鏂�', + state: 3, + typeSource: this.insInfo.typeSource, + orderId: this.insInfo.quarterOrderId, + inspectorList: inspectorList, + }, + }) }, goback() { this.state = 0 -- Gitblit v1.9.3