Browse Source

包装

langfang-develop
wangxy 3 years ago
parent
commit
ec9358a46e
1 changed files with 34 additions and 24 deletions
  1. +34
    -24
      src/views/quality/pkg.vue

+ 34
- 24
src/views/quality/pkg.vue View File

@ -205,30 +205,40 @@ export default {
this.choosePkg(code) //
} else { //
//
api.checkbarcode(code).then((res) => {
if (res.code === 200) {
if (res.data.InfoType === "doing") { // doing !
this.$confirm(`是否要创建包装单`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
this.isVisible = true
this.tempData = res.data.Items
})
} else if (res.data.InfoType === "success") { //
this.getPackorder() //
this.msgSuccess(res.data.Message)
} else if (res.data.InfoType === "waiting") { //
this.msgError(res.data.Message)
} else if (res.data.InfoType === 'fail') {
this.msgError(res.data.Message)
}
} else {
this.msgError(res.msg)
}
})
this.msgError('请手动创建包装项')
// this.$confirm(``, '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning',
// })
// .then(() => {
// this.isVisible = true
// this.tempData = res.data.Items
// })
// api.checkbarcode(code).then((res) => {
// if (res.code === 200) {
// if (res.data.InfoType === "doing") { // doing !
// this.$confirm(``, '', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning',
// })
// .then(() => {
// this.isVisible = true
// this.tempData = res.data.Items
// })
// } else if (res.data.InfoType === "success") { //
// this.getPackorder() //
// this.msgSuccess(res.data.Message)
// } else if (res.data.InfoType === "waiting") { //
// this.msgError(res.data.Message)
// } else if (res.data.InfoType === 'fail') {
// this.msgError(res.data.Message)
// }
// } else {
// this.msgError(res.msg)
// }
// })
}
this.isCodeInList = false
}


Loading…
Cancel
Save