|
@@ -94,6 +94,7 @@ const mlscgdformData = reactive({
|
|
|
日期: '',
|
|
日期: '',
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+
|
|
|
//自动聚焦光标input
|
|
//自动聚焦光标input
|
|
|
const getMachineMacdata = async () => {
|
|
const getMachineMacdata = async () => {
|
|
|
mlscgdformData['日期'] = currentDates
|
|
mlscgdformData['日期'] = currentDates
|
|
@@ -108,11 +109,15 @@ const getMachineMacdata = async () => {
|
|
|
}
|
|
}
|
|
|
getMachineMacdata();
|
|
getMachineMacdata();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ //日期转换
|
|
|
|
|
+let lhrq_formattedDeliveryDate = ''; //转化后的日期
|
|
|
|
|
+if (mlscgdformData['日期']) {
|
|
|
|
|
+ const date = new Date(mlscgdformData['日期']);
|
|
|
|
|
+ lhrq_formattedDeliveryDate = `${date.getFullYear()}-${('0' + (date.getMonth() + 1)).slice(-2)}`;
|
|
|
|
|
+}
|
|
|
const fabricListdada = async () => {
|
|
const fabricListdada = async () => {
|
|
|
-
|
|
|
|
|
//订单信息数据查询【接口】
|
|
//订单信息数据查询【接口】
|
|
|
- const fabricListdata = await fabricList({mouth:currentDates});
|
|
|
|
|
|
|
+ const fabricListdata = await fabricList({mouth:lhrq_formattedDeliveryDate});
|
|
|
console.log(fabricListdata)
|
|
console.log(fabricListdata)
|
|
|
restableData.splice(0,fabricListdata.length,...fabricListdata.data);
|
|
restableData.splice(0,fabricListdata.length,...fabricListdata.data);
|
|
|
}
|
|
}
|
|
@@ -128,13 +133,6 @@ const handleInput = async ()=>{
|
|
|
//查询按钮
|
|
//查询按钮
|
|
|
const add_onSubmit = async ()=>{
|
|
const add_onSubmit = async ()=>{
|
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
|
- //日期转换
|
|
|
|
|
- let lhrq_formattedDeliveryDate = '';
|
|
|
|
|
- if (mlscgdformData['日期']) {
|
|
|
|
|
- const date = new Date(mlscgdformData['日期']);
|
|
|
|
|
- lhrq_formattedDeliveryDate = `${date.getFullYear()}-${('0' + (date.getMonth() + 1)).slice(-2)}`;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
//订单信息数据查询【接口】
|
|
//订单信息数据查询【接口】
|
|
|
const fabricListdata = await fabricList({mouth:lhrq_formattedDeliveryDate});
|
|
const fabricListdata = await fabricList({mouth:lhrq_formattedDeliveryDate});
|
|
|
console.log(fabricListdata)
|
|
console.log(fabricListdata)
|