bug: 🐛 编码位数
All checks were successful
Release / lint (push) Successful in 51s
Release / Release (push) Successful in 1m52s

This commit is contained in:
my_ong 2025-03-19 16:39:32 +08:00
parent cdaa6797fa
commit fab443b8a0
2 changed files with 3 additions and 11 deletions

View File

@ -12,7 +12,7 @@
</div> </div>
<div v-show="current === 1" class="step-2"> <div v-show="current === 1" class="step-2">
<scan-form ref="scanFormRef" :total-value="totalValue" :apply-type="myType"></scan-form> <scan-form ref="scanFormRef" :total-value="totalValue"></scan-form>
</div> </div>
<div v-show="current === 2" class="step-3"> <div v-show="current === 2" class="step-3">
<apply-confirm ref="applyConfirmRef" :table-data="conformData"></apply-confirm> <apply-confirm ref="applyConfirmRef" :table-data="conformData"></apply-confirm>
@ -56,7 +56,6 @@
const loading = ref(false) // loading const loading = ref(false) // loading
const items = [{ title: '录入申请' }, { title: '扫码点货' }, { title: '人工确认' }] const items = [{ title: '录入申请' }, { title: '扫码点货' }, { title: '人工确认' }]
const myType = ref('') //
/** /**
* 点击下一步 * 点击下一步
*/ */
@ -71,8 +70,6 @@
totalValue.value += item.quantity totalValue.value += item.quantity
} }
}) })
const applyForm = applyFormRef.value.getApplyForm() //
myType.value = applyForm.type //
} }
if (scanFormRef.value && current.value === 1) { if (scanFormRef.value && current.value === 1) {
// step2step2 // step2step2

View File

@ -65,11 +65,6 @@
required: false, required: false,
default: 0, default: 0,
}, },
applyType: {
type: String,
required: false,
default: '',
},
}) })
// //
@ -182,9 +177,9 @@
return return
} }
// //
const code = sn.slice(0, 4) const code = sn.slice(0, 5)
const materialInfo = materialMapCache.value.get(code) const materialInfo = materialMapCache.value.get(code)
if (!materialInfo && props.applyType != 'PURCHASE_RECEIPT') { if (!materialInfo) {
value.value = '' value.value = ''
message.warning('【' + sn + '】条形码不合法,请重新扫码', 5) message.warning('【' + sn + '】条形码不合法,请重新扫码', 5)
return return