|
|
@@ -2,56 +2,56 @@
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-row>
|
|
|
- <el-form-item label="港口名称" prop="fTypeid">
|
|
|
- <el-select style="width: 240px" v-model="queryParams.fName" placeholder="请选择客户类别" clearable size="small">
|
|
|
+ <el-form-item label="港口名称" prop="fName">
|
|
|
+ <el-select
|
|
|
+ style="width: 240px"
|
|
|
+ v-model="queryParams.fName"
|
|
|
+ placeholder=""
|
|
|
+ clearable size="small"
|
|
|
+ :remote-method="portRemoteMethod">
|
|
|
<el-option
|
|
|
- v-for="dict in fTypeidOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
+ v-for="dict in portNameOptions"
|
|
|
+ :key="dict.fId"
|
|
|
+ :label="dict.fName"
|
|
|
+ :value="dict.fName"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="航线" prop="fLaneid">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fLaneid"
|
|
|
+ <el-form-item label="航线" prop="portName">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.portName"
|
|
|
style="width: 240px"
|
|
|
placeholder="请输入名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in routeOptions"
|
|
|
+ :key="dict.fId"
|
|
|
+ :label="dict.fName"
|
|
|
+ :value="dict.fName"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="UNCODE" prop="fUncode">
|
|
|
- <el-select
|
|
|
+ <el-input
|
|
|
v-model="queryParams.fUncode"
|
|
|
style="width: 240px"
|
|
|
- placeholder="请输入或选择"
|
|
|
+ placeholder="请输入"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
>
|
|
|
- </el-select>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="港口" prop="fPortid">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fPortid"
|
|
|
- style="width: 240px"
|
|
|
- placeholder="请输入或选择"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- >
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
</el-row>
|
|
|
<div v-show="queryParamsHidden">
|
|
|
<el-row>
|
|
|
- <el-form-item label="国家" prop="fTel">
|
|
|
+ <el-form-item label="国家" prop="fCountry">
|
|
|
<el-input
|
|
|
- v-model="queryParams.fTel"
|
|
|
+ v-model="queryParams.fCountry"
|
|
|
style="width: 240px"
|
|
|
placeholder="请输入电话"
|
|
|
clearable
|
|
|
@@ -60,37 +60,25 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="省" prop="fStatus">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fStatus"
|
|
|
+ <el-form-item label="省" prop="fProvince">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.fProvince"
|
|
|
placeholder="客户状态"
|
|
|
clearable
|
|
|
size="small"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="dict in statusOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="市" prop="fStatus">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.fStatus"
|
|
|
+ <el-form-item label="市" prop="fCity">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.fCity"
|
|
|
placeholder="客户状态"
|
|
|
clearable
|
|
|
size="small"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="dict in statusOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态" prop="fStatus">
|
|
|
<el-select
|
|
|
@@ -100,40 +88,33 @@
|
|
|
size="small"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="dict in statusOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
- />
|
|
|
+ <el-option label="正常" value="T"/>
|
|
|
+ <el-option label="停用" value="F"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-form-item label="录入人" prop="createBy">
|
|
|
- <el-select
|
|
|
+ <el-input
|
|
|
v-model="queryParams.createBy"
|
|
|
placeholder=""
|
|
|
clearable
|
|
|
size="small"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
- <el-option
|
|
|
- v-for="dict in statusOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="dict.dictValue"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="录入区间" prop="fStatus">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fStatus"
|
|
|
- placeholder="客户状态"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- style="width: 240px"
|
|
|
- />
|
|
|
+ <el-form-item label="录入区间" prop="cLoadDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams.cLoadDate"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ style="width: 250px"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
@@ -217,32 +198,32 @@
|
|
|
<el-table v-loading="loading" :data="corpsList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column type="index" width="55" label="行号" align="center" />
|
|
|
- <el-table-column :show-overflow-tooltip="true" label="港口类型" align="center" prop="fTypename" width="200px"/>
|
|
|
+ <el-table-column :show-overflow-tooltip="true" label="港口类型" align="center" prop="havenName" width="200px"/>
|
|
|
<el-table-column label="港口编号" align="center" prop="fNo" width="100px"/>
|
|
|
- <el-table-column :show-overflow-tooltip="true" label="港口简称" align="center" prop="fName" width="100px"
|
|
|
- />
|
|
|
- <el-table-column :show-overflow-tooltip="true" label="中文全称" align="center" width="100px" prop="fCname" />
|
|
|
+<!-- <el-table-column :show-overflow-tooltip="true" label="港口简称" align="center" prop="fName" width="100px"-->
|
|
|
+<!-- />-->
|
|
|
+ <el-table-column :show-overflow-tooltip="true" label="中文全称" align="center" width="100px" prop="fName" />
|
|
|
<el-table-column :show-overflow-tooltip="true" label="英文全称" align="center" prop="fEname" />
|
|
|
- <el-table-column :show-overflow-tooltip="true" label="航线" align="center" prop="fTel" />
|
|
|
+ <el-table-column :show-overflow-tooltip="true" label="航线" align="center" prop="fLaneid" />
|
|
|
|
|
|
- <el-table-column label="UNCODE" align="center" prop="createBy" />
|
|
|
- <el-table-column label="国家" align="center" prop="createBy" />
|
|
|
- <el-table-column label="省" align="center" prop="createTime" width="100">
|
|
|
+ <el-table-column label="UNCODE" align="center" prop="fUncode" />
|
|
|
+ <el-table-column label="国家" align="center" prop="fCountry" />
|
|
|
+ <el-table-column label="省" align="center" prop="fProvince" width="100"/>
|
|
|
+ <el-table-column label="市" align="center" prop="fCity" width="100px"/>
|
|
|
+ <el-table-column label="状态" align="center" prop="fStatus" width="100"/>
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" width="100"/>
|
|
|
+ <el-table-column label="录入人" align="center" prop="createBy" width="100"/>
|
|
|
+ <el-table-column label="录入时间" align="center" prop="createTime" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="市" align="center" prop="updateBy" width="100px"/>
|
|
|
- <el-table-column label="状态" align="center" prop="updateTime" width="100">
|
|
|
+ <el-table-column label="最新修改人" align="center" prop="updateBy" width="100"/>
|
|
|
+ <el-table-column label="最新修改时间" align="center" prop="updateTime" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="备注" align="center" class-name="small-padding fixed-width" width="100"/>
|
|
|
- <el-table-column label="录入人" align="center" class-name="small-padding fixed-width" width="100"/>
|
|
|
- <el-table-column label="录入时间" align="center" class-name="small-padding fixed-width" width="100"/>
|
|
|
- <el-table-column label="最新修改人" align="center" class-name="small-padding fixed-width" width="100"/>
|
|
|
- <el-table-column label="最新修改时间" align="center" class-name="small-padding fixed-width" width="100"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@@ -297,75 +278,95 @@
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="港口类型" prop="fPort" label-width="90px">
|
|
|
- <el-input style="width: 80%" v-model="form.fPort" :multiple="true" placeholder="请选择客户类别"/>
|
|
|
+ <el-select style="width: 80%" v-model="form.fPort" placeholder="请选择港口类型" :disabled="doNot">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in portOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="UNCODE" prop="fUncode" label-width="90px">
|
|
|
- <el-input v-model="form.fUncode" style="width: 80%" placeholder="请输入编号" />
|
|
|
+ <el-input v-model="form.fUncode" style="width: 80%" placeholder="请输入编号" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="港口编号" prop="fNo" label-width="90px">
|
|
|
- <el-input v-model="form.fNo" style="width: 80%" placeholder="请输入名称" />
|
|
|
+ <el-input v-model="form.fNo" style="width: 80%" placeholder="请输入名称" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="港口简称" prop="fCname" label-width="90px">
|
|
|
- <el-input style="width: 80%" placeholder="请输入简称" />
|
|
|
+ <el-form-item label="类型" prop="fTypes" label-width="90px">
|
|
|
+ <el-select style="width: 80%" v-model="form.fTypes" :disabled="doNot" placeholder="请输入编号">
|
|
|
+ <el-option
|
|
|
+ v-for="(dict, index) in fTypesOptions"
|
|
|
+ :key="index.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"/>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
<el-row>
|
|
|
-
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="全称" prop="fName" label-width="90px">
|
|
|
- <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入英文名称" />
|
|
|
+ <el-form-item label="港口全称" prop="fName" label-width="90px">
|
|
|
+ <el-input v-model="form.fName" style="width: 80%" placeholder="请输入英文名称" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="英文名" prop="fEname" label-width="90px">
|
|
|
- <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入英文名称" />
|
|
|
+ <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入英文名称" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="航线" prop="fLaneid" label-width="90px">
|
|
|
- <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入英文名称" />
|
|
|
+ <el-select
|
|
|
+ v-model="form.fLaneid"
|
|
|
+ style="width: 80%"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="doNot"
|
|
|
+ :remote-method="routeRemoteMethod">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in routeOptions"
|
|
|
+ :key="dict.fId"
|
|
|
+ :label="dict.fName"
|
|
|
+ :value="dict.fId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="email" prop="国家" label-width="90px">
|
|
|
- <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入内容" />
|
|
|
+ <el-form-item label="国家" prop="fCountry" label-width="90px">
|
|
|
+ <el-input v-model="form.fCountry" style="width: 80%" placeholder="请输入内容" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="省" prop="fEname" label-width="90px">
|
|
|
- <el-select v-model="form.fEname" style="width: 80%" placeholder="请输入内容" >
|
|
|
- <el-option label="正常" value=""></el-option>
|
|
|
- <el-option label="停用" value=""></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="省" prop="fProvince" label-width="90px">
|
|
|
+ <el-input v-model="form.fProvince" style="width: 80%" placeholder="请输入内容" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="email" prop="市" label-width="90px">
|
|
|
- <el-input v-model="form.fEname" style="width: 80%" placeholder="请输入内容" />
|
|
|
+ <el-form-item label="市" prop="fCity" label-width="90px">
|
|
|
+ <el-input v-model="form.fCity" style="width: 80%" placeholder="请输入内容" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="状态" prop="fEname" label-width="90px">
|
|
|
- <el-select v-model="form.fEname" style="width: 80%" placeholder="请输入内容" >
|
|
|
- <el-option label="正常" value=""></el-option>
|
|
|
- <el-option label="停用" value=""></el-option>
|
|
|
+ <el-form-item label="状态" prop="fStatus" label-width="90px">
|
|
|
+ <el-select v-model="form.fStatus" style="width: 80%" placeholder="请输入内容" :disabled="doNot">
|
|
|
+ <el-option label="正常" value="T"></el-option>
|
|
|
+ <el-option label="停用" value="F"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -373,14 +374,14 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
- <el-input v-model="form.remark" style="width: 100%" placeholder="请输入电话" />
|
|
|
+ <el-input v-model="form.remark" style="width: 100%" placeholder="请输入电话" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="info" round @click="submitForm">修 改</el-button>
|
|
|
- <el-button type="success" round @click="submitForm">保 存</el-button>
|
|
|
+ <el-button type="info" round @click="doNot = false">修 改</el-button>
|
|
|
+ <el-button type="success" round @click="submitForm" :disabled="doNot">保 存</el-button>
|
|
|
<el-button @click="cancel" round>关 闭</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -388,10 +389,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { listCorps, getCorps, delCorps, addCorps, updateCorps, changeCorpsStatus,exportCorps } from "@/api/basicdata/corps";
|
|
|
+ import { listCorps, getCorps, delCorps, getportinformation, addportinformation,updateCorps, changeCorpsStatus,exportCorps } from "@/api/kaihe/basicdata/portinformation";
|
|
|
import {queryUserVal} from "@/api/system/user";
|
|
|
import { isArray } from '@/utils/validate'
|
|
|
import Vue from 'vue'
|
|
|
+ import { getroute } from '@/api/kaihe/basicdata/route'
|
|
|
Vue.directive('dialogDrag', {
|
|
|
bind(el, binding, vnode, oldVnode) {
|
|
|
const dialogHeaderEl = el.querySelector('.el-dialog__header')
|
|
|
@@ -455,6 +457,17 @@
|
|
|
return {
|
|
|
//默认显示第一行
|
|
|
queryParamsHidden:false,
|
|
|
+ //查看置灰
|
|
|
+ doNot:true,
|
|
|
+ //港口类型字典表
|
|
|
+ fTypesOptions:[],
|
|
|
+ //港口类型数据字典
|
|
|
+ portOptions:[],
|
|
|
+ //模糊查询航线名称
|
|
|
+ routeOptions:[],
|
|
|
+ //模糊查询港口名称
|
|
|
+ portNameOptions:[],
|
|
|
+
|
|
|
//全屏放大
|
|
|
dialogFull:false,
|
|
|
contactList:[],
|
|
|
@@ -488,53 +501,35 @@
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- fTypeid: null,
|
|
|
- fNo: null,
|
|
|
- fName: null,
|
|
|
- fCname: null,
|
|
|
- fEname: null,
|
|
|
- fTel: null,
|
|
|
- fFax: null,
|
|
|
- fEmail: null,
|
|
|
- fManage: null,
|
|
|
- fAddr: null,
|
|
|
- fEaddr: null,
|
|
|
- fScale: null,
|
|
|
- fProvince: null,
|
|
|
- fCity: null,
|
|
|
- fStltypeid: null,
|
|
|
- fStldays: null,
|
|
|
- fContractno: null,
|
|
|
- fContractb: null,
|
|
|
- fContracte: null,
|
|
|
- fTax: null,
|
|
|
- fInvtel: null,
|
|
|
- fInvaddr: null,
|
|
|
- fBankno: null,
|
|
|
- fBankname: null,
|
|
|
- fUbankno: null,
|
|
|
- fUbankname: null,
|
|
|
- fStatus: null,
|
|
|
+ fName:null,
|
|
|
+ portName:null,
|
|
|
+ fUncode:null,
|
|
|
+ fPortid:null,
|
|
|
+ fCountry:null,
|
|
|
+ fProvince:null,
|
|
|
+ fCity:null,
|
|
|
+ fStatus:null,
|
|
|
+ createBy:null,
|
|
|
+ createTime:null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ fPort:null,
|
|
|
+ fUncode:null,
|
|
|
+ fNo:null,
|
|
|
+ fTypes:null,
|
|
|
+ fName:null,
|
|
|
+ fEname:null,
|
|
|
+ fLaneid:null,
|
|
|
+ fCountry:null,
|
|
|
+ fProvince:null,
|
|
|
+ fCity:null,
|
|
|
+ fStatus:'T',
|
|
|
+ remark:null
|
|
|
+ },
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- fTypeid: [
|
|
|
- { required: true, message: "客户类别不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- fNo: [
|
|
|
- { required: true, message: "编号不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- fName: [
|
|
|
- { required: true, message: "名称不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- fCname:[
|
|
|
- { required: true, message: "简称不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- fStatus: [
|
|
|
- { required: true, message: "状态默认 T ,正常T 停用F 下拉选择不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -552,8 +547,33 @@
|
|
|
this.getDicts("sys_normal_disable").then(response => {
|
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
|
+ this.getDicts("f_types").then(response => {
|
|
|
+ this.fTypesOptions = response.data;
|
|
|
+ });
|
|
|
+ this.getDicts("f_port").then(response => {
|
|
|
+ console.log(response)
|
|
|
+ this.portOptions = response.data;
|
|
|
+ });
|
|
|
+ this.routeRemoteMethod()
|
|
|
+ this.portRemoteMethod()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //模糊查询航线名称
|
|
|
+ routeRemoteMethod(){
|
|
|
+ let queryParams = { pageNum: 1,};
|
|
|
+ getroute(queryParams).then((response) => {
|
|
|
+ console.log(response)
|
|
|
+ this.routeOptions = response.rows;
|
|
|
+ console.log(this.routeOptions)
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //模糊查询港口名称
|
|
|
+ portRemoteMethod(){
|
|
|
+ let queryParams = { pageNum: 1,};
|
|
|
+ getportinformation(queryParams).then(response =>{
|
|
|
+ this.portNameOptions = response.rows
|
|
|
+ })
|
|
|
+ },
|
|
|
full(){
|
|
|
this.dialogFull = !this.dialogFull
|
|
|
},
|
|
|
@@ -575,6 +595,7 @@
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listCorps(this.queryParams).then(response => {
|
|
|
+ console.log(response)
|
|
|
this.corpsList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
@@ -600,40 +621,18 @@
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
- fId: null,
|
|
|
- fTypeid: null,
|
|
|
- fNo: null,
|
|
|
- fName: null,
|
|
|
- fCname: null,
|
|
|
- fEname: null,
|
|
|
- fTel: null,
|
|
|
- fFax: null,
|
|
|
- fEmail: null,
|
|
|
- fManage: null,
|
|
|
- fAddr: null,
|
|
|
- fEaddr: null,
|
|
|
- fScale: null,
|
|
|
- fProvince: null,
|
|
|
- fCity: null,
|
|
|
- fStltypeid: null,
|
|
|
- fStldays: null,
|
|
|
- fContractno: null,
|
|
|
- fContractb: null,
|
|
|
- fContracte: null,
|
|
|
- fTax: null,
|
|
|
- fInvtel: null,
|
|
|
- fInvaddr: null,
|
|
|
- fBankno: null,
|
|
|
- fBankname: null,
|
|
|
- fUbankno: null,
|
|
|
- fUbankname: null,
|
|
|
- fStatus: null,
|
|
|
- delFlag: null,
|
|
|
- createBy: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateTime: null,
|
|
|
- remark: null
|
|
|
+ fPort:null,
|
|
|
+ fUncode:null,
|
|
|
+ fNo:null,
|
|
|
+ fTypes:null,
|
|
|
+ fName:null,
|
|
|
+ fEname:null,
|
|
|
+ fLaneid:null,
|
|
|
+ fCountry:null,
|
|
|
+ fProvince:null,
|
|
|
+ fCity:null,
|
|
|
+ fStatus:'T',
|
|
|
+ remark:null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
@@ -674,6 +673,7 @@
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+ this.doNot = false
|
|
|
this.reset();
|
|
|
this.query();
|
|
|
this.contList();
|
|
|
@@ -682,56 +682,27 @@
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
+ this.doNot = true
|
|
|
this.reset();
|
|
|
const fId = row.fId || this.ids
|
|
|
getCorps(fId).then(response => {
|
|
|
- this.form = response.data["corp"];
|
|
|
- var contactList1=response.data["customerContact"];
|
|
|
- this.form.fTypeid = this.form.fTypeid.replace(/\[|]/g,'').replace(/\"/g, "").split(",")
|
|
|
- if(contactList1!=null){
|
|
|
- this.contactList=contactList1;
|
|
|
- }else {
|
|
|
- this.query();
|
|
|
- }
|
|
|
+ this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改客户详情";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.form.fTypename = ''
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.fId != null) {
|
|
|
- let formDate= new FormData()
|
|
|
- for (let index in this.fTypeidOptions){
|
|
|
- for (let item in this.form.fTypeid){
|
|
|
- if (this.fTypeidOptions[index].dictValue == this.form.fTypeid[item]){
|
|
|
- this.form.fTypename += this.fTypeidOptions[index].dictLabel + ','
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- this.form.fTypename = this.form.fTypename.substring(0,this.form.fTypename.length-1)
|
|
|
- formDate.append('corps',JSON.stringify(this.form));
|
|
|
- formDate.append('customerContacts',JSON.stringify(this.contactList));
|
|
|
- addCorps(formDate).then(response => {
|
|
|
+ addportinformation(this.form).then(response => {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- let formDate= new FormData()
|
|
|
- for (let index in this.fTypeidOptions){
|
|
|
- for (let item in this.form.fTypeid){
|
|
|
- if (this.fTypeidOptions[index].dictValue == this.form.fTypeid[item]){
|
|
|
- this.form.fTypename += this.fTypeidOptions[index].dictLabel + ','
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- this.form.fTypename = this.form.fTypename.substring(0,this.form.fTypename.length-1)
|
|
|
- formDate.append('corps',JSON.stringify(this.form));
|
|
|
- formDate.append('customerContacts',JSON.stringify(this.contactList));
|
|
|
- addCorps(formDate).then(response => {
|
|
|
+ addportinformation(this.form).then(response => {
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|