作者 唐俊升

新增申报回执查询按钮

@@ -28,4 +28,6 @@ export const batchDecImport = params => { return http.postExcelData(`${baseServi @@ -28,4 +28,6 @@ export const batchDecImport = params => { return http.postExcelData(`${baseServi
28 // 批量申报 28 // 批量申报
29 export const batchDecList = params => { return http.post(`${baseServiceURL2}/ExportOrder/batchDecList`, params); }; 29 export const batchDecList = params => { return http.post(`${baseServiceURL2}/ExportOrder/batchDecList`, params); };
30 // 主单申报 30 // 主单申报
31 -export const batchDecBillNo = params => {return http.get(`${baseServiceURL2}/ExportOrder/batchDecBillNo`, params); };  
  31 +export const batchDecBillNo = params => {return http.get(`${baseServiceURL2}/ExportOrder/batchDecBillNo`, params); };
  32 +// 申请回执查询
  33 +export const selectDecRec = params => {return http.get(`${baseServiceURL2}/ExportOrder/selectDecRec`, params);}
@@ -188,9 +188,93 @@ @@ -188,9 +188,93 @@
188 <template slot-scope="scope"> 188 <template slot-scope="scope">
189 <el-button type="text" size="small" @click="sendorder(scope.row)">申报</el-button> 189 <el-button type="text" size="small" @click="sendorder(scope.row)">申报</el-button>
190 <el-button type="text" size="small" @click="deleteOrder(scope.row)">删除</el-button> 190 <el-button type="text" size="small" @click="deleteOrder(scope.row)">删除</el-button>
  191 + <el-button type="text" @click="selectDecRec(scope.row)">申请回执查询</el-button>
191 </template> 192 </template>
192 </el-table-column> 193 </el-table-column>
193 </el-table> 194 </el-table>
  195 + <el-dialog :visible.sync="dialogTableVisible">
  196 + <template slot="title">
  197 + {{ decRecOrderNo }}
  198 + </template>
  199 + <el-table :data="decRecData">
  200 + <el-table-column property="cebType" label="申报类型">
  201 + <template slot-scope="scope">
  202 + <span v-if="scope.row.cebType==='303'">
  203 + 订单
  204 + </span>
  205 + <span v-else-if="scope.row.cebType==='505'">
  206 + 运单
  207 + </span>
  208 + <span v-else-if="scope.row.cebType==='603'">
  209 + 清单
  210 + </span>
  211 + <span v-else-if="scope.row.cebType==='607'">
  212 + 总分单
  213 + </span>
  214 + <span v-else></span>
  215 + </template>
  216 + </el-table-column>
  217 + <el-table-column property="appType" label="订单报送类型">
  218 + <template slot-scope="scope">
  219 + <span v-if="scope.row.appType==='1'">
  220 + 新增
  221 + </span>
  222 + <span v-else-if="scope.row.appType==='2'">
  223 + 变更
  224 + </span>
  225 + <span v-else></span>
  226 + </template>
  227 + </el-table-column>
  228 + <el-table-column property="appTime" label="订单报送时间">
  229 + <template slot-scope="scope">
  230 + {{ formatDate(scope.row.appTime) }}
  231 + </template>
  232 + </el-table-column>
  233 + <el-table-column property="appStatus" label="订单报送状态">
  234 + <template slot-scope="scope">
  235 + <span v-if="scope.row.appStatus==='1'">
  236 + 暂存
  237 + </span>
  238 + <span v-else-if="scope.row.appStatus==='2'">
  239 + 申报
  240 + </span>
  241 + <span v-else></span>
  242 + </template>
  243 + </el-table-column>
  244 + <el-table-column property="returnStatus" label="回执状态">
  245 + <template slot-scope="scope">
  246 + <span v-if="scope.row.returnStatus === '1'">
  247 + 电子口岸已暂存
  248 + </span>
  249 + <span v-else-if="scope.row.returnStatus === '2'">
  250 + 电子口岸申报中
  251 + </span>
  252 + <span v-else-if="scope.row.returnStatus === '3'">
  253 + 发送海关成功
  254 + </span>
  255 + <span v-else-if="scope.row.returnStatus === '4'">
  256 + 发送海关失败
  257 + </span>
  258 + <span v-else-if="scope.row.returnStatus === '100'">
  259 + 海关退单
  260 + </span>
  261 + <span v-else-if="scope.row.returnStatus === '399'">
  262 + 海关退单
  263 + </span>
  264 + <span v-else></span>
  265 + </template>
  266 + </el-table-column>
  267 + <el-table-column property="returnTime" label="回执时间">
  268 + <template slot-scope="scope">
  269 + <span v-if="scope.row.returnTime !==null && scope.row.returnTime !==''">
  270 + {{ formatDate(scope.row.returnTime) }}
  271 + </span>
  272 + <span v-else></span>
  273 + </template>
  274 + </el-table-column>
  275 + <el-table-column property="returnInfo" label="回执信息" show-overflow-tooltip></el-table-column>
  276 + </el-table>
  277 + </el-dialog>
194 <div class="block"> 278 <div class="block">
195 <el-pagination 279 <el-pagination
196 @size-change="handleSizeChange" 280 @size-change="handleSizeChange"
@@ -207,7 +291,7 @@ @@ -207,7 +291,7 @@
207 291
208 <script> 292 <script>
209 import {sendOrder,selectLists,deleteOrder,batchDelOrderByBeans,batchDelBillNo, 293 import {sendOrder,selectLists,deleteOrder,batchDelOrderByBeans,batchDelBillNo,
210 - batchDecImport,batchDecList,batchDecBillNo} from '../../api/consigner/exportOrder' 294 + batchDecImport,batchDecList,batchDecBillNo,selectDecRec} from '../../api/consigner/exportOrder'
211 export default { 295 export default {
212 data() { 296 data() {
213 return { 297 return {
@@ -286,7 +370,10 @@ @@ -286,7 +370,10 @@
286 }, 370 },
287 value2:'', 371 value2:'',
288 transformedData:'', 372 transformedData:'',
289 - cebType:'' 373 + cebType:'',
  374 + decRecData:[],
  375 + dialogTableVisible: false,
  376 + decRecOrderNo:''
290 }; 377 };
291 }, 378 },
292 mounted() { 379 mounted() {
@@ -510,6 +597,37 @@ @@ -510,6 +597,37 @@
510 this.$message.error(error.toString()) 597 this.$message.error(error.toString())
511 }) 598 })
512 }, 599 },
  600 + // 申请回执查询
  601 + selectDecRec(row){
  602 + const guid = row.guid
  603 + selectDecRec({guid}).then((response) => {
  604 + const res = response.data
  605 + if(res.code !== '200'){
  606 + return this.$message.error(res.msg)
  607 + }
  608 + this.decRecOrderNo = row.orderNo
  609 + this.decRecData = res.data
  610 + this.dialogTableVisible = true
  611 + this.$message.success(res.msg)
  612 + }).catch(error => {
  613 + this.$message.error(error.toString)
  614 + })
  615 + },
  616 + // 日期格式化
  617 + formatDate(isoString) {
  618 + const date = new Date(isoString);
  619 + // 获取年、月、日
  620 + const year = date.getFullYear();
  621 + const month = ('0' + (date.getMonth() + 1)).slice(-2); // 月份从0开始,需要加1
  622 + const day = ('0' + date.getDate()).slice(-2);
  623 + // 获取小时、分钟、秒
  624 + const hours = ('0' + date.getHours()).slice(-2);
  625 + const minutes = ('0' + date.getMinutes()).slice(-2);
  626 + const seconds = ('0' + date.getSeconds()).slice(-2);
  627 +
  628 + // 返回格式化的日期字符串
  629 + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  630 + },
513 //分页 631 //分页
514 handleSizeChange(val) { 632 handleSizeChange(val) {
515 this.queryInfo.pageSize=val; 633 this.queryInfo.pageSize=val;