Browse Source

修改日期搜索

dev-xx
马远东 1 year ago
parent
commit
6dbc98722b
  1. 1
      src/views/financialsector/FinanceHome.vue
  2. 19
      src/views/warehouse/warehousesignedorder/distributionStockArticle.vue

1
src/views/financialsector/FinanceHome.vue

@ -128,6 +128,7 @@ const removeTag = value => {
// //
const provideData = () => { const provideData = () => {
console.log(`父组件的数据是:${11111}`); console.log(`父组件的数据是:${11111}`);
templateInfo.value = { name: '参数', data: 11111 };
}; };
</script> </script>

19
src/views/warehouse/warehousesignedorder/distributionStockArticle.vue

@ -293,25 +293,25 @@ const selectionChange = list => {
const searchChange = () => { const searchChange = () => {
// //
if (TopQuery.value.warehouseEntryTime) { if (TopQuery.value.warehouseEntryTime) {
queryCarn.value.warehouseEntryTimestartTaskTime = dayjs(TopQuery.value.warehouseEntryTime[0]).format( queryCarn.value.warehouseEntryTimeStart = dayjs(TopQuery.value.warehouseEntryTime[0]).format(
'YYYY-MM-DD HH:mm:ss' 'YYYY-MM-DD HH:mm:ss'
); // ); //
queryCarn.value.warehouseEntryTimeendTaskTime = dayjs(TopQuery.value.warehouseEntryTime[1]).format( queryCarn.value.warehouseEntryTimeEnd = dayjs(TopQuery.value.warehouseEntryTime[1]).format(
'YYYY-MM-DD HH:mm:ss' 'YYYY-MM-DD HH:mm:ss'
); // ); //
} else { } else {
delete queryCarn.value.warehouseEntryTimestartTaskTime; delete queryCarn.value.warehouseEntryTimeStart;
delete queryCarn.value.warehouseEntryTimeendTaskTime; delete queryCarn.value.warehouseEntryTimeEnd;
} }
if (TopQuery.value.signinTime) { if (TopQuery.value.signinTime) {
queryCarn.value.signinTimestartTaskTime = dayjs(TopQuery.value.signinTime[0]).format( queryCarn.value.signingTimeStart = dayjs(TopQuery.value.signinTime[0]).format(
'YYYY-MM-DD HH:mm:ss' 'YYYY-MM-DD HH:mm:ss'
); // ); //
queryCarn.value.signinTimeendTaskTime = dayjs(TopQuery.value.signinTime[1]).format('YYYY-MM-DD HH:mm:ss'); // queryCarn.value.signingTimeEnd = dayjs(TopQuery.value.signinTime[1]).format('YYYY-MM-DD HH:mm:ss'); //
} else { } else {
delete queryCarn.value.signinTimestartTaskTime; delete queryCarn.value.signingTimeStart;
delete queryCarn.value.signinTimeendTaskTime; delete queryCarn.value.signingTimeEnd;
} }
getrain(); getrain();
@ -340,7 +340,8 @@ const searchHide = () => {
}; };
// //
const searchReset = () => { const searchReset = () => {
queryCarn.query={}
TopQuery.value={}
details.query = {}; details.query = {};
details.columnList.forEach(item => { details.columnList.forEach(item => {
item.values = ''; item.values = '';

Loading…
Cancel
Save