Commit c15a2c04 authored by zhoutong's avatar zhoutong

国外供应商详情

parent cf733825
......@@ -6,7 +6,7 @@ VUE_APP_TITLE = 捷道管理系统-测试站
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'https://api.sit.jdshangmen.com'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
......
......@@ -288,7 +288,7 @@
<el-input v-model="formData.externalVO.goodName" :placeholder="$t('请输入品名')" show-word-limit clearable readonly></el-input>
</el-form-item>
<el-form-item :label="$t('清关国家')" prop="clearanceFileId">
<el-select v-model="formData.clearanceFileId" @change="changeFile" disabled>
<el-select v-model="formData.externalVO.clearanceFileId" @change="changeFile" disabled>
<el-option v-for="(item) in fileList" :value="item.id" :label="getCountry(item.country,item.district)" :key="item.id" />
</el-select>
</el-form-item>
......@@ -347,6 +347,7 @@ import Selector from '@/components/Selector'
import {validatePwd} from '@/api/ecw/busiPwd'
import SuppliersSelector from '@/components/SuppliersSelector'
import { getDockPage } from "@/api/ecw/dock";
import { getListTree } from "@/api/ecw/region";
export default {
components: {upload, AreaSelector, Selector, SuppliersSelector},
props: [],
......@@ -457,6 +458,9 @@ export default {
getDockPage({ pageNo: "1", pageSize: "10000" }).then((res) => {
this.allDocks = res.data.list;
});
getListTree({treeType: 1}).then(response => {
this.treeList = response.data
})
this.getFile()
......@@ -570,8 +574,11 @@ export default {
},
getCountry(countryId, districtId) {
let country = this.treeList.find(item=>item.id == countryId)
if(country){
let district = country.children.find(item=>item.id == districtId)
return this.$l(country, 'title')+' '+this.$l(district, 'title')
}
return ''
},
delContact(index){
this.$confirm(this.$t('确定删除此联系人么?')).then(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment