feat():重构领料上报

master
jiyufei 2 months ago
parent 8592c2d48a
commit 4ad7bfee01

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-08-07 * 2024-08-19
*/ */
public interface YysRequisitionReportMapper extends BaseMapper<YysRequisitionReportEntity> { public interface YysRequisitionReportMapper extends BaseMapper<YysRequisitionReportEntity> {

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-08-07 * 2024-08-19
*/ */
public interface YysRequisitionReportService extends IService<YysRequisitionReportEntity> { public interface YysRequisitionReportService extends IService<YysRequisitionReportEntity> {
List<YysRequisitionReportEntity> getList(YysRequisitionReportPagination yysRequisitionReportPagination); List<YysRequisitionReportEntity> getList(YysRequisitionReportPagination yysRequisitionReportPagination);

@ -36,7 +36,7 @@ import jnpf.permission.entity.UserEntity;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-08-07 * 2024-08-19
*/ */
@Service @Service
public class YysRequisitionReportServiceImpl extends ServiceImpl<YysRequisitionReportMapper, YysRequisitionReportEntity> implements YysRequisitionReportService{ public class YysRequisitionReportServiceImpl extends ServiceImpl<YysRequisitionReportMapper, YysRequisitionReportEntity> implements YysRequisitionReportService{
@ -275,15 +275,12 @@ public class YysRequisitionReportServiceImpl extends ServiceImpl<YysRequisitionR
id = form.getId(); id = form.getId();
} }
//主表字段验证 //主表字段验证
if(StringUtil.isEmpty(form.getProductCode())){
return "产品编码不能为空";
}
if(StringUtil.isNotEmpty(form.getProductName())){ if(StringUtil.isNotEmpty(form.getProductName())){
form.setProductName(form.getProductName().trim()); form.setProductName(form.getProductName().trim());
QueryWrapper<YysRequisitionReportEntity> productNameWrapper=new QueryWrapper<>(); QueryWrapper<YysRequisitionReportEntity> productNameWrapper=new QueryWrapper<>();
productNameWrapper.lambda().eq(YysRequisitionReportEntity::getProductName,form.getProductName()); productNameWrapper.lambda().eq(YysRequisitionReportEntity::getProductName,form.getProductName());
//假删除标志 //假删除标志
productNameWrapper.lambda().isNull(YysRequisitionReportEntity::getDeleteMark); productNameWrapper.lambda().isNull(YysRequisitionReportEntity::getDeletemark);
if (isUp){ if (isUp){
productNameWrapper.lambda().ne(YysRequisitionReportEntity::getId, id); productNameWrapper.lambda().ne(YysRequisitionReportEntity::getId, id);
} }

@ -54,7 +54,7 @@ import org.springframework.transaction.annotation.Transactional;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Slf4j @Slf4j
@RestController @RestController
@ -170,9 +170,6 @@ public class YysRequisitionReportController {
case "deviceName" : case "deviceName" :
entitys.add(new ExcelExportEntity("设备名称" ,"deviceName")); entitys.add(new ExcelExportEntity("设备名称" ,"deviceName"));
break; break;
case "sort" :
entitys.add(new ExcelExportEntity("顺序号" ,"sort"));
break;
case "post" : case "post" :
entitys.add(new ExcelExportEntity("班次" ,"post")); entitys.add(new ExcelExportEntity("班次" ,"post"));
break; break;
@ -197,6 +194,9 @@ public class YysRequisitionReportController {
case "classBalance" : case "classBalance" :
entitys.add(new ExcelExportEntity("本班结存" ,"classBalance")); entitys.add(new ExcelExportEntity("本班结存" ,"classBalance"));
break; break;
case "sort" :
entitys.add(new ExcelExportEntity("顺序号" ,"sort"));
break;
default: default:
break; break;
} }

@ -4,22 +4,22 @@ import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
/** /**
* *
* *
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Data @Data
@TableName("yys_requisition_report") @TableName("yys_requisition_report")
public class YysRequisitionReportEntity { public class YysRequisitionReportEntity {
@TableId(value ="ID" ) @TableId(value ="ID" )
private String id; private String id;
@TableField(value = "WORK_ID" , updateStrategy = FieldStrategy.IGNORED) @TableField("WORK_ID")
private String workId; private String workId;
@TableField(value = "MANUFACTURE_TIME" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "MANUFACTURE_TIME" , updateStrategy = FieldStrategy.IGNORED)
private Date manufactureTime; private String manufactureTime;
@TableField(value = "DEVICE_CODE" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "DEVICE_CODE" , updateStrategy = FieldStrategy.IGNORED)
private String deviceCode; private String deviceCode;
@TableField(value = "DEVICE_NAME" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "DEVICE_NAME" , updateStrategy = FieldStrategy.IGNORED)

@ -11,7 +11,7 @@ import com.alibaba.fastjson.annotation.JSONField;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Data @Data
public class YysRequisitionReportExcelErrorVO extends YysRequisitionReportExcelVO{ public class YysRequisitionReportExcelErrorVO extends YysRequisitionReportExcelVO{

@ -17,7 +17,7 @@ import java.util.List;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Data @Data
public class YysRequisitionReportExcelVO{ public class YysRequisitionReportExcelVO{

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Data @Data
public class YysRequisitionReportForm { public class YysRequisitionReportForm {
@ -29,12 +29,9 @@ public class YysRequisitionReportForm {
/** 设备名称 **/ /** 设备名称 **/
@JsonProperty("deviceName") @JsonProperty("deviceName")
private String deviceName; private String deviceName;
/** 顺序号 **/
@JsonProperty("sort")
private BigDecimal sort;
/** 班次 **/ /** 班次 **/
@JsonProperty("post") @JsonProperty("post")
private Object post; private String post;
/** 开始时间 **/ /** 开始时间 **/
@JsonProperty("startTime") @JsonProperty("startTime")
private String startTime; private String startTime;
@ -56,4 +53,7 @@ public class YysRequisitionReportForm {
/** 本班结存 **/ /** 本班结存 **/
@JsonProperty("classBalance") @JsonProperty("classBalance")
private String classBalance; private String classBalance;
/** 顺序号 **/
@JsonProperty("sort")
private BigDecimal sort;
} }

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-08-07 * @ 2024-08-19
*/ */
@Data @Data
public class YysRequisitionReportPagination extends Pagination { public class YysRequisitionReportPagination extends Pagination {

@ -30,19 +30,10 @@
<p>{{dataForm.deviceName}}</p> <p>{{dataForm.deviceName}}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="顺序号"
prop="sort" >
<JnpfNumber v-model="dataForm.sort"
placeholder="顺序号" disabled
:min="1" :step="1" >
</JnpfNumber>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8" > <el-col :span="8" >
<jnpf-form-tip-item label="班次" <jnpf-form-tip-item label="班次"
prop="post" > prop="post" >
<p>{{ dataForm.post }} </p> <p>{{dataForm.post}}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8" >
@ -87,6 +78,15 @@
<p>{{dataForm.classBalance}}</p> <p>{{dataForm.classBalance}}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" >
<jnpf-form-tip-item label="顺序号"
prop="sort" >
<JnpfNumber v-model="dataForm.sort"
placeholder="顺序号" disabled
:min="1" :step="1" >
</JnpfNumber>
</jnpf-form-tip-item>
</el-col>
</template> </template>
</el-form> </el-form>
</el-row> </el-row>
@ -114,18 +114,16 @@
manufactureTime : '', manufactureTime : '',
deviceCode : "", deviceCode : "",
deviceName : '', deviceName : '',
sort : 1, post : "",
post : "1",
startTime : '', startTime : '',
endTime : '', endTime : '',
productCode : '', productCode : "",
productName : '', productName : '',
model : '', model : '',
duty : '', duty : '',
classBalance : '', classBalance : '',
sort : 1,
}, },
postOptions:[{"fullName":"旺季白班","id":"1"},{"fullName":"旺季晚班","id":"2"}],
postProps:{"label":"fullName","value":"id" },
} }
}, },

File diff suppressed because one or more lines are too long

@ -36,10 +36,9 @@
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="生产日期" prop="manufactureTime"> <jnpf-form-tip-item label="生产日期" prop="manufactureTime">
<JnpfDatePicker v-model="dataForm.manufactureTime" <JnpfDatePicker v-model="dataForm.manufactureTime"
@change="changeData('manufactureTime', -1)" @change="changeData('manufactureTime', -1)" :startTime="dateTime(false, 1, 1, '', '')"
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')" placeholder="请选择生产日期" clearable
placeholder="请选择生产日期" clearable :style='{ "width": "100%" }' type="date" :style='{ "width": "100%" }' type="date" format="yyyy-MM-dd">
format="yyyy-MM-dd">
</JnpfDatePicker> </JnpfDatePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -48,11 +47,10 @@
<JnpfPopupSelect v-model="dataForm.deviceCode" @change="changeData('deviceCode', -1)" <JnpfPopupSelect v-model="dataForm.deviceCode" @change="changeData('deviceCode', -1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.deviceCode" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.deviceCode"
placeholder="请选择设备编码" propsValue="device_code" popupWidth="800px" popupTitle="选择数据" placeholder="请选择设备编码" propsValue="device_code" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='device_code' field='deviceCode' popupType="dialog" relationField='device_name' field='deviceCode'
interfaceId="590497496266971845" :pageSize="20" interfaceId="590497496266971845" :pageSize="20"
:columnOptions="deviceCodecolumnOptions" clearable :style='{ "width": "100%" }'> :columnOptions="deviceCodecolumnOptions" clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -62,27 +60,23 @@
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8">
<jnpf-form-tip-item label="顺序号" prop="sort">
<JnpfInputNumber v-model="dataForm.sort" @change="changeData('sort', -1)"
placeholder="顺序号" :min="1" :step="1">
</JnpfInputNumber>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="班次" prop="post"> <jnpf-form-tip-item label="班次" prop="post">
<JnpfSelect v-model="dataForm.post" @change="changeData('post', -1)" placeholder="请选择班次" <JnpfPopupSelect v-model="dataForm.post" @change="changeData('post', -1)"
clearable :style='{ "width": "100%" }' :options="postOptions" :props="postProps"> :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.post"
</JnpfSelect> placeholder="请选择班次" hasPage propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='classes_name' field='post'
interfaceId="595237502952944325" :pageSize="20" :columnOptions="postcolumnOptions"
clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="开始时间" prop="startTime"> <jnpf-form-tip-item label="开始时间" prop="startTime">
<JnpfTimePicker v-model="dataForm.startTime" @change="changeData('startTime', -1)" <JnpfTimePicker v-model="dataForm.startTime" @change="changeData('startTime', -1)"
:startTime="time(false, 1, 1, '', 'HH:mm', '')" :startTime="time(false, 1, 1, '', 'HH:mm', '')" :endTime="time(false, 1, 1, '', 'HH:mm', '')"
:endTime="time(false, 1, 1, '', 'HH:mm', '')" placeholder="请选择开始时间" clearable placeholder="请选择开始时间" clearable :style='{ "width": "100%" }' format="HH:mm">
:style='{ "width": "100%" }' format="HH:mm">
</JnpfTimePicker> </JnpfTimePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -90,17 +84,20 @@
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="结束时间" prop="endTime"> <jnpf-form-tip-item label="结束时间" prop="endTime">
<JnpfTimePicker v-model="dataForm.endTime" @change="changeData('endTime', -1)" <JnpfTimePicker v-model="dataForm.endTime" @change="changeData('endTime', -1)"
:startTime="time(false, 1, 1, '', 'HH:mm', '')" :startTime="time(false, 1, 1, '', 'HH:mm', '')" :endTime="time(false, 1, 1, '', 'HH:mm', '')"
:endTime="time(false, 1, 1, '', 'HH:mm', '')" placeholder="请选择结束时间" clearable placeholder="请选择结束时间" clearable :style='{ "width": "100%" }' format="HH:mm">
:style='{ "width": "100%" }' format="HH:mm">
</JnpfTimePicker> </JnpfTimePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="产品编码" prop="productCode"> <jnpf-form-tip-item label="产品编码" prop="productCode">
<JnpfInput v-model="dataForm.productCode" @change="changeData('productCode', -1)" <JnpfPopupSelect v-model="dataForm.productCode" @change="changeData('productCode', -1)"
placeholder="请输入产品编码" clearable :style='{ "width": "100%" }'> :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.productCode"
</JnpfInput> placeholder="请选择产品编码" hasPage propsValue="material_id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='material_name'
field='productCode' interfaceId="593079067666820933" :pageSize="20"
:columnOptions="productCodecolumnOptions" clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -119,8 +116,8 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="当班领用" prop="duty"> <jnpf-form-tip-item label="当班领用" prop="duty">
<JnpfInput v-model="dataForm.duty" @change="changeData('duty', -1)" <JnpfInput v-model="dataForm.duty" @change="changeData('duty', -1)" placeholder="请输入当班领用"
placeholder="请输入当班领用" clearable :style='{ "width": "100%" }'> clearable :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -131,6 +128,13 @@
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8">
<jnpf-form-tip-item label="顺序号" prop="sort">
<JnpfInputNumber v-model="dataForm.sort" @change="changeData('sort', -1)"
placeholder="顺序号" :min="1" :step="1">
</JnpfInputNumber>
</jnpf-form-tip-item>
</el-col>
<!-- 表单结束 --> <!-- 表单结束 -->
</template> </template>
</el-form> </el-form>
@ -185,8 +189,7 @@ export default {
manufactureTime: undefined, manufactureTime: undefined,
deviceCode: undefined, deviceCode: undefined,
deviceName: undefined, deviceName: undefined,
sort: 1, post: undefined,
post: "1",
startTime: undefined, startTime: undefined,
endTime: undefined, endTime: undefined,
productCode: undefined, productCode: undefined,
@ -194,6 +197,7 @@ export default {
model: undefined, model: undefined,
duty: undefined, duty: undefined,
classBalance: undefined, classBalance: undefined,
sort: 1,
version: 0, version: 0,
}, },
tableRequiredData: {}, tableRequiredData: {},
@ -216,7 +220,7 @@ export default {
post: [ post: [
{ {
required: true, required: true,
message: '请至少选择一个', message: '请选择班次',
trigger: 'change' trigger: 'change'
}, },
], ],
@ -237,8 +241,8 @@ export default {
productCode: [ productCode: [
{ {
required: true, required: true,
message: '请输入产品编码', message: '请选择产品编码',
trigger: 'blur' trigger: 'change'
}, },
], ],
model: [ model: [
@ -250,15 +254,14 @@ export default {
], ],
}, },
deviceCodecolumnOptions: [{ "label": "设备编码", "value": "device_code" }, { "label": "设备名称", "value": "device_name" }, { "label": "设备类型", "value": "device_desc" },], deviceCodecolumnOptions: [{ "label": "设备编码", "value": "device_code" }, { "label": "设备名称", "value": "device_name" }, { "label": "设备类型", "value": "device_desc" },],
postOptions: [{ "fullName": "旺季白班", "id": "1" }, { "fullName": "旺季晚班", "id": "2" }, { "fullName": "淡季白班", "id": "3" }, { "fullName": "淡季晚班", "id": "4" }], postcolumnOptions: [{ "label": "班次名称", "value": "classes_name" }, { "label": "开始时间", "value": "start_time" }, { "label": "结束时间", "value": "end_time" }, { "label": "时长", "value": "classes_duration" },],
postProps: { "label": "fullName", "value": "id" }, productCodecolumnOptions: [{ "label": "产品编码", "value": "material_id" }, { "label": "产品名称", "value": "material_name" },],
childIndex: -1, childIndex: -1,
isEdit: false, isEdit: false,
interfaceRes: { interfaceRes: {
manufactureTime: [], manufactureTime: [],
deviceCode: [], deviceCode: [],
deviceName: [], deviceName: [],
sort: [],
post: [], post: [],
startTime: [], startTime: [],
endTime: [], endTime: [],
@ -267,6 +270,7 @@ export default {
model: [], model: [],
duty: [], duty: [],
classBalance: [], classBalance: [],
sort: [],
}, },
} }
}, },

@ -11,32 +11,19 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="产品编码"> <el-form-item label="产品名称">
<el-input v-model="query.productCode" placeholder="请输入" clearable> </el-input> <el-input v-model="query.productName" placeholder="请输入" clearable> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="产品名称"> <el-form-item label="设备名称">
<el-input v-model="query.productName" placeholder="请输入" clearable> </el-input> <el-input v-model="query.deviceName" placeholder="请输入" clearable> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<template v-if="showAll">
<el-col :span="6">
<el-form-item label="设备名称">
<el-input v-model="query.deviceName" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
</template>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button> <el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button> <el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
<el-button type="text" icon="el-icon-arrow-down" @click="showAll = true" v-if="!showAll">
展开
</el-button>
<el-button type="text" icon="el-icon-arrow-up" @click="showAll = false" v-else>
收起
</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>
@ -96,13 +83,13 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="150"> <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)"> <!-- <el-button type="text" @click="addOrUpdateHandle(scope.row)">
</el-button> </el-button>
<!-- <el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)"> <el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button> </el-button> -->
<el-button type="text" <el-button type="text"
@click="goDetail(scope.row.id)">详情 @click="goDetail(scope.row.id)">详情
</el-button> --> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
@ -161,14 +148,12 @@ export default {
exportList: [], exportList: [],
columnList, columnList,
showAll: false,
superQueryVisible: false, superQueryVisible: false,
superQueryJson, superQueryJson,
uploadBoxVisible: false, uploadBoxVisible: false,
detailVisible: false, detailVisible: false,
query: { query: {
manufactureTime: undefined, manufactureTime: undefined,
productCode: undefined,
productName: undefined, productName: undefined,
deviceName: undefined, deviceName: undefined,
}, },
@ -194,10 +179,10 @@ export default {
flowListVisible: false, flowListVisible: false,
flowList: [], flowList: [],
exportBoxVisible: false, exportBoxVisible: false,
postOptions: [{ "fullName": "旺季白班", "id": "1" }, { "fullName": "旺季晚班", "id": "2" }],
postProps: { "label": "fullName", "value": "id" },
interfaceRes: { interfaceRes: {
deviceCode: [], deviceCode: [],
post: [],
productCode: [],
}, },
} }
}, },
@ -381,10 +366,10 @@ export default {
const year = now.getFullYear(); const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0'); const month = String(now.getMonth() + 1).padStart(2, '0');
const startDate = `${year}-${month}-01 00:00:00`; const startDate = `${year}-${month}-01 00:00:00`;
const startDateTimestamp = new Date(startDate).getTime(); const startDateTimestamp = new Date(startDate).getTime();
const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`; const endDate = `${year}-${month}-${new Date(year, now.getMonth() + 1, 0).getDate()}`;
const endDateTimestamp = new Date(endDate).getTime(); const endDateTimestamp = new Date(endDate).getTime();
this.query.manufactureTime = [startDateTimestamp, endDateTimestamp]; this.query.manufactureTime = [startDateTimestamp, endDateTimestamp];
}, },
initData() { initData() {
this.listLoading = true; this.listLoading = true;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save