|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<!-- 过滤客户资料表格 -->
|
|
|
- <Filter @update="update">
|
|
|
+ <Filter @update="update" ref="filter" v-slot="{search,reset}">
|
|
|
<a-select label-in-value class="conditionSelect ml10" style="width: 120px" v-model:value="selectedDG" @change="DGChange" placeholder="全部现货品种">
|
|
|
<a-select-option v-for="item in DGList" :key="item.data.deliverygoodsname">
|
|
|
{{ item.data.deliverygoodsname }}
|
|
|
@@ -17,14 +17,14 @@
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
<a-button class="selectBtn">查询</a-button>
|
|
|
- <a-button class="selectBtn" @click="reset">重置</a-button>
|
|
|
+ <a-button class="selectBtn" @click="resetAction(search,reset)">重置</a-button>
|
|
|
</Filter>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import FilterOption from '@/common/components/filter/index.vue';
|
|
|
import { defineComponent } from 'vue';
|
|
|
-import { ref } from 'vue';
|
|
|
+import { ref ,onMounted } from 'vue';
|
|
|
import { handleFilter, SelectList } from '@/common/setup/filter';
|
|
|
import { handlerManagerList } from '@/common/setup/user';
|
|
|
import { QueryMiddleGoodsDetail } from '@/services/go/ermcp/goodsInfo';
|
|
|
@@ -40,8 +40,18 @@ export default defineComponent({
|
|
|
function update(value: TypeAndTime) {
|
|
|
context.emit('update', value);
|
|
|
}
|
|
|
+
|
|
|
+ let filter = ref(null);
|
|
|
+ onMounted(()=>{
|
|
|
+ console.log(filter.value)
|
|
|
+ });
|
|
|
const { DGList, gblist, gmlist, selectedDG, selectedGB, selectedGM, DGChange, GBOrGMChange, reset } = handleDG(context);
|
|
|
+ function resetAction(search:Function,Nreset:Function) {
|
|
|
+ Nreset()
|
|
|
+ reset()
|
|
|
+ }
|
|
|
return {
|
|
|
+ filter,
|
|
|
DGList,
|
|
|
gblist,
|
|
|
gmlist,
|
|
|
@@ -52,6 +62,7 @@ export default defineComponent({
|
|
|
selectedGB,
|
|
|
selectedGM,
|
|
|
update,
|
|
|
+ resetAction,
|
|
|
};
|
|
|
},
|
|
|
});
|