Browse Source

出入库单

CzRger 9 months ago
parent
commit
44d44efcc1

+ 1 - 2
snowy-admin-web/src/views/yqyc/component/enterprise/detail.vue

@@ -4,9 +4,8 @@
       title="企业详情"
       centered
       width="90%"
-      cancelText=""
   >
-      <div class="enterprise-title">
+      <div class="enterprise-detail">
         <div class="__cus-title_1">资质类型</div>
         <a-checkbox-group v-model:value="zzTypes" name="checkboxgroup" :disabled="true">
           <a-row :gutter="[0, 10]">

+ 295 - 0
snowy-admin-web/src/views/yqyc/general-ledger/one/goods.vue

@@ -0,0 +1,295 @@
+<template>
+	<a-modal
+      v-model:open="open"
+      :title="(formData?.warehouseType == 0 ? '入' : '出') + '库单'"
+      centered
+      width="90%"
+  >
+      <div class="goods-detail">
+        <a-card>
+          <a-form ref="formRef" :model="formData" layout="inline">
+            <a-row :gutter="[0, 16]">
+              <a-col :span="8">
+                <a-form-item :label="(formData?.warehouseType == 0 ? '入' :'出') + '库单预录入编号'" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item :label="(formData?.warehouseType == 0 ? '入' :'出') + '库单编号'" name="warehouseNumber">
+                  <a-input v-model:value="formData.warehouseNumber" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="径予声明编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="核注清单号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="企业编码" name="companyCode">
+                  <a-input v-model:value="formData.companyCode" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="企业名称" name="companyName">
+                  <a-input v-model:value="formData.companyName" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="采购类型" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="监管方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="币制" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="启抵国(地区)" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item :label="(formData?.warehouseType == 0 ? '入' :'出') + '库日期'" name="warehouseTime">
+                  <a-input v-model:value="formData.warehouseTime" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="进/出口岸" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="进/出境关别" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="主管关区代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="报关标志" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="运输方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="区港联动标记" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="是否为报税商品" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="一线报关单号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="收货企业编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="收货企业名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="24">
+                <a-form-item label="备注" name="xxx">
+                  <a-textarea v-model:value="formData.xxx" :disabled="true" :rows="4"/>
+                </a-form-item>
+              </a-col>
+            </a-row>
+          </a-form>
+        </a-card>
+        <a-card style="margin-top: 10px;">
+          <a-form ref="formRef" :model="formData" layout="inline">
+            <a-row :gutter="[0, 16]">
+              <a-col :span="8">
+                <a-form-item label="物料编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="物料名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="版本号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="核注清单项次号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="金二账册号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="备案序号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="备案名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="料件成品标志" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="规格型号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="原产国(地区)" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item :label="(formData?.warehouseType == 0 ? '入' :'出') + '库数量'" name="accountNumber">
+                  <a-input v-model:value="formData.accountNumber" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="计量单位" name="measurementUnit">
+                  <a-input v-model:value="formData.measurementUnit" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="单价" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="第一法定数量" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="第二法定数量" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="征免方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货仓代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="仓位代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货物来源单证类型" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货物来源单证编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+            </a-row>
+          </a-form>
+          <a-table
+            style="margin-top: 10px"
+            bordered
+            :dataSource="[{
+              xxx: 121
+            }]"
+            :columns="[
+              {title: '物料编号',dataIndex: 'xxx',key: 'xxx'},
+              {title: '物料名称',dataIndex: 'xxx',key: 'xxx'},
+              {title: '规格型号',dataIndex: 'xxx',key: 'xxx'},
+              {title: (formData?.warehouseType == 0 ? '入' :'出') + '库数量',dataIndex: 'xxx',key: 'xxx'},
+              {title: '计量单位',dataIndex: 'xxx',key: 'xxx'},
+              {title: '单价',dataIndex: 'xxx',key: 'xxx'},
+            ]"
+            :pagination="false"
+          />
+        </a-card>
+      </div>
+      <template #footer></template>
+	</a-modal>
+</template>
+
+<script setup name="enterpriseDetail">
+	import tool from '@/utils/tool'
+	import { cloneDeep } from 'lodash-es'
+	// 抽屉状态
+	const open = ref(false)
+	const emit = defineEmits({ successful: null })
+	const formRef = ref()
+	// 表单数据
+	const formData = ref({})
+  const zzTypeOptions = ref([])
+  const companyTypeOptions = ref([])
+  const companySupervisionPlaceTypeOptions = ref([])
+  const companyMainHgTypeOptions = ref([])
+  const zzTypes = ref([])
+
+	// 打开抽屉
+	const onOpen = (record, view = false) => {
+		open.value = true
+		if (record) {
+			let recordData = cloneDeep(record)
+			formData.value = Object.assign({}, recordData)
+		}
+    zzTypeOptions.value = tool.dictList('applyzztype')
+    companyTypeOptions.value = tool.dictList('qylx')
+    companySupervisionPlaceTypeOptions.value = tool.dictList('jtcs')
+    companyMainHgTypeOptions.value = tool.dictList('zhhg')
+	}
+	// 关闭抽屉
+	const onClose = () => {
+		formRef.value.resetFields()
+		formData.value = {}
+		open.value = false
+	}
+	// 抛出函数
+	defineExpose({
+		onOpen
+	})
+</script>
+<style lang="less" scoped>
+  .goods-detail {
+    max-height: 800px;
+    overflow-y: auto;
+  }
+</style>

+ 4 - 0
snowy-admin-web/src/views/yqyc/general-ledger/one/index.vue

@@ -153,6 +153,7 @@
             <a-popconfirm title="确定要删除吗?" @confirm="deleteQyFrontlineWarehouse(record)">
               <a-button type="link" danger size="small" v-if="hasPerm('qyFrontlineWarehouseDelete')">删除</a-button>
             </a-popconfirm>
+            <a-button type="link" primary size="small" @click="goodsDetailRef.onOpen(record)">{{ (record.warehouseType == 0 ? '入' : '出') + '库单' }}</a-button>
           </a-space>
         </template>
       </template>
@@ -160,6 +161,7 @@
   </a-card>
   <Detail v-else ref="detailRef" @onClose="indexShow = true" @successful="onSearch()"/>
   <EnterpriseDetail ref="enterpriseDetailRef"/>
+  <GoodsDetail ref="goodsDetailRef"/>
 </template>
 
 <script setup name="qyfrontlinewarehouse">
@@ -167,6 +169,7 @@ import tool from '@/utils/tool'
 import {cloneDeep} from 'lodash-es'
 import Detail from './detail.vue'
 import EnterpriseDetail from '@/views/yqyc/component/enterprise/detail.vue'
+import GoodsDetail from './goods.vue'
 import qyFrontlineWarehouseApi from '@/api/yqyc/qyFrontlineWarehouseApi'
 import downloadUtil from "@/utils/downloadUtil";
 
@@ -180,6 +183,7 @@ const tableRef = ref()
 const filterParam = ref({})
 const detailRef = ref()
 const enterpriseDetailRef = ref()
+const goodsDetailRef = ref()
 const indexShow = ref(true)
 const toolConfig = {refresh: true, height: true, columnSetting: true, striped: false}
 // 查询区域显示更多控制

+ 295 - 0
snowy-admin-web/src/views/yqyc/general-ledger/two/goods.vue

@@ -0,0 +1,295 @@
+<template>
+	<a-modal
+      v-model:open="open"
+      title="出库单"
+      centered
+      width="90%"
+  >
+      <div class="goods-detail">
+        <a-card>
+          <a-form ref="formRef" :model="formData" layout="inline">
+            <a-row :gutter="[0, 16]">
+              <a-col :span="8">
+                <a-form-item label="出库单预录入编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="出库单编号" name="warehouseNumber">
+                  <a-input v-model:value="formData.warehouseNumber" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="二线出道编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="核注清单号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="企业编码" name="companyCode">
+                  <a-input v-model:value="formData.companyCode" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="企业名称" name="companyName">
+                  <a-input v-model:value="formData.companyName" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="采购类型" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="监管方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="币制" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="启抵国(地区)" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="出库日期" name="warehouseTime">
+                  <a-input v-model:value="formData.warehouseTime" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="进/出口岸" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="进/出境关别" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="主管关区代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="报关标志" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="运输方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="区港联动标记" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="是否为报税商品" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="二线出岛报关单号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="收货企业编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="收货企业名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="24">
+                <a-form-item label="备注" name="xxx">
+                  <a-textarea v-model:value="formData.xxx" :disabled="true" :rows="4"/>
+                </a-form-item>
+              </a-col>
+            </a-row>
+          </a-form>
+        </a-card>
+        <a-card style="margin-top: 10px;">
+          <a-form ref="formRef" :model="formData" layout="inline">
+            <a-row :gutter="[0, 16]">
+              <a-col :span="8">
+                <a-form-item label="物料编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="物料名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="版本号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="核注清单项次号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="金二账册号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="备案序号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="备案名称" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="料件成品标志" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="规格型号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="原产国(地区)" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="出库数量" name="accountNumber">
+                  <a-input v-model:value="formData.accountNumber" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="计量单位" name="measurementUnit">
+                  <a-input v-model:value="formData.measurementUnit" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="单价" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="第一法定数量" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="第二法定数量" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="征免方式" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货仓代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="仓位代码" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货物来源单证类型" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+              <a-col :span="8">
+                <a-form-item label="货物来源单证编号" name="xxx">
+                  <a-input v-model:value="formData.xxx" :disabled="true"/>
+                </a-form-item>
+              </a-col>
+            </a-row>
+          </a-form>
+          <a-table
+            style="margin-top: 10px"
+            bordered
+            :dataSource="[{
+              xxx: 121
+            }]"
+            :columns="[
+              {title: '物料编号',dataIndex: 'xxx',key: 'xxx'},
+              {title: '物料名称',dataIndex: 'xxx',key: 'xxx'},
+              {title: '规格型号',dataIndex: 'xxx',key: 'xxx'},
+              {title: '出库数量',dataIndex: 'xxx',key: 'xxx'},
+              {title: '计量单位',dataIndex: 'xxx',key: 'xxx'},
+              {title: '单价',dataIndex: 'xxx',key: 'xxx'},
+            ]"
+            :pagination="false"
+          />
+        </a-card>
+      </div>
+      <template #footer></template>
+	</a-modal>
+</template>
+
+<script setup name="enterpriseDetail">
+	import tool from '@/utils/tool'
+	import { cloneDeep } from 'lodash-es'
+	// 抽屉状态
+	const open = ref(false)
+	const emit = defineEmits({ successful: null })
+	const formRef = ref()
+	// 表单数据
+	const formData = ref({})
+  const zzTypeOptions = ref([])
+  const companyTypeOptions = ref([])
+  const companySupervisionPlaceTypeOptions = ref([])
+  const companyMainHgTypeOptions = ref([])
+  const zzTypes = ref([])
+
+	// 打开抽屉
+	const onOpen = (record, view = false) => {
+		open.value = true
+		if (record) {
+			let recordData = cloneDeep(record)
+			formData.value = Object.assign({}, recordData)
+		}
+    zzTypeOptions.value = tool.dictList('applyzztype')
+    companyTypeOptions.value = tool.dictList('qylx')
+    companySupervisionPlaceTypeOptions.value = tool.dictList('jtcs')
+    companyMainHgTypeOptions.value = tool.dictList('zhhg')
+	}
+	// 关闭抽屉
+	const onClose = () => {
+		formRef.value.resetFields()
+		formData.value = {}
+		open.value = false
+	}
+	// 抛出函数
+	defineExpose({
+		onOpen
+	})
+</script>
+<style lang="less" scoped>
+  .goods-detail {
+    max-height: 800px;
+    overflow-y: auto;
+  }
+</style>

+ 347 - 320
snowy-admin-web/src/views/yqyc/general-ledger/two/index.vue

@@ -1,333 +1,360 @@
 <template>
-	<a-card :bordered="false" v-if="indexShow">
-		<a-form ref="searchFormRef" name="advanced_search" :model="searchFormState" class="ant-advanced-search-form">
-            <a-row :gutter="24">
-                <a-col :span="6">
-                    <a-form-item label="企业编码" name="companyCode">
-                        <a-input v-model:value="searchFormState.companyCode" placeholder="请输入企业编码" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6">
-                    <a-form-item label="企业名称" name="companyName">
-                        <a-input v-model:value="searchFormState.companyName" placeholder="请输入企业名称" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6">
-                    <a-form-item label="账册类型" name="accountType">
-                        <a-select v-model:value="searchFormState.accountType" placeholder="请选择账册类型" :options="accountTypeOptions" show-search allow-clear optionFilterProp="label"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="账册编号" name="accountCode">
-                        <a-input v-model:value="searchFormState.accountCode" placeholder="请输入账册编号" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="商品编号" name="commodityCode">
-                        <a-input v-model:value="searchFormState.commodityCode" placeholder="请输入商品编号" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="商品名称" name="commodityName">
-                        <a-input v-model:value="searchFormState.commodityName" placeholder="请输入商品名称" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="业务类型" name="businessType">
-                        <a-select v-model:value="searchFormState.businessType" placeholder="请选择业务类型" :options="businessTypeOptions" show-search allow-clear optionFilterProp="label"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-					<div class="account-number">
-						<a-form-item label="记账数量" name="accountNumberMin">
-							<a-input-number v-model:value="searchFormState.accountNumberMin" placeholder="请输入" style="width: 100%;"/>
-						</a-form-item>
-						<a-form-item label="至" name="accountNumberMax">
-							<a-input-number v-model:value="searchFormState.accountNumberMax" placeholder="请输入" style="width: 100%;"/>
-						</a-form-item>
-					</div>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="法定计量单位" name="measurementUnit">
-                        <a-select v-model:value="searchFormState.measurementUnit" placeholder="请选择法定计量单位" :options="measurementUnitOptions" show-search allow-clear optionFilterProp="label"/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="二线出岛申请单号" name="secondlineOutislandNumber">
-                        <a-input v-model:value="searchFormState.secondlineOutislandNumber" placeholder="请输入二线出岛申请单号" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="出库单号" name="warehouseNumber">
-                        <a-input v-model:value="searchFormState.warehouseNumber" placeholder="请输入出库单号" allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="出库日期" name="warehouseTime">
-                        <a-range-picker v-model:value="searchFormState.warehouseTime" show-time allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6" v-show="advanced">
-                    <a-form-item label="记账日期" name="accountTime">
-                        <a-range-picker v-model:value="searchFormState.accountTime" show-time allow-clear/>
-                    </a-form-item>
-                </a-col>
-                <a-col :span="6">
-                    <a-button type="primary" @click="onSearch()">查询</a-button>
-                    <a-button style="margin: 0 8px" @click="reset">重置</a-button>
-                    <a @click="toggleAdvanced" style="margin-left: 8px">
-                        {{ advanced ? '收起' : '展开' }}
-                        <component :is="advanced ? 'up-outlined' : 'down-outlined'"/>
-                    </a>
-                </a-col>
-            </a-row>
-        </a-form>
-		<s-table
-			ref="tableRef"
-			:columns="columns"
-			:data="loadData"
-			:alert="options.alert.show"
-			bordered
-			:row-key="(record) => record.id"
-			:tool-config="toolConfig"
-			:row-selection="options.rowSelection"
-			v-model:filterParam="filterParam"
-			:scroll="{ x: 2000 }"
-		>
-			<template #operator class="table-operator">
-				<a-space>
-					<a-button type="primary" @click="onDetail()" v-if="hasPerm('qySecondlineWarehouseAdd')">
-						<template #icon><plus-outlined /></template>
-						新增
-					</a-button>
-					<xn-batch-delete
-						v-if="hasPerm('qySecondlineWarehouseDelete')"
-						:selectedRowKeys="selectedRowKeys"
-						@batchDelete="deleteBatchQySecondlineWarehouse"
-					/>
-					<a-button @click="onExport" v-if="hasPerm('qySecondlineWarehouseBatchExport')">
-                        <template #icon><export-outlined /></template>
-                        批量导出
-                    </a-button>
-				</a-space>
-			</template>
-			<template #bodyCell="{ column, record }">
-				<template v-if="column.dataIndex === 'accountType'">
-					{{ $TOOL.dictTypeData('account_type', record.accountType) }}
-				</template>
-				<template v-if="column.dataIndex === 'businessType'">
-					{{ $TOOL.dictTypeData('bussiness_type', record.businessType) }}
-				</template>
-				<template v-if="column.dataIndex === 'measurementUnit'">
-					{{ $TOOL.dictTypeData('measurement unit', record.measurementUnit) }}
-				</template>
-				<template v-if="column.dataIndex === 'action'">
-					<a-space>
-					    <a @click="onDetail(record, true)" v-if="hasPerm('qySecondlineWarehouseView')">查看</a>
-                        <a-divider type="vertical" v-if="hasPerm('qySecondlineWarehouseView') && hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'], 'or')" />
-						<a @click="onDetail(record)" v-if="hasPerm('qySecondlineWarehouseEdit')">编辑</a>
-						<a-divider type="vertical" v-if="hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'], 'and')" />
-						<a-popconfirm title="确定要删除吗?" @confirm="deleteQySecondlineWarehouse(record)">
-							<a-button type="link" danger size="small" v-if="hasPerm('qySecondlineWarehouseDelete')">删除</a-button>
-						</a-popconfirm>
-					</a-space>
-				</template>
-			</template>
-		</s-table>
-	</a-card>
-	<Detail v-else ref="detailRef" @onClose="indexShow = true" @successful="onSearch()" />
+  <a-card :bordered="false" v-if="indexShow">
+    <a-form ref="searchFormRef" name="advanced_search" :model="searchFormState" class="ant-advanced-search-form">
+      <a-row :gutter="24">
+        <a-col :span="6">
+          <a-form-item label="企业编码" name="companyCode">
+            <a-input v-model:value="searchFormState.companyCode" placeholder="请输入企业编码" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6">
+          <a-form-item label="企业名称" name="companyName">
+            <a-input v-model:value="searchFormState.companyName" placeholder="请输入企业名称" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6">
+          <a-form-item label="账册类型" name="accountType">
+            <a-select v-model:value="searchFormState.accountType" placeholder="请选择账册类型"
+                      :options="accountTypeOptions" show-search allow-clear optionFilterProp="label"/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="账册编号" name="accountCode">
+            <a-input v-model:value="searchFormState.accountCode" placeholder="请输入账册编号" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="商品编号" name="commodityCode">
+            <a-input v-model:value="searchFormState.commodityCode" placeholder="请输入商品编号" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="商品名称" name="commodityName">
+            <a-input v-model:value="searchFormState.commodityName" placeholder="请输入商品名称" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="业务类型" name="businessType">
+            <a-select v-model:value="searchFormState.businessType" placeholder="请选择业务类型"
+                      :options="businessTypeOptions" show-search allow-clear optionFilterProp="label"/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <div class="account-number">
+            <a-form-item label="记账数量" name="accountNumberMin">
+              <a-input-number v-model:value="searchFormState.accountNumberMin" placeholder="请输入"
+                              style="width: 100%;"/>
+            </a-form-item>
+            <a-form-item label="至" name="accountNumberMax">
+              <a-input-number v-model:value="searchFormState.accountNumberMax" placeholder="请输入"
+                              style="width: 100%;"/>
+            </a-form-item>
+          </div>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="法定计量单位" name="measurementUnit">
+            <a-select v-model:value="searchFormState.measurementUnit" placeholder="请选择法定计量单位"
+                      :options="measurementUnitOptions" show-search allow-clear optionFilterProp="label"/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="二线出岛申请单号" name="secondlineOutislandNumber">
+            <a-input v-model:value="searchFormState.secondlineOutislandNumber" placeholder="请输入二线出岛申请单号"
+                     allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="出库单号" name="warehouseNumber">
+            <a-input v-model:value="searchFormState.warehouseNumber" placeholder="请输入出库单号" allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="出库日期" name="warehouseTime">
+            <a-range-picker v-model:value="searchFormState.warehouseTime" show-time allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6" v-show="advanced">
+          <a-form-item label="记账日期" name="accountTime">
+            <a-range-picker v-model:value="searchFormState.accountTime" show-time allow-clear/>
+          </a-form-item>
+        </a-col>
+        <a-col :span="6">
+          <a-button type="primary" @click="onSearch()">查询</a-button>
+          <a-button style="margin: 0 8px" @click="reset">重置</a-button>
+          <a @click="toggleAdvanced" style="margin-left: 8px">
+            {{ advanced ? '收起' : '展开' }}
+            <component :is="advanced ? 'up-outlined' : 'down-outlined'"/>
+          </a>
+        </a-col>
+      </a-row>
+    </a-form>
+    <s-table
+      ref="tableRef"
+      :columns="columns"
+      :data="loadData"
+      :alert="options.alert.show"
+      bordered
+      :row-key="(record) => record.id"
+      :tool-config="toolConfig"
+      :row-selection="options.rowSelection"
+      v-model:filterParam="filterParam"
+      :scroll="{ x: 2000 }"
+    >
+      <template #operator class="table-operator">
+        <a-space>
+          <a-button type="primary" @click="onDetail()" v-if="hasPerm('qySecondlineWarehouseAdd')">
+            <template #icon>
+              <plus-outlined/>
+            </template>
+            新增
+          </a-button>
+          <xn-batch-delete
+            v-if="hasPerm('qySecondlineWarehouseDelete')"
+            :selectedRowKeys="selectedRowKeys"
+            @batchDelete="deleteBatchQySecondlineWarehouse"
+          />
+          <a-button @click="onExport" v-if="hasPerm('qySecondlineWarehouseBatchExport')">
+            <template #icon>
+              <export-outlined/>
+            </template>
+            批量导出
+          </a-button>
+        </a-space>
+      </template>
+      <template #bodyCell="{ column, record }">
+        <template v-if="column.dataIndex === 'companyName'">
+          <a-button type="link" class="__button-link" @click="enterpriseDetailRef.onOpen(record)">
+            {{record.companyName}}
+          </a-button>
+        </template>
+        <template v-if="column.dataIndex === 'accountType'">
+          {{ $TOOL.dictTypeData('account_type', record.accountType) }}
+        </template>
+        <template v-if="column.dataIndex === 'businessType'">
+          {{ $TOOL.dictTypeData('bussiness_type', record.businessType) }}
+        </template>
+        <template v-if="column.dataIndex === 'measurementUnit'">
+          {{ $TOOL.dictTypeData('measurement unit', record.measurementUnit) }}
+        </template>
+        <template v-if="column.dataIndex === 'action'">
+          <a-space>
+            <a @click="onDetail(record, true)" v-if="hasPerm('qySecondlineWarehouseView')">查看</a>
+            <a-divider type="vertical"
+                       v-if="hasPerm('qySecondlineWarehouseView') && hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'], 'or')"/>
+            <a @click="onDetail(record)" v-if="hasPerm('qySecondlineWarehouseEdit')">编辑</a>
+            <a-divider type="vertical"
+                       v-if="hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'], 'and')"/>
+            <a-popconfirm title="确定要删除吗?" @confirm="deleteQySecondlineWarehouse(record)">
+              <a-button type="link" danger size="small" v-if="hasPerm('qySecondlineWarehouseDelete')">删除</a-button>
+            </a-popconfirm>
+            <a-button type="link" primary size="small" @click="goodsDetailRef.onOpen(record)">出库单</a-button>
+          </a-space>
+        </template>
+      </template>
+    </s-table>
+  </a-card>
+  <Detail v-else ref="detailRef" @onClose="indexShow = true" @successful="onSearch()"/>
+  <EnterpriseDetail ref="enterpriseDetailRef"/>
+  <GoodsDetail ref="goodsDetailRef"/>
 </template>
 
 <script setup name="qysecondlinewarehouse">
-	import tool from '@/utils/tool'
-	import { cloneDeep } from 'lodash-es'
-	import Detail from './detail.vue'
-	import qySecondlineWarehouseApi from '@/api/yqyc/qySecondlineWarehouseApi'
-	import downloadUtil from "@/utils/downloadUtil";
-    const { proxy } = getCurrentInstance()
-	const searchFormState = ref({})
-	const searchFormStateReal = ref({}) // 点击搜索后备份的查询参数
-	const searchFormRef = ref()
-	const tableRef = ref()
-	const filterParam = ref({})
-	const detailRef = ref()
-	const indexShow = ref(true)
-	const toolConfig = { refresh: true, height: true, columnSetting: true, striped: false }
-	// 查询区域显示更多控制
-	const advanced = ref(false)
-	const toggleAdvanced = () => {
-		advanced.value = !advanced.value
-	}
-	const columns = [
-		{
-			title: '企业编码',
-			dataIndex: 'companyCode',
-		},
-		{
-			title: '企业名称',
-			dataIndex: 'companyName',
-		},
-		{
-			title: '账册类型',
-			dataIndex: 'accountType',
-		},
-		{
-			title: '账册编号',
-			dataIndex: 'accountCode',
-		},
-		{
-			title: '商品编号',
-			dataIndex: 'commodityCode',
-		},
-		{
-			title: '商品名称',
-			dataIndex: 'commodityName',
-		},
-		{
-			title: '业务类型',
-			dataIndex: 'businessType',
-		},
-		{
-			title: '记账数量',
-			dataIndex: 'accountNumber',
-            sorter: true,
-		},
-		{
-			title: '法定计量单位',
-			dataIndex: 'measurementUnit',
-		},
-		{
-			title: '二线出岛申请单号',
-			dataIndex: 'secondlineOutislandNumber',
-		},
-		{
-			title: '出库单号',
-			dataIndex: 'warehouseNumber',
-		},
-		{
-			title: '出库日期',
-			dataIndex: 'warehouseTime',
-            sorter: true,
-		},
-		{
-			title: '记账日期',
-			dataIndex: 'accountTime',
-            sorter: true,
-		},
-	]
-	// 操作栏通过权限判断是否显示
-	if (hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'])) {
-		columns.push({
-			title: '操作',
-			dataIndex: 'action',
-			align: 'center',
-			width: 200,
-			fixed: 'right',
-		})
-	}
-	const selectedRowKeys = ref([])
-	// 列表选择配置
-	const options = {
-		// columns数字类型字段加入 needTotal: true 可以勾选自动算账
-		alert: {
-			show: true,
-			clear: () => {
-				selectedRowKeys.value = ref([])
-			}
-		},
-		rowSelection: {
-			onChange: (selectedRowKey, selectedRows) => {
-				selectedRowKeys.value = selectedRowKey
-			}
-		}
-	}
-	const loadData = (parameter) => {
-        tableRef.value.clearSelected()
-        // warehouseTime范围查询条件重载
-        if (searchFormStateReal.value.warehouseTime) {
-            searchFormStateReal.value.startWarehouseTime = searchFormStateReal.value.warehouseTime[0]
-            searchFormStateReal.value.endWarehouseTime = searchFormStateReal.value.warehouseTime[1]
-            delete searchFormStateReal.value.warehouseTime
-        }
-        // accountTime范围查询条件重载
-        if (searchFormStateReal.value.accountTime) {
-            searchFormStateReal.value.startAccountTime = searchFormStateReal.value.accountTime[0]
-            searchFormStateReal.value.endAccountTime = searchFormStateReal.value.accountTime[1]
-            delete searchFormStateReal.value.accountTime
-        }
-        return qySecondlineWarehouseApi.qySecondlineWarehousePage(Object.assign(parameter, searchFormStateReal.value)).then((data) => {
-            return data
-        })
-    }
-    // 搜索同时备份参数
-    const onSearch = (parameter) => {
-        searchFormStateReal.value = cloneDeep(searchFormState.value)
-        tableRef.value.refresh(parameter)
-    }
-    // 重置
-    const reset = () => {
-        searchFormRef.value.resetFields()
-        onSearch(true)
+import tool from '@/utils/tool'
+import {cloneDeep} from 'lodash-es'
+import Detail from './detail.vue'
+import qySecondlineWarehouseApi from '@/api/yqyc/qySecondlineWarehouseApi'
+import downloadUtil from "@/utils/downloadUtil";
+import EnterpriseDetail from "@/views/yqyc/component/enterprise/detail.vue";
+import GoodsDetail from "./goods.vue";
+
+const {proxy} = getCurrentInstance()
+const searchFormState = ref({})
+const searchFormStateReal = ref({}) // 点击搜索后备份的查询参数
+const searchFormRef = ref()
+const tableRef = ref()
+const filterParam = ref({})
+const detailRef = ref()
+const enterpriseDetailRef = ref()
+const goodsDetailRef = ref()
+const indexShow = ref(true)
+const toolConfig = {refresh: true, height: true, columnSetting: true, striped: false}
+// 查询区域显示更多控制
+const advanced = ref(false)
+const toggleAdvanced = () => {
+  advanced.value = !advanced.value
+}
+const columns = [
+  {
+    title: '企业编码',
+    dataIndex: 'companyCode',
+  },
+  {
+    title: '企业名称',
+    dataIndex: 'companyName',
+  },
+  {
+    title: '账册类型',
+    dataIndex: 'accountType',
+  },
+  {
+    title: '账册编号',
+    dataIndex: 'accountCode',
+  },
+  {
+    title: '商品编号',
+    dataIndex: 'commodityCode',
+  },
+  {
+    title: '商品名称',
+    dataIndex: 'commodityName',
+  },
+  {
+    title: '业务类型',
+    dataIndex: 'businessType',
+  },
+  {
+    title: '记账数量',
+    dataIndex: 'accountNumber',
+    sorter: true,
+  },
+  {
+    title: '法定计量单位',
+    dataIndex: 'measurementUnit',
+  },
+  {
+    title: '二线出岛申请单号',
+    dataIndex: 'secondlineOutislandNumber',
+  },
+  {
+    title: '出库单号',
+    dataIndex: 'warehouseNumber',
+  },
+  {
+    title: '出库日期',
+    dataIndex: 'warehouseTime',
+    sorter: true,
+  },
+  {
+    title: '记账日期',
+    dataIndex: 'accountTime',
+    sorter: true,
+  },
+]
+// 操作栏通过权限判断是否显示
+if (hasPerm(['qySecondlineWarehouseEdit', 'qySecondlineWarehouseDelete'])) {
+  columns.push({
+    title: '操作',
+    dataIndex: 'action',
+    align: 'center',
+    width: 200,
+    fixed: 'right',
+  })
+}
+const selectedRowKeys = ref([])
+// 列表选择配置
+const options = {
+  // columns数字类型字段加入 needTotal: true 可以勾选自动算账
+  alert: {
+    show: true,
+    clear: () => {
+      selectedRowKeys.value = ref([])
     }
-	// 删除
-	const deleteQySecondlineWarehouse = (record) => {
-		let params = [
-			{
-				id: record.id
-			}
-		]
-		qySecondlineWarehouseApi.qySecondlineWarehouseDelete(params).then(() => {
-			tableRef.value.refresh(true)
-		})
-	}
-	// 批量删除
-	const deleteBatchQySecondlineWarehouse = (params) => {
-		qySecondlineWarehouseApi.qySecondlineWarehouseDelete(params).then(() => {
-			tableRef.value.clearRefreshSelected()
-		})
-	}
-	// 批量导出
-    const onExport = () => {
-        const params = {
-            ...filterParam.value
-        }
-        if (selectedRowKeys.value.length > 0) {
-            params.ids = selectedRowKeys.value
-        } else {
-            Object.entries(searchFormStateReal.value).forEach(([key, value]) => {
-                console.log(key)
-                if (proxy.$util.isValue(value)) {
-                    params[key] = value
-                }
-            })
-        }
-        qySecondlineWarehouseApi.qySecondlineWarehouseExport(params).then((res) => {
-            downloadUtil.resultDownload(res)
-            tableRef.value.clearSelected()
-        })
+  },
+  rowSelection: {
+    onChange: (selectedRowKey, selectedRows) => {
+      selectedRowKeys.value = selectedRowKey
     }
-	// 切换至表单
-    const onDetail = (record = null, view) => {
-    	indexShow.value = false
-    	nextTick(() => {
-            detailRef.value.onOpen(record, view)
-    	})
+  }
+}
+const loadData = (parameter) => {
+  tableRef.value.clearSelected()
+  // warehouseTime范围查询条件重载
+  if (searchFormStateReal.value.warehouseTime) {
+    searchFormStateReal.value.startWarehouseTime = searchFormStateReal.value.warehouseTime[0]
+    searchFormStateReal.value.endWarehouseTime = searchFormStateReal.value.warehouseTime[1]
+    delete searchFormStateReal.value.warehouseTime
+  }
+  // accountTime范围查询条件重载
+  if (searchFormStateReal.value.accountTime) {
+    searchFormStateReal.value.startAccountTime = searchFormStateReal.value.accountTime[0]
+    searchFormStateReal.value.endAccountTime = searchFormStateReal.value.accountTime[1]
+    delete searchFormStateReal.value.accountTime
+  }
+  return qySecondlineWarehouseApi.qySecondlineWarehousePage(Object.assign(parameter, searchFormStateReal.value)).then((data) => {
+    return data
+  })
+}
+// 搜索同时备份参数
+const onSearch = (parameter) => {
+  searchFormStateReal.value = cloneDeep(searchFormState.value)
+  tableRef.value.refresh(parameter)
+}
+// 重置
+const reset = () => {
+  searchFormRef.value.resetFields()
+  onSearch(true)
+}
+// 删除
+const deleteQySecondlineWarehouse = (record) => {
+  let params = [
+    {
+      id: record.id
     }
-	const accountTypeOptions = tool.dictList('account_type')
-	const businessTypeOptions = tool.dictList('bussiness_type')
-	const measurementUnitOptions = tool.dictList('measurement unit')
+  ]
+  qySecondlineWarehouseApi.qySecondlineWarehouseDelete(params).then(() => {
+    tableRef.value.refresh(true)
+  })
+}
+// 批量删除
+const deleteBatchQySecondlineWarehouse = (params) => {
+  qySecondlineWarehouseApi.qySecondlineWarehouseDelete(params).then(() => {
+    tableRef.value.clearRefreshSelected()
+  })
+}
+// 批量导出
+const onExport = () => {
+  const params = {
+    ...filterParam.value
+  }
+  if (selectedRowKeys.value.length > 0) {
+    params.ids = selectedRowKeys.value
+  } else {
+    Object.entries(searchFormStateReal.value).forEach(([key, value]) => {
+      console.log(key)
+      if (proxy.$util.isValue(value)) {
+        params[key] = value
+      }
+    })
+  }
+  qySecondlineWarehouseApi.qySecondlineWarehouseExport(params).then((res) => {
+    downloadUtil.resultDownload(res)
+    tableRef.value.clearSelected()
+  })
+}
+// 切换至表单
+const onDetail = (record = null, view) => {
+  indexShow.value = false
+  nextTick(() => {
+    detailRef.value.onOpen(record, view)
+  })
+}
+const accountTypeOptions = tool.dictList('account_type')
+const businessTypeOptions = tool.dictList('bussiness_type')
+const measurementUnitOptions = tool.dictList('measurement unit')
 </script>
 
 <style lang="less" scoped>
 .account-number {
-	display: flex;
-	:deep(.ant-form-item:last-child) {
-		.ant-form-item-label {
-			margin: 0 6px;
-			>label:after {
-				display: none;
-			}
-		}
-	}
+  display: flex;
+
+  :deep(.ant-form-item:last-child) {
+    .ant-form-item-label {
+      margin: 0 6px;
+
+      > label:after {
+        display: none;
+      }
+    }
+  }
 }
 </style>