fix:gx交接扫码无工段修改

This commit is contained in:
shijing 2025-04-09 08:36:22 +08:00
parent 407a6beacb
commit 9de8e67289
1 changed files with 0 additions and 13 deletions

View File

@ -186,7 +186,6 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import scanDialog from "./../template/scan.vue";
export default { export default {
emits: ["success", "closed"], emits: ["success", "closed"],
props: { props: {
@ -217,9 +216,6 @@ export default {
default:false default:false
} }
}, },
components: {
scanDialog
},
data() { data() {
return { return {
change_batch:false, change_batch:false,
@ -598,22 +594,14 @@ export default {
let that = this; let that = this;
data = data.replace(' ',''); data = data.replace(' ','');
let id = data.split('#')[1]; let id = data.split('#')[1];
console.log('id',id);
this.$API.cm.labelmat.item.req(id).then((res) => { this.$API.cm.labelmat.item.req(id).then((res) => {
console.log('res',res);
let arr = that.form.handoverb.filter((item) => { let arr = that.form.handoverb.filter((item) => {
return item.batch == res.batch; return item.batch == res.batch;
}) })
console.log('arr',arr);
if(arr.length>0){ if(arr.length>0){
that.$message.error("该批次已存在") that.$message.error("该批次已存在")
}else{ }else{
console.log('that.materialOptions',that.materialOptions);
that.materialOptions.forEach((item) => { that.materialOptions.forEach((item) => {
console.log('item',item);
console.log('item.batch',item.batch);
console.log('res.batch',res.batch);
console.log('item.batch == res.batch',item.batch == res.batch);
if(item.batch == res.batch){ if(item.batch == res.batch){
let obj = {}; let obj = {};
obj.wm = item.id; obj.wm = item.id;
@ -621,7 +609,6 @@ export default {
obj.counts = item.count; obj.counts = item.count;
obj.count = item.count; obj.count = item.count;
that.form.handoverb.push(obj) that.form.handoverb.push(obj)
that.$refs.scanDialog.closed();
that.getResaveMgroups(item.material); that.getResaveMgroups(item.material);
} }
}) })