zhanbo.xu

feat: 修改运抵单申报页面

......@@ -155,7 +155,7 @@
{{ scope.row.billNo }}
</el-button>
</template>
<template v-slot:listReceiptStatus="scope">
<!-- <template v-slot:listReceiptStatus="scope">
<TablePopover
ref="listReceiptStatusPopover"
dataKey="listReceiptStatus"
......@@ -175,7 +175,7 @@
{{ scope.row.listReceiptStatus }}
</div>
</TablePopover>
</template>
</template> -->
<template v-slot:arrivalInReceiptStatus="scope">
<TablePopover
ref="arrivalInReceiptStatusPopover"
......@@ -207,11 +207,7 @@
</template>
<script>
import {
getArrivalIneList,
getListReceipt,
arrivalInReceipt,
} from "@/api/declareData-api.js";
import { getArrivalIneList, arrivalInReceipt } from "@/api/declareData-api.js";
import DialogVue from "./dialog.vue";
export default {
name: "SupervisePlaceManage",
......@@ -276,7 +272,7 @@ export default {
value: "listReceiptStatus",
width: "",
align: "left",
slot: true,
// slot: true,
},
{
// release-v1.0.9
......@@ -368,23 +364,24 @@ export default {
this.tableMaxheight = window.innerHeight - 300;
},
//查询回执
receiptApi(id, type) {
receiptApi(billNo, type) {
return new Promise((resolve, reject) => {
let obj = { declareId: id };
if (type == "listReceiptStatus") {
getListReceipt(obj)
.then((res) => {
if (res.code === "200") {
resolve(res.data);
} else {
reject();
}
})
.catch((err) => {
console.log(err);
reject();
});
} else if (type == "arrivalInReceiptStatus") {
let obj = { billNo };
// if (type == "listReceiptStatus") {
// getListReceipt(obj)
// .then((res) => {
// if (res.code === "200") {
// resolve(res.data);
// } else {
// reject();
// }
// })
// .catch((err) => {
// console.log(err);
// reject();
// });
// } else
if (type == "arrivalInReceiptStatus") {
arrivalInReceipt(obj)
.then((res) => {
if (res.code === "200") {
......@@ -405,7 +402,7 @@ export default {
console.log(val);
this.receiptApi(val.data.declareId, val.status)
this.receiptApi(val.data.billNo, val.status)
.then((res) => {
val.tableData.forEach((item) => {
if (item.declareId == val.data.declareId) {
......