作者 xudada

更改服务名,更新国家代码关区等

... ... @@ -30,8 +30,8 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api':{
// target: 'http://192.168.1.53:12343',//设置你调用的接口域名和端口号 别忘了加http
target: 'http://localhost:12343',//设置你调用的接口域名和端口号 别忘了加http
target: 'http://192.168.1.53:12343',//设置你调用的接口域名和端口号 别忘了加http
// target: 'http://localhost:12343',//设置你调用的接口域名和端口号 别忘了加http
changeOrigin: true,
pathRewrite: {
'^/api/': '/'//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
... ...
... ... @@ -6313,7 +6313,7 @@
},
"normalize-wheel": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
},
"npm": {
... ...
... ... @@ -6,4 +6,6 @@ export const getMt1201List=params=>{return http.get(`${baseUrl}/getMt1201List`,
export const getFenList=params=>{return http.get(`${baseUrl}/getFenList`, params);};
export const addMt1201=params=>{return http.post(`${baseUrl}/addMt1201`, params);};
export const ediMt1201=params=>{return http.put(`${baseUrl}/ediMt1201`, params);};
export const selectAirport=params=>{return http.get(`${baseUrl}/selectList`, params);};
export const getCountryCode=params=>{return http.get(`${baseUrl}/getCountryCode`, params);};
export const selectCustomcode=params=>{return http.get(`${baseUrl}/selectCustomcode`, params);};
\ No newline at end of file
... ...
... ... @@ -26,12 +26,30 @@
</el-col>
<el-col :span="5">
<el-form-item label="始发站" prop="originstation">
<el-input placeholder="" v-model="ruleForm.originstation"></el-input>
<el-select v-model="ruleForm.originstation" filterable placeholder="请选择">
<el-option
v-for="item in options"
:key="item.airportid"
:label="item.airportid"
:value="item.airportid">
<span style="float: left">{{ item.airportid }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportdescchn }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="目的站" prop="destinationstation">
<el-input placeholder="" v-model="ruleForm.destinationstation" :disabled="true"></el-input>
<el-select v-model="ruleForm.destinationstation" filterable placeholder="请选择">
<el-option
v-for="item in options2"
:key="item.airportid"
:label="item.airportid"
:value="item.airportid">
<span style="float: left">{{ item.airportid }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportdescchn }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
... ... @@ -56,6 +74,7 @@
</style>
<script>
import { selectAirport } from '../../api/mt1201'
export default {
data() {
return {
... ... @@ -64,8 +83,11 @@
flightno:'',
flightdate:'',
originstation:'',
destinationstation:'CGO'
destinationstation:''
},
options: [],
options2:[],
airportid:'',
/*表单校验规则*/
rules: {
flightno: [
... ... @@ -87,6 +109,13 @@
};
},
methods:{
getFlightList:function() {
let params={};
selectAirport(params).then(res=>{
this.options=res.data.data;
this.options2=res.data.data;
});
},
/*按钮点击请求方法*/
submitForm(formName) {
this.$refs[formName].validate((valid) => {
... ... @@ -110,12 +139,14 @@
this.ruleForm.flightno=this.$route.params.row.flightno;
this.ruleForm.flightdate=this.$route.params.row.flightdate;
this.ruleForm.originstation=this.$route.params.row.originstation;
this.ruleForm.destinationstation=this.$route.params.row.destinationstation;
}
}
},
/*渲染方法*/
mounted(){
this.getDefaultData();
this.getFlightList();
}
};
</script>
... ...
... ... @@ -25,13 +25,37 @@
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="始发站" prop="originstation">
<!--<el-form-item label="始发站" prop="originstation">
<el-input placeholder="" v-model="ruleForm.originstation"></el-input>
</el-form-item>-->
<el-form-item label="始发站" prop="originstation">
<el-select v-model="ruleForm.originstation" filterable placeholder="请选择">
<el-option
v-for="item in options"
:key="item.airportid"
:label="item.airportid"
:value="item.airportid">
<span style="float: left">{{ item.airportid }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportdescchn }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="目的站" prop="destinationstation">
<!--<el-form-item label="目的站" prop="destinationstation">
<el-input placeholder="" v-model="ruleForm.destinationstation" :disabled="true"></el-input>
</el-form-item>-->
<el-form-item label="目的站" prop="destinationstation">
<el-select v-model="ruleForm.destinationstation" filterable placeholder="请选择">
<el-option
v-for="item in options"
:key="item.airportid"
:label="item.airportid"
:value="item.airportid">
<span style="float: left">{{ item.airportid }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportdescchn }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
... ... @@ -56,6 +80,7 @@
</style>
<script>
import { selectAirport } from '../../api/mt1201'
export default {
data() {
return {
... ... @@ -64,8 +89,10 @@
flightno: '',
flightdate:'',
originstation:'',
destinationstation:'CGO'
destinationstation:''
},
options: [],
airportid:'',
/*表单验证方法*/
rules: {
flightno: [
... ... @@ -87,6 +114,12 @@
};
},
methods:{
getFlightList:function() {
let params={};
selectAirport(params).then(res=>{
this.options=res.data.data;
});
},
/*按钮点击请求方法*/
submitForm(formName) {
this.$refs[formName].validate((valid) => {
... ... @@ -110,12 +143,14 @@
this.ruleForm.flightno=this.$route.params.row.flightno;
this.ruleForm.flightdate=this.$route.params.row.flightdate;
this.ruleForm.originstation=this.$route.params.row.originstation;
this.ruleForm.destinationstation=this.$route.params.row.destinationstation;
}
}
},
/*渲染方法*/
mounted(){
this.getDefaultData();
this.getFlightList();
}
};
... ...
... ... @@ -4,7 +4,7 @@
<!--检索条件-->
<el-row>
<el-col :span="4">
<div class="grid-content bg-purple">
<div>
<el-input v-model="carrier" placeholder="">
<template slot="prepend">航班号</template>
</el-input>
... ...
... ... @@ -116,7 +116,6 @@
label="回执信息"
width="180">
</el-table-column>
</el-table-column>
<el-table-column
prop="operation"
label="操作"
... ... @@ -362,9 +361,15 @@
</el-col>
<el-col :span="6">
<el-form-item label="海关关区" prop="customcode">
<el-select v-model="ruleForm.customcode" placeholder="" style="display:inline">
<el-option v-for="(item,index) in customcodes" :key="index" :label="item.label"
:value="item.value"></el-option>
<el-select v-model="ruleForm.customcode" filterable placeholder="请选择" style="display:inline">
<el-option
v-for="item in customcodes"
:key="item.customcode"
:label="item.customcode"
:value="item.customcode">
<span style="float: left">{{ item.customcode }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.customname }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
... ... @@ -390,11 +395,23 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
<!--<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
<el-select v-model="ruleForm.awbinfo.shprcountyr" placeholder="" style="display:inline">
<el-option v-for="item in shprcountyrs" :key="item" :label="item"
:value="item"></el-option>
</el-select>
</el-form-item>-->
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
<el-select v-model="ruleForm.awbinfo.shprcountyr" filterable placeholder="请选择">
<el-option
v-for="item in shprcountyrs"
:key="item.countryCode"
:label="item.countryCode"
:value="item.countryCode">
<span style="float: left">{{ item.countryNameCn }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
... ... @@ -421,10 +438,17 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="国家代码" prop="awbinfo.cnscountyr">
<el-select v-model="ruleForm.awbinfo.cnscountyr" placeholder="" style="display:inline">
<el-option v-for="item in cnscountyrs" :key="item" :label="item"
:value="item"></el-option>
<el-select v-model="ruleForm.awbinfo.cnscountyr" filterable placeholder="请选择">
<el-option
v-for="item in cnscountyrs"
:key="item.countryCode"
:label="item.countryCode"
:value="item.countryCode">
<span style="float: left">{{ item.countryNameCn }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.countryCode }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
... ... @@ -522,13 +546,13 @@
</div>
</el-col>
<el-col :span="2.5" class="pub">
<div class="grid-content"><span>主单数:999</span></div>
<div class="grid-content"><span>主单数:{{sumNmmsCount}}</span></div>
</el-col>
<el-col :span="3.5" class="pub">
<div class="grid-content"><span>舱单总件数:999999</span></div>
<div class="grid-content"><span>舱单总件数:{{sumNmmsPrice}}</span></div>
</el-col>
<el-col :span="4" class="pub">
<div class="grid-content"><span>舱单总重量:999999</span></div>
<div class="grid-content"><span>舱单总重量:{{sumNmmsWeight}}</span></div>
</el-col>
</el-row>
<!--对话提示框-->
... ... @@ -601,7 +625,7 @@
</style>
<script>
import { getMt1201List,addMt1201,ediMt1201,getFenList } from '../../api/mt1201'
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode } from '../../api/mt1201'
export default {
data() {
/*初始数据*/
... ... @@ -712,23 +736,8 @@
value: '008',
label: '惰性物料'
}],
customcodes:[
{
value: '-1',
label: '请选择'
},
{
value: '4604',
label: '4604'
},
{
value: '4620',
label: '4620'
},
{
value: '4613',
label: '4613'
}],
customcodes:[],
customcode:'',
rules: {
waybill: [{required: true, message: '请输入运单号', trigger: 'blur'}],
flightno: [{required: true, message: '航班号必须输入', trigger: 'blur'}],
... ... @@ -757,12 +766,16 @@
},
labelPosition: 'left',
splitcodes: [{value:'T',label:'否'},{value:'P',label:'是'}],
shprcountyrs:['US','CN'],
cnscountyrs:['US','CN'],
shprcountyrs:[],
cnscountyrs:[],
countryCode:'',
msg:'',
code:'',
centerDialogVisible:false,
FenStatus:''
FenStatus:'',
sumNmmsCount:0,
sumNmmsPrice:0,
sumNmmsWeight:0,
}
},
methods: {
... ... @@ -783,6 +796,8 @@
this.FenQuery.originstation=this.defaultQuery.originstation;
this.FenQuery.destinationstation=row.destinationstation;
this.getFenList(this.FenQuery);
this.getCountryCode();
this.selectCustomcode();
},
/*编辑分单信息*/
handleFen(index,row){
... ... @@ -817,8 +832,34 @@
getList(){
getMt1201List(this.defaultQuery).then(res =>{
//console.log(res);
this.sumNmmsCount=0;
this.sumNmmsPrice=0;
this.sumNmmsWeight=0;
let response=res.data.data;
this.tableData=response;
response.forEach((item,i) => {
if(item.awba!=null&&item.awbh=="");
this.sumNmmsCount=Number(this.sumNmmsCount)+1;
this.sumNmmsPrice=Number(this.sumNmmsPrice)+Number(item.piece);
this.sumNmmsWeight=Number(this.sumNmmsWeight)+Number(item.weight);
})
});
},
/*获取国家代码*/
getCountryCode(){
let params={};
getCountryCode(params).then(res =>{
//console.log(res);
this.shprcountyrs=res.data.data;
this.cnscountyrs=res.data.data;
});
},
//获取关区代码
selectCustomcode(){
let params={};
selectCustomcode(params).then(res =>{
//console.log(res);
this.customcodes=res.data.data;
});
},
//新增原始舱单按钮
... ...
... ... @@ -311,9 +311,9 @@
<el-col :span="2.5"><div class="grid-content"><el-button type="primary" v-on:click="addTally" size="mini">新增进港理货</el-button></div></el-col>
<el-col :span="2.5"><div class="grid-content"><el-button type="primary" size="mini">批量发送删除报</el-button></div></el-col>
<el-col :span="2"><div class="grid-content"><el-button type="primary" size="mini">返回</el-button></div></el-col>
<el-col :span="2.5"><div class="grid-content"><span>主单数:999</span></div></el-col>
<el-col :span="3.5"><div class="grid-content"><span>理货总件数:999999</span></div></el-col>
<el-col :span="4"><div class="grid-content"><span>理货总重量:999999</span></div></el-col>
<el-col :span="2.5"><div class="grid-content"><span>主单数:{{sumNmmsCount}}</span></div></el-col>
<el-col :span="3.5"><div class="grid-content"><span>理货总件数:{{sumNmmsPrice}}</span></div></el-col>
<el-col :span="4"><div class="grid-content"><span>理货总重量:{{sumNmmsWeight}}</span></div></el-col>
</el-row>
<!--对话提示框-->
<el-row>
... ... @@ -440,6 +440,9 @@
},
centerDialogVisible:false,
msg:'',
sumNmmsCount:0,
sumNmmsPrice:0,
sumNmmsWeight:0,
}
},
methods: {
... ... @@ -478,9 +481,17 @@
//获取进港理货列表
getMt5201List(){
getMt5201List(this.defaultQuery).then(res =>{
console.log(res);
this.sumNmmsCount=0;
this.sumNmmsPrice=0;
this.sumNmmsWeight=0;
let response=res.data.data;
this.tableData=response;
this.tableData=response;
response.forEach((item,i) => {
if(item.awba!=null&&item.awbh=="");
this.sumNmmsCount=Number(this.sumNmmsCount)+1;
this.sumNmmsPrice=Number(this.sumNmmsPrice)+Number(item.piece);
this.sumNmmsWeight=Number(this.sumNmmsWeight)+Number(item.weight);
})
});
},
//新增理货按钮事件
... ...