|
@@ -832,7 +832,7 @@
|
|
>反关闭运单</el-button
|
|
>反关闭运单</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- <el-button round @click="resetPrintNumber">重置打印次数</el-button>
|
|
|
|
|
|
+ <el-button round @click="resetPrintNumber">重置打印次数</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass3">
|
|
<div class="steelMapClass32">
|
|
<div class="steelMapClass32">
|
|
@@ -1578,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,creatImageFile } from '@/utils/base64ToBlob.js'
|
|
|
|
|
|
+import { downloadFile, creatImageFile } from '@/utils/base64ToBlob.js'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PathView,
|
|
PathView,
|
|
@@ -2095,14 +2095,16 @@ 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("重置失败!");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ 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
|
|
@@ -2133,7 +2135,7 @@ export default {
|
|
this.capacityId = selection.capacityId
|
|
this.capacityId = selection.capacityId
|
|
},
|
|
},
|
|
//批量修改车牌号
|
|
//批量修改车牌号
|
|
- async batchEditCapacity() {
|
|
|
|
|
|
+ batchEditCapacity() {
|
|
if (this.capacityId && this.capacityNo) {
|
|
if (this.capacityId && this.capacityNo) {
|
|
if (
|
|
if (
|
|
!(
|
|
!(
|
|
@@ -2147,7 +2149,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
console.log('this.batchCapacityList', this.batchCapacityList)
|
|
console.log('this.batchCapacityList', this.batchCapacityList)
|
|
- this.batchCapacityList.forEach(row => {
|
|
|
|
|
|
+ this.batchCapacityList.forEach(row => {
|
|
row.capacityId = this.capacityId
|
|
row.capacityId = this.capacityId
|
|
row.capacityNumber = this.capacityNo
|
|
row.capacityNumber = this.capacityNo
|
|
//是否校验GPS
|
|
//是否校验GPS
|
|
@@ -2160,18 +2162,16 @@ export default {
|
|
if (row.capacityIds == 0) {
|
|
if (row.capacityIds == 0) {
|
|
row.lineId = this.lineSpelling[row.size]
|
|
row.lineId = this.lineSpelling[row.size]
|
|
}
|
|
}
|
|
- })
|
|
|
|
- let map={
|
|
|
|
- list:this.batchCapacityList
|
|
|
|
- }
|
|
|
|
- await this.axios
|
|
|
|
- .post('/api/v1/ams/batchUpdateCapacity',map )
|
|
|
|
- .then(res => {
|
|
|
|
- if (res.data.code == '200') {
|
|
|
|
- this.$message.success('派车成功!')
|
|
|
|
- } else {
|
|
|
|
- this.$message.error(res.data.data)
|
|
|
|
- }
|
|
|
|
|
|
+ })
|
|
|
|
+ let map = {
|
|
|
|
+ list: this.batchCapacityList
|
|
|
|
+ }
|
|
|
|
+ this.axios.post('/api/v1/ams/batchUpdateCapacity', map).then(res => {
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ this.$message.success('派车成功!')
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.data.data)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
this.batchCarrierVisible = false
|
|
this.batchCarrierVisible = false
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
@@ -2215,18 +2215,18 @@ export default {
|
|
},
|
|
},
|
|
mergeSplit() {
|
|
mergeSplit() {
|
|
//如果勾选了多条则执行合并操作,如果勾选了一条则执行拆分操作
|
|
//如果勾选了多条则执行合并操作,如果勾选了一条则执行拆分操作
|
|
- if (
|
|
|
|
- this.$refs.tableRef.selection.filter(e => {
|
|
|
|
- return e.entryGateTime != null
|
|
|
|
- }).length > 0
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- type: 'warning',
|
|
|
|
- message: '该车已进厂不允许操作',
|
|
|
|
- offset: '250',
|
|
|
|
- duration: '2300'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // if (
|
|
|
|
+ // this.$refs.tableRef.selection.filter(e => {
|
|
|
|
+ // return e.entryGateTime != null
|
|
|
|
+ // }).length > 0
|
|
|
|
+ // ) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // message: '该车已进厂不允许操作',
|
|
|
|
+ // offset: '250',
|
|
|
|
+ // duration: '2300'
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
if (this.$refs.tableRef.selection.length == 1) {
|
|
if (this.$refs.tableRef.selection.length == 1) {
|
|
this.splitOrder()
|
|
this.splitOrder()
|
|
} else if (this.$refs.tableRef.selection.length > 1) {
|
|
} else if (this.$refs.tableRef.selection.length > 1) {
|
|
@@ -2274,7 +2274,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: '拆分失败',
|
|
|
|
|
|
+ message: res.data.data,
|
|
offset: '250',
|
|
offset: '250',
|
|
duration: '2500'
|
|
duration: '2500'
|
|
})
|
|
})
|
|
@@ -2300,7 +2300,7 @@ export default {
|
|
},
|
|
},
|
|
mergeOrder() {
|
|
mergeOrder() {
|
|
this.$confirm(
|
|
this.$confirm(
|
|
- `勾选了${this.$refs.tableRef.selection.length}条运单将执行合并操作`,
|
|
|
|
|
|
+ `勾选了${this.$refs.tableRef.selection.length}条运单将执行合并操作,此操作不可逆!`,
|
|
'提醒',
|
|
'提醒',
|
|
{
|
|
{
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -2314,6 +2314,9 @@ export default {
|
|
map.saleOrderMaterialId = e.saleOrderMaterialId
|
|
map.saleOrderMaterialId = e.saleOrderMaterialId
|
|
map.orderId = e.orderId
|
|
map.orderId = e.orderId
|
|
map.saleOrderId = e.saleOrderId
|
|
map.saleOrderId = e.saleOrderId
|
|
|
|
+ map.orderNo = e.orderNo
|
|
|
|
+ map.capacityNo = e.capacityNo
|
|
|
|
+ map.userName = getCookie('loginName')
|
|
return map
|
|
return map
|
|
})
|
|
})
|
|
let map = {
|
|
let map = {
|
|
@@ -2327,14 +2330,14 @@ export default {
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
- message: '合并成功',
|
|
|
|
|
|
+ message: '合并成功,请提醒驾驶员!',
|
|
offset: '250',
|
|
offset: '250',
|
|
- duration: '2500'
|
|
|
|
|
|
+ duration: '3000'
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'error',
|
|
type: 'error',
|
|
- message: '合并失败',
|
|
|
|
|
|
+ message: res.data.data,
|
|
offset: '250',
|
|
offset: '250',
|
|
duration: '2500'
|
|
duration: '2500'
|
|
})
|
|
})
|
|
@@ -2653,13 +2656,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.arriavlList = []
|
|
this.arriavlList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- creatImageFile(e,'file1-'+index).then((res)=>{
|
|
|
|
|
|
+ creatImageFile(e, 'file1-' + index).then(res => {
|
|
this.arriavlList.push({
|
|
this.arriavlList.push({
|
|
name: 'file' + index,
|
|
name: 'file' + index,
|
|
raw: res,
|
|
raw: res,
|
|
url: e
|
|
url: e
|
|
})
|
|
})
|
|
- });
|
|
|
|
|
|
+ })
|
|
})
|
|
})
|
|
this.fileListArrival = this.arriavlList
|
|
this.fileListArrival = this.arriavlList
|
|
}
|
|
}
|
|
@@ -2672,13 +2675,13 @@ export default {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
this.receiveList = []
|
|
this.receiveList = []
|
|
res.data.forEach((e, index) => {
|
|
res.data.forEach((e, index) => {
|
|
- creatImageFile(e,'file2-'+index).then((res)=>{
|
|
|
|
|
|
+ creatImageFile(e, 'file2-' + index).then(res => {
|
|
this.receiveList.push({
|
|
this.receiveList.push({
|
|
name: 'file' + index,
|
|
name: 'file' + index,
|
|
raw: res,
|
|
raw: res,
|
|
url: e
|
|
url: e
|
|
})
|
|
})
|
|
- });
|
|
|
|
|
|
+ })
|
|
})
|
|
})
|
|
this.fileListReceive = this.receiveList
|
|
this.fileListReceive = this.receiveList
|
|
}
|
|
}
|
|
@@ -2740,7 +2743,7 @@ export default {
|
|
this.$message.success('上传成功!')
|
|
this.$message.success('上传成功!')
|
|
this.steelMap.arrivalAddress = this.location
|
|
this.steelMap.arrivalAddress = this.location
|
|
this.closeUpload()
|
|
this.closeUpload()
|
|
- this.refresh();
|
|
|
|
|
|
+ this.refresh()
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -2778,7 +2781,6 @@ export default {
|
|
},
|
|
},
|
|
//筛选
|
|
//筛选
|
|
filterChange(obj) {
|
|
filterChange(obj) {
|
|
- debugger
|
|
|
|
//承运商筛选,后续有待优化
|
|
//承运商筛选,后续有待优化
|
|
if (typeof obj.carrierList != 'undefined' && obj.carrierList.length > 0) {
|
|
if (typeof obj.carrierList != 'undefined' && obj.carrierList.length > 0) {
|
|
this.filterMap.carrierList = obj.carrierList
|
|
this.filterMap.carrierList = obj.carrierList
|
|
@@ -3653,6 +3655,7 @@ export default {
|
|
let map = this.steelMap
|
|
let map = this.steelMap
|
|
map.operateName = getCookie('loginName')
|
|
map.operateName = getCookie('loginName')
|
|
map.isCloseEas = Number(0)
|
|
map.isCloseEas = Number(0)
|
|
|
|
+ map.userName = getCookie('loginName')
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
text: '正在关闭车辆',
|
|
text: '正在关闭车辆',
|
|
@@ -3852,6 +3855,7 @@ export default {
|
|
let map = this.steelMap
|
|
let map = this.steelMap
|
|
map.isCloseEas = Number(1)
|
|
map.isCloseEas = Number(1)
|
|
map.isNewCar = Number(1)
|
|
map.isNewCar = Number(1)
|
|
|
|
+ map.userName = getCookie('loginName')
|
|
map.shipperAddressId = this.addressId
|
|
map.shipperAddressId = this.addressId
|
|
this.axios
|
|
this.axios
|
|
.post('/api/v1/ams/updateCarAddress', map)
|
|
.post('/api/v1/ams/updateCarAddress', map)
|
|
@@ -3889,6 +3893,7 @@ export default {
|
|
map.isCloseEas = Number(1)
|
|
map.isCloseEas = Number(1)
|
|
map.isNewCar = Number(1)
|
|
map.isNewCar = Number(1)
|
|
map.shipperAddressId = this.addressId
|
|
map.shipperAddressId = this.addressId
|
|
|
|
+ map.userName = getCookie('loginName')
|
|
this.axios
|
|
this.axios
|
|
.post('/api/v1/ams/updateCarAddress', map)
|
|
.post('/api/v1/ams/updateCarAddress', map)
|
|
.then(res => {
|
|
.then(res => {
|