diff --git a/src/views/stock/component/apply-modal.vue b/src/views/stock/component/apply-modal.vue index 8730a94..204e139 100644 --- a/src/views/stock/component/apply-modal.vue +++ b/src/views/stock/component/apply-modal.vue @@ -12,7 +12,7 @@
- +
@@ -56,7 +56,6 @@ const loading = ref(false) // 提交按钮的loading状态 const items = [{ title: '录入申请' }, { title: '扫码点货' }, { title: '人工确认' }] - const myType = ref('') // 申请类型 /** * 点击下一步 */ @@ -71,8 +70,6 @@ totalValue.value += item.quantity } }) - const applyForm = applyFormRef.value.getApplyForm() // 申请表单数据 - myType.value = applyForm.type // 申请类型 } if (scanFormRef.value && current.value === 1) { // 再step2中点击下一步的时候,就去获取step2中的表单数据 diff --git a/src/views/stock/component/scan-form.vue b/src/views/stock/component/scan-form.vue index c03acea..8ff8205 100644 --- a/src/views/stock/component/scan-form.vue +++ b/src/views/stock/component/scan-form.vue @@ -65,11 +65,6 @@ required: false, default: 0, }, - applyType: { - type: String, - required: false, - default: '', - }, }) //获取扫码的集合 @@ -182,9 +177,9 @@ return } // 找到条形码对应的物料编码 - const code = sn.slice(0, 4) + const code = sn.slice(0, 5) const materialInfo = materialMapCache.value.get(code) - if (!materialInfo && props.applyType != 'PURCHASE_RECEIPT') { + if (!materialInfo) { value.value = '' message.warning('【' + sn + '】条形码不合法,请重新扫码', 5) return