|
|
|
@ -179,6 +179,15 @@
|
|
|
|
|
:loading="sendLoading"
|
|
|
|
|
@click="handleSendAll"
|
|
|
|
|
style="margin-right: 10px;">批量发送</a-button>
|
|
|
|
|
<a-button type="primary" @click="openTime" style="margin-right: 10px;">定时订舱</a-button>
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="确认取消吗?"
|
|
|
|
|
ok-text="是"
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
@confirm="cancelTime"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="danger" style="margin-right: 10px;">取消定时</a-button>
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
@ -229,6 +238,9 @@
|
|
|
|
|
<template #shipRateTotalAmount="{ row }">
|
|
|
|
|
<span>{{ row.shipRateTotalCurrency }} {{ row.shipRateTotalAmount }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template #isJob="{ row }">
|
|
|
|
|
<a-icon type="clock-circle" style="color: green;font-size: 16px;" v-if="row.isJob" theme="filled" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #isRecvBC="{ row }">
|
|
|
|
|
<a-icon
|
|
|
|
|
type="bulb"
|
|
|
|
@ -285,17 +297,38 @@
|
|
|
|
|
<div @click="handleOpen('eid')" v-if="mskEdiFlag">MSKEID订舱</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<a-modal title="制作定时方案" @ok="handleSaveTime" :visible="timeFlag" @cancel="timeFlag = false">
|
|
|
|
|
<div>
|
|
|
|
|
<a-spin :spinning="timeLoad" >
|
|
|
|
|
<a-radio-group v-model="timeValue">
|
|
|
|
|
<div class="taskTime" v-for="item in taskTimeList" :key="item.code">
|
|
|
|
|
<div v-if="item.code == 'SpecificTimeDoOnce'">
|
|
|
|
|
<a-radio :value="item.code"></a-radio>
|
|
|
|
|
每天从 <a-date-picker
|
|
|
|
|
v-model="startTime"
|
|
|
|
|
size="small"
|
|
|
|
|
show-time
|
|
|
|
|
style="margin: 0 8px;width: 80px"
|
|
|
|
|
valueFormat="YYYY-MM-DD HH:mm"
|
|
|
|
|
format="YYYY-MM-DD HH:mm" ></a-date-picker>开始,执行一次
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT,
|
|
|
|
|
BatchSend, CheckWarningBatchSend, CheckWarningBatchCopy, BatchSendSPOT
|
|
|
|
|
mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT, BatchSetupTimerBooking,
|
|
|
|
|
BatchSend, CheckWarningBatchSend, CheckWarningBatchCopy, BatchSendSPOT, GetTimerSchemeList, BatchCancelTimerBooking
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
|
import tableSort from '@/components/tableSort'
|
|
|
|
|
import mskBookingOrder from '@/components/mskBookingOrder'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import { DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
@ -308,7 +341,12 @@ export default {
|
|
|
|
|
advanced: false,
|
|
|
|
|
mskEdiFlag: false,
|
|
|
|
|
mskSpotFlag: false,
|
|
|
|
|
startTime: '',
|
|
|
|
|
moment,
|
|
|
|
|
timeLoad: false,
|
|
|
|
|
timeValue: 'SpecificTimeDoOnce',
|
|
|
|
|
mskApiFlag: false,
|
|
|
|
|
timeFlag: false,
|
|
|
|
|
visible: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
selectedRowKeys: [],
|
|
|
|
@ -446,6 +484,19 @@ export default {
|
|
|
|
|
field: 'shipRateTotalAmount',
|
|
|
|
|
slots: { default: 'shipRateTotalAmount' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '是否定时',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '100',
|
|
|
|
|
field: 'isJob',
|
|
|
|
|
slots: { default: 'isJob' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '定时方案名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '100',
|
|
|
|
|
field: 'timerPlanName'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发送结果',
|
|
|
|
|
align: 'center',
|
|
|
|
@ -572,6 +623,19 @@ export default {
|
|
|
|
|
field: 'shipRateTotalAmount',
|
|
|
|
|
slots: { default: 'shipRateTotalAmount' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '是否定时',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '100',
|
|
|
|
|
field: 'isJob',
|
|
|
|
|
slots: { default: 'isJob' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '定时方案名称',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: '180',
|
|
|
|
|
field: 'timerPlanName'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发送结果',
|
|
|
|
|
align: 'center',
|
|
|
|
@ -590,7 +654,8 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
|
loadData: [],
|
|
|
|
|
tableHeight: 0
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
taskTimeList: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -599,12 +664,18 @@ export default {
|
|
|
|
|
created() { },
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getConfigStart()
|
|
|
|
|
this.getTaskTimeList()
|
|
|
|
|
this.tableHeight = document.body.clientHeight - 300
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toggleAdvanced() {
|
|
|
|
|
this.advanced = !this.advanced
|
|
|
|
|
},
|
|
|
|
|
getTaskTimeList() {
|
|
|
|
|
GetTimerSchemeList().then(res => {
|
|
|
|
|
this.taskTimeList = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleChange() {
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
@ -752,6 +823,55 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
openTime() {
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
|
if (select.length == 0) {
|
|
|
|
|
this.$message.warning('请至少选择一条数据')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
this.timeFlag = true
|
|
|
|
|
},
|
|
|
|
|
handleSaveTime() {
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
const data = {
|
|
|
|
|
'startTime': this.startTime,
|
|
|
|
|
'timerSchemeType': this.timeValue,
|
|
|
|
|
'ids': pkIdArr
|
|
|
|
|
}
|
|
|
|
|
this.timeLoad = true
|
|
|
|
|
BatchSetupTimerBooking(data).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('设置成功')
|
|
|
|
|
this.timeFlag = false
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
this.timeLoad = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
cancelTime() {
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
|
if (select.length == 0) {
|
|
|
|
|
this.$message.warning('请至少选择一条数据')
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
|
return item.id
|
|
|
|
|
})
|
|
|
|
|
this.loading = true
|
|
|
|
|
BatchCancelTimerBooking(pkIdArr).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('取消成功')
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleOpenCopy() {
|
|
|
|
|
this.copyMoreForm.setFieldsValue({ number: 1 })
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
@ -1060,7 +1180,6 @@ export default {
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.form.pageNo = this.queryParam.pageNo
|
|
|
|
|
this.form.pageSize = this.queryParam.pageSize
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
if (this.form.etd) {
|
|
|
|
|
this.form.etdBegin = this.form.etd[0]
|
|
|
|
|
this.form.etdEnd = this.form.etd[1]
|
|
|
|
@ -1200,4 +1319,10 @@ export default {
|
|
|
|
|
border: 1px solid #d1cfcf;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.taskTime {
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border: 1px solid #d7cbcb;
|
|
|
|
|
padding: 5px 15px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|