|
|
@ -11,14 +11,24 @@
|
|
|
|
<el-form-item label="生产时间" prop="productDateArray">
|
|
|
|
<el-form-item label="生产时间" prop="productDateArray">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="queryParams.productDateArray"
|
|
|
|
v-model="queryParams.productDateArray"
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
type="daterange"
|
|
|
|
type="datetimerange"
|
|
|
|
range-separator="至"
|
|
|
|
range-separator="至"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="班次" prop="shiftId">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.shiftId" default-first-option clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in shiftList"
|
|
|
|
|
|
|
|
:key="item.shiftId"
|
|
|
|
|
|
|
|
:label="item.shiftDesc"
|
|
|
|
|
|
|
|
:value="item.shiftId"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="产品编号" prop="productCode">
|
|
|
|
<el-form-item label="产品编号" prop="productCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.productCode"
|
|
|
|
v-model="queryParams.productCode"
|
|
|
@ -111,7 +121,7 @@ export default {
|
|
|
|
machineProList: [],
|
|
|
|
machineProList: [],
|
|
|
|
//产品列表
|
|
|
|
//产品列表
|
|
|
|
products: [],
|
|
|
|
products: [],
|
|
|
|
|
|
|
|
shiftList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
@ -125,6 +135,7 @@ export default {
|
|
|
|
workorderName: null,
|
|
|
|
workorderName: null,
|
|
|
|
parentOrder: null,
|
|
|
|
parentOrder: null,
|
|
|
|
orderId: null,
|
|
|
|
orderId: null,
|
|
|
|
|
|
|
|
shiftId: null,
|
|
|
|
orderCode: null,
|
|
|
|
orderCode: null,
|
|
|
|
productId: null,
|
|
|
|
productId: null,
|
|
|
|
productCode: null,
|
|
|
|
productCode: null,
|
|
|
@ -140,7 +151,9 @@ export default {
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getDate();
|
|
|
|
this.getDate();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
getProShifts().then(response => {
|
|
|
|
|
|
|
|
this.shiftList = response.data
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/**获取默认查询时间段**/
|
|
|
|
/**获取默认查询时间段**/
|
|
|
@ -163,10 +176,10 @@ export default {
|
|
|
|
if (this.queryParams.productDateArray != null) {
|
|
|
|
if (this.queryParams.productDateArray != null) {
|
|
|
|
this.queryParams.productDateStart = moment(
|
|
|
|
this.queryParams.productDateStart = moment(
|
|
|
|
this.queryParams.productDateArray[0]
|
|
|
|
this.queryParams.productDateArray[0]
|
|
|
|
).format("YYYY-MM-DD");
|
|
|
|
).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
this.queryParams.productDateEnd = moment(
|
|
|
|
this.queryParams.productDateEnd = moment(
|
|
|
|
this.queryParams.productDateArray[1]
|
|
|
|
this.queryParams.productDateArray[1]
|
|
|
|
).format("YYYY-MM-DD");
|
|
|
|
).format("YYYY-MM-DD HH:mm:ss");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|