|
@@ -833,6 +833,7 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<el-button round @click="resetPrintNumber">重置打印次数</el-button>
|
|
<el-button round @click="resetPrintNumber">重置打印次数</el-button>
|
|
|
|
+ <div ref="qrCodeUrl" class="qrcode"></div>
|
|
</div>
|
|
</div>
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass32">
|
|
<div class="steelMapClass32">
|
|
@@ -1060,7 +1061,7 @@
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="centerDialogVisible = false">返 回</el-button>
|
|
<el-button @click="centerDialogVisible = false">返 回</el-button>
|
|
- <el-button @click="submitSteel(this.steelMap)">确定</el-button>
|
|
|
|
|
|
+ <el-button @click="submitSteelDebounce(steelMap)">确定</el-button>
|
|
</span>
|
|
</span>
|
|
<div>
|
|
<div>
|
|
<vxe-modal
|
|
<vxe-modal
|
|
@@ -1580,10 +1581,13 @@ import { getCookie } from '@/utils/util.js'
|
|
import PathView from './mapTest.vue'
|
|
import PathView from './mapTest.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
import { downloadFile, creatImageFile } from '@/utils/base64ToBlob.js'
|
|
import { downloadFile, creatImageFile } from '@/utils/base64ToBlob.js'
|
|
|
|
+import Qrcode from 'qrcodejs2'
|
|
|
|
+import steel_outboundStatisticsVue from '../../../WMS/components/steel/steel_outboundStatistics.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PathView,
|
|
PathView,
|
|
- currentLocation
|
|
|
|
|
|
+ currentLocation,
|
|
|
|
+ Qrcode
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -1996,6 +2000,9 @@ export default {
|
|
this.getSteelReport = this.debounce(() => {
|
|
this.getSteelReport = this.debounce(() => {
|
|
this.getSteelReportDebounce()
|
|
this.getSteelReportDebounce()
|
|
}, 100)
|
|
}, 100)
|
|
|
|
+ this.submitSteelDebounce = this.debounce(obj => {
|
|
|
|
+ this.submitSteel(obj)
|
|
|
|
+ })
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -2096,14 +2103,61 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ creatQrCode(text) {
|
|
|
|
+ let qrcode = new QRCode(this.$refs.qrCodeUrl, {
|
|
|
|
+ text: text, // 需要转换为二维码的内容
|
|
|
|
+ width: 150,
|
|
|
|
+ height: 150,
|
|
|
|
+ colorDark: '#000000',
|
|
|
|
+ colorLight: '#ffffff',
|
|
|
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
|
|
+ })
|
|
|
|
+ },
|
|
submitSteel(obj) {
|
|
submitSteel(obj) {
|
|
this.$confirm('该操作会修改全部改动的内容,请确认核实后点击!', '提醒', {
|
|
this.$confirm('该操作会修改全部改动的内容,请确认核实后点击!', '提醒', {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确认',
|
|
confirmButtonText: '确认',
|
|
center: true
|
|
center: true
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
|
+ let map = obj
|
|
|
|
+ map.userName = getCookie('loginName')
|
|
|
|
+ map.shipperAddressId = this.addressId
|
|
this.axios.post('/api/v1/uc/submitSteel', this.steelMap).then(res => {
|
|
this.axios.post('/api/v1/uc/submitSteel', this.steelMap).then(res => {
|
|
- console.log(res)
|
|
|
|
|
|
+ console.log(res.data.responseMapFailed, 'res.data')
|
|
|
|
+ let _this = this
|
|
|
|
+ if (res.data.responseMapFailed.length > 0) {
|
|
|
|
+ let responseFailTitle = res.data.responseMapFailed.join(';')
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'error',
|
|
|
|
+ duration: 2500,
|
|
|
|
+ offset: '250',
|
|
|
|
+ message: responseFailTitle
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if (res.data.response.length == 0) {
|
|
|
|
+ console.log('我尽力了1')
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ _this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 1500,
|
|
|
|
+ offset: '250',
|
|
|
|
+ message: '未发现任何修改成功的记录!'
|
|
|
|
+ })
|
|
|
|
+ }, 2500)
|
|
|
|
+ } else {
|
|
|
|
+ console.log('我尽力了2')
|
|
|
|
+ let responseTitle = res.data.response.join(';')
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ _this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 2500,
|
|
|
|
+ offset: '250',
|
|
|
|
+ message: responseTitle
|
|
|
|
+ })
|
|
|
|
+ }, 2500)
|
|
|
|
+ }
|
|
|
|
+ this.operation(this.steelMap)
|
|
|
|
+ this.getSteelReport()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -3161,7 +3215,14 @@ export default {
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.steelMap = res.data.data
|
|
this.steelMap = res.data.data
|
|
|
|
+ this.steelMap.userName = getCookie('loginName')
|
|
this.addressId = row.shipperAddressId
|
|
this.addressId = row.shipperAddressId
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.qrCodeUrl.innerHTML = ''
|
|
|
|
+ if (this.steelMap.orderNo != null) {
|
|
|
|
+ this.creatQrCode(this.steelMap.orderNo)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.getAllProvince()
|
|
this.getAllProvince()
|
|
this.onchangeProvince()
|
|
this.onchangeProvince()
|
|
this.onchangeCity()
|
|
this.onchangeCity()
|
|
@@ -4458,6 +4519,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .qrcode {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 25px;
|
|
|
|
+ top: 45px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.steelMapClass3 {
|
|
.steelMapClass3 {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|