作者 小范

新增电报查询界面

@@ -23,6 +23,9 @@ export const edit = params => {return axios.post(`${base}/businesstype/edit`, pa @@ -23,6 +23,9 @@ export const edit = params => {return axios.post(`${base}/businesstype/edit`, pa
23 export const fhl = params => {return axios.post(`${base1}/efre/fhl`, params);}; 23 export const fhl = params => {return axios.post(`${base1}/efre/fhl`, params);};
24 export const fwb = params => {return axios.post(`${base1}/efre/fwb`, params);}; 24 export const fwb = params => {return axios.post(`${base1}/efre/fwb`, params);};
25 export const selectawabByid = params => {return http.get(`${base1}/awba/selectawabByid`, params);}; 25 export const selectawabByid = params => {return http.get(`${base1}/awba/selectawabByid`, params);};
  26 +//获取电报列表
  27 +export const selectList = params => {return http.get(`${base1}/awba/selectList`, params);};
  28 +export const selectByKey = params => {return http.get(`${base1}/awba/selectByKey`, params);};
26 29
27 30
28 31
@@ -158,6 +158,7 @@ import Warehouse from './views/station_manage/Warehouse.vue' @@ -158,6 +158,7 @@ import Warehouse from './views/station_manage/Warehouse.vue'
158 import Express from './views/express_system/express.vue' 158 import Express from './views/express_system/express.vue'
159 //给海龙做的货运单 159 //给海龙做的货运单
160 import Way from './views/nav3/Way.vue' 160 import Way from './views/nav3/Way.vue'
  161 +import Telegram from './views/nav3/Telegram.vue'
161 //朱总让做的网页在线客服 162 //朱总让做的网页在线客服
162 import Webdialog from './views/bus/Webdialog.vue' 163 import Webdialog from './views/bus/Webdialog.vue'
163 164
@@ -213,6 +214,7 @@ let routes = [ @@ -213,6 +214,7 @@ let routes = [
213 iconCls: 'el-icon-collection', 214 iconCls: 'el-icon-collection',
214 children: [ 215 children: [
215 {path: '/Way', component: Way, name: '货运单'}, 216 {path: '/Way', component: Way, name: '货运单'},
  217 + {path: '/Telegram', component: Telegram, name: '电报查询'},
216 {path: '/Webdialog', component: Webdialog, name: '在线客服'} 218 {path: '/Webdialog', component: Webdialog, name: '在线客服'}
217 ] 219 ]
218 }, 220 },
  1 +<template>
  2 + <el-row>
  3 + <el-card style="background-color: #F5F7FA">
  4 + <!-- 搜索区域-->
  5 + <el-row class="toolbar">
  6 + <el-col :span="5">
  7 + <el-input v-model="queryInfo.waybillNum" prefix-icon="el-icon-search" size="small"
  8 + placeholder="主单号" clearable>
  9 + <template slot="prepend">主单号</template>
  10 + </el-input>
  11 + </el-col>
  12 + <el-col :span="5" style="margin-left: 10px">
  13 + <el-input v-model="queryInfo.hbs_serial_number" prefix-icon="el-icon-search" size="small"
  14 + placeholder="分单号" clearable>
  15 + <template slot="prepend">分单号</template>
  16 + </el-input>
  17 + </el-col>
  18 + <el-col :span="5" style="margin-left: 10px">
  19 + <el-input v-model="queryInfo.opter" prefix-icon="el-icon-search" size="small"
  20 + placeholder="操作代理人" clearable>
  21 + <template slot="prepend">代理人</template>
  22 + </el-input>
  23 + </el-col>
  24 + <el-col :span="5" style="margin-left: 10px">
  25 + <el-button type="primary" icon="el-icon-search" size="small" @click="getList()">
  26 + 查询
  27 + </el-button>
  28 +<!-- <el-button type="success" icon="el-icon-edit" size="small" @click="applyAdd()">新增</el-button>-->
  29 + </el-col>
  30 + </el-row>
  31 + <!-- 列表区域-->
  32 + <el-row>
  33 + <template>
  34 + <el-table
  35 + :data="tableData"
  36 + border
  37 + :cell-style="{textAlign:'center'}"
  38 + style="border-radius: 10px 10px 0px 0px;line-height: 25px"
  39 + :header-cell-style="{background:'#6F8294',color:'#FFFFFF'}" size="small"
  40 + >
  41 + <el-table-column
  42 + prop="waybillNum"
  43 + label="主单号">
  44 + </el-table-column>
  45 + <el-table-column
  46 + prop="hbs_serial_number"
  47 + label="分单号">
  48 + </el-table-column>
  49 + <el-table-column
  50 + prop="opter"
  51 + label="代理人">
  52 + </el-table-column>
  53 + <el-table-column
  54 + prop="origin"
  55 + label="起始站">
  56 + </el-table-column>
  57 + <el-table-column
  58 + prop="destination"
  59 + label="目的站">
  60 + </el-table-column>
  61 + <el-table-column
  62 + prop="quantity_picecs"
  63 + label="件数">
  64 + </el-table-column>
  65 + <el-table-column
  66 + prop="quantity_weight"
  67 + label="重量">
  68 + </el-table-column>
  69 + <el-table-column
  70 + prop="cariier"
  71 + label="承运人">
  72 + </el-table-column>
  73 + <el-table-column
  74 + prop="flightNumber"
  75 + label="航班号">
  76 + </el-table-column>
  77 + <el-table-column
  78 + prop="day"
  79 + label="航班日期">
  80 + </el-table-column>
  81 + <el-table-column
  82 + fixed="right"
  83 + label="操作"
  84 + width="160">
  85 + <template slot-scope="scope">
  86 + <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>
  87 +<!-- <el-button type="danger" size="mini" @click="applyDel(scope.row)">删除</el-button>-->
  88 + </template>
  89 + </el-table-column>
  90 + </el-table>
  91 + </template>
  92 + </el-row>
  93 + <el-row style="margin-top: 10px" class="toolbar">
  94 + <el-pagination
  95 + @size-change="handleSizeChange"
  96 + @current-change="handleCurrentChange"
  97 + :current-page="queryInfo.pageNum"
  98 + :page-size="queryInfo.pageSize"
  99 + :page-sizes="[10, 50, 100, 500]"
  100 + layout="total, sizes, prev, pager, next, jumper"
  101 + :total="total">
  102 + </el-pagination>
  103 + </el-row>
  104 + <el-row>
  105 + <el-dialog :title="dialogMap[dialogApply]" :visible.sync="apply_dialog" width="50%" >
  106 + <el-form :model="addForm" :rules="rules" ref="addForm" style="margin-top: 40px">
  107 + <el-row>
  108 + <el-col :span="11">
  109 + <el-form-item label=" " :label-width="formLabelWidth" prop="billTypeName">
  110 + <el-input v-model="addForm.billTypeName" autocomplete="off" size="small" style="width: 260px">
  111 + <template slot="prepend">费用类别名称</template>
  112 + </el-input>
  113 + </el-form-item>
  114 + </el-col>
  115 + </el-row>
  116 + <el-row>
  117 + <el-col :span="11">
  118 + <el-form-item label=" " :label-width="formLabelWidth" prop="billRateUnit">
  119 + <el-input v-model="addForm.billRateUnit" autocomplete="off" size="small" style="width: 260px">
  120 + <template slot="prepend">计费单位</template>
  121 + </el-input>
  122 + </el-form-item>
  123 + </el-col>
  124 + </el-row>
  125 + <el-row>
  126 + <el-col :span="11">
  127 + <el-form-item label=" " :label-width="formLabelWidth" prop="billRate">
  128 + <el-input v-model="addForm.billRate" autocomplete="off" size="small" style="width: 260px">
  129 + <template slot="prepend">费率</template>
  130 + </el-input>
  131 + </el-form-item>
  132 + </el-col>
  133 +
  134 + </el-row>
  135 + </el-form>
  136 + <div slot="footer" class="dialog-footer">
  137 + <el-button @click="apply_dialog = false" size="small">取 消</el-button>
  138 + <el-button type="primary" @click="dialogApply==='create'?add():edit()" size="small">提 交</el-button>
  139 + </div>
  140 + </el-dialog>
  141 + </el-row>
  142 + </el-card>
  143 + </el-row>
  144 +</template>
  145 +
  146 +<script>
  147 + import {selectList,selectByKey} from '../../api/remote_interface/byont_import';
  148 +
  149 + export default {
  150 + name: "Telegram",
  151 + data() {
  152 + return {
  153 + queryInfo: {
  154 + waybillNum:'',
  155 + hbs_serial_number:'',
  156 + opter:'',
  157 + // 当前页数
  158 + pageNum: 1,
  159 + // 每页大小
  160 + pageSize: 10,
  161 + },
  162 + total: 0,
  163 + tableData:[],
  164 + dialogMap: {
  165 + update: '编辑',
  166 + create: '新增'
  167 + },
  168 + dis: undefined,
  169 + dialogApply: 'update',
  170 + apply_dialog: false,
  171 + addForm: {
  172 + billTypeName: '',
  173 + billTypeId: '',
  174 + billRateUnit: '',
  175 + billRate: '',
  176 + },
  177 + formLabelWidth: '220px',
  178 + rules: {
  179 + billTypeName: [
  180 + { required: true, message: '必填', trigger: 'change' }
  181 + ],
  182 + },
  183 + }
  184 + },
  185 + methods: {
  186 + handleCurrentChange(val) {
  187 + this.queryInfo.pageNum = val
  188 + this.getList()
  189 + },
  190 + handleSizeChange(val) {
  191 + this.queryInfo.pageSize = val
  192 + this.getList()
  193 + },
  194 + getList() {
  195 + const _this = this
  196 + selectList(this.queryInfo).then((response) => {
  197 + const res = response.data
  198 + console.log(response.data)
  199 + if (res.code !== '200') {
  200 + return _this.$message.error('获取消息收发记录,失败!')
  201 + }
  202 + // 获取列表数据
  203 + _this.tableData = res.data.list
  204 + // 获取列表的总记录数
  205 + _this.total = res.data.total
  206 + _this.$message.success('获取消息收发记录,成功!')
  207 + }).catch(error => {
  208 + // 关闭加载
  209 + _this.$message.error(error.toString())
  210 + })
  211 + },
  212 +// 打开编辑
  213 + applyEdit(row) {
  214 + this.$router.push(
  215 + {
  216 + path:'/Way',
  217 + query:{
  218 + id: row.id
  219 + }
  220 + }
  221 + )
  222 + },
  223 + // 编辑功能
  224 + edit() {
  225 + // 进行表单的预验证
  226 + this.$refs.addForm.validate(valid => {
  227 + // 未通过,表单预校验
  228 + if (!valid) return
  229 + selectByKey(this.addForm).then((response) => {
  230 + // console.log(row)
  231 + const res = response.data
  232 + if (res.code != '200') {
  233 + return this.$message.error(res.msg)
  234 + }
  235 + this.$message.success(res.msg)
  236 + // 隐藏对话框
  237 + this.apply_dialog = false
  238 + // 刷新列表
  239 + this.getList()
  240 + }).catch(error => {
  241 + this.$message.error(error.toString())
  242 + })
  243 + })
  244 + },
  245 + },
  246 + mounted() {
  247 + this.getList();
  248 + }
  249 + }
  250 +</script>
  251 +
  252 +<style scoped>
  253 + .toolbar{
  254 + height: 60px;
  255 + background-color: white;
  256 + /*line-height: 60px;*/
  257 + vertical-align: middle;
  258 + border-radius: 5px 5px 5px 5px;
  259 + padding: 15px 0 0 20px;
  260 + box-shadow: 0px 5px 5px #e5e8eb;
  261 + }
  262 + .my-text-area .prepand{
  263 + float: left;
  264 + width:89px;
  265 + height: 28px;
  266 + font-size: 12px;
  267 + line-height: 28px;
  268 + }
  269 +</style>
  270 +<style>
  271 + .my-text-area .el-textarea__inner{
  272 + min-height: 28px;
  273 + height: 28px;
  274 + border-bottom-left-radius: 0;
  275 + border-top-left-radius: 0;
  276 + }
  277 +</style>
@@ -655,7 +655,7 @@ Handling Information @@ -655,7 +655,7 @@ Handling Information
655 </span> 655 </span>
656 </el-col> 656 </el-col>
657 <el-col :span="7"> 657 <el-col :span="7">
658 - <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.rtd.rtd_charge_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input> 658 + <el-input :disabled="form.cvd.cvd_charge_prepaid=='PP'" v-model="form.ppd.ppd_weight_amount" auto-complete="off" placeholder="计费重量" size="mini"></el-input>
659 </el-col> 659 </el-col>
660 </el-row> 660 </el-row>
661 </el-col> 661 </el-col>
@@ -1847,12 +1847,12 @@ Handling Information @@ -1847,12 +1847,12 @@ Handling Information
1847 </template> 1847 </template>
1848 1848
1849 <script> 1849 <script>
1850 - import {fhl,fwb,selectawabByid} from '../../api/remote_interface/byont_import'; 1850 + import {fhl, fwb, selectawabByid, selectByKey, selectList} from '../../api/remote_interface/byont_import';
1851 import Consigner from "../consigner/consigner" 1851 import Consigner from "../consigner/consigner"
1852 import Consignee from "../consigner/consignee" 1852 import Consignee from "../consigner/consignee"
1853 import {loginedUserInfo} from "../../api/user"; 1853 import {loginedUserInfo} from "../../api/user";
1854 import {getList} from "../../api/consigner/consigner"; 1854 import {getList} from "../../api/consigner/consigner";
1855 - 1855 + import jsutil from "@/common/js/util";
1856 1856
1857 export default { 1857 export default {
1858 components: { 1858 components: {
@@ -2075,7 +2075,7 @@ Handling Information @@ -2075,7 +2075,7 @@ Handling Information
2075 hbs_pieces:'', 2075 hbs_pieces:'',
2076 hbs_serial_number:'', 2076 hbs_serial_number:'',
2077 hbs_weight:'', 2077 hbs_weight:'',
2078 - hbs_weight_code:'', 2078 + hbs_weight_code:'K',
2079 hbs_slac:'' 2079 hbs_slac:''
2080 }, 2080 },
2081 txt:{ 2081 txt:{
@@ -2128,7 +2128,8 @@ Handling Information @@ -2128,7 +2128,8 @@ Handling Information
2128 for (let key in circle) { //把第一个对象的属性都赋值给新对象newObj 然后每个属性的值都设置为空; 2128 for (let key in circle) { //把第一个对象的属性都赋值给新对象newObj 然后每个属性的值都设置为空;
2129 newObj[key] = ''; 2129 newObj[key] = '';
2130 } 2130 }
2131 - this.gridData.splice(this.gridData.length - 1, 0, newObj); 2131 + // this.gridData.splice(this.gridData.length - 1, 0, newObj);
  2132 + this.gridData.push(newObj);
2132 }, 2133 },
2133 //删除行 2134 //删除行
2134 deleteRows(scope) { 2135 deleteRows(scope) {
@@ -2136,6 +2137,7 @@ Handling Information @@ -2136,6 +2137,7 @@ Handling Information
2136 }, 2137 },
2137 //求体积 2138 //求体积
2138 handleEdit(index, row) { 2139 handleEdit(index, row) {
  2140 + console.log("index="+index)
2139 if(row.long && row.wide && row.height && row.pic){ 2141 if(row.long && row.wide && row.height && row.pic){
2140 row.vol = Number(row.long)*Number(row.wide)*Number(row.height)*Number(row.pic)/1000000 2142 row.vol = Number(row.long)*Number(row.wide)*Number(row.height)*Number(row.pic)/1000000
2141 let measurement_info = { 2143 let measurement_info = {
@@ -2145,10 +2147,13 @@ Handling Information @@ -2145,10 +2147,13 @@ Handling Information
2145 dim_weight:'', 2147 dim_weight:'',
2146 dim_weightcode:'', 2148 dim_weightcode:'',
2147 }; 2149 };
2148 -  
2149 this.form.rtd.dimensions[index] = measurement_info; 2150 this.form.rtd.dimensions[index] = measurement_info;
2150 - console.log(this.form.rtd.dimensions) 2151 + // console.log(this.form.rtd.dimensions);
  2152 + console.log("DIM数组加入了新的行数据>>"+JSON.stringify(this.form.rtd.dimensions))
  2153 + }else {
  2154 + console.error("DIM数组没加数据-ERRRRRR")
2151 } 2155 }
  2156 +
2152 }, 2157 },
2153 //合计体积 2158 //合计体积
2154 getSummaries(param) { 2159 getSummaries(param) {
@@ -2216,9 +2221,9 @@ Handling Information @@ -2216,9 +2221,9 @@ Handling Information
2216 this.form.shp.shp_adr = row.conAddress; 2221 this.form.shp.shp_adr = row.conAddress;
2217 this.shp_oci.oci_csrc_info=row.conAeo; 2222 this.shp_oci.oci_csrc_info=row.conAeo;
2218 this.shp_oci.oci_country_code=row.country; 2223 this.shp_oci.oci_country_code=row.country;
2219 - this.form.oci.push(this.shp_oci); 2224 + // this.form.oci.push(this.shp_oci);
2220 this.shp_contact.contact_number=row.conPhone; 2225 this.shp_contact.contact_number=row.conPhone;
2221 - this.form.shp.shp_contacts.push(this.shp_contact); 2226 + // this.form.shp.shp_contacts.push(this.shp_contact);
2222 this.dialogVisible = false; 2227 this.dialogVisible = false;
2223 } 2228 }
2224 else if(this.activeName=='second'){ 2229 else if(this.activeName=='second'){
@@ -2230,7 +2235,7 @@ Handling Information @@ -2230,7 +2235,7 @@ Handling Information
2230 this.addForm.shp.shp_adr_street = row.conAddress; 2235 this.addForm.shp.shp_adr_street = row.conAddress;
2231 this.shp_aeo.oci_supplementary=row.conAeo; 2236 this.shp_aeo.oci_supplementary=row.conAeo;
2232 this.shp_aeo.oci_country_code=row.country; 2237 this.shp_aeo.oci_country_code=row.country;
2233 - this.addForm.oci.push(this.shp_aeo); 2238 + // this.addForm.oci.push(this.shp_aeo);
2234 this.dialogVisible = false; 2239 this.dialogVisible = false;
2235 } 2240 }
2236 else{ 2241 else{
@@ -2248,9 +2253,9 @@ Handling Information @@ -2248,9 +2253,9 @@ Handling Information
2248 this.form.cne.cne_adr = row.conAddress; 2253 this.form.cne.cne_adr = row.conAddress;
2249 this.cne_oci.oci_csrc_info=row.conAeo; 2254 this.cne_oci.oci_csrc_info=row.conAeo;
2250 this.cne_oci.oci_country_code=row.country; 2255 this.cne_oci.oci_country_code=row.country;
2251 - this.form.oci.push(this.cne_oci); 2256 + // this.form.oci.push(this.cne_oci);
2252 this.cne_contact.contact_number=row.conPhone; 2257 this.cne_contact.contact_number=row.conPhone;
2253 - this.form.cne.cne_contacts.push(this.cne_contact); 2258 + // this.form.cne.cne_contacts.push(this.cne_contact);
2254 this.dialogVisible1 = false; 2259 this.dialogVisible1 = false;
2255 } 2260 }
2256 else if(this.activeName=='second'){ 2261 else if(this.activeName=='second'){
@@ -2262,7 +2267,7 @@ Handling Information @@ -2262,7 +2267,7 @@ Handling Information
2262 this.addForm.cne.cne_adr_street = row.conAddress; 2267 this.addForm.cne.cne_adr_street = row.conAddress;
2263 this.cne_aeo.oci_supplementary=row.conAeo; 2268 this.cne_aeo.oci_supplementary=row.conAeo;
2264 this.cne_aeo.oci_country_code=row.country; 2269 this.cne_aeo.oci_country_code=row.country;
2265 - this.addForm.oci.push(this.cne_aeo); 2270 + // this.addForm.oci.push(this.cne_aeo);
2266 this.dialogVisible1 = false; 2271 this.dialogVisible1 = false;
2267 } 2272 }
2268 else{ 2273 else{
@@ -2271,6 +2276,8 @@ Handling Information @@ -2271,6 +2276,8 @@ Handling Information
2271 }, 2276 },
2272 //新增分运单 2277 //新增分运单
2273 addFhl() { 2278 addFhl() {
  2279 + this.addForm.oci.push(this.shp_aeo);
  2280 + this.addForm.oci.push(this.cne_aeo);
2274 /*进行表单的预验证*/ 2281 /*进行表单的预验证*/
2275 this.$refs.apply_addFormRef.validate(valid => { 2282 this.$refs.apply_addFormRef.validate(valid => {
2276 // 未通过,表单预校验 2283 // 未通过,表单预校验
@@ -2351,7 +2358,17 @@ Handling Information @@ -2351,7 +2358,17 @@ Handling Information
2351 this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs; 2358 this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs;
2352 this.form.rtd.rtd_volume=this.form.bill.quantity_volume; 2359 this.form.rtd.rtd_volume=this.form.bill.quantity_volume;
2353 this.form.ppd.ppd_weight_amount=this.form.ppd.ppd_charge_summary_total; 2360 this.form.ppd.ppd_weight_amount=this.form.ppd.ppd_charge_summary_total;
  2361 + this.form.acc=[];
  2362 + this.form.oci=[];
  2363 + this.form.shp.shp_contacts=[];
  2364 + this.form.cne.cne_contacts=[];
  2365 + this.shp_oci.oci_country_code=this.form.shp.shp_country;
  2366 + this.cne_oci.oci_country_code=this.form.cne.cne_country;
2354 this.form.acc.push(this.acc_info); 2367 this.form.acc.push(this.acc_info);
  2368 + this.form.oci.push(this.shp_oci);
  2369 + this.form.shp.shp_contacts.push(this.shp_contact);
  2370 + this.form.oci.push(this.cne_oci);
  2371 + this.form.cne.cne_contacts.push(this.cne_contact);
2355 /*进行表单的预验证*/ 2372 /*进行表单的预验证*/
2356 this.$refs.apply_formRef.validate(valid => { 2373 this.$refs.apply_formRef.validate(valid => {
2357 // 未通过,表单预校验 2374 // 未通过,表单预校验
@@ -2363,6 +2380,138 @@ Handling Information @@ -2363,6 +2380,138 @@ Handling Information
2363 return this.$message.error('新增主运单,失败'); 2380 return this.$message.error('新增主运单,失败');
2364 } 2381 }
2365 this.$message.success('新增主运单,成功'); 2382 this.$message.success('新增主运单,成功');
  2383 + this.form = {
  2384 + acc:[],
  2385 + agt:{
  2386 + agt_ADR:'',
  2387 + agt_IATA_number:'',
  2388 + agt_account_number:'',
  2389 + agt_name:'',
  2390 + agt_participant_id:'',
  2391 + },
  2392 + bill:{
  2393 + destination:'',
  2394 + origin:'',
  2395 + quantity_density:'',
  2396 + quantity_picecs:'',
  2397 + //体积
  2398 + quantity_volume:'',
  2399 + quantity_volume_code:'MC',
  2400 + quantity_weight:'',
  2401 + quantity_weight_code:'K',
  2402 + waybillNum:'',
  2403 + },
  2404 + cne:{
  2405 + cne_contacts:[],
  2406 + cne_account_number:'',
  2407 + cne_adr:'',
  2408 + cne_country:'',
  2409 + cne_loc_place:'',
  2410 + cne_loc_province:'',
  2411 + cne_name:'',
  2412 + cne_postcode:'',
  2413 + },
  2414 + cvd:{
  2415 + cvd_amount_of_insurance:'XXX',
  2416 + cvd_charge_code:'',
  2417 + cvd_charge_prepaid:'PP',
  2418 + cvd_currency_code:'',
  2419 + cvd_value_for_carriage:'NVD',
  2420 + cvd_value_for_customs:'NCV',
  2421 + },
  2422 + flt:{
  2423 + cariier:'',
  2424 + day:'',
  2425 + flightNumber:'',
  2426 + },
  2427 + isu:{
  2428 + isu_day_mounth_year:'',
  2429 + isu_place_or_airport_code:'',
  2430 + isu_signature:'',
  2431 + },
  2432 + nfy:{
  2433 + nfy_contacts:[],
  2434 + nfy_ADR:'',
  2435 + nfy_LOC_city:'',
  2436 + nfy_LOC_province:'',
  2437 + nfy_country:'',
  2438 + nfy_name:'',
  2439 + nfy_postcode:''
  2440 + },
  2441 + oci:[
  2442 + // {
  2443 + // oci_country_code:'',
  2444 + // oci_csrc_id:'',
  2445 + // oci_csrc_info:'',
  2446 + // oci_information_id:''
  2447 + // }
  2448 + ],
  2449 + osi:[{
  2450 + osi_text:[],
  2451 + }],
  2452 + oth:{
  2453 + oth_amount:'',
  2454 + oth_charge_code:'',
  2455 + oth_charges:'',
  2456 + oth_entitlement_code:''
  2457 + },
  2458 + ppd:{
  2459 + ppd_charge_summary_total:'',
  2460 + ppd_other_charges_due_agent:'',
  2461 + ppd_other_charges_due_carrier:'',
  2462 + ppd_taxes_amount:'',
  2463 + ppd_valuation_amount:'',
  2464 + ppd_weight_amount:'',
  2465 + },
  2466 + ref:{
  2467 + ref_address:'CGOFDEE',
  2468 + ref_file_reference:'',
  2469 + ref_participant_airport:'',
  2470 + ref_participant_code:'',
  2471 + ref_participant_id:'',
  2472 + },
  2473 + rtd:
  2474 + {
  2475 + dimensions:[],
  2476 + rtd_charge_weight:'',
  2477 + rtd_combination_point:'',
  2478 + rtd_commodity_NUM:'',
  2479 + rtd_goods_DES:'',
  2480 + rtd_goods_consol_DES:'',
  2481 + rtd_gross_weight:'',
  2482 + rtd_number_pieces:'',
  2483 + rtd_rate_charge:'',
  2484 + rtd_rate_class:'Q',
  2485 + rtd_total:'',
  2486 + //体积
  2487 + rtd_volume:'',
  2488 + rtd_volume_code:'MC',
  2489 + }
  2490 + ,
  2491 + rtg:{
  2492 + destinationAirport:'',
  2493 + destinationCarrier:'',
  2494 + onwardAirport:'',
  2495 + onwardCarrier:'',
  2496 + },
  2497 + shp:{
  2498 + shp_contacts:[],
  2499 + shp_account_number:'',
  2500 + shp_adr:'',
  2501 + shp_country:'',
  2502 + shp_loc_place:'',
  2503 + shp_loc_province:'',
  2504 + shp_name:'',
  2505 + shp_postcode:'',
  2506 + },
  2507 + ssr:{
  2508 + ssr_request_content:[],
  2509 + },
  2510 + cer:{
  2511 + cer_signature:''
  2512 + }
  2513 + };
  2514 +
2366 }).catch(error => { 2515 }).catch(error => {
2367 this.$message.error(error.toString()); 2516 this.$message.error(error.toString());
2368 }); 2517 });
@@ -2372,8 +2521,6 @@ Handling Information @@ -2372,8 +2521,6 @@ Handling Information
2372 blur(){ 2521 blur(){
2373 selectawabByid({id: this.addForm.fhl.waybillNum}).then((res) => { 2522 selectawabByid({id: this.addForm.fhl.waybillNum}).then((res) => {
2374 if (res.data.code == '200'){ 2523 if (res.data.code == '200'){
2375 - console.log(res)  
2376 -  
2377 if(res.data.data != null&& res.data.data !=''){ 2524 if(res.data.data != null&& res.data.data !=''){
2378 this.addForm.fhl.quantity_weight = res.data.data.quantity_weight; 2525 this.addForm.fhl.quantity_weight = res.data.data.quantity_weight;
2379 this.addForm.fhl.quantity_picecs = res.data.data.quantity_picecs; 2526 this.addForm.fhl.quantity_picecs = res.data.data.quantity_picecs;
@@ -2387,7 +2534,73 @@ Handling Information @@ -2387,7 +2534,73 @@ Handling Information
2387 alert(error); 2534 alert(error);
2388 }); 2535 });
2389 }, 2536 },
  2537 + getAWBA(){
  2538 + const _this = this
  2539 + selectByKey({id:this.$route.query.id}).then((response) => {
  2540 + const res = response.data
  2541 + // console.log(response.data)
  2542 + if (res.code !== '200') {
  2543 + return _this.$message.error('获取消息收发记录,失败!')
  2544 + }
  2545 + // 获取列表数据
  2546 + _this.form = res.data
  2547 + for (const i of res.data.shp.shp_contacts) {
  2548 + _this.shp_contact=i
  2549 + }
  2550 + for (const i of res.data.cne.cne_contacts) {
  2551 + _this.cne_contact=i
  2552 + }
  2553 + for (const i of res.data.oci) {
  2554 + if(i.oci_information_id=="SHP"){
  2555 + _this.shp_oci=i;
  2556 + }else{
  2557 + _this.cne_oci=i;
  2558 + }
  2559 + }
  2560 + for (const i of res.data.acc) {
  2561 + _this.acc_info=i
  2562 + }
  2563 + _this.$message.success(res.msg)
  2564 + }).catch(error => {
  2565 + // 关闭加载
  2566 + _this.$message.error(error.toString())
  2567 + })
  2568 + },
  2569 + getAWBH(){
  2570 + const _this = this
  2571 + selectByKey({id:this.$route.query.id}).then((response) => {
  2572 + const res = response.data
  2573 + if (res.code !== '200') {
  2574 + return _this.$message.error('获取消息收发记录,失败!')
  2575 + }
  2576 + // 获取列表数据
  2577 + _this.addForm = res.data
  2578 + for (const i of res.data.oci) {
  2579 + if(i.oci_information_id=="SHP"){
  2580 + _this.shp_aeo=i;
  2581 + }else{
  2582 + _this.cne_aeo=i;
  2583 + }
  2584 + }
  2585 + _this.$message.success(res.msg)
  2586 + }).catch(error => {
  2587 + // 关闭加载
  2588 + _this.$message.error(error.toString())
  2589 + })
  2590 + // console.log("获取分单的方法执行了")
  2591 + }
2390 }, 2592 },
  2593 + activated(){
  2594 + if(jsutil.checkNull(this.$route.query.id)){
  2595 + if(this.$route.query.id.indexOf("AWBA")==0){
  2596 + this.activeName='first';
  2597 + this.getAWBA();
  2598 + }else{
  2599 + this.activeName='second';
  2600 + this.getAWBH();
  2601 + }
  2602 + }
  2603 + }
2391 } 2604 }
2392 </script> 2605 </script>
2393 2606