|
@@ -269,12 +269,12 @@
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="码头编号" prop="fNo">
|
|
|
- <el-input v-model="form.fNo" style="width: 80%" placeholder="请输入编号" :disabled="doNot"/>
|
|
|
+ <el-input v-model="form.fNo" style="width: 80%" @blur="onlyNo" placeholder="请输入编号" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="码头全称" prop="fName">
|
|
|
- <el-input v-model="form.fName" style="width: 78%" placeholder="请输入码头名称" :disabled="doNot"/>
|
|
|
+ <el-input v-model="form.fName" @blur="onlyName" style="width: 78%" placeholder="请输入码头名称" :disabled="doNot"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
@@ -328,12 +328,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { getwharf,listCorps, getCorps, delCorps, addwharf, updateCorps, changeCorpsStatus,exportCorps } from "@/api/kaihe/basicdata/wharf";
|
|
|
+ import { getwharf,listCorps, getCorps, delCorps, addwharf, getyardNo, getyardName, changeCorpsStatus,exportCorps } from "@/api/kaihe/basicdata/wharf";
|
|
|
import {queryUserVal} from "@/api/system/user";
|
|
|
import { isArray } from '@/utils/validate'
|
|
|
import Vue from 'vue'
|
|
|
import { getportinformation } from '@/api/kaihe/basicdata/portinformation'
|
|
|
- import { getyard } from '@/api/kaihe/basicdata/yard'
|
|
|
Vue.directive('dialogDrag', {
|
|
|
bind(el, binding, vnode, oldVnode) {
|
|
|
const dialogHeaderEl = el.querySelector('.el-dialog__header')
|
|
@@ -444,7 +443,7 @@
|
|
|
fPort:null,
|
|
|
fNo:null,
|
|
|
fName:null,
|
|
|
- fTypes:'3',
|
|
|
+ fTypes:'2',
|
|
|
fEname:null,
|
|
|
fStatus:'T',
|
|
|
remark:null
|
|
@@ -466,6 +465,29 @@
|
|
|
this.wharfRemoteMethod()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //编号唯一
|
|
|
+ onlyNo(){
|
|
|
+ console.log(this.form.fNo)
|
|
|
+ let formData = {
|
|
|
+ fNo:this.form.fNo,
|
|
|
+ fTypes:this.form.fTypes
|
|
|
+ }
|
|
|
+ getyardNo(formData).then(response =>{
|
|
|
+ console.log(response)
|
|
|
+ })
|
|
|
+ .catch(_ => {this.form.fNo = ''})
|
|
|
+ },
|
|
|
+ //全称唯一
|
|
|
+ onlyName(){
|
|
|
+ let formData = {
|
|
|
+ fName:this.form.fName,
|
|
|
+ fTypes:this.form.fTypes
|
|
|
+ }
|
|
|
+ getyardName(formData).then(response =>{
|
|
|
+ console.log(response)
|
|
|
+ })
|
|
|
+ .catch(_ => {this.form.fName = ''})
|
|
|
+ },
|
|
|
//模糊查询港口名称
|
|
|
portRemoteMethod(){
|
|
|
let queryParams = { pageNum: 1,};
|
|
@@ -513,7 +535,7 @@
|
|
|
fPort:null,
|
|
|
fNo:null,
|
|
|
fName:null,
|
|
|
- fTypes:'3',
|
|
|
+ fTypes:'2',
|
|
|
fEname:null,
|
|
|
fStatus:'T',
|
|
|
remark:null
|