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 | 109 +++++++++++++++++++++++++----------------------------- 1 files changed, 50 insertions(+), 59 deletions(-) diff --git a/admin-web/src/views/stock/accessStock/outbound/index.vue b/admin-web/src/views/stock/accessStock/outbound/index.vue index b6ce027..a40e6d0 100644 --- a/admin-web/src/views/stock/accessStock/outbound/index.vue +++ b/admin-web/src/views/stock/accessStock/outbound/index.vue @@ -12,50 +12,53 @@ <div class="table-tool-bar" style="margin-bottom: 15px;"> <my-button name="鏂板" @click="handleAdd" site="tools" size="medium" /> </div> - <div :style="{ 'overflow-y': 'auto', height: `${clientHeight - 320}px` }" v-loading="loading"> - <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"> - <div class="card-container"> - <div class="card-header"> - <div class="card-header-left"> - <span>鍑哄簱鍗曞彿锛�</span> - <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 + <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"> + <div class="card-container"> + <div class="card-header"> + <div class="card-header-left"> + <span>鍑哄簱鍗曞彿锛�</span> + <span class="value">{{ item.businessFormCode }}</span> + </div> + <div class="card-header-right"> + <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)" + <el-button name="鏌ョ湅璇︽儏" site="form" type="info" size="mini" @click="handleDetail(item)" >鏌ョ湅璇︽儏</el-button - > + > + </div> </div> - </div> - <div class="one-hed"> - <div class="box"><span class="span-two">鏈烘瀯锛�</span>{{ item.agencyName }}</div> - <div class="box"><span class="span-two">鎿嶄綔浜猴細</span>{{ item.operatorName }}</div> - <div class="box"> - <span class="span-two">鍑哄簱鏃堕棿锛�</span>{{ item.dealTime | formatTime }} + <div class="one-hed"> + <div class="box"><span class="span-two">鏈烘瀯锛�</span>{{ item.agencyName }}</div> + <div class="box"><span class="span-two">鎿嶄綔浜猴細</span>{{ item.operatorName }}</div> + <div class="box"> + <span class="span-two">鍑哄簱鏃堕棿锛�</span>{{ item.dealTime | formatTime }} + </div> </div> - </div> - <div class="card-end"> - <div v-for="(just, index) in item.formOutputTemplateInfoList" :key="index" class="item"> - <div class="name">{{ just.goodsName }}</div> - <div class="value-box"> - <div class="value-box-item"> - <span class="label">鏁伴噺锛�</span> - <span class="value">{{ just.count }}</span> - <span class="unit">{{ just.unit }}</span> + <div class="card-end"> + <div v-for="(just, index) in item.formOutputTemplateInfoList" :key="index" class="item"> + <div class="name">{{ just.goodsName }}</div> + <div class="value-box"> + <div class="value-box-item"> + <span class="label">鏁伴噺锛�</span> + <span class="value">{{ just.count }}</span> + <span class="unit">{{ just.unit }}</span> + </div> </div> </div> </div> </div> - </div> - </el-card> - </el-col> - </el-row> - <div class="no-data" v-else>鏆傛棤鏁版嵁</div> + </el-card> + </el-col> + </el-row> + <el-empty v-else description="鏆傛棤鏁版嵁"></el-empty> + </div> </div> + <el-pagination :small="false" :current-page="pageNum" @@ -77,12 +80,12 @@ </template> <script> -import { outputList } from '@/api/stock/accessStock'; +import {outputList} from '@/api/stock/accessStock'; import MyButton from '@/components/myButton/myButton'; 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 { @@ -102,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: '鐗╁搧鍚嶇О', @@ -113,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', @@ -160,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