Commit 15a55cfb authored by 何远江's avatar 何远江

bug 修改

parent a01cb585
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
@change="handleInputNlpla" @change="handleInputNlpla"
></uni-easyinput> ></uni-easyinput>
</view> </view>
<checkbox-group style="margin-top: 10rpx;" @change="checkedChange">
<checkbox value="r1" :checked="value" />是否审核
</checkbox-group>
<u-row gutter="16" class="itemRow" style="margin-top: 10rpx;"> <u-row gutter="16" class="itemRow" style="margin-top: 10rpx;">
<u-col span="3"> <u-col span="3">
长(cm): 长(cm):
...@@ -82,6 +85,7 @@ ...@@ -82,6 +85,7 @@
export default { export default {
components: { components: {
}, },
model: {prop: 'value', event: 'input'},
data() { data() {
return { return {
blpl: '', blpl: '',
...@@ -96,6 +100,7 @@ export default { ...@@ -96,6 +100,7 @@ export default {
return {}; return {};
} }
}, },
value: [Boolean],
isEdit: { isEdit: {
type: Boolean, type: Boolean,
default: false default: false
...@@ -125,8 +130,12 @@ export default { ...@@ -125,8 +130,12 @@ export default {
methods: { methods: {
handleInputNlpla(e) { handleInputNlpla(e) {
console.log(e, 'handleInputNlpla'); console.log(e, 'handleInputNlpla');
if(!e) return
this.$emit('plinput', e) this.$emit('plinput', e)
}, },
checkedChange() {
this.$emit('input', !this.value)
},
setWeightEdit() { setWeightEdit() {
}, },
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
:form="form" :form="form"
:isBL="isBL" :isBL="isBL"
:isEdit="isEdit" :isEdit="isEdit"
v-model="checkedBox"
@plinput="changePLBLForm" @plinput="changePLBLForm"
/> />
<unpacking v-show="current === 2" /> <unpacking v-show="current === 2" />
...@@ -211,6 +212,9 @@ export default { ...@@ -211,6 +212,9 @@ export default {
// 是否BL // 是否BL
const isBL = blpl.startsWith("BL"); const isBL = blpl.startsWith("BL");
this.isBL = isBL; this.isBL = isBL;
if (isBL && !this.blNum) {
this.blNum = blpl
}
// 验证是否有重复 // 验证是否有重复
if (this.goodsList.find((v) => v.ZCODE == blpl || v.PLNR == blpl)) { if (this.goodsList.find((v) => v.ZCODE == blpl || v.PLNR == blpl)) {
...@@ -250,10 +254,12 @@ export default { ...@@ -250,10 +254,12 @@ export default {
}); });
this.form = this.goodsList[0]; this.form = this.goodsList[0];
} }
this.checkedBox = res[0].ZSTATUS == 'Y'
} else { } else {
if (!isBL) { if (!isBL) {
console.log("没有装箱的PL"); console.log("没有装箱的PL");
const plInfo = { PLNR: blpl }; const plInfo = { PLNR: blpl, ZZXFS: this.form.ZZXFS, updkz: 'I' };
// 获取已经扫描过的最后一个PL信息,如果存在需要他的称重信息 // 获取已经扫描过的最后一个PL信息,如果存在需要他的称重信息
const lastPLInfo = this.goodsList.at(-1); const lastPLInfo = this.goodsList.at(-1);
const weightInfo = { const weightInfo = {
...@@ -388,10 +394,12 @@ export default { ...@@ -388,10 +394,12 @@ export default {
}, },
changePLBLForm(blpl) { changePLBLForm(blpl) {
console.log("changePLBLForm", "00000"); console.log("changePLBLForm", "00000");
if (!this.isBL) {
const info = this.goodsList.find((v) => v.PLNR == blpl); const info = this.goodsList.find((v) => v.PLNR == blpl);
if (info) {
this.form = info; this.form = info;
} }
this.searchCaseInfo(blpl)
}, },
reset() { reset() {
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment