|
|
|
@ -0,0 +1,644 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="Main">
|
|
|
|
|
<a-spin :spinning="spinning">
|
|
|
|
|
<div class="LeftHead">
|
|
|
|
|
<p>
|
|
|
|
|
<a-icon style="color: red;margin-right: 10px;font-size: 16px" type="exclamation-circle" />
|
|
|
|
|
重要提醒({{ tableList.cautionNoticeTypeName }})
|
|
|
|
|
-{{ tableList.carrier }} </p>
|
|
|
|
|
<p>时间:{{ tableList.createTime }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<a-row style="font-weight: bold">
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
提单号:{{ tableList.mblNo }}
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
原值:{{ tableList.origVal }}
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row style="font-weight: bold">
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
差异内容:{{ tableList.cautionNoticeTypeName }}
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
新值:{{ tableList.newVal }}
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row style="margin-top: 40px;padding-left: 120px" type="flex" :gutter="16">
|
|
|
|
|
<a-col>
|
|
|
|
|
<a-button type="primary" @click="OpenUser">
|
|
|
|
|
转移任务
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col>
|
|
|
|
|
<a-button type="primary" @click="FnCompleteTask">
|
|
|
|
|
完成任务
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col>
|
|
|
|
|
<a-button type="danger" @click="FnCancelTask">
|
|
|
|
|
取消任务
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-spin>
|
|
|
|
|
<a-modal v-model="visible" title="生成方式选择" @ok="handleOk" width="40%">
|
|
|
|
|
<a-radio-group default-value="GEN_BOOKING_SLOT" v-model="CreateData.generateMethod">
|
|
|
|
|
<a-radio value="GEN_BOOKING_SLOT">
|
|
|
|
|
直接生成舱位和订舱
|
|
|
|
|
</a-radio>
|
|
|
|
|
<a-radio value="GEN_BOOKING">
|
|
|
|
|
只生成订舱
|
|
|
|
|
</a-radio>
|
|
|
|
|
<a-radio value="GEN_SLOT">
|
|
|
|
|
只生成舱位
|
|
|
|
|
</a-radio>
|
|
|
|
|
<a-radio value="GEN_EXIST_BOOKING">
|
|
|
|
|
匹配已有订舱
|
|
|
|
|
</a-radio>
|
|
|
|
|
</a-radio-group>
|
|
|
|
|
<p class="modaltitle">订舱录入</p>
|
|
|
|
|
<a-form class="Editing">
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="16">
|
|
|
|
|
<a-form-item label="委托单位:" :label-col="formItemLayout.labelCol3" :wrapper-col="formItemLayout.wrapperCol3">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.customerId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchCustomer"
|
|
|
|
|
@change="ChangeCustomer">
|
|
|
|
|
<a-select-option v-for="(item, index) in CustomerList" :key="index" :value="item.id">
|
|
|
|
|
{{ item.shortName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="联系人:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.customerContactId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="ChangeCustomerList">
|
|
|
|
|
<a-select-option v-for="item in customerByList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="销售:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.saleId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="e => {
|
|
|
|
|
ChangeUser(e, 'saleName')
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="操作:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.opId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="e => {
|
|
|
|
|
ChangeUser(e, 'opName')
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="单证:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.docId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="e => {
|
|
|
|
|
ChangeUser(e, 'docName')
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="航线操作:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.routeID"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="e => {
|
|
|
|
|
ChangeUser(e, 'route')
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
<a-form-item label="航线管理:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="CreateData.lineManageID"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser"
|
|
|
|
|
@change="e => {
|
|
|
|
|
ChangeUser(e, 'lineManage')
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="16">
|
|
|
|
|
<a-form-item label="操作备注:" :label-col="formItemLayout.labelCol3" :wrapper-col="formItemLayout.wrapperCol3">
|
|
|
|
|
<a-input v-model="CreateData.czRemark" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="16">
|
|
|
|
|
<a-form-item label="申请箱使:" :label-col="formItemLayout.labelCol3" :wrapper-col="formItemLayout.wrapperCol3">
|
|
|
|
|
<a-input v-model="CreateData.shenQingXiangShi" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="16">
|
|
|
|
|
<a-form-item label="服务项目:" :label-col="formItemLayout.labelCol3" :wrapper-col="formItemLayout.wrapperCol3">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div
|
|
|
|
|
class="items"
|
|
|
|
|
v-for="(serive, sindex) in bookingServiceItem"
|
|
|
|
|
:key="sindex"
|
|
|
|
|
:class="{ active: serive.isYield }"
|
|
|
|
|
@click="saveService(serive)">
|
|
|
|
|
{{ serive.serviceProjectName }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-form>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<a-modal v-model="UserVisible" title="转移任务" @ok="UserhandleOk">
|
|
|
|
|
<a-form>
|
|
|
|
|
<a-form-item label="接收人:" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="UserId"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
@search="SearchUser">
|
|
|
|
|
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-form>
|
|
|
|
|
</a-modal>
|
|
|
|
|
<a-modal v-model="compareResultFlag" :footer="null">
|
|
|
|
|
<div v-for="(item, index) in compareResultList" :key="index">
|
|
|
|
|
<span> {{ item.fieldName }}:{{ item.reqVal }}</span>
|
|
|
|
|
<span style="margin: 0 10px;">变更为</span>
|
|
|
|
|
<span v-html="item.mergeHtml"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</a-modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
CutDateGetInfoByTaskId,
|
|
|
|
|
TransferTask,
|
|
|
|
|
CreateBookingAndSlot,
|
|
|
|
|
TaskManageBCSendEmai1,
|
|
|
|
|
CompleteTask,
|
|
|
|
|
CancelTaskBC,
|
|
|
|
|
GetInfoByTaskIdNotice
|
|
|
|
|
} from '@/api/modular/main/TaskmanageList'
|
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
import { DjyCustomerSuggest, GetSysUserPage, DjyCustomerContacts } from '@/api/modular/main/BookingLedger'
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
CustomerList: [],
|
|
|
|
|
CreateData: {},
|
|
|
|
|
UserId: '',
|
|
|
|
|
value: '',
|
|
|
|
|
type: '',
|
|
|
|
|
customerByList: [],
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'mblNo',
|
|
|
|
|
title: '提单号',
|
|
|
|
|
key: 'mblNo',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '船名/航次',
|
|
|
|
|
dataIndex: 'vessel',
|
|
|
|
|
key: 'vessel',
|
|
|
|
|
align: 'center',
|
|
|
|
|
scopedSlots: { customRender: 'vessel' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '样单截止时间',
|
|
|
|
|
dataIndex: 'siCutDateTxt',
|
|
|
|
|
key: 'siCutDateTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '开港时间',
|
|
|
|
|
dataIndex: 'cyOpenDateTxt',
|
|
|
|
|
key: 'cyOpenDateTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '截港时间',
|
|
|
|
|
dataIndex: 'cyCutoffTimeTxt',
|
|
|
|
|
key: 'cyCutoffTimeTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '舱单-入港清单截止时间',
|
|
|
|
|
dataIndex: 'manifestCutDateTxt',
|
|
|
|
|
key: 'manifestCutDateTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'MDGF提交截止时间',
|
|
|
|
|
dataIndex: 'mdgfCutDateTxt',
|
|
|
|
|
key: 'mdgfCutDateTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'VGM截止时间',
|
|
|
|
|
dataIndex: 'vgmCutoffTimeTxt',
|
|
|
|
|
key: 'vgmCutoffTimeTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '海关放行截止时间',
|
|
|
|
|
dataIndex: 'closingDateTxt',
|
|
|
|
|
key: 'closingDateTxt',
|
|
|
|
|
align: 'center'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '已发通知',
|
|
|
|
|
dataIndex: 'bookingId',
|
|
|
|
|
key: 'bookingId',
|
|
|
|
|
align: 'center',
|
|
|
|
|
scopedSlots: { customRender: 'bookingId' }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '订舱',
|
|
|
|
|
dataIndex: 'bookingId1',
|
|
|
|
|
key: 'bookingId1',
|
|
|
|
|
align: 'center'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
compareResultFlag: false,
|
|
|
|
|
formItemLayout: {
|
|
|
|
|
labelCol1: { span: 6 },
|
|
|
|
|
wrapperCol1: { span: 18 },
|
|
|
|
|
labelCol2: { span: 8 },
|
|
|
|
|
wrapperCol2: { span: 16 },
|
|
|
|
|
labelCol3: { span: 4 },
|
|
|
|
|
wrapperCol3: { span: 20 },
|
|
|
|
|
labelCol4: { span: 8 },
|
|
|
|
|
wrapperCol4: { span: 16 },
|
|
|
|
|
labelCol5: { span: 14 },
|
|
|
|
|
wrapperCol5: { span: 10 },
|
|
|
|
|
labelCol6: { span: 8 },
|
|
|
|
|
wrapperCol6: { span: 16 }
|
|
|
|
|
},
|
|
|
|
|
visible: false,
|
|
|
|
|
UserVisible: false,
|
|
|
|
|
isPdf: '',
|
|
|
|
|
compareResultList: [],
|
|
|
|
|
href: '',
|
|
|
|
|
carrier: '',
|
|
|
|
|
time: '',
|
|
|
|
|
spinning: false,
|
|
|
|
|
tableList: [],
|
|
|
|
|
bookingServiceItem: [],
|
|
|
|
|
pdfUrl: '',
|
|
|
|
|
UserList: [],
|
|
|
|
|
fileCategory: 'BC_MODIFY'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters([
|
|
|
|
|
'userInfo'
|
|
|
|
|
])
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'$route': {
|
|
|
|
|
immediate: true,
|
|
|
|
|
handler(newValue, oldValue) {
|
|
|
|
|
if (newValue.path === '/commontaskmanage/cautionNotice') {
|
|
|
|
|
this.getList()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
SearchCustomer(e) {
|
|
|
|
|
DjyCustomerSuggest({ keyword: e, type: 'consignor' }).then(res => {
|
|
|
|
|
this.CustomerList = res.data.rows
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
OpenUser() {
|
|
|
|
|
this.UserId = ''
|
|
|
|
|
this.UserVisible = true
|
|
|
|
|
},
|
|
|
|
|
ChangeCustomer(e) {
|
|
|
|
|
this.CustomerList.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
this.CreateData.customerName = item.shortName
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
DjyCustomerContacts({ customerId: e }).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.customerByList = res.data
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
ChangeCustomerList(e) {
|
|
|
|
|
this.customerByList.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
this.CreateData.customerContactName = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleSendMail() {
|
|
|
|
|
TaskManageBCSendEmai1({ taskPKId: this.$route.query.taskPKId }).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
FnCancelTask() {
|
|
|
|
|
const ApiData = {
|
|
|
|
|
taskPKId: this.$route.query.taskPKId
|
|
|
|
|
}
|
|
|
|
|
CancelTaskBC(ApiData).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
SearchUser(e) {
|
|
|
|
|
GetSysUserPage({ name: e }).then(res => {
|
|
|
|
|
this.UserList = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
ChangeUser(e, Tname) {
|
|
|
|
|
this.UserList.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.CreateData[Tname] = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
saveService(data) {
|
|
|
|
|
data.isYield = !data.isYield
|
|
|
|
|
},
|
|
|
|
|
FnCompleteTask() {
|
|
|
|
|
const ApiData = [this.$route.query.taskPKId]
|
|
|
|
|
CompleteTask(ApiData).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.spinning = true
|
|
|
|
|
const ApiData = {
|
|
|
|
|
taskPKId: this.$route.query.taskPKId
|
|
|
|
|
}
|
|
|
|
|
GetInfoByTaskIdNotice(ApiData).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.tableList = res.data
|
|
|
|
|
if (res.data.length > 0) {
|
|
|
|
|
this.time = res.data[0].noticeDate
|
|
|
|
|
this.carrier = res.data[0].carrier
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.success)
|
|
|
|
|
}
|
|
|
|
|
this.spinning = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleOk() {
|
|
|
|
|
const projectList = []
|
|
|
|
|
this.bookingServiceItem.forEach(item => {
|
|
|
|
|
if (item.isYield) {
|
|
|
|
|
projectList.push(item.serviceProjectCode)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const ApiData = {
|
|
|
|
|
bcTaskId: this.$route.query.taskPKId,
|
|
|
|
|
// bcPkId: '',
|
|
|
|
|
// slotId: '',
|
|
|
|
|
projectList,
|
|
|
|
|
...this.CreateData
|
|
|
|
|
}
|
|
|
|
|
console.log(ApiData)
|
|
|
|
|
CreateBookingAndSlot(ApiData).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.visible = false
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
UserhandleOk() {
|
|
|
|
|
const ApiData = {
|
|
|
|
|
taskPKId: this.$route.query.taskPKId,
|
|
|
|
|
userId: this.UserId
|
|
|
|
|
}
|
|
|
|
|
TransferTask(ApiData).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.UserVisible = false
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.UserVisible = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
@import url('../../BookingLedger/detail/style/rightContent.less');
|
|
|
|
|
|
|
|
|
|
.point {
|
|
|
|
|
height: 10px;
|
|
|
|
|
width: 10px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
background: green;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modaltitle {
|
|
|
|
|
border-bottom: 1px solid #000;
|
|
|
|
|
width: 5rem;
|
|
|
|
|
padding: 0.2rem 0.5rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-chuanfanguanli-chuanfanshenqing {
|
|
|
|
|
color: '#02A7F0';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.Main {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: white;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
|
|
|
|
.LeftHead {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
border-bottom: 1px solid #000;
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
&:nth-child(1) {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.CsSee {
|
|
|
|
|
color: #02a7f3;
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.LeftBottomBox {
|
|
|
|
|
.unitBox {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.unit {
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
// background: rgba(255, 255, 128, 1);
|
|
|
|
|
// border: 1px solid rgba(170, 10, 0, 1);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
// font-weight: bold;
|
|
|
|
|
// color: #62a10398;
|
|
|
|
|
margin: 0.5rem;
|
|
|
|
|
padding: 0 0.3rem;
|
|
|
|
|
|
|
|
|
|
.iconfont {
|
|
|
|
|
margin-right: 0.3rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rightBox {
|
|
|
|
|
|
|
|
|
|
// margin-top: 37px;
|
|
|
|
|
.rightBoxRadio {
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/.Editing {
|
|
|
|
|
.ant-form-item {
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
line-height: 1.5 !important;
|
|
|
|
|
|
|
|
|
|
.ant-form-item-label {
|
|
|
|
|
line-height: 1.5 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-form-item-control {
|
|
|
|
|
line-height: 1.5 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|