From 31e47cebb043a65c838a23c517848f1afdab778c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 13 三月 2025 09:45:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- src/views/business/materialOrder/index.vue | 43 +++++++++++++++++++++++++++++++------------ 1 files changed, 31 insertions(+), 12 deletions(-) diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue index 325eaf0..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,10 +205,11 @@ 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 { - name: "b1-material-inspection-order", + name: "MaterialOrder", // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� components: { limsTable, DownFileDialog, FilesLookVisible, DataLookVisible, ShowInfo, PrintDialog }, data() { @@ -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