|
|
@ -10,28 +10,28 @@
|
|
|
|
<a-spin :spinning="confirmLoading">
|
|
|
|
<a-spin :spinning="confirmLoading">
|
|
|
|
<a-form :form="form" class="CsForm">
|
|
|
|
<a-form :form="form" class="CsForm">
|
|
|
|
<a-row type="flex" :gutter="16">
|
|
|
|
<a-row type="flex" :gutter="16">
|
|
|
|
<a-col>
|
|
|
|
<a-col v-if="$route.query.type == 'Edit'">
|
|
|
|
<a-button type="primary" @click="handleSubmit('New')">
|
|
|
|
<a-button type="primary" @click="FnPrint">
|
|
|
|
打印
|
|
|
|
打印
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col>
|
|
|
|
<a-col v-if="$route.query.type == 'Add' || 'Edit'">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
保存
|
|
|
|
保存
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col>
|
|
|
|
<a-col v-if="$route.query.type == 'Edit'">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
提交派车
|
|
|
|
提交派车
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col>
|
|
|
|
<a-col v-if="$route.query.type == 'Edit'">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
撤销派车
|
|
|
|
撤销派车
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-row :style="{ marginTop: '10px' }">
|
|
|
|
<p class="CsFormTitle">
|
|
|
|
<p class="CsFormTitle">
|
|
|
|
<span><i class="iconfont icon-shiyongwendang"></i>车队信息</span>
|
|
|
|
<span><i class="iconfont icon-shiyongwendang"></i>车队信息</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
@ -109,37 +109,37 @@
|
|
|
|
<p class="CsFormTitle">
|
|
|
|
<p class="CsFormTitle">
|
|
|
|
<span><i class="iconfont icon-shiyongwendang"></i>派车通知详细信息</span>
|
|
|
|
<span><i class="iconfont icon-shiyongwendang"></i>派车通知详细信息</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<a-row>
|
|
|
|
<a-row v-if="$route.query.type == 'Edit'">
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-form-item label="船名:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="船名:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['ctncode']" />
|
|
|
|
<a-input v-decorator="['vessel']" disabled />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-form-item label="船名:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="航次:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['kgs']" />
|
|
|
|
<a-input v-decorator="['voyNo']" disabled />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-form-item label="提单号:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="提单号:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['fee']" />
|
|
|
|
<a-input v-decorator="['mblNo']" disabled />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-form-item label="箱型箱量:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="箱型箱量:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['ctncode']" />
|
|
|
|
<a-input v-decorator="['cntrTotal']" disabled />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-form-item label="吨数:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="吨数:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['kgs']" />
|
|
|
|
<a-input-number v-decorator="['kgs']" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-form-item label="陆运费:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="陆运费:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input v-decorator="['fee']" />
|
|
|
|
<a-input-number v-decorator="['fee']" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="5">
|
|
|
@ -160,23 +160,19 @@
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="提箱场站:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-form-item label="提箱场站:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<!-- <a-select v-decorator="['yardid']" allowClear>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in payMethodData" :key="item.id" :value="item.id">
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select> -->
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
<a-select
|
|
|
|
show-search
|
|
|
|
show-search
|
|
|
|
placeholder="请选择场站"
|
|
|
|
placeholder="请选择场站"
|
|
|
|
v-decorator="['yardid']"
|
|
|
|
v-decorator="['yardid']"
|
|
|
|
@search="YardCodeSearch"
|
|
|
|
@search="yardidSearch"
|
|
|
|
@focus="YardCodeSearch"
|
|
|
|
@focus="yardidSearch"
|
|
|
|
|
|
|
|
@change="Changeyardid"
|
|
|
|
:default-active-first-option="false"
|
|
|
|
:default-active-first-option="false"
|
|
|
|
:show-arrow="false"
|
|
|
|
:show-arrow="false"
|
|
|
|
:filter-option="filterOption"
|
|
|
|
:filter-option="filterOption"
|
|
|
|
:not-found-content="null"
|
|
|
|
:not-found-content="null"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option v-for="item in YardCodeData" :key="item.codeName" :value="item.codeName">
|
|
|
|
<a-select-option v-for="item in yardidData" :key="item.codeName" :value="item.codeName">
|
|
|
|
{{ item.shortName }}
|
|
|
|
{{ item.shortName }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -184,8 +180,13 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="联系人:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-form-item label="联系人:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-select v-decorator="['yardcontract']" @change="Changeyardcontract" v-if="attnData.length" allowClear>
|
|
|
|
<a-select
|
|
|
|
<a-select-option v-for="item in attnData" :key="item.id" :value="item.id">
|
|
|
|
v-decorator="['yardcontract']"
|
|
|
|
|
|
|
|
@change="Changeyardcontract"
|
|
|
|
|
|
|
|
v-if="yardcontractaData.length"
|
|
|
|
|
|
|
|
allowClear
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in yardcontractaData" :key="item.id" :value="item.id">
|
|
|
|
{{ item.name }}
|
|
|
|
{{ item.name }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -247,23 +248,19 @@
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="入场场站:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-form-item label="入场场站:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<!-- <a-select v-decorator="['inYardID']" allowClear>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in payMethodData" :key="item.id" :value="item.id">
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select> -->
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
<a-select
|
|
|
|
show-search
|
|
|
|
show-search
|
|
|
|
placeholder="请选择场站"
|
|
|
|
placeholder="请选择场站"
|
|
|
|
v-decorator="['inYardID']"
|
|
|
|
v-decorator="['inYardID']"
|
|
|
|
@search="YardCodeSearch"
|
|
|
|
@search="inYardIDSearch"
|
|
|
|
@focus="YardCodeSearch"
|
|
|
|
@focus="inYardIDSearch"
|
|
|
|
|
|
|
|
@change="ChangeinYardID"
|
|
|
|
:default-active-first-option="false"
|
|
|
|
:default-active-first-option="false"
|
|
|
|
:show-arrow="false"
|
|
|
|
:show-arrow="false"
|
|
|
|
:filter-option="filterOption"
|
|
|
|
:filter-option="filterOption"
|
|
|
|
:not-found-content="null"
|
|
|
|
:not-found-content="null"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option v-for="item in YardCodeData" :key="item.codeName" :value="item.codeName">
|
|
|
|
<a-select-option v-for="item in inYardIDData" :key="item.codeName" :value="item.codeName">
|
|
|
|
{{ item.shortName }}
|
|
|
|
{{ item.shortName }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -271,8 +268,13 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="联系人:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-form-item label="联系人:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-select v-decorator="['inYardContact']" @change="ChangeinYardContact" v-if="attnData.length" allowClear>
|
|
|
|
<a-select
|
|
|
|
<a-select-option v-for="item in attnData" :key="item.id" :value="item.id">
|
|
|
|
v-decorator="['inYardContact']"
|
|
|
|
|
|
|
|
@change="ChangeinYardContact"
|
|
|
|
|
|
|
|
v-if="inYardContactData.length"
|
|
|
|
|
|
|
|
allowClear
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in inYardContactData" :key="item.id" :value="item.id">
|
|
|
|
{{ item.name }}
|
|
|
|
{{ item.name }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -299,7 +301,7 @@
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="派车状态:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="派车状态:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-select v-decorator="['status']" allowClear>
|
|
|
|
<a-select v-decorator="['status']" allowClear>
|
|
|
|
<a-select-option v-for="item in payMethodData" :key="item.id" :value="item.id">
|
|
|
|
<a-select-option v-for="item in statusData" :key="item.id" :value="item.id">
|
|
|
|
{{ item.name }}
|
|
|
|
{{ item.name }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
@ -311,7 +313,7 @@
|
|
|
|
<span><i class="iconfont icon-tuandui"></i>箱信息</span>
|
|
|
|
<span><i class="iconfont icon-tuandui"></i>箱信息</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="18">
|
|
|
|
<a-col :span="24">
|
|
|
|
<vxe-toolbar>
|
|
|
|
<vxe-toolbar>
|
|
|
|
<template #buttons>
|
|
|
|
<template #buttons>
|
|
|
|
<vxe-button icon="vxe-icon-square-plus" @click="insertEvent()">新增</vxe-button>
|
|
|
|
<vxe-button icon="vxe-icon-square-plus" @click="insertEvent()">新增</vxe-button>
|
|
|
@ -331,12 +333,12 @@
|
|
|
|
<!-- <vxe-column type="seq" width="60"></vxe-column> -->
|
|
|
|
<!-- <vxe-column type="seq" width="60"></vxe-column> -->
|
|
|
|
<vxe-column field="ctncode" title="箱型" :edit-render="{}">
|
|
|
|
<vxe-column field="ctncode" title="箱型" :edit-render="{}">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<span>{{ formatRole(row.ctncode) }}</span>
|
|
|
|
<span>{{ FnRctncode(row.ctncode) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-select v-model="row.ctncode" transfer>
|
|
|
|
<vxe-select v-model="row.ctncode" transfer>
|
|
|
|
<vxe-option
|
|
|
|
<vxe-option
|
|
|
|
v-for="item in TypeData"
|
|
|
|
v-for="item in ctnList"
|
|
|
|
:key="item.code"
|
|
|
|
:key="item.code"
|
|
|
|
:value="item.code"
|
|
|
|
:value="item.code"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
@ -374,38 +376,45 @@
|
|
|
|
<vxe-input v-model="row.cbm" type="text" transfer></vxe-input>
|
|
|
|
<vxe-input v-model="row.cbm" type="text" transfer></vxe-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column field="remark" title="车牌号" :edit-render="{}">
|
|
|
|
<vxe-column field="carNumber" title="车牌号" :edit-render="{}">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-input v-model="row.remark" type="text" transfer></vxe-input>
|
|
|
|
<vxe-input v-model="row.carNumber" type="text" transfer></vxe-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column field="remark" title="司机" :edit-render="{}">
|
|
|
|
<vxe-column field="carDriver" title="司机" :edit-render="{}">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-input v-model="row.remark" type="text" transfer></vxe-input>
|
|
|
|
<vxe-input v-model="row.carDriver" type="text" transfer></vxe-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column field="remark" title="司机电话" :edit-render="{}">
|
|
|
|
<vxe-column field="carDriverTel" title="司机电话" :edit-render="{}">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<template #edit="{ row }">
|
|
|
|
<vxe-input v-model="row.remark" type="text" transfer></vxe-input>
|
|
|
|
<vxe-input v-model="row.carDriverTel" type="text" transfer></vxe-input>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-table>
|
|
|
|
</vxe-table>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6" :style="{ marginTop: '50px' }">
|
|
|
|
</a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-row :style="{ marginTop: '20px' }">
|
|
|
|
<a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="注意事项:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="调度:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
|
|
|
|
<a-select v-decorator="['dispatcherId']" allowClear>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in dispatcherIdData" :key="item.sysEmpId" :value="item.sysEmpId">
|
|
|
|
|
|
|
|
{{ item.sysEmpName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="注意事项:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-textarea :auto-size="{ minRows: 3, maxRows: 5 }" v-decorator="['attention']" />
|
|
|
|
<a-textarea :auto-size="{ minRows: 3, maxRows: 5 }" v-decorator="['attention']" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="备注:" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="备注:" :labelCol="labelCol8" :wrapperCol="wrapperCol8" has-feedback>
|
|
|
|
<a-textarea :auto-size="{ minRows: 3, maxRows: 5 }" v-decorator="['remark']" />
|
|
|
|
<a-textarea :auto-size="{ minRows: 3, maxRows: 5 }" v-decorator="['remark']" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
<!-- </a-modal> -->
|
|
|
|
<!-- </a-modal> -->
|
|
|
@ -416,14 +425,36 @@ import {
|
|
|
|
DjyCustomerAdd,
|
|
|
|
DjyCustomerAdd,
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo,
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo,
|
|
|
|
BookingTruckSave,
|
|
|
|
BookingTruckSave,
|
|
|
|
|
|
|
|
sysUserQueryUserByPos,
|
|
|
|
|
|
|
|
BookingTruckGetInfo,
|
|
|
|
|
|
|
|
BookingTruckPrint,
|
|
|
|
DjyCustomerEdit
|
|
|
|
DjyCustomerEdit
|
|
|
|
} from '@/api/modular/main/SendCar'
|
|
|
|
} from '@/api/modular/main/SendCar'
|
|
|
|
|
|
|
|
import { GetCtn } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { GetSysUserPage } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { GetSysUserPage } from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
import { values } from 'xe-utils'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
YardCodeData: [],
|
|
|
|
WebData: {},
|
|
|
|
payMethodData: [],
|
|
|
|
dispatcherIdData: [],
|
|
|
|
|
|
|
|
ctnList: [],
|
|
|
|
|
|
|
|
yardidData: [],
|
|
|
|
|
|
|
|
inYardIDData: [],
|
|
|
|
|
|
|
|
yardcontractaData: [],
|
|
|
|
|
|
|
|
inYardContactData: [],
|
|
|
|
|
|
|
|
payMethodData: [
|
|
|
|
|
|
|
|
{ id: 'NO_INVOICE', name: '不开票' },
|
|
|
|
|
|
|
|
{ id: 'OWN_COMPANY', name: '本公司发票' },
|
|
|
|
|
|
|
|
{ id: 'LAND_TRANS_INVOICE', name: '陆运发票' }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
statusData: [
|
|
|
|
|
|
|
|
{ id: 'TEMP', name: '暂存' },
|
|
|
|
|
|
|
|
{ id: 'SUBMITED', name: '已提交' },
|
|
|
|
|
|
|
|
{ id: 'CANCELED', name: '已撤销' },
|
|
|
|
|
|
|
|
{ id: 'SEND_DISPATCH', name: '已派车' },
|
|
|
|
|
|
|
|
{ id: 'CANCEL_DISPATCH', name: '已撤销派车' }
|
|
|
|
|
|
|
|
],
|
|
|
|
truckIdData: [],
|
|
|
|
truckIdData: [],
|
|
|
|
attnData: [],
|
|
|
|
attnData: [],
|
|
|
|
sexList: [
|
|
|
|
sexList: [
|
|
|
@ -483,63 +514,155 @@ export default {
|
|
|
|
bookingServiceItem: []
|
|
|
|
bookingServiceItem: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
path() {
|
|
|
|
|
|
|
|
console.log(location.pathname)
|
|
|
|
|
|
|
|
return location.pathname
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
$route() {
|
|
|
|
$route: {
|
|
|
|
if (this.$route.query.type == 'Add') {
|
|
|
|
immediate: true,
|
|
|
|
this.$data = this.$options.data()
|
|
|
|
deep: true,
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'fleet' }).then(res => {
|
|
|
|
handler(To, from) {
|
|
|
|
|
|
|
|
if (To.path == '/SendCarAdd') {
|
|
|
|
|
|
|
|
this.init()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
// this.init()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
FnPrint() {
|
|
|
|
|
|
|
|
BookingTruckPrint({ id: this.WebData.id }).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
|
|
|
if (this.$route.query.type == 'Add' || this.$route.query.type == 'Edit') {
|
|
|
|
|
|
|
|
// this.$data = this.$options.data()
|
|
|
|
|
|
|
|
this.ContactsData = []
|
|
|
|
|
|
|
|
this.form = this.$form.createForm(this)
|
|
|
|
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'fleet' }).then(res => {
|
|
|
|
this.truckIdData = res.data
|
|
|
|
this.truckIdData = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'yard' }).then(res => {
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'yard' }).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
this.yardidData = res.data
|
|
|
|
this.YardCodeData = res.data
|
|
|
|
this.inYardIDData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
sysUserQueryUserByPos({ pos: 'PCDD' }).then(res => {
|
|
|
|
|
|
|
|
this.dispatcherIdData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetCtn({ KeyWord: '' }).then(res => {
|
|
|
|
|
|
|
|
this.ctnList = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (this.$route.query.type == 'Edit') {
|
|
|
|
|
|
|
|
BookingTruckGetInfo({ id: this.$route.query.id }).then(res => {
|
|
|
|
|
|
|
|
if (res.data.ext.contaList) {
|
|
|
|
|
|
|
|
this.ContactsData = res.data.ext.contaList
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.form.setFieldsValue({ ...res.data.ext })
|
|
|
|
|
|
|
|
this.WebData = res.data.ext
|
|
|
|
|
|
|
|
this.ChangetruckId(res.data.ext.truckId)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.Changeattn(res.data.ext.attn)
|
|
|
|
|
|
|
|
}, 110)
|
|
|
|
|
|
|
|
this.Changeyardid(res.data.ext.yardid)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.Changeyardcontract(res.data.ext.yardcontract)
|
|
|
|
|
|
|
|
}, 110)
|
|
|
|
|
|
|
|
this.ChangeinYardID(res.data.ext.inYardID)
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.ChangeinYardContact(res.data.ext.inYardContact)
|
|
|
|
|
|
|
|
}, 110)
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// commondbYardlist().then(res => {
|
|
|
|
|
|
|
|
// this.YardCodeData = res.data
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
FnRctncode(value) {
|
|
|
|
this.TypeData = this.$options.filters['dictData']('djy_cust_contact_role')
|
|
|
|
let RData = ''
|
|
|
|
// this.propStringData = this.$options.filters['dictData']('djy_cust_prop')
|
|
|
|
if (value) {
|
|
|
|
this.bookingServiceItem = this.$options.filters['dictData']('booking_service_item')
|
|
|
|
this.ctnList.forEach(item => {
|
|
|
|
|
|
|
|
if (item.code == value) {
|
|
|
|
|
|
|
|
RData = item.name
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return RData
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
yardidSearch(data) {
|
|
|
|
YardCodeSearch(data) {
|
|
|
|
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'yard', queryItem: data }).then(res => {
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'yard', queryItem: data }).then(res => {
|
|
|
|
this.YardCodeData = res.data
|
|
|
|
this.yardidData = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
inYardIDSearch(data) {
|
|
|
|
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'yard', queryItem: data }).then(res => {
|
|
|
|
|
|
|
|
this.inYardIDData = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// commondbYardlist({ KeyWord: data }).then(res => {
|
|
|
|
|
|
|
|
// this.YardCodeData = res.data
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ChangeinYardContact(e) {
|
|
|
|
ChangeinYardContact(e) {
|
|
|
|
this.attnData.forEach(item => {
|
|
|
|
this.inYardContactData.forEach(item => {
|
|
|
|
if (item.id == e) {
|
|
|
|
if (item.id == e) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
inYardContact: item.id,
|
|
|
|
inYardContractTel: item.tel
|
|
|
|
inYardContractTel: item.tel
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Changeyardcontract(e) {
|
|
|
|
Changeyardcontract(e) {
|
|
|
|
this.attnData.forEach(item => {
|
|
|
|
this.yardcontractaData.forEach(item => {
|
|
|
|
if (item.id == e) {
|
|
|
|
if (item.id == e) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
yardcontract: item.id,
|
|
|
|
yardcontracttel: item.tel
|
|
|
|
yardcontracttel: item.tel
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
ChangeinYardID(e) {
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
inYardContact: '',
|
|
|
|
|
|
|
|
inYardContractTel: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
this.inYardIDData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.codeName == e) {
|
|
|
|
|
|
|
|
if (item.contacts && item.contacts.length) {
|
|
|
|
|
|
|
|
this.inYardContactData = item.contacts
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.inYardContactData = []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
Changeyardid(e) {
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
yardcontract: '',
|
|
|
|
|
|
|
|
yardcontracttel: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
this.yardidData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.codeName == e) {
|
|
|
|
|
|
|
|
if (item.contacts && item.contacts.length) {
|
|
|
|
|
|
|
|
this.yardcontractaData = item.contacts
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.yardcontractaData = []
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
Changeattn(e) {
|
|
|
|
Changeattn(e) {
|
|
|
|
this.attnData.forEach(item => {
|
|
|
|
this.attnData.forEach(item => {
|
|
|
|
if (item.id == e) {
|
|
|
|
if (item.id == e) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
attn: item.id,
|
|
|
|
attnTel: item.tel,
|
|
|
|
attnTel: item.tel,
|
|
|
|
attnMail: item.email
|
|
|
|
attnMail: item.email
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -566,7 +689,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
gettruckIdData(name = '', type) {
|
|
|
|
gettruckIdData(name = '', type) {
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'fleet', queryItem: name }).then(res => {
|
|
|
|
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'fleet', queryItem: name }).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
this.truckIdData = res.data
|
|
|
|
this.truckIdData = res.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -583,6 +705,9 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
insertEvent() {
|
|
|
|
insertEvent() {
|
|
|
|
|
|
|
|
if (this.ContactsData) {
|
|
|
|
|
|
|
|
this.ContactsData = []
|
|
|
|
|
|
|
|
}
|
|
|
|
this.ContactsData.push({
|
|
|
|
this.ContactsData.push({
|
|
|
|
WebKey: this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1,
|
|
|
|
WebKey: this.ContactsData.length ? this.ContactsData[this.ContactsData.length - 1].WebKey + 1 : 1,
|
|
|
|
roleName: '',
|
|
|
|
roleName: '',
|
|
|
@ -620,9 +745,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
validateFields((errors, values) => {
|
|
|
|
validateFields((errors, values) => {
|
|
|
|
if (!errors) {
|
|
|
|
if (!errors) {
|
|
|
|
|
|
|
|
values.contaList = this.ContactsData
|
|
|
|
|
|
|
|
if (this.$route.query.type == 'Edit') {
|
|
|
|
|
|
|
|
values.id = this.WebData.id
|
|
|
|
|
|
|
|
}
|
|
|
|
BookingTruckSave({ ...values })
|
|
|
|
BookingTruckSave({ ...values })
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
console.log(res)
|
|
|
|
if (this.$route.query.type == 'Add') {
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
|
|
|
query: {
|
|
|
|
|
|
|
|
type: 'Edit',
|
|
|
|
|
|
|
|
id: res.data.ext
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.confirmLoading = false
|
|
|
|
this.confirmLoading = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|