|
@@ -2,8 +2,7 @@
|
|
|
<!-- 位置作业页面 -->
|
|
|
<div class="homeworkPath">
|
|
|
<div class="top">
|
|
|
- <el-date-picker v-model="value" type="date" placeholder="选择日期">
|
|
|
- </el-date-picker>
|
|
|
+ <el-input class="el-input" placeholder="请输入物资名称和外轮船名" v-model="input" clearable> </el-input>
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
@@ -39,7 +38,7 @@
|
|
|
<template v-if="item.prop == 'shipLocation'">
|
|
|
<el-input
|
|
|
v-model.number="scope.row.shipLocation"
|
|
|
- style="width: 100px;"
|
|
|
+ style="width: 100px"
|
|
|
@blur="onblur(scope)"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -63,7 +62,7 @@
|
|
|
<el-date-picker
|
|
|
type="date"
|
|
|
v-model.number="scope.row.locationRouteTime"
|
|
|
- style="width: 150px;"
|
|
|
+ style="width: 150px"
|
|
|
:clearable="false"
|
|
|
></el-date-picker>
|
|
|
</template>
|
|
@@ -95,20 +94,20 @@ export default {
|
|
|
options: [
|
|
|
{
|
|
|
label: "未到闸船舶",
|
|
|
- value: "未到闸船舶"
|
|
|
+ value: "未到闸船舶",
|
|
|
},
|
|
|
{
|
|
|
label: "等闸船舶",
|
|
|
- value: "等闸船舶"
|
|
|
+ value: "等闸船舶",
|
|
|
},
|
|
|
{
|
|
|
label: "已过闸船舶",
|
|
|
- value: "已过闸船舶"
|
|
|
+ value: "已过闸船舶",
|
|
|
},
|
|
|
{
|
|
|
label: "到港待卸船舶",
|
|
|
- value: "到港待卸船舶"
|
|
|
- }
|
|
|
+ value: "到港待卸船舶",
|
|
|
+ },
|
|
|
],
|
|
|
value: null,
|
|
|
// 车辆表格表头
|
|
@@ -116,64 +115,65 @@ export default {
|
|
|
{
|
|
|
prop: "foreignShipName",
|
|
|
label: "外轮船名",
|
|
|
- width: "140"
|
|
|
+ width: "140",
|
|
|
},
|
|
|
{
|
|
|
prop: "materialName",
|
|
|
label: "物资名称",
|
|
|
- width: "140"
|
|
|
+ width: "140",
|
|
|
},
|
|
|
{
|
|
|
prop: "capacityName",
|
|
|
label: "江船船名",
|
|
|
- width: "140"
|
|
|
+ width: "140",
|
|
|
},
|
|
|
{
|
|
|
prop: "locationRouteTime",
|
|
|
label: "离港日期",
|
|
|
width: "200",
|
|
|
- slot: true
|
|
|
+ slot: true,
|
|
|
},
|
|
|
{
|
|
|
prop: "startPortName",
|
|
|
label: "起运港",
|
|
|
- width: "140"
|
|
|
+ width: "140",
|
|
|
},
|
|
|
{
|
|
|
prop: "shipLocation",
|
|
|
label: "船舶位置",
|
|
|
width: "130",
|
|
|
- slot: true
|
|
|
+ slot: true,
|
|
|
},
|
|
|
{
|
|
|
prop: "locationStatus",
|
|
|
label: "位置状态",
|
|
|
width: "180",
|
|
|
- slot: true
|
|
|
+ slot: true,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
prop: "arrivePortName",
|
|
|
label: "到达港",
|
|
|
- width: "140"
|
|
|
+ width: "140",
|
|
|
},
|
|
|
{
|
|
|
prop: "planWeight",
|
|
|
label: "计划吨",
|
|
|
- width: "100"
|
|
|
+ width: "100",
|
|
|
},
|
|
|
{
|
|
|
prop: "realWeight",
|
|
|
label: "实际吨",
|
|
|
- width: "100"
|
|
|
+ width: "100",
|
|
|
},
|
|
|
{
|
|
|
prop: "locationMemo",
|
|
|
label: "备注",
|
|
|
- width: "140"
|
|
|
- }
|
|
|
+ width: "140",
|
|
|
+ },
|
|
|
],
|
|
|
- selectionList: []
|
|
|
+ selectionList: [],
|
|
|
+ input:"",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -188,49 +188,55 @@ export default {
|
|
|
"/api/v1/tms/getShipLocationStatus?shipLocation=" +
|
|
|
scope.row.shipLocation
|
|
|
)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
// console.log(res.data.data);
|
|
|
scope.row.locationStatus = res.data.data.locationStatus;
|
|
|
});
|
|
|
},
|
|
|
initialization() {
|
|
|
- this.axios.post("/api/v1/tms/getShipLocationList").then(res => {
|
|
|
+ this.axios.post("/api/v1/tms/getShipLocationList").then((res) => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.selectionList = res.data.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
onclick() {
|
|
|
- this.value = sjTime(this.value);
|
|
|
- this.axios
|
|
|
- .post("/api/v1/tms/getShipLocationList", { dayTime: this.value })
|
|
|
- .then(res => {
|
|
|
- if (res.data.code == "200") {
|
|
|
- this.selectionList = res.data.data;
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
+ this.axios.post("/api/v1/tms/getShipLocationList?con=" + this.input).then((res) => {
|
|
|
+ if (res.data.code == "200") {
|
|
|
+ this.selectionList = res.data.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
click(row) {
|
|
|
- this.axios.post("/api/v1/tms/updateShipLocation", row).then(res => {
|
|
|
+ this.axios.post("/api/v1/tms/updateShipLocation", row).then((res) => {
|
|
|
if (res.data.code == "200") {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "保存成功!"
|
|
|
+ message: "保存成功!",
|
|
|
});
|
|
|
this.initialization();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- refresh(){
|
|
|
+ refresh() {
|
|
|
this.$router.go(0);
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
.homeworkPath {
|
|
|
.top {
|
|
|
- padding: 1.25rem 1.875rem;
|
|
|
+ padding: 1.25rem 0.375rem;
|
|
|
+ .el-input {
|
|
|
+ width: 20%;
|
|
|
+ margin-right: 40rpx;
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ width: 5.5%;
|
|
|
+ margin-left: 0.25rem;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|