From a079bdcd4698ceb3660deae47a6fcc6603584b8c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期一, 17 三月 2025 10:49:47 +0800 Subject: [PATCH] 下单样式修改 --- src/components/Table/lims-table.vue | 1 src/views/business/materialOrder/copperOrder.vue | 3 + src/views/business/materialOrder/customsInspection.vue | 4 + src/views/business/inspectionReview/index.vue | 48 ++++++++++++++---------- src/views/business/productOrder/components/add.vue | 15 +++---- src/views/business/productOrder/components/cable-config.vue | 4 +- src/views/business/productOrder/components/auxiliaryWireCore.vue | 9 +--- 7 files changed, 46 insertions(+), 38 deletions(-) diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue index d71bc90..e3e0b71 100644 --- a/src/components/Table/lims-table.vue +++ b/src/components/Table/lims-table.vue @@ -327,7 +327,6 @@ this.$emit("pagination", { page: page, limit: limit }); }, indexMethod(index) { - // return index * 2; return (this.page.current - 1) * this.page.size + index + 1; }, // 鐐瑰嚮鍗曞厓鏍糽ink浜嬩欢 diff --git a/src/views/business/inspectionReview/index.vue b/src/views/business/inspectionReview/index.vue index 8b979dc..98861dd 100644 --- a/src/views/business/inspectionReview/index.vue +++ b/src/views/business/inspectionReview/index.vue @@ -23,8 +23,8 @@ </div> <div> <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" - :rowClassName="rowClassName" :height="'calc(100vh - 270px)'" @pagination="pagination" - key="tableData0"></lims-table> + :rowClassName="rowClassName" :height="'calc(100vh - 270px)'" @pagination="pagination" + key="tableData0"></lims-table> </div> <!--鎶ュ憡鏌ョ湅--> <el-dialog title="鎶ュ憡鏌ョ湅" :visible.sync="issuedVisible" width="80vw" :modal-append-to-body="false" @@ -108,7 +108,18 @@ prop: "type", dataType: "tag", formatData: (params) => { - return this.urgencyLevel.find((m) => m.value == params).label; + if (this.urgencyLevel.find((m) => m.value == params)) { + return this.urgencyLevel.find((m) => m.value == params).label; + } else { + return null + } + }, + formatType: (params) => { + if (this.urgencyLevel.find((m) => m.value == params)) { + return this.urgencyLevel.find((m) => m.value == params).type; + } else { + return null + } }, }, { @@ -128,11 +139,18 @@ prop: "insState", dataType: "tag", formatData: (params) => { - return this.inspectionTaskState.find((m) => m.value == params) - .label; + if (this.inspectionTaskState.find((m) => m.value == params)) { + return this.inspectionTaskState.find((m) => m.value == params).label; + } else { + return null + } }, formatType: (params) => { - return this.inspectionTaskState.find((m) => m.value == params).type; + if (this.inspectionTaskState.find((m) => m.value == params)) { + return this.inspectionTaskState.find((m) => m.value == params).type; + } else { + return null + } }, }, { label: "妫�楠屼汉", prop: "userName" }, @@ -229,10 +247,10 @@ fullscreen: false, option: null, orderTypeList: [ - { label: '濮旀墭璇曢獙', value: 'Customer-ordered test' }, - { label: '鎶芥', value: '鎶芥' }, - { label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�' }, - { label: '瀛e害妫�楠�', value: 'Quarterly inspection' }, + { label: '濮旀墭璇曢獙', value: 'Customer-ordered test', type: 'success' }, + { label: '鎶芥', value: '鎶芥', type: 'danger' }, + { label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�', type: 'info' }, + { label: '瀛e害妫�楠�', value: 'Quarterly inspection', type: '' }, ], urgencyLevel: [], inspectionTaskState: [], @@ -286,13 +304,6 @@ } return ""; }, - // 鏌ョ湅浜т笟閾句俊鎭� - // openInfoDialog (row) { - // this.showInfoDialog = true - // this.$nextTick(() => { - // this.$refs.showInfoDialog.getInfo(row.ifsInventoryId) - // }) - // }, selectAllByOne(row) { this.isCopper = row.isCopper this.customsInspection = row @@ -373,9 +384,6 @@ // 鏌ョ湅鎶ュ憡 handleIssued(row) { // todo: 鏌ョ湅鎶ュ憡缁勪欢 -/* if (!row.tempUrlPdf) return this.$message.warning('鏂囦欢鏈笂浼�') - this.currentInfo = row - this.lookDialogVisible = true*/ console.log(this.javaApi) this.currentInfo = row; let fileName = row.url diff --git a/src/views/business/materialOrder/copperOrder.vue b/src/views/business/materialOrder/copperOrder.vue index 1f76b7c..d837345 100644 --- a/src/views/business/materialOrder/copperOrder.vue +++ b/src/views/business/materialOrder/copperOrder.vue @@ -1808,4 +1808,7 @@ justify-content: space-between; margin-bottom: 10px; } +>>>.warning-row { + color: #1890FF; +} </style> diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue index b7af486..e9a28fa 100644 --- a/src/views/business/materialOrder/customsInspection.vue +++ b/src/views/business/materialOrder/customsInspection.vue @@ -1897,5 +1897,7 @@ background-color: #ffffff; } - +>>>.warning-row { + color: #1890FF; +} </style> diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue index 350dce2..fd91818 100644 --- a/src/views/business/productOrder/components/add.vue +++ b/src/views/business/productOrder/components/add.vue @@ -1648,14 +1648,13 @@ backtrack([], nums); return result; }, - tableRowClassName({ - row, - rowIndex - }) { - if (row.state === 0) { + tableRowClassName({row, rowIndex}) { + if (row.state == 1) { + console.log('row.state---', row.state) + return 'warning-row'; + } else { return ''; } - return 'warning-row'; }, selectInsOrderTemplate() { selectInsOrderTemplate({company: this.addObj.company}).then(res => { @@ -2214,7 +2213,7 @@ </script> <style scoped> -.el-table .warning-row .cell { - color: #3A7BFA; +>>>.warning-row { + color: #1890FF; } </style> diff --git a/src/views/business/productOrder/components/auxiliaryWireCore.vue b/src/views/business/productOrder/components/auxiliaryWireCore.vue index 7545392..5e7898e 100644 --- a/src/views/business/productOrder/components/auxiliaryWireCore.vue +++ b/src/views/business/productOrder/components/auxiliaryWireCore.vue @@ -250,10 +250,7 @@ this.$refs.productTable.doLayout() }) }, - tableRowClassName({ - row, - rowIndex - }) { + tableRowClassName({row, rowIndex}) { if (row.state === 0) { return ''; } @@ -397,7 +394,7 @@ font-size: 12px; } -.ins_order_config .el-table .warning-row .cell { - color: #3A7BFA; +>>>.warning-row { + color: #1890FF; } </style> diff --git a/src/views/business/productOrder/components/cable-config.vue b/src/views/business/productOrder/components/cable-config.vue index e0f5de1..46c3e9e 100644 --- a/src/views/business/productOrder/components/cable-config.vue +++ b/src/views/business/productOrder/components/cable-config.vue @@ -384,7 +384,7 @@ display: flex; justify-content: space-between; } -.el-table .warning-row .cell { - color: #3A7BFA; +>>>.warning-row { + color: #1890FF; } </style> -- Gitblit v1.9.3