|
@@ -832,6 +832,7 @@
|
|
>反关闭运单</el-button
|
|
>反关闭运单</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-button round @click="resetPrintNumber">重置打印次数</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass32">
|
|
<div class="steelMapClass32">
|
|
@@ -1165,9 +1166,10 @@
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
:limit="12"
|
|
:limit="12"
|
|
:on-change="fileChange1"
|
|
:on-change="fileChange1"
|
|
|
|
+ :on-remove="fileChange1"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
- accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
|
|
|
|
+ accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
@@ -1181,9 +1183,10 @@
|
|
action="null"
|
|
action="null"
|
|
:limit="11"
|
|
:limit="11"
|
|
:on-change="fileChange2"
|
|
:on-change="fileChange2"
|
|
|
|
+ :on-remove="fileChange2"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
- accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
|
|
|
|
+ accept=".jpg,.jpeg,.png,.gif,.bmp,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
@@ -1575,7 +1578,7 @@ import { sjTime, isVehicleNumber } from '@/utils/sharedJsFile'
|
|
import { getCookie } from '@/utils/util.js'
|
|
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 } from '@/utils/base64ToBlob.js'
|
|
|
|
|
|
+import { downloadFile,creatImageFile } from '@/utils/base64ToBlob.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PathView,
|
|
PathView,
|
|
@@ -2092,6 +2095,15 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ resetPrintNumber(){
|
|
|
|
+ this.axios.post('/api/v1/bp/resetPrintNumber',this.steelMap).then((res)=>{
|
|
|
|
+ if(res.data.status=='succeed'){
|
|
|
|
+ this.$message.success("重置成功!");
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error("重置失败!");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
showBatchCapacity() {
|
|
showBatchCapacity() {
|
|
this.capacityNo = null
|
|
this.capacityNo = null
|
|
this.capacityId = null
|
|
this.capacityId = null
|
|
@@ -2135,8 +2147,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
console.log('this.batchCapacityList', this.batchCapacityList)
|
|
console.log('this.batchCapacityList', this.batchCapacityList)
|
|
- // this.batchCapacityList.forEach(row => {})
|
|
|
|
- for (let i = 0; i < this.batchCapacityList.length; i++) {
|
|
|
|
|
|
+ this.batchCapacityList.forEach(row => {
|
|
row.capacityId = this.capacityId
|
|
row.capacityId = this.capacityId
|
|
row.capacityNumber = this.capacityNo
|
|
row.capacityNumber = this.capacityNo
|
|
//是否校验GPS
|
|
//是否校验GPS
|
|
@@ -2146,31 +2157,22 @@ export default {
|
|
this.$message.error('请先授权承运商!')
|
|
this.$message.error('请先授权承运商!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (row.capacityIds != 0) {
|
|
|
|
- await this.axios
|
|
|
|
- .post('/api/v1/ams/updateCapacityNumberInFactory', row)
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- console.log(res.data)
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(res.data.data)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (row.capacityIds == 0) {
|
|
row.lineId = this.lineSpelling[row.size]
|
|
row.lineId = this.lineSpelling[row.size]
|
|
- let arr = []
|
|
|
|
- arr.push(row)
|
|
|
|
- await this.axios
|
|
|
|
- .post('/api/v1/ams/dispatchSteelOrder', arr)
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ let map={
|
|
|
|
+ list:this.batchCapacityList
|
|
|
|
+ }
|
|
|
|
+ await this.axios
|
|
|
|
+ .post('/api/v1/ams/batchUpdateCapacity',map )
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == '200') {
|
|
if (res.data.code == '200') {
|
|
this.$message.success('派车成功!')
|
|
this.$message.success('派车成功!')
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.data.data)
|
|
this.$message.error(res.data.data)
|
|
}
|
|
}
|
|
- })
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ })
|
|
this.batchCarrierVisible = false
|
|
this.batchCarrierVisible = false
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
} else {
|
|
} else {
|
|
@@ -2651,10 +2653,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.arriavlList = []
|
|
this.arriavlList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- this.arriavlList.push({
|
|
|
|
- name: 'file' + index,
|
|
|
|
- url: e
|
|
|
|
- })
|
|
|
|
|
|
+ creatImageFile(e,'file1-'+index).then((res)=>{
|
|
|
|
+ this.arriavlList.push({
|
|
|
|
+ name: 'file' + index,
|
|
|
|
+ raw: res,
|
|
|
|
+ url: e
|
|
|
|
+ })
|
|
|
|
+ });
|
|
})
|
|
})
|
|
this.fileListArrival = this.arriavlList
|
|
this.fileListArrival = this.arriavlList
|
|
}
|
|
}
|
|
@@ -2667,10 +2672,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.receiveList = []
|
|
this.receiveList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- this.receiveList.push({
|
|
|
|
- name: 'file' + index,
|
|
|
|
- url: e
|
|
|
|
- })
|
|
|
|
|
|
+ creatImageFile(e,'file2-'+index).then((res)=>{
|
|
|
|
+ this.receiveList.push({
|
|
|
|
+ name: 'file' + index,
|
|
|
|
+ raw: res,
|
|
|
|
+ url: e
|
|
|
|
+ })
|
|
|
|
+ });
|
|
})
|
|
})
|
|
this.fileListReceive = this.receiveList
|
|
this.fileListReceive = this.receiveList
|
|
}
|
|
}
|
|
@@ -2730,7 +2738,9 @@ export default {
|
|
this.axios(options).then(res => {
|
|
this.axios(options).then(res => {
|
|
console.log('receiveRes:', res)
|
|
console.log('receiveRes:', res)
|
|
this.$message.success('上传成功!')
|
|
this.$message.success('上传成功!')
|
|
|
|
+ this.steelMap.arrivalAddress = this.location
|
|
this.closeUpload()
|
|
this.closeUpload()
|
|
|
|
+ this.refresh();
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|