From 9508c11a63737b4b9e80e1223792f07d3151c2e8 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期五, 11 四月 2025 14:26:01 +0800 Subject: [PATCH] 条件改成 试验条件 电缆配置修改 --- src/views/business/productOrder/index.vue | 188 ++++++++++++++++++++++++++-------------------- 1 files changed, 106 insertions(+), 82 deletions(-) diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue index 5ca78c6..066a7a3 100644 --- a/src/views/business/productOrder/index.vue +++ b/src/views/business/productOrder/index.vue @@ -15,11 +15,6 @@ <el-input v-model="entity.sampleModel" clearable placeholder="璇疯緭鍏�" size="small" @keyup.enter.native="refreshTable()"></el-input> </el-form-item> -<!-- <el-form-item label="鏍峰搧缂栧彿" prop="sampleCode" v-if="more">--> -<!-- <el-input v-model="entity.sampleCode" clearable placeholder="璇疯緭鍏�" size="small"--> -<!-- @keyup.enter.native="refreshTable">--> -<!-- </el-input>--> -<!-- </el-form-item>--> <el-form-item label="涓嬪崟鏃堕棿" prop="createTime" v-if="more"> <el-date-picker v-model="entity.createTime" clearable format="yyyy-MM-dd" placeholder="閫夋嫨鏃ユ湡" size="small" style="width:100%" type="date" value-format="yyyy-MM-dd HH:mm:ss"> @@ -37,21 +32,27 @@ </el-form-item> <el-form-item> <el-button :icon="!more ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" style="color: #3A7BFA;" type="text" - @click="more = !more">{{ !more ? '鏇村' : '鏀惰捣' }}</el-button> - <el-button size="small" @click="refresh()">閲� 缃�</el-button> - <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button> + @click="more = !more">{{ !more ? '鏇村' : '鏀惰捣' }}</el-button> + <el-button size="mini" type="primary" @click="refreshTable()">鏌ヨ</el-button> + <el-button size="mini" @click="refresh()">閲嶇疆</el-button> </el-form-item> </el-form> </div> <div class="table-tab"> <div> <ul class="tab"> - <li :class="{ active: tabIndex === 0 }" v-if="checkPermi(['get:insOrder:reviewed'])" @click="handleTab(0)">寰呭鏍�</li> - <li :class="{ active: tabIndex === 1 }" v-if="checkPermi(['get:insOrder:checkout'])" @click="handleTab(1)">妫�楠屼腑</li> - <li :class="{ active: tabIndex === 2 }" v-if="checkPermi(['get:insOrder:customerOrdered'])" @click="handleTab(2)">濮旀墭宸叉</li> - <li :class="{ active: tabIndex === 3 }" v-if="checkPermi(['get:insOrder:spotCheck'])" @click="handleTab(3)">鎶芥牱宸叉</li> - <li :class="{ active: tabIndex === 4 }" v-if="checkPermi(['get:insOrder:sendBack'])" @click="handleTab(4)">閫�鍥�</li> - <li :class="{ active: tabIndex === 5 }" v-if="checkPermi(['get:insOrder:revocation'])" @click="handleTab(5)">鎾ら攢</li> + <li :class="{ active: tabIndex === 0 }" v-if="checkPermi(['get:insOrder:reviewed'])" @click="handleTab(0)">寰呭鏍� + </li> + <li :class="{ active: tabIndex === 1 }" v-if="checkPermi(['get:insOrder:checkout'])" @click="handleTab(1)">妫�楠屼腑 + </li> + <li :class="{ active: tabIndex === 2 }" v-if="checkPermi(['get:insOrder:customerOrdered'])" + @click="handleTab(2)">濮旀墭宸叉</li> + <li :class="{ active: tabIndex === 3 }" v-if="checkPermi(['get:insOrder:spotCheck'])" @click="handleTab(3)"> + 鎶芥牱宸叉</li> + <li :class="{ active: tabIndex === 4 }" v-if="checkPermi(['get:insOrder:sendBack'])" @click="handleTab(4)">閫�鍥� + </li> + <li :class="{ active: tabIndex === 5 }" v-if="checkPermi(['get:insOrder:revocation'])" @click="handleTab(5)"> + 鎾ら攢</li> <li :class="{ active: tabIndex === 6 }" v-if="checkPermi(['get:insOrder:all'])" @click="handleTab(6)">鍏ㄩ儴</li> </ul> </div> @@ -91,8 +92,8 @@ </el-dialog> <!-- 鎾ら攢 --> <el-dialog :before-close="handleClose" :visible.sync="quashDialogVisible" title="涓嬪崟鎾ら攢" width="30%"> - <p v-if="!isQuash" style="font-size:16px;color:#333333">濮旀墭缂栧彿<span - style="color:#34BD66">{{ this.insOrderRow.entrustCode }}</span>鐨勪俊鎭槸鍚︽挙閿�</p> + <p v-if="!isQuash" style="font-size:16px;color:#333333">濮旀墭缂栧彿<span style="color:#34BD66">{{ + this.insOrderRow.entrustCode }}</span>鐨勪俊鎭槸鍚︽挙閿�</p> <el-form v-else ref="ruleForm" :label-position="labelPosition" :model="formData" label-width="150px"> <el-form-item label="璇疯緭鍏ユ挙閿�鍘熷洜锛�"> <el-input v-model="formData.specificationModel" size="small" style="width:60%"></el-input> @@ -110,7 +111,7 @@ </span> </el-dialog> <!-- 涓嬪彂 --> - <el-dialog :before-close="handleClose" :visible.sync="issuedDialogVisible" title="妫�楠屽垎閰�" width="400px"> + <!-- <el-dialog :before-close="handleClose" :visible.sync="issuedDialogVisible" title="妫�楠屽垎閰�" width="400px"> <div class="body" style="max-height: 60vh;"> <el-row> <el-col class="search_thing" style="width: 95%;"> @@ -150,7 +151,7 @@ <el-button :loading="upLoad" type="primary" @click="submitForm2">纭� 瀹�</el-button> </el-row> </span> - </el-dialog> + </el-dialog> --> <el-dialog :visible.sync="dataDialogVisible" title="鏁版嵁鏌ョ湅" width="80%" @close="closeDia"> <div v-if="dataDialogVisible"> <lims-table :tableData="tableDataLook" :column="tableDataLookColumn" @pagination="tableDataLookPagination" @@ -173,7 +174,8 @@ <span slot="footer" class="dialog-footer"> <el-row> <el-button @click="handleNo">{{ deleteTilte == '鎾ら攢' ? '鍙� 娑�' : '涓嶉�氳繃' }}</el-button> - <el-button :loading="printLoading" type="primary" @click="submitDelete">{{ deleteTilte == '鎾ら攢' ? '纭� 瀹�' : '閫氳繃'}}</el-button> + <el-button :loading="printLoading" type="primary" @click="submitDelete">{{ deleteTilte == '鎾ら攢' ? '纭� 瀹�' : + '閫氳繃' }}</el-button> </el-row> </span> </el-dialog> @@ -268,8 +270,8 @@ <el-row style="margin-top: 0.01cm;font-size: 0.20cm;"> <el-col style="display: flex;align-items: center;"><span>鏍峰搧鐘舵��: </span> - <span style="white-space: nowrap;"><span v-if="item.insState == 0">鈭�</span><span v-if="item.insState != 0" - class="scor"></span>寰呮 + <span style="white-space: nowrap;"><span v-if="item.insState == 0">鈭�</span><span + v-if="item.insState != 0" class="scor"></span>寰呮 <span v-if="item.insState == 1">鈭�</span><span v-if="item.insState != 1" class="scor"></span>鍦ㄦ <span v-if="item.insState == 2">鈭�</span><span v-if="item.insState != 2" class="scor"></span>宸叉 <span v-if="item.isLeave == 1">鈭�</span><span v-if="item.isLeave != 1" class="scor"></span>鐣欐牱</span> @@ -298,6 +300,7 @@ @closePrintDialog="closePrintDialog"></print-dialog> <!--娣诲姞閬楁紡妫�楠岄」寮规--> <add-inspection-dia v-if="addInspectionDia" ref="addInspectionDia"></add-inspection-dia> + <issuedDialog ref="issuedDialog" /> <!-- <Inspection v-if="state>0" :key="InspectionKey" :inspectorList="inspectorList" :orderId="orderId"--> <!-- :sonLaboratory="sonLaboratory" :state="state"--> <!-- :typeSource="typeSource" @goback="goback" @refreshView="refreshView"/>--> @@ -310,6 +313,7 @@ import PrintDialog from "@/views/business/productOrder/components/printDialog.vue"; import AddInspectionDia from "@/views/business/productOrder/components/addInspectionDia.vue"; import limsTable from "@/components/Table/lims-table.vue"; +import issuedDialog from './components/issuedDialog.vue' import { checkUpdate, delInsOrder, rawAllInsOrderExport, @@ -319,14 +323,15 @@ } from "@/api/business/productOrder"; import { selectUserCondition } from "@/api/performance/class"; import { downFile, getFileList, selectSampleAndProductByOrderId } from "@/api/business/rawMaterialOrder"; -import {mapGetters} from "vuex"; +import { mapGetters } from "vuex"; export default { name: 'ProductOrder', components: { limsTable, AddInspectionDia, PrintDialog, - vueQr + vueQr, + issuedDialog }, data() { return { @@ -338,9 +343,21 @@ tableData: [], tableLoading: false, column: [ - { label: '濮旀墭缂栧彿', prop: 'entrustCode', width: '160px' }, + { + label: "濮旀墭缂栧彿", + prop: "entrustCode", + width: "160px", + dataType: "link", + linkMethod: "changeEntrustCode", + }, { label: '濮旀墭鍗曚綅', prop: 'company' }, - { label: '鏍峰搧鍚嶇О', prop: 'sampleName' }, + { + label: "鏍峰搧鍚嶇О", + prop: "sampleName", + width: "160px", + dataType: "link", + linkMethod: "selectAllByOne", + }, { label: '鏍峰搧鍨嬪彿', prop: 'sampleModel' }, { label: '鏍峰搧鏁伴噺', prop: 'sampleNum' }, { label: '妫�楠屼汉', prop: 'testingName' }, @@ -491,7 +508,7 @@ this.handleIssued(row); }, disabled: (row, index) => { - return row.state != 1 || !!row.assign + return row.state != 1 }, showHide: (row) => { return this.tabIndex === 1 @@ -522,7 +539,7 @@ ], page: { total: 0, - size: 10, + size: 20, current: 1 }, state: 0,// 0:鍙拌处椤碉紝1锛氭楠岄〉闈�,2妫�楠岄〉闈�(澶嶆牳)锛岄粯璁や负0,3鏁版嵁鏌ョ湅 @@ -551,7 +568,7 @@ tableDataLook: [], tableDataLookPage: { total: 0, - size: 10, + size: 20, current: 1 }, tableDataLookColumn: [ @@ -562,7 +579,7 @@ { label: '妫�楠屽瓙椤�', prop: 'inspectionItemSubclass' }, { label: '鍗曚綅', prop: 'unit' }, { label: '鏍峰搧鍨嬪彿', prop: 'model' }, - { label: '鏉′欢', prop: 'radius' }, + { label: '璇曢獙鏉′欢', prop: 'radius' }, { label: '鐢电紗鏍囪瘑', prop: 'cableTag' }, { label: '璇曢獙瑕佹眰', prop: 'tell' }, { label: '妫�楠岀粨鏋�', prop: 'lastValue' }, @@ -593,6 +610,7 @@ } } }, + { label: "妫�楠屼汉", prop: "checkUserName" }, ], filesDialogVisible: false, // 闄勪欢鏌ョ湅寮规 tableDataFile: [], @@ -642,7 +660,7 @@ ], pageFile: { total: 0, - size: 10, + size: 20, current: 1 }, formData: {}, @@ -659,7 +677,7 @@ entrustCodeInfo: {}, submitCodeLoading: false, // 浜哄憳鍒楄〃 - personList: [], + // personList: [], orderId: '', revocationInsProductIds: '', componentDataDelete: [], @@ -679,7 +697,7 @@ ], pageDelete: { total: 0, - size: 10, + size: 20, current: 1 }, deleteDialogVisible: false, @@ -746,7 +764,10 @@ }, mounted() { this.refreshTable() - this.getAuthorizedPerson() + // this.getAuthorizedPerson() + }, + activated() { + this.refreshTable() }, methods: { // 鏌ヨ鍒楄〃鏁版嵁 @@ -762,7 +783,7 @@ } const params = { ...this.entity, state: this.tabList[this.tabIndex].value } this.tableLoading = true - selectInsOrderParameter({...this.page,...params}).then(res => { + selectInsOrderParameter({ ...this.page, ...params }).then(res => { this.upIndex++ this.tableLoading = false if (res.code === 200) { @@ -783,6 +804,9 @@ }, // 鎵撳紑淇敼濮旀墭缂栧彿寮规 changeEntrustCode(row) { + if (this.tabIndex !== 1) { + return + } this.entrustCodeVisible = true this.entrustCodeInfo = { ...row } }, @@ -901,18 +925,18 @@ this.printDialog = false }, // 鑾峰彇鎸囨淳浜哄憳涓嬫媺鍒楄〃 - getAuthorizedPerson() { - selectUserCondition({ type: 1 }).then(res => { - let data = [] - res.data.forEach(a => { - data.push({ - label: a.name, - value: a.id - }) - }) - this.personList = data - }) - }, + // getAuthorizedPerson() { + // selectUserCondition({ type: 1 }).then(res => { + // let data = [] + // res.data.forEach(a => { + // data.push({ + // label: a.name, + // value: a.id + // }) + // }) + // this.personList = data + // }) + // }, handleClose() { this.verifyDialogVisible = false; this.quashDialogVisible = false; @@ -929,15 +953,14 @@ }, // 璇︽儏 selectAllByOne(row) { - this.active = 2; - // console.log(row); - // //鎵撳紑寮规 - // this.dialogVisible = true; - // //row = 鐐瑰嚮瀵瑰簲琛屽�� - // //澶嶅埗缁檉ormData - // this.formData = this.HaveJson(row); - this.currentId = row.id - this.examine = 1 + this.$router.push({ + path: "/productOrder/add", query: { + examine: 1, + active: 2, + currentId: row.id, + tabIndex: this.tabIndex, + } + }); }, // 鏁版嵁鏌ョ湅 handleDataLook(row) { @@ -962,10 +985,10 @@ this.tableDataLookPage.size = page.limit this.getDataTableList(this.currentRow) }, - closeDia () { + closeDia() { this.tableDataLookPage = { total: 0, - size: 10, + size: 20, current: 1 } this.dataDialogVisible = false @@ -1004,8 +1027,8 @@ // 涓嬭浇鎶ュ憡 download(row) { let url = row.urlS ? row.urlS : row.url; - if(url){ - url = url.split('.')[0]+'.pdf' + if (url) { + url = url.split('.')[0] + '.pdf' const link = document.createElement('a'); link.href = this.javaApi + url; link.target = '_blank'; @@ -1028,7 +1051,7 @@ }, getDeleteList() { this.tableLoadingDelete = true - selectNoProducts({ orderId: this.orderId, revocationInsProductIds: this.revocationInsProductIds }).then(res => { + selectNoProducts({ orderId: this.orderId, revocationInsProductIds: this.revocationInsProductIds, ...this.pageDelete }).then(res => { this.tableLoadingDelete = false this.componentDataDelete = res.data.records this.pageDelete.total = res.data.total @@ -1092,28 +1115,29 @@ }, // 涓嬪彂 handleIssued(row) { - this.issuedDialogVisible = true; - selectOrderManDay({ - id: row.id - }).then(res => { - this.distributeData.orderId = row.id - this.distributeData.sampleId = row.sampleId - this.distributeData.appointed = res.data - this.distributeData.type = row.type - }) - upPlanUser2({ - orderId: row.id, - }).then(res => { - if (res.code === 200 && res.data.length > 0) { - this.sonLaboratoryList = []; - res.data.forEach(m => { - this.sonLaboratoryList.push({ - value: m, - label: m - }) - }) - } - }) + // this.issuedDialogVisible = true; + this.$refs.issuedDialog.init(row) + // selectOrderManDay({ + // id: row.id + // }).then(res => { + // this.distributeData.orderId = row.id + // this.distributeData.sampleId = row.sampleId + // this.distributeData.appointed = res.data + // this.distributeData.type = row.type + // }) + // upPlanUser2({ + // orderId: row.id, + // }).then(res => { + // if (res.code === 200 && res.data.length > 0) { + // this.sonLaboratoryList = []; + // res.data.forEach(m => { + // this.sonLaboratoryList.push({ + // value: m, + // label: m + // }) + // }) + // } + // }) }, submitForm2() { if (this.distributeData.appointed == null || this.distributeData.appointed == '') { -- Gitblit v1.9.3