Showing
3 changed files
with
45 additions
and
1 deletions
| ... | @@ -47,3 +47,6 @@ VUE_APP_BEIJING_FILLING_NUMBER = 'https://beian.miit.gov.cn/#/Integrated/recordQ | ... | @@ -47,3 +47,6 @@ VUE_APP_BEIJING_FILLING_NUMBER = 'https://beian.miit.gov.cn/#/Integrated/recordQ |
| 47 | # VUE_APP_BASE_API_uat = 'https://declarationuat.fedex.com.cn/Exp' | 47 | # VUE_APP_BASE_API_uat = 'https://declarationuat.fedex.com.cn/Exp' |
| 48 | # VUE_APP_BASE_API_pre = 'https://iclearexpuat.fedex.com.cn/Exp' | 48 | # VUE_APP_BASE_API_pre = 'https://iclearexpuat.fedex.com.cn/Exp' |
| 49 | # VUE_APP_BASE_API_prod = 'https://declaration.fedex.com.cn/Exp' | 49 | # VUE_APP_BASE_API_prod = 'https://declaration.fedex.com.cn/Exp' |
| 50 | + | ||
| 51 | + | ||
| 52 | + | ... | ... |
| ... | @@ -19,3 +19,13 @@ export function getPddInfo(data) { | ... | @@ -19,3 +19,13 @@ export function getPddInfo(data) { |
| 19 | data: data, | 19 | data: data, |
| 20 | }); | 20 | }); |
| 21 | } | 21 | } |
| 22 | + | ||
| 23 | +// GET | ||
| 24 | +// /customerDeclareData/resend/{id} | ||
| 25 | +// 重新发送申报数据 | ||
| 26 | +export function getResend({ id }) { | ||
| 27 | + return request({ | ||
| 28 | + url: `/bus-customer/customerDeclareData/resend/${id}`, | ||
| 29 | + method: "get", | ||
| 30 | + }); | ||
| 31 | +} | ... | ... |
| ... | @@ -142,12 +142,25 @@ | ... | @@ -142,12 +142,25 @@ |
| 142 | scope.row.logisticsNo | 142 | scope.row.logisticsNo |
| 143 | }}</el-button> | 143 | }}</el-button> |
| 144 | </template> | 144 | </template> |
| 145 | + <template slot="optionColumn"> | ||
| 146 | + <el-table-column label="操作" width="80"> | ||
| 147 | + <template slot-scope="scope"> | ||
| 148 | + <el-button | ||
| 149 | + type="text" | ||
| 150 | + @click="showAgain(scope.row)" | ||
| 151 | + v-if="+scope.row.forwardStatusCode === 2" | ||
| 152 | + > | ||
| 153 | + 重新发送 | ||
| 154 | + </el-button> | ||
| 155 | + </template> | ||
| 156 | + </el-table-column> | ||
| 157 | + </template> | ||
| 145 | </Table> | 158 | </Table> |
| 146 | </div> | 159 | </div> |
| 147 | </template> | 160 | </template> |
| 148 | 161 | ||
| 149 | <script> | 162 | <script> |
| 150 | -import { getPddInfo } from "@/api/pdd-info"; | 163 | +import { getPddInfo, getResend } from "@/api/pdd-info"; |
| 151 | export default { | 164 | export default { |
| 152 | name: "ArrivalList", | 165 | name: "ArrivalList", |
| 153 | components: {}, | 166 | components: {}, |
| ... | @@ -263,6 +276,24 @@ export default { | ... | @@ -263,6 +276,24 @@ export default { |
| 263 | createTime: [], | 276 | createTime: [], |
| 264 | }; | 277 | }; |
| 265 | }, | 278 | }, |
| 279 | + showAgain(row) { | ||
| 280 | + this.$confirm("是否确认操作重新发送?", "提示", { | ||
| 281 | + confirmButtonText: "确定", | ||
| 282 | + cancelButtonText: "取消", | ||
| 283 | + type: "warning", | ||
| 284 | + }) | ||
| 285 | + .then(() => { | ||
| 286 | + getResend({ id: row.id }).then((res) => { | ||
| 287 | + if (+res.code === 200) { | ||
| 288 | + this.alertSuccessMsg(res.message); | ||
| 289 | + this.search(0); | ||
| 290 | + } else { | ||
| 291 | + this.alertWarningMsg(res.message); | ||
| 292 | + } | ||
| 293 | + }); | ||
| 294 | + }) | ||
| 295 | + .catch(() => {}); | ||
| 296 | + }, | ||
| 266 | //查询 | 297 | //查询 |
| 267 | search(val) { | 298 | search(val) { |
| 268 | this.loadings.searchLoading = true; | 299 | this.loadings.searchLoading = true; | ... | ... |
-
Please register or login to post a comment