普洱修改前端,删除空托盘

时间修改
增加时间修改
just-order-普洱
LAPTOP-S9HJSOEB\昊天 3 months ago
parent 980b33e4d5
commit b3f06b5918

Binary file not shown.

@ -121,6 +121,18 @@ export default {
return {} return {}
} }
}, },
startTimestamp: {
type: String,
default: () => {
return {}
}
},
endTimestamp: {
type: String,
default: () => {
return {}
}
},
}, },
@ -253,7 +265,7 @@ export default {
}else if(status == 1 ||status == 5 || status == 6 ){ }else if(status == 1 ||status == 5 || status == 6 ){
color = '#d81e06' color = '#d81e06'
}else if(status == 4){ }else if(status == 4){
color = '#bc55cf' color = '#1afa29'
}else{ }else{
color = '#bfbfbf' color = '#bfbfbf'
} }
@ -279,6 +291,8 @@ export default {
rowEnd: this.random.row[1], rowEnd: this.random.row[1],
streetId: this.streetId, streetId: this.streetId,
direction: this.direction, direction: this.direction,
startTimestamp: this.startTimestamp,
endTimestamp: this.endTimestamp,
side: this.side, side: this.side,
rowTabs: rowTab, rowTabs: rowTab,
columnTabs: columnTab columnTabs: columnTab

@ -85,6 +85,17 @@
<span class="img-box-value"> <span class="img-box-value">
{{ checkObj[item.key] }} {{ checkObj[item.key] }}
</span> </span>
</li>
<li class="img-box-item">
<span class="img-box-title" >
盘点起止时间:
</span>
<span class="img-box-value">
<p> {{ checkObj.exportTime }}</p>
<p v-if="checkObj.endTime"> {{"~"+ checkObj.endTime }}</p>
</span>
</li> </li>
<!-- <li class="img-box-item"> <!-- <li class="img-box-item">
<span class="img-box-title"> <span class="img-box-title">
@ -265,21 +276,14 @@ export default {
label: "盘点任务号", label: "盘点任务号",
key: "checkNum", key: "checkNum",
}, },
{
label: "盘点开始时间",
key: "exportTime",
},
{
label: "盘点结束时间",
key: "endTime",
},
], ],
statusMap: { statusMap: {
0: "未盘点", 0: "未盘点",
1: "盘点异常", 1: "盘点异常",
2: "核对正确", 2: "核对正确",
3: "人工核对正确", 3: "人工核对正确",
4: "空托盘", 4: "核对正确",
5: "品规失败", 5: "品规失败",
6: "个数失败", 6: "个数失败",
}, },

@ -76,16 +76,15 @@
></a-tag> ></a-tag>
人工核对 人工核对
</span> </span>
<span class="info-text">
<a-tag
color="#bc55cf"
style="width: 30px; height: 20px; margin-right: 6px"
></a-tag>
空托盘
</span>
</div> </div>
<div style="margin: 10px"> <div style="margin: 10px">
<a-row :gutter="24">
<a-col :span="4">
<a-form-item label="巷道">
<a-select <a-select
@change="handleChange" @change="handleChange"
style="width: 200px" style="width: 200px"
@ -105,6 +104,30 @@
/> />
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="时间">
<a-range-picker
@change="onTimeChange"
v-model="time"
format="YYYY-MM-DD HH:mm"
:show-time="{
defaultValue: [moment('00:00', 'HH:mm'), moment('23:59', 'HH:mm')],
//defaultValue: [moment('00:00', 'YYYY-MM-DD HH:mm'), moment('23:59', 'YYYY-MM-DD HH:mm')],
}"
>
<a-icon
slot="suffixIcon"
type="calendar"
/>
</a-range-picker>
</a-form-item>
</a-col>
</a-row>
</div> </div>
<a-col :span="24"> <a-col :span="24">
@ -133,6 +156,8 @@
:side="leftSide" :side="leftSide"
:direction="1" :direction="1"
:streetId="item.id" :streetId="item.id"
:startTimestamp = "startTimestamp.toString()"
:endTimestamp = "endTimestamp.toString()"
:streetName="item.name" :streetName="item.name"
> >
</subsection> </subsection>
@ -163,6 +188,8 @@
:side="rightSide" :side="rightSide"
:direction="2" :direction="2"
:streetId="item.id" :streetId="item.id"
:startTimestamp = "startTimestamp.toString()"
:endTimestamp = "endTimestamp.toString()"
:streetName="item.name" :streetName="item.name"
> >
</subsection> </subsection>
@ -259,12 +286,16 @@
<script> <script>
import Subsection from "./Subsection"; import Subsection from "./Subsection";
import message from "ant-design-vue"; import message from "ant-design-vue";
import moment from "moment";
import { notification } from 'ant-design-vue'; import { notification } from 'ant-design-vue';
export default { export default {
name: "checkManage", name: "checkManage",
data() { data() {
return { return {
startTimestamp:"",
endTimestamp:"",
time: [],
timer: "", timer: "",
leftSide: 1, leftSide: 1,
rightSide: 1, rightSide: 1,
@ -312,6 +343,29 @@ export default {
this.websock.close(); //websocket this.websock.close(); //websocket
}, },
methods: { methods: {
moment,
handleReset() {
this.startTimestamp = "";
this.endTimestamp = "";
},
onTimeChange(date, dateString) {
this.handleReset();
// console.log(date);
console.log(dateString);
console.log(date[0].format("YYYY-MM-DD HH:mm"));
this.startTimestamp = date[0].format(
"YYYY-MM-DD HH:mm:ss"
);
this.endTimestamp = date[1].format(
"YYYY-MM-DD HH:mm:ss"
);
console.log(this.startTimestamp);
console.log(this.endTimestamp);
},
// //
requestData() { requestData() {
@ -642,4 +696,8 @@ export default {
margin-right: 20px; margin-right: 20px;
} }
} }
.ant-form-item {
display: flex;
width: 100%;
}
</style> </style>

@ -120,9 +120,7 @@
人工核对正确 人工核对正确
</a-select-option> </a-select-option>
<a-select-option :value=4>
空托盘
</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -186,6 +184,25 @@
> >
{{ statusMap[text.status] }} {{ statusMap[text.status] }}
</span> </span>
<span
slot="wmsCount"
slot-scope="text"
>
{{ text.wmsCount? text.wmsCount:0}}
</span>
<span
slot="count"
slot-scope="text"
>
{{ text.count? text.count:0}}
</span>
<span
slot="time"
slot-scope="text"
>
<p> {{ text.createTime }}</p>
<p v-if="text.endTime"> {{"~"+ text.endTime }}</p>
</span>
<span <span
slot="pic" slot="pic"
slot-scope="text" slot-scope="text"
@ -238,7 +255,7 @@ export default {
1: "盘点异常", 1: "盘点异常",
2: "核对正确", 2: "核对正确",
3: "人工核对正确", 3: "人工核对正确",
4: "空托盘", 4: "核对正确",
5: "品规失败", 5: "品规失败",
6: "个数失败", 6: "个数失败",
}, },
@ -265,9 +282,11 @@ export default {
}, },
imgUrl: imgUrl, imgUrl: imgUrl,
columns: [ columns: [
{ {
title: "盘点批次号", title: "盘点号",
dataIndex: "lotnum", dataIndex: "taskId",
}, },
{ {
title: "巷道名称", title: "巷道名称",
@ -283,14 +302,29 @@ export default {
title: "盘点状态", title: "盘点状态",
scopedSlots: { customRender: "status" }, scopedSlots: { customRender: "status" },
}, },
{
title: "物料编码",
dataIndex: "category",
}, {
title: "品规名称",
dataIndex: "wmsCategoryName",
},
{
title: "库存数量",
scopedSlots: { customRender: "wmsCount" },
},
{
title: "盘点数量",
scopedSlots: { customRender: "count" },
},
{ {
title: "照片", title: "照片",
scopedSlots: { customRender: "pic" }, scopedSlots: { customRender: "pic" },
width: 320, width: 320,
}, },
{ {
title: "更新时间", title: "起止时间",
dataIndex: "createTime", scopedSlots: { customRender: "time" },
}, },
], ],
}; };

Loading…
Cancel
Save