Browse Source

库存事务修改文件名称

hella_online_20240829
TengXF 4 months ago
parent
commit
23e46af82e
  1. 24
      src/views/wms/inventoryManage/transaction/index.vue

24
src/views/wms/inventoryManage/transaction/index.vue

@ -6,9 +6,9 @@
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead <TableHead
:HeadButttondata="HeadButttondata" :HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:route-name="routeName" :route-name="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="Transaction.allSchemas" :allSchemas="Transaction.allSchemas"
@ -39,10 +39,10 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="getList" @success="getList"
:rules="TransactionRules" :rules="TransactionRules"
:formAllSchemas="Transaction.allSchemas" :formAllSchemas="Transaction.allSchemas"
:apiUpdate="TransactionApi.updateTransaction" :apiUpdate="TransactionApi.updateTransaction"
:apiCreate="TransactionApi.createTransaction" :apiCreate="TransactionApi.createTransaction"
@ -62,7 +62,7 @@ import * as TransactionApi from '@/api/wms/transaction'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue' import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Transaction, TransactionRules } from './transaction.data' import { Transaction, TransactionRules } from './transaction.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
@ -107,7 +107,7 @@ const HeadButttondata = [
// }, // },
] ]
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
@ -124,7 +124,7 @@ const buttonBaseClick = (val, item) => {
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
@ -135,7 +135,7 @@ const butttondata = [
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:transaction:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:transaction:delete'}), //
] ]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
// const res = await TransactionApi.getItempackaging(row.id) // const res = await TransactionApi.getItempackaging(row.id)
@ -181,7 +181,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await TransactionApi.exportTransaction(tableObject.params) const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, '事务类型.xlsx') download.excel(data, '库存事务.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -196,7 +196,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '事务类型导入模版.xlsx' templateTitle: '库存事务导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {

Loading…
Cancel
Save