下货纸比对

szh_zidingyibiaoti
lilu 2 years ago
parent 4969a5e5df
commit dc63688412

@ -797,3 +797,11 @@ export function GetAllSelectData(parameter) {
})
}
// 添加下货纸功能
export function ExcuteShippingOrderCompareBatch(parameter) {
return axios({
url: '/TaskShippingOrderCompare/ExcuteShippingOrderCompareBatch',
method: 'post',
params: parameter
})
}

@ -188,7 +188,7 @@
</a-form-model-item>
</a-col>
</template>
<template v-if="['VOLTA', 'WHL', 'CSL', 'ESL', 'MSC'].includes(details.carrierid)">
<template v-if="['VOLTA', 'WHL', 'CSL', 'MSC'].includes(details.carrierid)">
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="7">
<a-form-model-item
class="from-label"

@ -99,6 +99,16 @@
<div class="nav" @click="copyBookingMore"><i class="iconfont icon-fuzhi1"></i>复制多票</div>
<div class="nav" @click="batchEditing"><i class="iconfont icon-bianjiwenjian"></i>批量编辑</div>
<div class="nav"><i class="iconfont icon-shujushangchuan-shixin"></i>批量VGM</div>
<!-- <div class="nav" @click="excuteShippingOrderCompareBatch"><i class="iconfont icon-weibiaoti--"></i>下货纸比对</div> -->
<a-popconfirm
title="确定进行下货纸比对?"
ok-text="是"
cancel-text="否"
@confirm="excuteShippingOrderCompareBatch"
@cancel="cancelRemove"
>
<div class="nav"><i class="iconfont icon-shanchu2"></i>下货纸比对</div>
</a-popconfirm>
<a-popconfirm
title="确定删除当前选中订舱?"
ok-text="是"
@ -582,7 +592,8 @@ import {
GetService,
GetForwarderlist,
DjyUserConfigMulti,
DeleteBookingOrder
DeleteBookingOrder,
ExcuteShippingOrderCompareBatch
} from '@/api/modular/main/BookingLedger'
import initData from './modules/initData'
@ -1784,6 +1795,27 @@ export default {
},
checkboxChangeEvent () {
console.log('== 选中,取消选中 ==', this.$refs.xGrid.getCheckboxRecords())
},
excuteShippingOrderCompareBatch () {
const select = this.$refs.xGrid.getCheckboxRecords()
const arr = select.map((item, index) => { return item.id })
if (arr.length === 0) {
this.$message.error('请选择操作订单')
return false
}
ExcuteShippingOrderCompareBatch({
bookingIds: arr
})
.then(res => {
if (res.success) {
this.$message.success(res.data.msg)
} else {
this.$message.error(res.data.msg)
}
})
.catch(err => {
console.log(err)
})
}
}
}

Loading…
Cancel
Save