From 774e6e650b6235a9e34dfecab65c4322c1767714 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 16:48:15 +0800 Subject: [PATCH] feat: 库存管理 查询条件梳理 --- admin-web/src/views/stock/accessStock/outbound/index.vue | 40 ++++++++++++++-------------------------- 1 files changed, 14 insertions(+), 26 deletions(-) diff --git a/admin-web/src/views/stock/accessStock/outbound/index.vue b/admin-web/src/views/stock/accessStock/outbound/index.vue index b7202d7..a40e6d0 100644 --- a/admin-web/src/views/stock/accessStock/outbound/index.vue +++ b/admin-web/src/views/stock/accessStock/outbound/index.vue @@ -12,8 +12,8 @@ <div class="table-tool-bar" style="margin-bottom: 15px;"> <my-button name="鏂板" @click="handleAdd" site="tools" size="medium" /> </div> - <div> - <div :style="{ 'overflow-y': 'auto', height: 'calc(100vh - 352px)' }" v-loading="loading"> + <div v-loading="loading"> + <div :style="{ 'overflow-y': 'auto', height: 'calc(100vh - 352px)' }"> <el-row v-if="list.length" class="card" :gutter="5"> <el-col v-for="(item, index) in list" :key="index" class="cm-item"> <el-card class="card-data"> @@ -24,7 +24,7 @@ <span class="value">{{ item.businessFormCode }}</span> </div> <div class="card-header-right"> - <el-button site="form" type="success" size="mini" @click="handleExport(item)" + <el-button site="form" type="success" size="mini" @click="handleExport('outputExport',`鍑哄簱鍗�-${item.businessFormCode}`,{id:item.id})" >瀵煎嚭鍑哄簱鍗�</el-button > <el-button name="鏌ョ湅璇︽儏" site="form" type="info" size="mini" @click="handleDetail(item)" @@ -85,7 +85,7 @@ import myImport from '@/views/components/myImport'; import edit from './edit'; import detail from './detail'; -import listPage from '../../../mixins/listPage' +import listPage from '@/views/mixins/listPage' import SettingIplatform from '@/utils/settingIplatform'; export default { @@ -105,6 +105,16 @@ defaultValue: '', }, { + type: 'cascader', + dataIndex: 'agencyId', + label: '鏈烘瀯', + placeholder: '璇烽�夋嫨', + optionsConfig: { url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null }, + cascader: [{key:'goodsTemplateId',queryKey: 'agencyId'}], + defaultValue: '', + options: [], + }, + { type: 'select', dataIndex: 'goodsTemplateId', label: '鐗╁搧鍚嶇О', @@ -116,15 +126,6 @@ value: 'id', url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate', }, - }, - { - type: 'cascader', - dataIndex: 'agencyId', - label: '鏈烘瀯', - placeholder: '璇烽�夋嫨', - optionsConfig: { url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null }, - defaultValue: '', - options: [], }, { type: 'text', @@ -163,19 +164,6 @@ this.total = res.totalRows; this.loading = false; }); - }, - fifterForm(params) { - this.filterFrom = Object.assign(this.filterFrom, params); - if (this.filterFrom.startTime) { - this.filterFrom.startTime = this.filterFrom.startTime.replace(/\-/g, ''); - } - if (this.filterFrom.endTime) { - this.filterFrom.endTime = this.filterFrom.endTime.replace(/\-/g, ''); - } - if (this.filterFrom.agencyId&&this.filterFrom.agencyId.length) { - this.filterFrom.agencyId = this.filterFrom.agencyId[this.filterFrom.agencyId.length - 1]; - } - this.search(1); }, }, }; -- Gitblit v1.9.1