From fee16684ef290a4e8e1dfc70a981c036634bb48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Wed, 4 Jan 2023 15:14:38 +0800 Subject: [PATCH] 1/4 --- src/api/modular/main/vesselinfo.js | 11 ++++++++ src/views/main/TenantConfig/Data.json | 1 - src/views/main/vesselinfo/addForm.vue | 36 +++++++++++++++++++++----- src/views/main/vesselinfo/editForm.vue | 32 ++++++++++++++++++----- 4 files changed, 65 insertions(+), 15 deletions(-) diff --git a/src/api/modular/main/vesselinfo.js b/src/api/modular/main/vesselinfo.js index 1908b62..1a58ab7 100644 --- a/src/api/modular/main/vesselinfo.js +++ b/src/api/modular/main/vesselinfo.js @@ -76,6 +76,17 @@ export function GetVessellist(parameter) { params: parameter }) } +/** + * 获取场站 + * @params CnName + */ +export function GetYardlist(parameter) { + return axios({ + url: '/commondb/yardlist', + method: 'get', + params: parameter + }) +} /** * 分页查询用户 diff --git a/src/views/main/TenantConfig/Data.json b/src/views/main/TenantConfig/Data.json index 1807ae2..c5ec35e 100644 --- a/src/views/main/TenantConfig/Data.json +++ b/src/views/main/TenantConfig/Data.json @@ -71,7 +71,6 @@ "children": [ { "name": "签单方式", "code": "issuetype" }, { "name": "签单日期", "code": "issuedate" }, - { "name": "签单地点", "code": "issueplace" }, { "name": "签单地代码", "code": "issueplaceid" }, { "name": "提单份数", "code": "nobill" }, { "name": "副本份数", "code": "copynobilll" }, diff --git a/src/views/main/vesselinfo/addForm.vue b/src/views/main/vesselinfo/addForm.vue index 3bf6fd0..b04959a 100644 --- a/src/views/main/vesselinfo/addForm.vue +++ b/src/views/main/vesselinfo/addForm.vue @@ -172,11 +172,26 @@ - - + + + + + {{ item.name }} + + @@ -203,7 +218,8 @@ import { GetPortloadlist, GetPortlist, GetCarrierlist, - GetVessellist + GetVessellist, + GetYardlist } from '@/api/modular/main/vesselinfo' export default { data() { @@ -233,7 +249,8 @@ export default { portTransitData: [], portDischargeData: [], carrierData: [], - vesselData: [] + vesselData: [], + wharfData: [] } }, mounted() {}, @@ -272,6 +289,11 @@ export default { this.vesselData = res.data }) }, + wharfSearch(data) { + GetYardlist({ KeyWord: data }).then(res => { + this.wharfData = res.data + }) + }, /** * 提交表单 diff --git a/src/views/main/vesselinfo/editForm.vue b/src/views/main/vesselinfo/editForm.vue index 6ea99bf..30980ad 100644 --- a/src/views/main/vesselinfo/editForm.vue +++ b/src/views/main/vesselinfo/editForm.vue @@ -172,11 +172,22 @@ - - + + + + {{ item.name }} + + @@ -203,7 +214,8 @@ import { GetPortloadlist, GetPortlist, GetCarrierlist, - GetVessellist + GetVessellist, + GetYardlist } from '@/api/modular/main/vesselinfo' export default { data() { @@ -233,7 +245,8 @@ export default { portTransitData: [], portDischargeData: [], carrierData: [], - vesselData: [] + vesselData: [], + wharfData: [] } }, mounted() {}, @@ -295,6 +308,11 @@ export default { this.vesselData = res.data }) }, + wharfSearch(data) { + GetYardlist({ KeyWord: data }).then(res => { + this.wharfData = res.data + }) + }, handleSubmit() { const { form: { validateFields }