Browse Source

一二线查询条件调整

CzRger 6 months ago
parent
commit
8117e2ca9d

+ 23 - 2
snowy-admin-web/src/views/yqyc/general-ledger/one/index.vue

@@ -1,5 +1,9 @@
 <template>
 	<a-card :bordered="false" v-if="indexShow">
+		<a-tabs v-model:activeKey="searchFormState.warehouseType" @change="onSearch()">
+			<a-tab-pane key="0" tab="入库记账清单"/>
+			<a-tab-pane key="1" tab="出库记账清单"/>
+		</a-tabs>
 		<a-form ref="searchFormRef" name="advanced_search" :model="searchFormState" class="ant-advanced-search-form">
             <a-row :gutter="24">
                 <a-col :span="6">
@@ -39,7 +43,11 @@
                 </a-col>
                 <a-col :span="6" v-show="advanced">
                     <a-form-item label="记账数量" name="accountNumber">
-                        <a-input-number v-model:value="searchFormState.accountNumber" placeholder="请输入记账数量" style="width: 100%" />
+						<div class="account-number">
+							<a-input-number v-model:value="searchFormState.accountNumberMin" placeholder="请输入"/>
+							至
+							<a-input-number v-model:value="searchFormState.accountNumberMax" placeholder="请输入"/>
+						</div>
                     </a-form-item>
                 </a-col>
                 <a-col :span="6" v-show="advanced">
@@ -140,7 +148,9 @@
 	import qyFrontlineWarehouseApi from '@/api/biz/qyFrontlineWarehouseApi'
 	import downloadUtil from "@/utils/downloadUtil";
     const { proxy } = getCurrentInstance()
-	const searchFormState = ref({})
+	const searchFormState = ref({
+		warehouseType: '1'
+	})
 	const searchFormStateReal = ref({}) // 点击搜索后备份的查询参数
 	const searchFormRef = ref()
 	const tableRef = ref()
@@ -314,3 +324,14 @@
 	const businessTypeOptions = tool.dictList('bussiness_type')
 	const measurementUnitOptions = tool.dictList('measurement unit')
 </script>
+
+<style lang="less" scoped>
+.account-number {
+	display: flex;
+	align-items: center;
+	gap: 6px;
+	>* {
+		flex: 1;
+	}
+}
+</style>

+ 16 - 1
snowy-admin-web/src/views/yqyc/general-ledger/two/index.vue

@@ -39,7 +39,11 @@
                 </a-col>
                 <a-col :span="6" v-show="advanced">
                     <a-form-item label="记账数量" name="accountNumber">
-                        <a-input v-model:value="searchFormState.accountNumber" placeholder="请输入记账数量" allow-clear/>
+						<div class="account-number">
+							<a-input-number v-model:value="searchFormState.accountNumberMin" placeholder="请输入"/>
+							至
+							<a-input-number v-model:value="searchFormState.accountNumberMax" placeholder="请输入"/>
+						</div>
                     </a-form-item>
                 </a-col>
                 <a-col :span="6" v-show="advanced">
@@ -312,3 +316,14 @@
 	const businessTypeOptions = tool.dictList('bussiness_type')
 	const measurementUnitOptions = tool.dictList('measurement unit')
 </script>
+
+<style lang="less" scoped>
+.account-number {
+	display: flex;
+	align-items: center;
+	gap: 6px;
+	>* {
+		flex: 1;
+	}
+}
+</style>

+ 3 - 0
snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/detail.vue.btl

@@ -191,3 +191,6 @@
 		onOpen
 	})
 </script>
+
+<style lang="less" scoped>
+</style>

+ 3 - 0
snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/form.vue.btl

@@ -194,3 +194,6 @@
 		onOpen
 	})
 </script>
+
+<style lang="less" scoped>
+</style>

+ 3 - 0
snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/index.vue.btl

@@ -313,3 +313,6 @@
 	<% } %>
 	<% } %>
 </script>
+
+<style lang="less" scoped>
+</style>

+ 3 - 0
snowy-plugin/snowy-plugin-gen/src/main/resources/frontend/index_inside.vue.btl

@@ -323,3 +323,6 @@
 	<% } %>
 	<% } %>
 </script>
+
+<style lang="less" scoped>
+</style>