zhanbo.xu

feat: 开发pdd的功能

......@@ -47,3 +47,6 @@ VUE_APP_BEIJING_FILLING_NUMBER = 'https://beian.miit.gov.cn/#/Integrated/recordQ
# VUE_APP_BASE_API_uat = 'https://declarationuat.fedex.com.cn/Exp'
# VUE_APP_BASE_API_pre = 'https://iclearexpuat.fedex.com.cn/Exp'
# VUE_APP_BASE_API_prod = 'https://declaration.fedex.com.cn/Exp'
......
......@@ -19,3 +19,13 @@ export function getPddInfo(data) {
data: data,
});
}
// GET
// /customerDeclareData/resend/{id}
// 重新发送申报数据
export function getResend({ id }) {
return request({
url: `/bus-customer/customerDeclareData/resend/${id}`,
method: "get",
});
}
......
......@@ -142,12 +142,25 @@
scope.row.logisticsNo
}}</el-button>
</template>
<template slot="optionColumn">
<el-table-column label="操作" width="80">
<template slot-scope="scope">
<el-button
type="text"
@click="showAgain(scope.row)"
v-if="+scope.row.forwardStatusCode === 2"
>
重新发送
</el-button>
</template>
</el-table-column>
</template>
</Table>
</div>
</template>
<script>
import { getPddInfo } from "@/api/pdd-info";
import { getPddInfo, getResend } from "@/api/pdd-info";
export default {
name: "ArrivalList",
components: {},
......@@ -263,6 +276,24 @@ export default {
createTime: [],
};
},
showAgain(row) {
this.$confirm("是否确认操作重新发送?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
getResend({ id: row.id }).then((res) => {
if (+res.code === 200) {
this.alertSuccessMsg(res.message);
this.search(0);
} else {
this.alertWarningMsg(res.message);
}
});
})
.catch(() => {});
},
//查询
search(val) {
this.loadings.searchLoading = true;
......