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

bug 修改

parent a01cb585
......@@ -10,6 +10,9 @@
@change="handleInputNlpla"
></uni-easyinput>
</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-col span="3">
长(cm):
......@@ -82,6 +85,7 @@
export default {
components: {
},
model: {prop: 'value', event: 'input'},
data() {
return {
blpl: '',
......@@ -96,6 +100,7 @@ export default {
return {};
}
},
value: [Boolean],
isEdit: {
type: Boolean,
default: false
......@@ -125,8 +130,12 @@ export default {
methods: {
handleInputNlpla(e) {
console.log(e, 'handleInputNlpla');
if(!e) return
this.$emit('plinput', e)
},
checkedChange() {
this.$emit('input', !this.value)
},
setWeightEdit() {
},
......
......@@ -70,6 +70,7 @@
:form="form"
:isBL="isBL"
:isEdit="isEdit"
v-model="checkedBox"
@plinput="changePLBLForm"
/>
<unpacking v-show="current === 2" />
......@@ -211,6 +212,9 @@ export default {
// 是否BL
const isBL = blpl.startsWith("BL");
this.isBL = isBL;
if (isBL && !this.blNum) {
this.blNum = blpl
}
// 验证是否有重复
if (this.goodsList.find((v) => v.ZCODE == blpl || v.PLNR == blpl)) {
......@@ -250,10 +254,12 @@ export default {
});
this.form = this.goodsList[0];
}
this.checkedBox = res[0].ZSTATUS == 'Y'
} else {
if (!isBL) {
console.log("没有装箱的PL");
const plInfo = { PLNR: blpl };
const plInfo = { PLNR: blpl, ZZXFS: this.form.ZZXFS, updkz: 'I' };
// 获取已经扫描过的最后一个PL信息,如果存在需要他的称重信息
const lastPLInfo = this.goodsList.at(-1);
const weightInfo = {
......@@ -388,10 +394,12 @@ export default {
},
changePLBLForm(blpl) {
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.searchCaseInfo(blpl)
},
reset() {
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