提交代码

This commit is contained in:
shaoleiliu-netizen123 2026-08-25 15:20:24 +08:00
parent 9291f5ffd2
commit f9e91c4216
6 changed files with 27 additions and 35 deletions

View File

@ -976,7 +976,7 @@ const selectedDeviceIds = ref<any>([])
function handlerConnectionDevice(row:any) { function handlerConnectionDevice(row:any) {
deviceDocumentConnectionVisible.value = true deviceDocumentConnectionVisible.value = true
title.value = row.deviceName + "设备工艺文档关联" title.value = row.ncName + "关联设备"
deviceDocumentConnection.sourceId = row.id deviceDocumentConnection.sourceId = row.id
getDeviceList(deviceDocumentConnection.sourceId) getDeviceList(deviceDocumentConnection.sourceId)
} }

View File

@ -272,6 +272,9 @@ const columns: DataTableColumns<DefectiveWarehouse> = [
var status = row.status var status = row.status
if (status == 0 || status == 1) { if (status == 0 || status == 1) {
return h('div', {style: {display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap'}}, [ return h('div', {style: {display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap'}}, [
h(NButton, {size: 'small', quaternary: true, onClick: () => handleDetail(row)}, {
default: () => ['详情']
}),
h(NButton, {size: 'small', quaternary: true, onClick: () => handleConfirm(row)}, { h(NButton, {size: 'small', quaternary: true, onClick: () => handleConfirm(row)}, {
default: () => [h(NIcon, null, {default: () => h(CreateOutline)}), '确认入库'] default: () => [h(NIcon, null, {default: () => h(CreateOutline)}), '确认入库']
}), }),
@ -280,18 +283,15 @@ const columns: DataTableColumns<DefectiveWarehouse> = [
}), }),
h(NButton, {size: 'small', quaternary: true, type: 'error', onClick: () => handleDelete(row)}, { h(NButton, {size: 'small', quaternary: true, type: 'error', onClick: () => handleDelete(row)}, {
default: () => [h(NIcon, null, {default: () => h(TrashOutline)}), ' 删除'] default: () => [h(NIcon, null, {default: () => h(TrashOutline)}), ' 删除']
}),
h(NButton, {size: 'small', quaternary: true, onClick: () => handleDetail(row)}, {
default: () => ['详情']
}) })
]) ])
} else if (status == 2) { } else if (status == 2) {
return h('div', {style: {display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap'}}, [ return h('div', {style: {display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'nowrap'}}, [
h(NButton, {size: 'small', quaternary: true, onClick: () => handleCancel(row)}, {
default: () => [h(NIcon, null, {default: () => h(CreateOutline)}), '撤回入库']
}),
h(NButton, {size: 'small', quaternary: true, onClick: () => handleDetail(row)}, { h(NButton, {size: 'small', quaternary: true, onClick: () => handleDetail(row)}, {
default: () => ['详情'] default: () => ['详情']
}),
h(NButton, {size: 'small', quaternary: true, onClick: () => handleCancel(row)}, {
default: () => [h(NIcon, null, {default: () => h(CreateOutline)}), '撤回入库']
}) })
]) ])
} }

View File

@ -1326,7 +1326,8 @@ function disphand(process: ProcessPlanItemVO, order?: OrderProcessPlanVO) {
const planQty = Number(entity.quantity) || 0 const planQty = Number(entity.quantity) || 0
const completedQty = Number(process.completedQty) || 0 const completedQty = Number(process.completedQty) || 0
const remainQty = Math.max(0, planQty - completedQty) const patchNum = Number(process.patchNum) || 0
const remainQty = Math.max(0, planQty - patchNum)
dispatchmodal.value = true dispatchmodal.value = true
dispatchformRef.value?.restoreValidation() dispatchformRef.value?.restoreValidation()
dispatchform.id = entity.id dispatchform.id = entity.id

View File

@ -180,8 +180,8 @@
<!--质检单详情面板--> <!--质检单详情面板-->
<n-modal v-model:show="detailVisible" preset="card" :title="detailTitle" style="width: 800px"> <n-drawer v-model:show="detailVisible" preset="card" :title="detailTitle" style="width: 1200px">
<n-card hoverable style="margin-bottom: 12px" > <n-card hoverable style="margin: 10px" >
<template #header> <template #header>
<div style="display:flex;justify-content:space-between;align-items:center;width:100%"> <div style="display:flex;justify-content:space-between;align-items:center;width:100%">
<span>主表信息</span> <span>主表信息</span>
@ -190,7 +190,7 @@
</n-button> </n-button>
</div> </div>
</template> </template>
<n-descriptions :column="3" bordered v-show="!infoIsCollapse"> <n-descriptions :column="8" bordered v-show="!infoIsCollapse">
<n-descriptions-item <n-descriptions-item
v-for="item in mappedInfoList" v-for="item in mappedInfoList"
:key="item.key" :key="item.key"
@ -200,7 +200,7 @@
</n-descriptions-item> </n-descriptions-item>
</n-descriptions> </n-descriptions>
</n-card> </n-card>
<n-card hoverable style="margin-bottom: 12px"> <n-card hoverable style="margin: 10px">
<template #header> <template #header>
<div style="display:flex;justify-content:space-between;align-items:center;width:100%"> <div style="display:flex;justify-content:space-between;align-items:center;width:100%">
<span>明细列表</span> <span>明细列表</span>
@ -223,7 +223,7 @@
<!-- <n-card title="追溯码" hoverable>--> <!-- <n-card title="追溯码" hoverable>-->
<!-- 追溯码{{}}--> <!-- 追溯码{{}}-->
<!-- </n-card>--> <!-- </n-card>-->
</n-modal> </n-drawer>
<!-- 提交判定明细抽屉 --> <!-- 提交判定明细抽屉 -->
<n-drawer v-model:show="showSubmitOuter" :width="900"> <n-drawer v-model:show="showSubmitOuter" :width="900">
@ -328,7 +328,7 @@ const detailVisible = ref(false)
const detailTitle = ref('') const detailTitle = ref('')
const infoIsCollapse = ref(false) const infoIsCollapse = ref(false)
const detailIsCollapse = ref(true) const detailIsCollapse = ref(false)
// //
// const submitDetailModalVisible = ref(false) // const submitDetailModalVisible = ref(false)
@ -401,29 +401,13 @@ const detailColumns: DataTableColumns<QcResultDetail> = [
{ {
title: '批次号', title: '批次号',
key: 'traceCode', key: 'traceCode',
width: 80, width: 150,
align: 'center', align: 'center',
render: (row) => { render: (row) => {
const val = row.traceCode const val = row.traceCode
return val ?? '-' return val ?? '-'
} }
}, },
{
title: '不良代码',
key: 'defectCode',
width: 80,
align: 'center',
render: (row) => {
const val = row.defectCode
return val ?? '-'
}
},
{
title: '后续动作',
key: 'handleAction',
width: 80,
align: 'center'
},
{ {
title: '动作执行状态', title: '动作执行状态',
key: 'actionStatus', key: 'actionStatus',
@ -638,8 +622,8 @@ const columns: DataTableColumns<QualityTesting> = [
{ label: '提交判定明细', key: 'submitResultDetail',show:row.status == 1 }, { label: '提交判定明细', key: 'submitResultDetail',show:row.status == 1 },
// { type: 'divider',show:row.status == 1 }, // 线 // { type: 'divider',show:row.status == 1 }, // 线
// { label: '', key: 'submitBFResultDetail',show:(row.status == 1 || row.status == 2) }, // { label: '', key: 'submitBFResultDetail',show:(row.status == 1 || row.status == 2) },
{ type: 'divider',show:(row.status == 1 || row.status == 2) }, // 线 // { type: 'divider',show:(row.status == 1 || row.status == 2) }, // 线
{ label: '查询判定明细', key: 'queryResultDetail' }, // { label: '', key: 'queryResultDetail' },
// { type: 'divider' }, // 线 // { type: 'divider' }, // 线
// { label: '', key: 'cancelQuality' }, // { label: '', key: 'cancelQuality' },
], ],

View File

@ -1050,7 +1050,7 @@ const selectedDeviceIds = ref<Device[]>([])
function handlerConnectionDevice(row:any) { function handlerConnectionDevice(row:any) {
deviceDocumentConnectionVisible.value = true deviceDocumentConnectionVisible.value = true
title.value = row.deviceName + "图文工艺文档关联" title.value = row.drawingName + "关联设备"
deviceDocumentConnection.sourceId = row.id deviceDocumentConnection.sourceId = row.id
getDeviceList(deviceDocumentConnection.sourceId) getDeviceList(deviceDocumentConnection.sourceId)
} }

View File

@ -21,6 +21,9 @@
<n-form-item-gi :span="4" label="工序名称"> <n-form-item-gi :span="4" label="工序名称">
<n-input v-model:value="searchForm.processName" placeholder="请输入工序名称" clearable /> <n-input v-model:value="searchForm.processName" placeholder="请输入工序名称" clearable />
</n-form-item-gi> </n-form-item-gi>
<n-form-item-gi :span="4" label="工单号">
<n-input v-model:value="searchForm.workOrderCode" placeholder="请输入工单号" clearable />
</n-form-item-gi>
<n-form-item-gi :span="4"> <n-form-item-gi :span="4">
<n-space> <n-space>
<n-button type="primary" @click="search"> <n-button type="primary" @click="search">
@ -268,6 +271,7 @@ const searchForm = reactive({
assingCode:'', assingCode:'',
materialCode:'', materialCode:'',
materialName:'', materialName:'',
workOrderCode:''
}) })
@ -499,6 +503,7 @@ function search() {
assingCode: searchForm.assingCode, assingCode: searchForm.assingCode,
materialCode: searchForm.materialCode, materialCode: searchForm.materialCode,
materialName: searchForm.materialName, materialName: searchForm.materialName,
workOrderCode:searchForm.workOrderCode
}) })
} }
@ -509,6 +514,7 @@ function reset() {
searchForm.assingCode = '' searchForm.assingCode = ''
searchForm.materialCode = '' searchForm.materialCode = ''
searchForm.materialName = '' searchForm.materialName = ''
searchForm.workOrderCode = ''
treeTableRef.value?.loadTableData({}) treeTableRef.value?.loadTableData({})
} }
@ -519,6 +525,7 @@ function getlist() {
assingCode: searchForm.assingCode, assingCode: searchForm.assingCode,
materialCode: searchForm.materialCode, materialCode: searchForm.materialCode,
materialName: searchForm.materialName, materialName: searchForm.materialName,
workOrderCode: searchForm.workOrderCode
}) })
} }