|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="hasResult" style="overflow:auto;flex-grow:1;">
|
|
<div v-if="hasResult" style="overflow:auto;flex-grow:1;">
|
|
|
- <template v-if="title!='缴库确认'">
|
|
|
|
|
|
|
+ <template v-if="title=='装箱扫描'">
|
|
|
<div class="box-content">
|
|
<div class="box-content">
|
|
|
<div class="box-title">
|
|
<div class="box-title">
|
|
|
装箱信息
|
|
装箱信息
|
|
@@ -181,12 +181,12 @@ export default {
|
|
|
this.$alert({ showCancel: false, title: '提示', content: '二维码错误' }, () => { })
|
|
this.$alert({ showCancel: false, title: '提示', content: '二维码错误' }, () => { })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- if (this.title != '缴库确认' && type == 'D') {
|
|
|
|
|
|
|
+ if (this.title == '装箱扫描' && type == 'D') {
|
|
|
this.$alert({ showCancel: false, title: '提示', content: '扫描二维码类别错误' }, () => { })
|
|
this.$alert({ showCancel: false, title: '提示', content: '扫描二维码类别错误' }, () => { })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.title == '缴库确认' && type == 'Z') {
|
|
|
|
|
|
|
+ if (this.title != '装箱扫描' && type == 'Z') {
|
|
|
this.$alert({ showCancel: false, title: '提示', content: '扫描二维码类别错误' }, () => { })
|
|
this.$alert({ showCancel: false, title: '提示', content: '扫描二维码类别错误' }, () => { })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
@@ -249,10 +249,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
check(id) {
|
|
check(id) {
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
|
- var list = []
|
|
|
|
|
|
|
+ var list=[]
|
|
|
list.push(id)
|
|
list.push(id)
|
|
|
if (this.title == '装箱扫描') {
|
|
if (this.title == '装箱扫描') {
|
|
|
- axios.post('/PackingScan/PackingScan', list).then(res => {
|
|
|
|
|
|
|
+ axios.post('/Hold/PackingScan?packingid=' + id).then(res => {
|
|
|
|
|
|
|
|
if (res.data.data == 'yes') {
|
|
if (res.data.data == 'yes') {
|
|
|
this.$modal.success({ msg: '扫描成功', duration: 1500 })
|
|
this.$modal.success({ msg: '扫描成功', duration: 1500 })
|
|
@@ -270,9 +270,68 @@ export default {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (this.title == '装配完工') {
|
|
|
|
|
+ axios.post('/Hold/AssemblyScan?tracedtlid=' + id).then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ if (res.data.data == 'yes') {
|
|
|
|
|
+ this.$modal.success({ msg: '装配完工成功', duration: 1500 })
|
|
|
|
|
+ resolve(true)
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: res.data.error }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(res => {
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: '已扫描或未到可以装配完工状态' }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (this.title == '打压完工') {
|
|
|
|
|
+ axios.post('/Hold/ScanSuppress?tracedtlid=' + id).then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ if (res.data.data == 'yes') {
|
|
|
|
|
+ this.$modal.success({ msg: '打压完工成功', duration: 1500 })
|
|
|
|
|
+ resolve(true)
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: res.data.error }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(res => {
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: '已扫描或未到可以打压完工状态' }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (this.title == '喷漆完工') {
|
|
|
|
|
+ axios.post('/SprayPaint?tracedtlid=' + id).then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ if (res.data.data == 'yes') {
|
|
|
|
|
+ this.$modal.success({ msg: '喷漆完工', duration: 1500 })
|
|
|
|
|
+ resolve(true)
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: res.data.error }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(res => {
|
|
|
|
|
+ this.$alert({ showCancel: false, title: '提示', content: '已扫描或未到可以喷漆完工状态' }, () => { })
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if (this.title == '检测扫描') {
|
|
if (this.title == '检测扫描') {
|
|
|
- axios.post('/PackingTesting/PackingTestingScanning', list).then(res => {
|
|
|
|
|
|
|
+ axios.post('/Hold/TestingScan?tracedtlid='+id, list).then(res => {
|
|
|
|
|
|
|
|
if (res.data.data == 'yes') {
|
|
if (res.data.data == 'yes') {
|
|
|
this.$modal.success({ msg: '检测成功', duration: 1500 })
|
|
this.$modal.success({ msg: '检测成功', duration: 1500 })
|
|
@@ -291,7 +350,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.title == '缴库确认') {
|
|
if (this.title == '缴库确认') {
|
|
|
- axios.post('/TreasuryManagement/TreasuryManagementScanning', list).then(res => {
|
|
|
|
|
|
|
+ axios.post('/Hold/TreasuryScan?tracedtlid='+id, list).then(res => {
|
|
|
|
|
|
|
|
if (res.data.data == 'yes') {
|
|
if (res.data.data == 'yes') {
|
|
|
this.$modal.success({ msg: '缴库成功', duration: 1500 })
|
|
this.$modal.success({ msg: '缴库成功', duration: 1500 })
|