@@ -1,244 +1,28 @@
< script setup >
defineOptions ( { name : 'Inbound' } )
import { computed , onActivated , onMounted , reactive , ref , watch } from 'vue'
import { onActivated , onMounted , reactive , ref } from 'vue'
import { useRoute , useRouter } from 'vue-router'
import { ElMessage , ElMessageBox } from 'element-plus'
import request from '../utils/request'
import { getRealName } from '../utils/auth'
import { fmtTime } from '../utils/format'
import { exportXlsxFetch } from '../utils/export'
import { can } from '../utils/perm'
import PageHelp from '../components/PageHelp.vue'
import MaterialSelect from '../components/MaterialSelect.vue'
import AttachmentPanel from '../components/AttachmentPanel.vue'
import InboundEntry from '../components/InboundEntry.vue'
import { helpInbound } from '../help'
const route = useRoute ( )
const router = useRouter ( )
const operator = getRealName ( )
// ===== 入库表单附件:提交前先在表单里暂存,提交成功拿到入库单号后再挂到该单 =====
const staged1 = ref ( [ ] ) // 结构件入库 暂存附件
const staged2 = ref ( [ ] ) // 电气件 SN 入库 暂存附件
const staged3 = ref ( [ ] ) // 其他入库 暂存附件
// 逐个上传;单个失败不阻断(入库单已生成,附件可稍后在「入库记录」补传),错误提示由请求层统一处理
async function uploadStaged ( fileList , inboundNo ) {
const files = fileList . value || [ ]
if ( ! files . length || ! inboundNo ) return 0
let ok = 0
for ( const f of files ) {
const raw = f . raw
if ( ! raw ) continue
const fd = new FormData ( )
fd . append ( 'file' , raw )
fd . append ( 'bizType' , 'inbound' )
fd . append ( 'bizId' , inboundNo )
try { await request . post ( '/attachments/upload' , fd ) ; ok ++ } catch { /* 忽略单个失败 */ }
}
fileList . value = [ ]
return ok
}
// ===== 页签结构(2026-10-06 定稿) =====
// 页签对应物料档案「类型」:结构件入库(manageMode=1) / 电气件入库(2) / 其他入库(3);
// 各页签内是否走 SN 录入由所选物料的「序列号」(sn_mode 是否)决定(在 InboundEntry 组件内分流);
// 批量导入按记账方式(批次件/SN件)独立成页签;入库记录在最后。
const activeTab = ref ( 'batch' ) // batch=结构件 / sn=电气件 / other=其他 / excel=批量导入 / records=入库记录
// ===== 多 Tab:结构件入库 / 电气件 SN 入库 在前(常操作),入库记录在后 =====
const activeTab = ref ( 'batch' ) // batch=结构件入库 / sn=电气件SN入库 / records=入库记录
// 公共字典:区域(物料下拉由 MaterialSelect 组件按需远程搜索,最近 100 条)
const zones = ref ( [ ] )
// force=true 时强制重新拉取:区域维护新建/编辑后,入库页的区域下拉必须立即看到最新货位
async function loadDicts ( force = false ) {
if ( ! force && zones . value . length ) return
const zs = await request . get ( '/zone/picker' )
zones . value = Array . isArray ( zs ) ? zs : zs ? . list || [ ]
}
// 区域下拉选项:zones 每行是一个货位,同一区域会重复出现,按区域编码去重后只展示一条
const zoneOptions = computed ( ( ) => {
const map = new Map ( )
zones . value . forEach ( z => {
if ( ! z . zoneCode ) return
if ( ! map . has ( z . zoneCode ) ) map . set ( z . zoneCode , { zoneCode : z . zoneCode , zoneName : z . zoneName || '' } )
} )
return [ ... map . values ( ) ]
} )
// 库位三级联动:基于已加载的 zones(每行是完整四级货位 zoneCode+shelfNo+layerNo+positionNo)派生可选项
function zoneShelves ( zoneCode ) {
const set = new Set ( )
zones . value . forEach ( z => { if ( z . zoneCode === zoneCode && z . shelfNo ) set . add ( z . shelfNo ) } )
return [ ... set ] . sort ( )
}
function zoneLayers ( zoneCode , shelfNo ) {
const set = new Set ( )
zones . value . forEach ( z => { if ( z . zoneCode === zoneCode && z . shelfNo === shelfNo && z . layerNo ) set . add ( z . layerNo ) } )
return [ ... set ] . sort ( )
}
function zonePositions ( zoneCode , shelfNo , layerNo ) {
const set = new Set ( )
zones . value . forEach ( z => { if ( z . zoneCode === zoneCode && z . shelfNo === shelfNo && z . layerNo === layerNo && z . positionNo ) set . add ( z . positionNo ) } )
return [ ... set ] . sort ( )
}
// 切换上级库位时清空下级,避免残留无效值(用户诉求:库位逐级联动选择,禁止手填)
function onZoneChange ( form ) {
form . shelfNo = '' ; form . layerNo = '' ; form . positionNo = ''
// 手动切换区域后,按新区域重新推荐空位(物料已选时)
if ( form . materialCode ) suggestVacant ( form )
}
function onShelfChange ( form ) { form . layerNo = '' ; form . positionNo = '' }
function onLayerChange ( form ) { form . positionNo = '' }
/* ===================== Tab1 结构件入库(批次,支持多批到货追加) ===================== */
const batchRef = ref ( )
const submitting1 = ref ( false )
const lastInboundNo = ref ( '' )
const form1 = reactive ( {
inboundNo : '' , materialCode : '' , batchNo : '' , quantity : 1 ,
zoneCode : '' , shelfNo : '' , layerNo : '' , positionNo : '' ,
ownershipType : '' , ownershipNo : '' , productWorkNo : '' ,
productionDate : '' , supplier : '' , remark : '' , inspectionNo : ''
} )
const rules1 = {
materialCode : [ { required : true , message : '请选择物料' , trigger : 'change' } ] ,
zoneCode : [ { required : true , message : '请选择入库区域' , trigger : 'change' } ] ,
quantity : [ { required : true , message : '请输入数量' , trigger : 'blur' } ] ,
inspectionNo : [ { required : true , message : '请填写检测单号' , trigger : 'blur' } ] ,
ownershipType : [ { required : true , message : '请选择归属类型' , trigger : 'change' } ] ,
ownershipNo : [ { validator : ( r , v , cb ) => { if ( ( form1 . ownershipType === 'workorder' || form1 . ownershipType === 'project' ) && ! String ( v || '' ) . trim ( ) ) cb ( new Error ( '请填写归属编号' ) ) ; else cb ( ) } , trigger : 'blur' } ]
}
async function submitBatch ( ) {
// 必填项校验失败:表单项爆红 + 顶部弹窗提示第一条具体错误(不再笼统"请检查必填项")
const res = await batchRef . value . validate ( ) . then ( ( ) => null ) . catch ( ( f ) => f )
if ( res ) {
const first = Object . values ( res || { } ) [ 0 ] ? . [ 0 ] ? . message
ElMessage . warning ( first || '请检查必填项后再提交' )
return
}
if ( ! form1 . quantity || form1 . quantity <= 0 ) {
ElMessage . warning ( '数量必须大于 0' )
return
}
try {
await ElMessageBox . confirm (
'确认入库:物料 ' + form1 . materialCode + '|批次 ' + form1 . batchNo + '|数量 ' + form1 . quantity + '|区域 ' + form1 . zoneCode + '? ' ,
'入库提交确认' , { type : 'warning' } )
} catch { return }
submitting1 . value = true
try {
const data = await request . post ( '/inbound/create' , {
inboundNo : form1 . inboundNo . trim ( ) ,
inboundType : 'purchase' ,
manageMode : 1 , // 结构件页签(后端防呆:与物料档案类型不一致时拒绝)
materialCode : form1 . materialCode ,
batchNo : form1 . batchNo . trim ( ) ,
quantity : form1 . quantity ,
zoneCode : form1 . zoneCode ,
shelfNo : form1 . shelfNo . trim ( ) ,
layerNo : form1 . layerNo . trim ( ) ,
positionNo : form1 . positionNo . trim ( ) ,
productionDate : form1 . productionDate ,
supplier : form1 . supplier . trim ( ) ,
ownershipType : form1 . ownershipType ,
ownershipNo : form1 . ownershipNo . trim ( ) ,
productWorkNo : form1 . productWorkNo . trim ( ) ,
remark : form1 . remark . trim ( ) ,
inspectionNo : form1 . inspectionNo . trim ( ) ,
operator
} )
lastInboundNo . value = data ? . inboundNo || ''
ElMessage . success ( ` 入库成功:入库单号 ${ data ? . inboundNo || '' } ,数量 ${ data ? . quantity ? ? form1 . quantity } ` )
const att = await uploadStaged ( staged1 , lastInboundNo . value )
if ( att ) ElMessage . success ( ` 已挂载 ${ att } 个附件 ` )
form1 . batchNo = ''
form1 . quantity = 1
// 入库成功后刷新记录 Tab
await loadRecords ( )
} finally {
submitting1 . value = false
}
}
/* ===================== Tab2 电气件 SN 入库(连续扫码、实时已扫数量) ===================== */
const snInput = ref ( '' )
const submitting2 = ref ( false )
const snList = ref ( [ ] )
const form2 = reactive ( { inboundNo : '' , materialCode : '' , zoneCode : '' , shelfNo : '' , layerNo : '' , positionNo : '' , ownershipType : '' , ownershipNo : '' , productWorkNo : '' , remark : '' , inspectionNo : '' } )
// 与 Tab1/Tab3 对齐:走 el-form 校验,必填项既爆红又弹窗
const form2Ref = ref ( null )
const rules2 = {
materialCode : [ { required : true , message : '请选择物料' , trigger : 'change' } ] ,
zoneCode : [ { required : true , message : '请选择入库区域' , trigger : 'change' } ] ,
inspectionNo : [ { required : true , message : '请填写检测单号' , trigger : 'blur' } ] ,
ownershipType : [ { required : true , message : '请选择归属类型' , trigger : 'change' } ] ,
ownershipNo : [ { validator : ( r , v , cb ) => { if ( ( form2 . ownershipType === 'workorder' || form2 . ownershipType === 'project' ) && ! String ( v || '' ) . trim ( ) ) cb ( new Error ( '请填写归属编号' ) ) ; else cb ( ) } , trigger : 'blur' } ]
}
// 支持多种分隔符:中英文逗号、中英文句号、分号、顿号、空格、回车、制表符等
const SN _SEP = /[,, .。;;、\s]+/
function addSnLines ( ) {
const lines = String ( snInput . value ) . split ( SN _SEP )
for ( let raw of lines ) {
const sn = raw . trim ( )
if ( ! sn ) continue
if ( snList . value . includes ( sn ) ) continue
snList . value . push ( sn )
}
snInput . value = ''
}
function removeSn ( index ) {
snList . value . splice ( index , 1 )
}
async function submitSn ( ) {
// 必填项校验失败:表单项爆红 + 顶部弹窗提示第一条具体错误
const res = await form2Ref . value . validate ( ) . then ( ( ) => null ) . catch ( ( f ) => f )
if ( res ) {
const first = Object . values ( res || { } ) [ 0 ] ? . [ 0 ] ? . message
ElMessage . warning ( first || '请检查必填项后再提交' )
return
}
if ( ! snList . value . length ) {
ElMessage . warning ( '请先扫码录入 SN(输入后点击【录入到列表】)' )
return
}
try {
await ElMessageBox . confirm (
'确认 SN 入库:物料 ' + form2 . materialCode + '|数量 ' + snList . value . length + ' 件|区域 ' + form2 . zoneCode + '? ' ,
'入库提交确认' , { type : 'warning' } )
} catch { return }
submitting2 . value = true
try {
const data = await request . post ( '/inbound/create' , {
inboundNo : form2 . inboundNo . trim ( ) ,
inboundType : 'purchase' ,
manageMode : 2 , // 电气件页签(后端防呆:与物料档案类型不一致时拒绝)
materialCode : form2 . materialCode ,
zoneCode : form2 . zoneCode ,
shelfNo : form2 . shelfNo . trim ( ) ,
layerNo : form2 . layerNo . trim ( ) ,
positionNo : form2 . positionNo . trim ( ) ,
snList : [ ... snList . value ] ,
ownershipType : form2 . ownershipType ,
ownershipNo : form2 . ownershipNo . trim ( ) ,
productWorkNo : form2 . productWorkNo . trim ( ) ,
remark : form2 . remark . trim ( ) ,
inspectionNo : form2 . inspectionNo . trim ( ) ,
operator
} )
ElMessage . success ( ` 入库成功:入库单号 ${ data ? . inboundNo || '' } , SN 共 ${ snList . value . length } 条 ` )
const att = await uploadStaged ( staged2 , data ? . inboundNo || '' )
if ( att ) ElMessage . success ( ` 已挂载 ${ att } 个附件 ` )
snList . value = [ ]
snInput . value = ''
// 入库成功后刷新记录 Tab
await loadRecords ( )
} finally {
submitting2 . value = false
}
}
/* ===================== 各 Tab 批量导入(结构件 batch / 电气件 sn) ===================== */
/* ===================== Tab 批量导入(按记账方式:批次件 / SN件) =====================
后端 /inbound/batch-excel 按物料档案 sn_mode 校验每行(与物料类型无关),故导入与类型页签解耦。 */
const importing = ref ( false )
const excelResult = ref ( null )
const batchUploadRef = ref ( )
@@ -277,92 +61,7 @@ async function importExcel(mode, which) {
}
}
/* ===================== Tab3 其他入库(辅料/工装/试验设备,规格强制 ) =====================
客户诉求(问题记录 L50-54):除结构件/电气件外增加「其他入库」,防螺栓、工装、试验设备等,
规格强制填写;入库记录含 批次号/类型/归属(合同号/科技项目号/其他)。 */
const otherRef = ref ( )
const submitting3 = ref ( false )
const form3 = reactive ( {
inboundNo : '' ,
materialCode : '' , batchNo : '' , quantity : 1 , zoneCode : '' ,
shelfNo : '' , layerNo : '' , positionNo : '' ,
ownershipType : '' , ownershipNo : '' , productWorkNo : '' ,
supplier : '' , remark : '' , inspectionNo : ''
} )
const rules3 = {
materialCode : [ { required : true , message : '请选择物料' , trigger : 'change' } ] ,
zoneCode : [ { required : true , message : '请选择入库区域' , trigger : 'change' } ] ,
quantity : [ { required : true , message : '请输入数量' , trigger : 'blur' } ] ,
inspectionNo : [ { required : true , message : '请填写检测单号' , trigger : 'blur' } ] ,
ownershipType : [ { required : true , message : '请选择归属类型' , trigger : 'change' } ] ,
ownershipNo : [ { validator : ( r , v , cb ) => { if ( ( form3 . ownershipType === 'workorder' || form3 . ownershipType === 'project' ) && ! String ( v || '' ) . trim ( ) ) cb ( new Error ( '请填写归属编号' ) ) ; else cb ( ) } , trigger : 'blur' } ]
}
const otherMaterial = ref ( null ) // 选中物料(用于展示规格,规格为空时后端会拒绝)
function onOtherMaterial ( item ) {
otherMaterial . value = item
}
async function submitOther ( ) {
// 必填项校验失败:表单项爆红 + 顶部弹窗提示第一条具体错误
const res = await otherRef . value . validate ( ) . then ( ( ) => null ) . catch ( ( f ) => f )
if ( res ) {
const first = Object . values ( res || { } ) [ 0 ] ? . [ 0 ] ? . message
ElMessage . warning ( first || '请检查必填项后再提交' )
return
}
if ( ! form3 . quantity || form3 . quantity <= 0 ) {
ElMessage . warning ( '数量必须大于 0' )
return
}
if ( ( form3 . ownershipType === 'workorder' || form3 . ownershipType === 'project' ) && ! form3 . ownershipNo . trim ( ) ) {
ElMessage . warning ( '请填写归属编号(合同号 / 科技项目号)' )
return
}
if ( otherMaterial . value && ! String ( otherMaterial . value . spec || '' ) . trim ( ) ) {
ElMessage . warning ( '该其他类物料未填写规格型号,请先到物料档案补全' )
return
}
try {
await ElMessageBox . confirm (
'确认其他入库:物料 ' + form3 . materialCode + '|数量 ' + form3 . quantity +
'|区域 ' + form3 . zoneCode + '|归属 ' + ( form3 . ownershipType ? ( form3 . ownershipType === 'other' ? '其他' : form3 . ownershipNo ) : '其他' ) + '? ' ,
'其他入库提交确认' , { type : 'warning' } )
} catch { return }
submitting3 . value = true
try {
const data = await request . post ( '/inbound/create' , {
inboundNo : form3 . inboundNo . trim ( ) ,
inboundType : 'other' ,
manageMode : 3 , // 其他页签(后端防呆:与物料档案类型不一致时拒绝)
materialCode : form3 . materialCode ,
batchNo : form3 . batchNo . trim ( ) ,
quantity : form3 . quantity ,
zoneCode : form3 . zoneCode ,
shelfNo : form3 . shelfNo . trim ( ) ,
layerNo : form3 . layerNo . trim ( ) ,
positionNo : form3 . positionNo . trim ( ) ,
supplier : form3 . supplier . trim ( ) ,
remark : form3 . remark . trim ( ) ,
inspectionNo : form3 . inspectionNo . trim ( ) ,
ownershipType : form3 . ownershipType ,
ownershipNo : form3 . ownershipNo . trim ( ) ,
productWorkNo : form3 . productWorkNo . trim ( ) ,
operator
} )
ElMessage . success ( ` 其他入库成功:入库单号 ${ data ? . inboundNo || '' } ,数量 ${ data ? . quantity ? ? form3 . quantity } ` )
const att = await uploadStaged ( staged3 , data ? . inboundNo || '' )
if ( att ) ElMessage . success ( ` 已挂载 ${ att } 个附件 ` )
form3 . batchNo = ''
form3 . quantity = 1
// 归属保留不清(同归属连续录入多单是常态;此前成功后清空再提交会误报"请选择归属"且编号已丢)
await loadRecords ( )
} finally {
submitting3 . value = false
}
}
/* ===================== Tab4 入库记录(统一主表 + 抽屉明细,不分页内嵌子表) ===================== */
/* ===================== 入库记录(统一主表 + 抽屉明细,不分页内嵌子表 ) ===================== */
// 查询条件
const filters = reactive ( { inboundNo : '' , materialCode : '' , manageMode : '' , materialName : '' , voided : '' , inspectionNo : '' , ownershipNo : '' , productWorkNo : '' } )
const dateRange = ref ( [ ] ) // [开始日期, 结束日期] YYYY-MM-DD
@@ -371,7 +70,7 @@ const list = ref([])
const total = ref ( 0 )
const page = reactive ( { current : 1 , size : 10 } )
// 列表数据:结构件(manageMode=1)与电气件(manageMode=2) 同主表(inbound_order)
// 列表数据:各类型入库 同主表(inbound_order)
async function loadRecords ( ) {
loadingRec . value = true
try {
@@ -416,7 +115,7 @@ function resetFilters() {
search ( )
}
// 入库单作废:填原因 + 回滚库存(结构 件按批次、电气 件按 SN 精确回滚)
// 入库单作废:填原因 + 回滚库存(批次 件按批次、序列号 件按 SN 精确回滚)
const voidDlg = reactive ( { visible : false , inboundNo : '' } )
const voidForm = reactive ( { reason : '' } )
const voidSaving = ref ( false )
@@ -431,7 +130,7 @@ async function submitVoid() {
if ( ! reason ) { ElMessage . warning ( '请填写作废原因' ) ; return }
try {
await ElMessageBox . confirm (
` 确认作废入库单 ${ voidDlg . inboundNo } ?将回滚对应库存(结构 件回滚批次数量、电气 件按 SN 精确回滚),操作不可撤销。 ` ,
` 确认作废入库单 ${ voidDlg . inboundNo } ?将回滚对应库存(批次 件回滚批次数量、序列号 件按 SN 精确回滚),操作不可撤销。 ` ,
'作废确认' , { type : 'warning' , confirmButtonText : '确认作废' , cancelButtonText : '取消' } )
} catch { return }
voidSaving . value = true
@@ -523,56 +222,6 @@ function locText(row) {
return parts . length ? parts . join ( '/' ) : '-'
}
// 库位联动(替代原「推荐库位」按钮):选物料后自动回填该物料最近一次入库的库位(区域/货架/层/位置号)。
// 后端 /inbound/last-location 取该物料 created_at 最近一条入库记录的库位;未找到则不动。
async function fillLastLocation ( form ) {
if ( ! form . materialCode ) return
let filled = false
try {
const loc = await request . get ( '/inbound/last-location' , { params : { materialCode : form . materialCode } } )
if ( loc && loc . zoneCode ) {
form . zoneCode = loc . zoneCode
form . shelfNo = loc . shelfNo || ''
form . layerNo = loc . layerNo || ''
form . positionNo = loc . positionNo || ''
filled = true
}
} catch {
/* 查询失败不影响主流程 */
}
// 无历史库位(新物料):按同区空位自动推荐一个空闲货位
if ( ! filled ) await suggestVacant ( form )
}
// 同区空位推荐:物料无历史入库库位时,自动在当前区域(未选区域则取第一个可用区域)内挑一个空闲货位回填。
// 后端 /zone/vacant 只返回未被在库库存占用的位置节点(level=4)。
async function suggestVacant ( form , notifyEmpty = false ) {
try {
const v = await request . get ( '/zone/vacant' , { params : { zoneCode : form . zoneCode || '' , limit : 1 } } )
const hit = Array . isArray ( v ) ? v [ 0 ] : null
if ( ! hit ) {
if ( notifyEmpty ) ElMessage . info ( '当前区域暂无可推荐空位,请先在「基础数据 → 区域库位」中维护位置节点' )
return false
}
form . zoneCode = hit . zoneCode
form . shelfNo = hit . shelfNo || ''
form . layerNo = hit . layerNo || ''
form . positionNo = hit . positionNo || ''
return true
} catch {
return false
}
}
function onOwnershipChange ( form ) {
// 切换归属类型:清空已填编号(归属类型必选,不再有"无")
if ( ! form . ownershipType ) form . ownershipNo = ''
}
// 选择物料即触发库位联动回填(三个入库表单共用)
watch ( ( ) => form1 . materialCode , ( v ) => { if ( v ) fillLastLocation ( form1 ) } )
watch ( ( ) => form2 . materialCode , ( v ) => { if ( v ) fillLastLocation ( form2 ) } )
watch ( ( ) => form3 . materialCode , ( v ) => { if ( v ) fillLastLocation ( form3 ) } )
// 附件抽屉(bizType=inbound, bizId=入库单号):图纸 PDF / 检验报告挂载
const attachDrawer = reactive ( { visible : false , inboundNo : '' } )
function openAttach ( row ) {
@@ -581,22 +230,17 @@ function openAttach(row) {
}
function onTabChange ( tab ) {
if ( tab === 'batch ' ) { loadDicts ( ) }
else if ( tab === 'sn' ) { loadDicts ( ) }
else if ( tab === 'other' ) { loadDicts ( ) }
else if ( tab === 'records' ) { loadDicts ( ) ; loadRecords ( ) }
if ( tab === 'records ' ) loadRecords ( )
}
onMounted ( ( ) => {
loadDicts ( )
// 挂载即拉一次记录,保证页签角标/列表非空
loadRecords ( )
} )
// keep-alive 缓存下 onMounted 只在首次触发;用 onActivated 保证每次跳转进来都能消费路由参数
onActivated ( ( ) => {
// 区域维护可能刚新建/编辑过区域或货位,进来时强制刷新区域字典,避免选择区域时看不到最新内容
loadDicts ( true )
const q = route . query
// 库存页点入库单号跳转过来 → 自动切到"入库记录"Tab 并带入单号查询(闭环)
// 库存页点入库单号跳转过来 → 自动切到"入库记录"Tab 并带入单号查询(闭环);消费后清除 query,避免下次激活重复带入
if ( q . inboundNo ) {
activeTab . value = 'records'
@@ -610,304 +254,61 @@ onActivated(() => {
< template >
< div >
< el-tabs v-model = "activeTab" @tab-change="onTabChange" >
< ! - - = = = = = = = = = = = = Tab1 结构件入库 = = = = = = = = = = = = - - >
< el-tab-pane label = "结构件入库" name = "batch" >
< el-card shadow = "never" >
< el-form ref = "batchRef" :model = "form1" :rules = "rules1" label -width = " 110px " style = "max-width:560px" >
< el-form-item label = "物料" prop = "materialCode" >
< el-tooltip content = "请选择物料;若列表中找不到所需物料,请先到「物料档案」新增" placement = "top" :append-to-body = "true" >
< div style = "width:100%" >
< MaterialSelect v-model = "form1.materialCode" :manage-mode="1" placeholder="选择结构件物料" / >
< / div >
< / el-tooltip >
< / el-form-item >
< el-form-item label = "批次号" >
< el-input v-model = "form1.batchNo" placeholder="留空则自动生成" clearable / >
< / el-form-item >
< el-form-item label = "数量" prop = "quantity" >
< el-input-number v-model = "form1.quantity" :min="1" :step="1" step-strictly style="width:100%" / >
< / el-form-item >
< el-form-item label = "区域" prop = "zoneCode" >
< el-select v-model = "form1.zoneCode" placeholder="请选择入库区域(必填)" clearable style="width:100%" @change="onZoneChange(form1)" @visible-change="(v) => v && loadDicts(true)" >
< el -option v-for = "z in zoneOptions" :key="z.zoneCode" :value="z.zoneCode"
: label = "`${z.zoneCode} ${z.zoneName || ''}`" / >
< / el-select >
< / el-form-item >
< el-form-item label = "库位" >
< div style = "display:flex;gap:6px;flex-wrap:wrap;align-items:center" >
< el-select v-model = "form1.shelfNo" placeholder="货架" clearable style="width:120px" @change="onShelfChange(form1)" >
< el -option v-for = "s in zoneShelves(form1.zoneCode)" :key="s" :label="s + ' 架'" :value="s" / >
< / el-select >
< el-select v-model = "form1.layerNo" placeholder="层" clearable style="width:100px" :disabled="!form1.shelfNo" @change="onLayerChange(form1)" >
< el -option v-for = "l in zoneLayers(form1.zoneCode, form1.shelfNo)" :key="l" :label="l + ' 层'" :value="l" / >
< / el-select >
< el-select v-model = "form1.positionNo" placeholder="位置" clearable style="width:110px" :disabled="!form1.shelfNo" >
< el -option v-for = "p in zonePositions(form1.zoneCode, form1.shelfNo, form1.layerNo)" :key="p" :label="p + ' 位'" :value="p" / >
< / el-select >
< / div >
< div style = "color:#909399;font-size:12px;margin-top:2px" > 选择物料后自动带入该物料最近一次入库库位 , 可手动修改 < / div >
< / el-form-item >
< el-form-item label = "生产日期" >
< el-date-picker v-model = "form1.productionDate" type="date" value-format="YYYY-MM-DD"
placeholder = "选择生产日期" style = "width:100%" / >
< / el-form-item >
< el-form-item label = "供应商" >
< el-input v-model = "form1.supplier" placeholder="供应商名称" clearable / >
< / el-form-item >
< el-form-item label = "备注" >
< el-input v-model = "form1.remark" placeholder="备注(可空)" clearable / >
< / el-form-item >
< el-form-item label = "归属" prop = "ownershipType" >
< el-select v-model = "form1.ownershipType" placeholder="请选择" style="width:160px;margin-right:8px" @change="onOwnershipChange(form1)" >
< el -option label = "合同号" value = "workorder" / >
< el-option label = "科技项目号" value = "project" / >
< el-option label = "其他" value = "other" / >
< / el-select >
< el-form-item label -width = " 0 " prop = "ownershipNo" style = "margin-bottom:0" >
< el-input v-if = "form1.ownershipType" v-model="form1.ownershipNo"
placeholder = "请填写归属编号" clearable style = "width:260px" / >
< / el-form-item >
< / el-form-item >
< el-form-item label = "产品工号" >
< el-input v-model = "form1.productWorkNo" placeholder="手填(可空)" clearable style="width:260px" / >
< / el-form-item >
< el-form-item label = "入库单号" >
< el-input v-model = "form1.inboundNo" placeholder="留空自动生成(如 IB20260921-001) " clearable / >
< / el-form-item >
< el-form-item label = "检测单号" prop = "inspectionNo" >
< el-input v-model = "form1.inspectionNo" placeholder="入库检报告单号(必填)" clearable / >
< / el-form-item >
< el-form-item label = "附件" >
< el-upload v -model :file-list = "staged1" :auto-upload = "false" multiple :limit = "10"
accept = ".pdf,.png,.jpg,.jpeg,.gif,.xlsx,.xls,.doc,.docx,.dwg,.dxf,.zip,.txt,.csv" >
< el-button plain > 选择附件 < / el-button >
< template # tip >
< div style = "color:#909399;font-size:12px" > 提交成功后自动挂到该入库单 , 可在 「 入库记录 」 查看 < / div >
< / template >
< / el-upload >
< / el-form-item >
< el-form-item >
< el-button type = "primary" :loading = "submitting1" @click ="submitBatch" > 提交入库 < / el -button >
< / el-form-item >
< / el-form >
< el-alert v-if = "lastInboundNo" type="success" :closable="false"
:title = "`最近入库单号:${lastInboundNo}`" style = "max-width:560px" / >
< ! - - = = = = = = = = = = = = Tab 结构件入库 ( 类型 = 结构件 ; 录入方式按物料 「 序列号 」 分流 ) = = = = = = = = = = = = - - >
< el-tab-pane label = "结构件入库" name = "batch" lazy >
< InboundEntry :manage-mode = "1" @submitted ="loadRecords" / >
< / el-tab-pane >
< el-divider / >
< div >
< div style = "margin-bottom:8px;color:#909399;font-size:12px" >
批量导入 ( Excel ) : 列头顺序 ( 首行忽略 )
< b > 图号 | 批次号 ( 可空自动生成 ) | 数量 | 生产日期 | 供应商 | 区域 | 备注 < / b > 。
整表一次性全导入 , 任一行错误则整体回退 ( 不写入任何数据 ) 。
< / div >
< el-upload ref = "batchUploadRef" :auto-upload = "false" accept = ".xlsx" :limit = "1" drag style = "max-width:560px"
: on -exceed = " ( f ) = > onExceed ( f , 'batch' ) ">
<div class=" dropzone ">将结构件 .xlsx 拖到此处,或点击选择</div>
</el-upload>
<el-button type=" primary " :loading=" importing " style=" margin - top : 8 px "
@click=" importExcel ( 'batch' , 'batch' ) ">开始批量导入</el-button>
</div>
<!-- === === === === Tab 电气件入库 ( 类型 = 电气件 ; 录入方式按物料 「 序列号 」 分流 ) === === === === -- >
< el-tab-pane label = "电气件入库" name = "sn" lazy >
< InboundEntry :manage-mode = "2" @submitted ="loadRecords" / >
< / el-tab-pane >
<!-- === === === === Tab 其他入库 ( 辅料 / 工装 / 试验设备 , 规格强制 ) === === === === -- >
< el-tab-pane label = "其他入库" name = "other" lazy >
< InboundEntry :manage-mode = "3" @submitted ="loadRecords" / >
< / el-tab-pane >
<!-- === === === === Tab 批量导入 ( 按记账方式 : 批次件 / SN件 ) === === === === -- >
< el-tab-pane label = "批量导入" name = "excel" lazy >
< el-card shadow = "never" >
< el-alert type = "info" :closable = "false" style = "margin-bottom:12px"
title = "导入与物料「类型」页签无关:按物料档案「序列号」(是否有序列号)分流——批次件走批次模板、序列号件走 SN 模板;任一行错误则整体回退" / >
< el-row :gutter = "24" >
< el-col :span = "12" >
< div >
< div style = "font-weight:600;margin-bottom:6px" > 批次件导入 ( 序列号 = 否 的物料 ) < / div >
< div style = "margin-bottom:8px;color:#909399;font-size:12px" >
列头顺序 ( 首行忽略 ) < b > 图号 | 批次号 ( 可空自动生成 ) | 数量 | 生产日期 | 供应商 | 区域 | 备注 < / b >
< / div >
< el-upload ref = "batchUploadRef" :auto-upload = "false" accept = ".xlsx" :limit = "1" drag
: on -exceed = " ( f ) = > onExceed ( f , 'batch' ) ">
<div class=" dropzone ">将批次件 .xlsx 拖到此处,或点击选择</div>
</el-upload>
<el-button type=" primary " :loading=" importing " style=" margin - top : 8 px "
@click=" importExcel ( 'batch' , 'batch' ) ">开始批量导入</el-button>
</div>
</el-col>
<el-col :span=" 12 ">
<div>
<div style=" font - weight : 600 ; margin - bottom : 6 px ">SN 件导入(序列号=是 的物料)</div>
<div style=" margin - bottom : 8 px ; color : # 909399 ; font - size : 12 px ">
列头顺序(首行忽略)<b>图号 | SN | 区域 | 生产日期 | 供应商</b>
</div>
<el-upload ref=" snUploadRef " :auto-upload=" false " accept=" . xlsx " :limit=" 1 " drag
:on-exceed=" ( f ) => onExceed ( f , 'sn' ) ">
<div class=" dropzone ">将 SN 件 .xlsx 拖到此处,或点击选择</div>
</el-upload>
<el-button type=" primary " :loading=" importing " style=" margin - top : 8 px "
@click=" importExcel ( 'sn' , 'sn' ) ">开始批量导入</el-button>
</div>
</el-col>
</el-row>
</el-card>
</el-tab-pane>
<!-- ============ Tab2 电气件 SN 入库 ============ -->
<el-tab-pane : label=" ` 电气件入库 ${ snList . length ? ` (已扫 ${ snList . length } ) ` : '' } ` " name=" sn ">
<el-card shadow=" never ">
<el-form ref=" form2Ref " :model=" form2 " :rules=" rules2 " label-width=" 110 px " style=" max - width : 680 px ">
<el-form-item label=" 物料 " prop=" materialCode ">
<el-tooltip content=" 请选择物料 ; 若列表中找不到所需物料 , 请先到 「 物料档案 」 新增 " placement=" top " :append-to-body=" true ">
<div style=" width : 100 % ">
<MaterialSelect v-model=" form2 . materialCode " :manage-mode=" 2 " placeholder=" 请选择电气件物料 ( 必填 ) " />
</div>
</el-tooltip>
</el-form-item>
<el-form-item label=" 区域 " prop=" zoneCode ">
<el-select v-model=" form2 . zoneCode " placeholder=" 请选择入库区域 ( 必填 ) " clearable style=" width : 100 % " @change=" onZoneChange ( form2 ) " @visible-change=" ( v ) => v && loadDicts ( true ) ">
<el-option v-for=" z in zoneOptions " :key=" z . zoneCode " :value=" z . zoneCode "
:label=" ` ${ z . zoneCode } ${ z . zoneName || '' } ` " />
</el-select>
</el-form-item>
<el-form-item label=" 库位 ">
<div style=" display : flex ; gap : 6 px ; flex - wrap : wrap ; align - items : center ">
<el-select v-model=" form2 . shelfNo " placeholder=" 货架 " clearable style=" width : 120 px " @change=" onShelfChange ( form2 ) ">
<el-option v-for=" s in zoneShelves ( form2 . zoneCode ) " :key=" s " :label=" s + ' 架' " :value=" s " />
</el-select>
<el-select v-model=" form2 . layerNo " placeholder=" 层 " clearable style=" width : 100 px " :disabled=" ! form2 . shelfNo " @change=" onLayerChange ( form2 ) ">
<el-option v-for=" l in zoneLayers ( form2 . zoneCode , form2 . shelfNo ) " :key=" l " :label=" l + ' 层' " :value=" l " />
</el-select>
<el-select v-model=" form2 . positionNo " placeholder=" 位置 " clearable style=" width : 110 px " :disabled=" ! form2 . shelfNo ">
<el-option v-for=" p in zonePositions ( form2 . zoneCode , form2 . shelfNo , form2 . layerNo ) " :key=" p " :label=" p + ' 位' " :value=" p " />
</el-select>
</div>
<div style=" color : # 909399 ; font - size : 12 px ; margin - top : 2 px ">选择物料后自动带入该物料最近一次入库库位,可手动修改</div>
</el-form-item>
<el-form-item label=" 扫码录入 ">
<div style=" width : 100 % ">
<el-input v-model=" snInput " type=" textarea " :rows=" 4 "
placeholder=" 扫入或粘贴 SN , 可用 逗号 / 分号 / 顿号 / 空格 / 回车 分隔 , 一次可录入多条 " />
<el-button type=" primary " plain style=" margin - top : 6 px " :disabled=" ! snInput . trim ( ) "
@click=" addSnLines ">录入到列表</el-button>
<span style=" margin - left : 8 px ; color : # 909399 ; font - size : 12 px ">点【录入到列表】加入下方清单,回车只是换行</span>
</div>
</el-form-item>
<el-form-item label=" 备注 ">
<el-input v-model=" form2 . remark " type=" textarea " :rows=" 2 " placeholder=" 本批 SN 的统一备注 ( 可空 ) " />
</el-form-item>
<el-form-item label=" 归属 " prop=" ownershipType ">
<el-select v-model=" form2 . ownershipType " placeholder=" 请选择 " style=" width : 160 px ; margin - right : 8 px " @change=" onOwnershipChange ( form2 ) ">
<el-option label=" 合同号 " value=" workorder " />
<el-option label=" 科技项目号 " value=" project " />
<el-option label=" 其他 " value=" other " />
</el-select>
<el-form-item label-width=" 0 " prop=" ownershipNo " style=" margin - bottom : 0 ">
<el-input v-if=" form2 . ownershipType " v-model=" form2 . ownershipNo "
placeholder=" 请填写归属编号 " clearable style=" width : 260 px " />
</el-form-item>
</el-form-item>
<el-form-item label=" 产品工号 ">
<el-input v-model=" form2 . productWorkNo " placeholder=" 手填 ( 可空 ) " clearable style=" width : 260 px " />
</el-form-item>
<el-form-item label=" 入库单号 ">
<el-input v-model=" form2 . inboundNo " placeholder=" 留空自动生成 ( 如 IB20260921 - 001 ) " clearable />
</el-form-item>
<el-form-item label=" 检测单号 " prop=" inspectionNo ">
<el-input v-model=" form2 . inspectionNo " placeholder=" 入库检报告单号 ( 必填 ) " clearable />
</el-form-item>
<el-form-item label=" 附件 ">
<el-upload v-model:file-list=" staged2 " :auto-upload=" false " multiple :limit=" 10 "
accept=" . pdf , . png , . jpg , . jpeg , . gif , . xlsx , . xls , . doc , . docx , . dwg , . dxf , . zip , . txt , . csv ">
<el-button plain>选择附件</el-button>
<template #tip>
<div style=" color : # 909399 ; font - size : 12 px ">提交成功后自动挂到该入库单,可在「入库记录」查看</div>
</template>
</el-upload>
</el-form-item>
</el-form>
<div style=" margin - bottom : 8 px ">
已录入 <b>{{ snList.length }}</b> 条 SN
</div>
<el-table :data=" snList . map ( ( v , i ) => ( { i , v } ) ) " size=" small " border max-height=" 320 " empty-text=" 暂无 SN ">
<el-table-column type=" index " label=" # " width=" 56 " align=" center " />
<el-table-column prop=" v " label=" SN 序列号 " min-width=" 220 " />
<el-table-column label=" 操作 " width=" 80 " align=" center ">
<template #default=" { row } ">
<el-button link type=" danger " size=" small " @click=" removeSn ( row . i ) ">删除</el-button>
</template>
</el-table-column>
</el-table>
<div style=" margin - top : 12 px ">
<el-button type=" primary " :loading=" submitting2 " @click=" submitSn ">提交入库</el-button>
<el-button @click=" snList = [ ] ">清空列表</el-button>
</div>
<el-divider />
<div>
<div style=" margin - bottom : 8 px ; color : # 909399 ; font - size : 12 px ">
批量导入(Excel):列头顺序(首行忽略)
<b>图号 | SN | 区域 | 生产日期 | 供应商</b>。
整表一次性全导入,任一行错误则整体回退(不写入任何数据)。
</div>
<el-upload ref=" snUploadRef " :auto-upload=" false " accept=" . xlsx " :limit=" 1 " drag style=" max - width : 680 px "
:on-exceed=" ( f ) => onExceed ( f , 'sn' ) ">
<div class=" dropzone ">将电气件 .xlsx 拖到此处,或点击选择</div>
</el-upload>
<el-button type=" primary " :loading=" importing " style=" margin - top : 8 px "
@click=" importExcel ( 'sn' , 'sn' ) ">开始批量导入</el-button>
</div>
</el-card>
</el-tab-pane>
<!-- ============ Tab3 其他入库(辅料/工装/试验设备) ============ -->
<el-tab-pane label=" 其他入库 " name=" other ">
<el-card shadow=" never ">
<div style=" margin - bottom : 10 px ; color : # 909399 ; font - size : 12 px ">
其他入库用于 <b>辅料 / 螺栓 / 工装 / 试验设备</b> 等非结构件、非电气件物料;<b>规格型号强制</b>(在物料档案维护)。
</div>
<el-form ref=" otherRef " :model=" form3 " :rules=" rules3 " label-width=" 110 px " style=" max - width : 620 px ">
<el-form-item label=" 物料 " prop=" materialCode ">
<el-tooltip content=" 请选择物料 ; 若列表为空 , 请先到 「 物料档案 」 新增其他类物料 ( 规格型号必填 ) " placement=" top " :append-to-body=" true ">
<div style=" width : 100 % ">
<MaterialSelect v-model=" form3 . materialCode " :manage-mode=" 3 "
placeholder=" 选择其他类物料 ( 辅料 / 工装 / 试验设备 ) "
@item-change=" onOtherMaterial " />
</div>
</el-tooltip>
<div v-if=" ! form3 . materialCode " style=" color : # 909399 ; font - size : 12 px ; margin - top : 2 px ">提示:请先选择其他类物料;若列表为空,请到「物料档案」新增(其他类物料规格型号必填)。</div>
</el-form-item>
<el-form-item label=" 规格型号 ">
<el-input :model-value=" otherMaterial ? . spec || '' " placeholder=" 自动带出物料档案规格 " disabled />
</el-form-item>
<el-form-item label=" 批次号 ">
<el-input v-model=" form3 . batchNo " placeholder=" 留空则自动生成 " clearable />
</el-form-item>
<el-form-item label=" 数量 " prop=" quantity ">
<el-input-number v-model=" form3 . quantity " :min=" 1 " :step=" 1 " step-strictly style=" width : 100 % " />
</el-form-item>
<el-form-item label=" 区域 " prop=" zoneCode ">
<el-select v-model=" form3 . zoneCode " placeholder=" 请选择入库区域 ( 必填 ) " clearable style=" width : 100 % " @change=" onZoneChange ( form3 ) " @visible-change=" ( v ) => v && loadDicts ( true ) ">
<el-option v-for=" z in zoneOptions " :key=" z . zoneCode " :value=" z . zoneCode "
:label=" ` ${ z . zoneCode } ${ z . zoneName || '' } ` " />
</el-select>
</el-form-item>
<el-form-item label=" 库位 ">
<div style=" display : flex ; gap : 6 px ; flex - wrap : wrap ; align - items : center ">
<el-select v-model=" form3 . shelfNo " placeholder=" 货架 " clearable style=" width : 120 px " @change=" onShelfChange ( form3 ) ">
<el-option v-for=" s in zoneShelves ( form3 . zoneCode ) " :key=" s " :label=" s + ' 架' " :value=" s " />
</el-select>
<el-select v-model=" form3 . layerNo " placeholder=" 层 " clearable style=" width : 100 px " :disabled=" ! form3 . shelfNo " @change=" onLayerChange ( form3 ) ">
<el-option v-for=" l in zoneLayers ( form3 . zoneCode , form3 . shelfNo ) " :key=" l " :label=" l + ' 层' " :value=" l " />
</el-select>
<el-select v-model=" form3 . positionNo " placeholder=" 位置 " clearable style=" width : 110 px " :disabled=" ! form3 . shelfNo ">
<el-option v-for=" p in zonePositions ( form3 . zoneCode , form3 . shelfNo , form3 . layerNo ) " :key=" p " :label=" p + ' 位' " :value=" p " />
</el-select>
</div>
<div style=" color : # 909399 ; font - size : 12 px ; margin - top : 2 px ">选择物料后自动带入该物料最近一次入库库位,可手动修改</div>
</el-form-item>
<el-form-item label=" 归属 " prop=" ownershipType ">
<el-select v-model=" form3 . ownershipType " placeholder=" 请选择 " style=" width : 160 px ; margin - right : 8 px " @change=" onOwnershipChange ( form3 ) ">
<el-option label=" 合同号 " value=" workorder " />
<el-option label=" 科技项目号 " value=" project " />
<el-option label=" 其他 " value=" other " />
</el-select>
<el-form-item label-width=" 0 " prop=" ownershipNo " style=" margin - bottom : 0 ">
<el-input v-if=" form3 . ownershipType " v-model=" form3 . ownershipNo "
placeholder=" 请填写归属编号 " clearable style=" width : 260 px " />
</el-form-item>
</el-form-item>
<el-form-item label=" 产品工号 ">
<el-input v-model=" form3 . productWorkNo " placeholder=" 手填 ( 可空 ) " clearable style=" width : 260 px " />
</el-form-item>
<el-form-item label=" 供应商 ">
<el-input v-model=" form3 . supplier " placeholder=" 供应商名称 ( 可空 ) " clearable />
</el-form-item>
<el-form-item label=" 入库单号 ">
<el-input v-model=" form3 . inboundNo " placeholder=" 留空自动生成 ( 如 IB20260921 - 001 ) " clearable />
</el-form-item>
<el-form-item label=" 检测单号 " prop=" inspectionNo ">
<el-input v-model=" form3 . inspectionNo " placeholder=" 入库检报告单号 ( 必填 ) " clearable />
</el-form-item>
<el-form-item label=" 备注 ">
<el-input v-model=" form3 . remark " placeholder=" 备注 ( 可空 ) " clearable />
</el-form-item>
<el-form-item label=" 附件 ">
<el-upload v-model:file-list=" staged3 " :auto-upload=" false " multiple :limit=" 10 "
accept=" . pdf , . png , . jpg , . jpeg , . gif , . xlsx , . xls , . doc , . docx , . dwg , . dxf , . zip , . txt , . csv ">
<el-button plain>选择附件</el-button>
<template #tip>
<div style=" color : # 909399 ; font - size : 12 px ">提交成功后自动挂到该入库单,可在「入库记录」查看</div>
</template>
</el-upload>
</el-form-item>
<el-form-item>
<el-button type=" primary " :loading=" submitting3 " @click=" submitOther ">提交入库</el-button>
</el-form-item>
</el-form>
</el-card>
</el-tab-pane>
<!-- ============ Tab4 入库记录(统一主表 + 抽屉明细) ============ -->
<el-tab-pane label=" 入库记录 " name=" records ">
<!-- ============ 入库记录(统一主表 + 抽屉明细) ============ -->
<el-tab-pane label=" 入库记录 " name=" records " lazy >
<el-card shadow=" never " class=" mb12 ">
<el-form inline @submit.prevent=" search ">
<el-form-item label=" 入库单号 ">
@@ -956,7 +357,7 @@ onActivated(() => {
</el-form>
</el-card>
<!-- 入库单列表(一单一行,结构件/电气件同表 ) -->
<!-- 入库单列表(一单一行) -->
<el-card shadow=" never " header=" 入库单 ( 每行一笔入库 ; 点 「 明细 」 在右侧抽屉查看该单的行 ) ">
<el-table :data=" list " border size=" small " v-loading=" loadingRec " empty-text=" 暂无入库数据 ">
<el-table-column prop=" id " label=" ID " width=" 70 " align=" center " />
@@ -983,11 +384,11 @@ onActivated(() => {
<template #default=" { row } ">{{ locText(row) }}</template>
</el-table-column>
<el-table-column prop=" operator " label=" 操作人 " width=" 100 ">
<template #default=" { row } ">{{ row.operator || '-' }}</template>
</el-table-column>
<el-table-column prop="inspectionNo " label=" 检测单号 " min-width=" 130 " align=" center ">
<template #default=" { row } ">{{ row.inspectionNo || '-' }}</template>
</el-table-column>
<template #default=" { row } ">{{ row.operator || '-' }}</template>
</el-table-column>
<el-table-column prop=" inspectionNo " label=" 检测单号 " min-width=" 130 " align=" center ">
<template #default=" { row } ">{{ row.inspectionNo || '-' }}</template>
</el-table-column>
<el-table-column label=" 质量状态 " width=" 90 " align=" center ">
<template #default=" { row } ">
<el-tag v-if=" row . qualityStatus " size=" small "
@@ -1036,7 +437,7 @@ onActivated(() => {
</el-tab-pane>
</el-tabs>
<!-- 批量导入结果(结构件/电气 件共用) -->
<!-- 批量导入结果(批次件/SN 件共用) -->
<el-card v-if=" excelResult " shadow=" never " class=" mb12 "
:header=" excelResult . failed > 0 ? '导入结果:被拒绝(整体回退,未发生写入)' : '导入结果:成功' ">
<el-alert v-if=" excelResult . failed > 0 " type=" error " :closable=" false "
@@ -1088,7 +489,7 @@ onActivated(() => {
<!-- 入库单作废:填原因 + 回滚库存 -->
<el-dialog v-model=" voidDlg . visible " :title=" ` 作废入库单: ${ voidDlg . inboundNo } ` " width=" 480 px " append-to-body destroy-on-close>
<el-alert type=" warning " :closable=" false " show-icon
title=" 作废将回滚该单库存 : 结构 件按批次扣减数量, 电气 件按 SN 精确回滚 ( 不影响其它单 ) 。 操作不可撤销 。 "
title=" 作废将回滚该单库存 : 批次 件按批次扣减数量, 序列号 件按 SN 精确回滚 ( 不影响其它单 ) 。 操作不可撤销 。 "
style=" margin - bottom : 12 px " />
<el-form label-width=" 80 px ">
<el-form-item label=" 作废原因 " required>
@@ -1109,4 +510,4 @@ onActivated(() => {
. dropzone { padding : 30 px 0 ; color : # 606266 ; }
. mb12 { margin - bottom : 12 px ; }
. pager { display : flex ; justify - content : flex - end ; margin - top : 12 px ; }
< / style >
< / style >