From e6927f46493e3e53cd14b81c9fd8a716eb378b6f Mon Sep 17 00:00:00 2001 From: shaoleiliu-netizen123 <480188199@qq.com> Date: Fri, 12 Jun 2026 10:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/concessionApply/index.vue | 30 +----- src/views/biz/orderProcessPlan/index.vue | 10 +- src/views/biz/qualityTesting/detail.vue | 8 +- src/views/biz/qualityTesting/index.vue | 94 +++++++------------ src/views/biz/qualityTesting/submitDetail.vue | 9 +- src/views/biz/submitLog/index.vue | 15 +-- src/views/biz/submitLog/statistics.vue | 4 +- src/views/production/dispatchwork/index.vue | 10 +- src/views/production/myassigtask/index.vue | 2 +- 9 files changed, 65 insertions(+), 117 deletions(-) diff --git a/src/views/biz/concessionApply/index.vue b/src/views/biz/concessionApply/index.vue index c47be30..5d2c14f 100644 --- a/src/views/biz/concessionApply/index.vue +++ b/src/views/biz/concessionApply/index.vue @@ -394,9 +394,7 @@ const columns: DataTableColumns = [ { title: '审批完成时间', key: 'approveTime',align:"center",minWidth:"250" }, { title: '审批状态', key: 'approveStatus',align:"center",minWidth:"150" }, { title: '审批结果', key: 'approveResult',align:"center",minWidth:"150", - render(row:any){ - console.log(row.approveResult); - + render(row:any){ if(row.approveResult == '待审批') return h(NTag, { type: 'default', size: 'small' }, { default: () => row.approveResult }) if(row.approveResult == '已驳回') return h(NTag, { type: 'error', size: 'small' }, { default: () => row.approveResult }) if(row.approveResult == '已通过') return h(NTag, { type: 'success', size: 'small' }, { default: () => row.approveResult }) @@ -649,26 +647,9 @@ async function loadDictOptions() { approveStatusOptions.value = data.map(d => ({ label: d.dictLabel, value: (Number(d.dictValue) || d.dictValue),class: d.listClass })) } catch {} } - -const getTimelineType = (type) => { - console.log(type); - - const map = { - 'START_PROCESS_INSTANCE': 'info', //发起-蓝色 - 'AGREE': 'success',//通过-绿色 - 'REFUSE': 'error',//驳回-红色 - 'TERMINATE_PROCESS_INSTANCE':'warning',//撤回-橙黄 - 'grey':'default', //兼容grey - 'info':'default' - } - return map[type] || 'default' -} -const getTitleAttribute = (item) =>{ - return item.username +" "+item.operationResult -} -function getApproveResultColor(status) { +function getApproveResultColor(status:string) { switch(status){ case '已通过': return "green" @@ -679,11 +660,6 @@ function getApproveResultColor(status) { } } -const getRemark=(item) =>{ - console.log(item.remark); - -} - async function downloadOutline() { const model = detailModel.value if (!model) { @@ -827,7 +803,7 @@ async function downloadOutline() { } -async function handleCancel(row) { +async function handleCancel(row:any) { dialog.warning({ title: '提示', diff --git a/src/views/biz/orderProcessPlan/index.vue b/src/views/biz/orderProcessPlan/index.vue index 1ecef80..9d16686 100644 --- a/src/views/biz/orderProcessPlan/index.vue +++ b/src/views/biz/orderProcessPlan/index.vue @@ -502,7 +502,7 @@ const columns = [ minWidth: 150, title: '是否采购', key: 'procurement', - render(row) { + render(row:any) { const val = row.procurement const opt = procurementOptions.value.find(o => o.value === val || String(o.value) === String(val)) return opt ? opt.label : (val ?? '-') @@ -513,7 +513,7 @@ const columns = [ minWidth: 150, title: '是否委外', key: 'outsource', - render(row) { + render(row:any) { const val = row.outsource const opt = outsourceOptions.value.find(o => o.value === val || String(o.value) === String(val)) return opt ? opt.label : (val ?? '-') @@ -542,7 +542,7 @@ const columns = [ minWidth: 150, title: '是否质检', key: 'qualityInspection', - render(row) { + render(row:any) { const val = row.qualityInspection const opt = qualityInspectionOptions.value.find(o => o.value === val || String(o.value) === String(val)) return opt ? opt.label : (val ?? '-') @@ -553,7 +553,7 @@ const columns = [ minWidth: 150, title: '是否直接入库', key: 'storageEntry', - render(row) { + render(row:any) { const val = row.storageEntry const opt = storageEntryOptions.value.find(o => o.value === val || String(o.value) === String(val)) return opt ? opt.label : (val ?? '-') @@ -565,7 +565,7 @@ const columns = [ key: 'actions', width: 140, fixed: 'right', - render(row) { + render(row:any) { const buttons:any = [] diff --git a/src/views/biz/qualityTesting/detail.vue b/src/views/biz/qualityTesting/detail.vue index 1047bae..b635ee8 100644 --- a/src/views/biz/qualityTesting/detail.vue +++ b/src/views/biz/qualityTesting/detail.vue @@ -40,7 +40,7 @@ :data="tableData" :loading="loading" :pagination="pagination" - :row-key="(row) => row.id" + :row-key="(row:any) => row.id" :scroll-x="1200" @update:page="handlePageChange" @update:page-size="handlePageSizeChange" @@ -54,9 +54,9 @@