|
@@ -351,9 +351,22 @@
|
|
|
v-hasPermi="['warehouse:warehousebills:zhc']"
|
|
|
>转航次</el-button
|
|
|
>
|
|
|
- <el-button type="warning" size="mini" @click="pickUpEDI">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ size="mini"
|
|
|
+ @click="pickUpEDI"
|
|
|
+ :disabled="selection.length != 1"
|
|
|
+ >
|
|
|
提货EDI
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ type="info"
|
|
|
+ size="mini"
|
|
|
+ @click="device"
|
|
|
+ :disabled="selection.length == 0"
|
|
|
+ >
|
|
|
+ 设备单
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div class="tabSetting">
|
|
|
<right-toolbar
|
|
@@ -485,6 +498,12 @@
|
|
|
<span v-else-if="item.label == 'fArrivalStatus'">{{
|
|
|
scope.row.fArrivalStatus | transshipName
|
|
|
}}</span>
|
|
|
+ <span v-else-if="item.label == 'pickUpTime'">{{
|
|
|
+ scope.row.pickUpTime | dateFormat
|
|
|
+ }}</span>
|
|
|
+ <span v-else-if="item.label == 'facilityTime'">{{
|
|
|
+ scope.row.facilityTime | dateFormat
|
|
|
+ }}</span>
|
|
|
<span v-else>{{ scope.row[item.label] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -694,7 +713,9 @@ import {
|
|
|
confirmAllocation,
|
|
|
exportItem,
|
|
|
detention,
|
|
|
+ receipt,
|
|
|
} from "@/api/kaihe/domesticTrade/myOrder";
|
|
|
+import { dateFormat } from "@/utils/date";
|
|
|
import Cookies from "js-cookie";
|
|
|
import { addSet, resetModule, select } from "@/api/system/set";
|
|
|
import Vue from "vue";
|
|
@@ -989,20 +1010,34 @@ export default {
|
|
|
checked: 0,
|
|
|
width: 120,
|
|
|
},
|
|
|
- // {
|
|
|
- // surface: "30",
|
|
|
- // label: "fShipThreeName",
|
|
|
- // name: "三程船名",
|
|
|
- // checked: 0,
|
|
|
- // width: 120,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // surface: "31",
|
|
|
- // label: "fVoyThreeName",
|
|
|
- // name: "三程航次",
|
|
|
- // checked: 0,
|
|
|
- // width: 120,
|
|
|
- // },
|
|
|
+ {
|
|
|
+ surface: "30",
|
|
|
+ label: "pickUpPerson",
|
|
|
+ name: "提货单发送人",
|
|
|
+ checked: 0,
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ surface: "31",
|
|
|
+ label: "pickUpTime",
|
|
|
+ name: "提货单发送时间",
|
|
|
+ checked: 0,
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ surface: "32",
|
|
|
+ label: "facilityPerson",
|
|
|
+ name: "设备单发送人",
|
|
|
+ checked: 0,
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ surface: "33",
|
|
|
+ label: "facilityTime",
|
|
|
+ name: "设备单发送时间",
|
|
|
+ checked: 0,
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
{
|
|
|
surface: "32",
|
|
|
label: "remark",
|
|
@@ -1102,6 +1137,11 @@ export default {
|
|
|
return "-";
|
|
|
}
|
|
|
},
|
|
|
+ dateFormat(date) {
|
|
|
+ if (date) {
|
|
|
+ return dateFormat(new Date(date), "yyyy-MM-dd");
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
voyageRemthods() {
|
|
@@ -1187,8 +1227,13 @@ export default {
|
|
|
this.transvoyageVisible = Bool;
|
|
|
},
|
|
|
pickUpEDI() {
|
|
|
- pickUpEDI().then((res) => {
|
|
|
- console.log(res);
|
|
|
+ let id;
|
|
|
+ this.selection.forEach((e) => {
|
|
|
+ id = e.fId;
|
|
|
+ });
|
|
|
+ pickUpEDI({ fId: id }).then((res) => {
|
|
|
+ this.$message.success("提货EDI成功");
|
|
|
+ this.getList();
|
|
|
});
|
|
|
},
|
|
|
transshipClosed() {
|
|
@@ -1442,6 +1487,16 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ device() {
|
|
|
+ let ids = [];
|
|
|
+ this.selection.forEach((e) => {
|
|
|
+ ids.push(e.fId);
|
|
|
+ });
|
|
|
+ receipt({ orderList: ids }).then((res) => {
|
|
|
+ this.$message.success("提交成功");
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 取消配船按钮操作 */
|
|
|
cancelShip() {
|
|
|
let data = [];
|