You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

180 lines
6.7 KiB

<template>
<div class="page-box" v-loading="Loading.appMainLoading">
<tablePagination
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="tableColumns"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
@buttonOperationClick="buttonOperationClick"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
>
</tablePagination>
<!-- 新增与编辑 -->
<newAndEdiDialog
:loading="Loading.newAndEdiLoading"
:active="active"
:pageStatus="pageStatus"
:formReveal="formReveal"
:formTitle="formTitle"
:displayDialog="editDialog"
:FormData="formReveal ? CreateFormData : editFormData"
:Form="formReveal ? CreateForm : editForm"
:Options="editOptions"
:Handle="editHandle"
:Rules="formReveal ? editRules.cerateRule : editRules.editRule"
@FormSubmit="FormSubmit"
@close="FormClose"
@goBack="goBack"
></newAndEdiDialog>
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用-->
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 -->
<importFile
:loading="Loading.importLoading"
:show="displayDialog.importDialog"
:URL="URL"
:disabledMethod = {method1:false,method2:false,method3:false}
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false}
isAllowPartImportValue="1"
@importClick="postImportMergeClick(arguments)"
@postImportDown="importDown"
></importFile>
<!--抽屉-->
<curren-Drawer
:title="tableColumns"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:dropdownData="dropdownData"
:propsData="propsData"
:tabsDesTions="tabsDesTions"
:tableLoading="tableLoading"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
></curren-Drawer>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"
export default {
name: "documentBasic",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
newAndEdiDialogMixins
],
computed: {
editDialog: {
get: function () {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
},
data () {
return {
URL: 'basedata/document-setting',
tableLoading:false,
//常用按钮数据
currenButtonData: [
this.defaultAddBtn(),//新增
this.defaultExportBtn(),//导出
this.defaultFieldSettingBtn(),//字段设置
this.defaultFreshBtn(),//刷新
this.defaultFilterBtn(),//筛选
],
//新增
CreateFormData: {
name: null,
code: null,
description: null,
transactionType: null,
numberPrefix: null,
numberFormat: null,
numberSerialLength: null,
numberSeparator: null,
remark: null,
company: localStorage.getItem('company'),
},
//编辑
editFormData: {
name: null,
code: null,
description: null,
transactionType: null,
numberPrefix: null,
numberFormat: null,
numberSerialLength: null,
numberSeparator: null,
remark: null,
company: localStorage.getItem('company'),
concurrencyStamp: null,
},
CreateForm: [
{ type: "input", label: "名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "select", label: "事务类型", prop: "transactionType", options: "TransTypeBaseForStr", colSpan: 12 },
{ type: "input", label: "单号前缀", prop: "numberPrefix", colSpan: 12 },
{ type: "input", label: "单号格式", prop: "numberFormat", colSpan: 12 },
{ type: "input", label: "单号流水长度", prop: "numberSerialLength", colSpan: 12, validType:'number' },
{ type: "input", label: "单号分隔符", prop: "numberSeparator", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
{ type: "input", label: "名称", prop: 'name', colSpan: 12 },
{ type: "input", label: "编码", prop: 'code', validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "select", label: "事务类型", prop: "transactionType", options: "TransTypeBaseForStr", colSpan: 12 },
{ type: "input", label: "单号前缀", prop: "numberPrefix", colSpan: 12 },
{ type: "input", label: "单号格式", prop: "numberFormat", colSpan: 12 },
{ type: "input", label: "单号流水长度", prop: "numberSerialLength", colSpan: 12, validType:'number' },
{ type: "input", label: "单号分隔符", prop: "numberSeparator", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editRules: {
cerateRule: {
name: [{ required: true, trigger: "blur", message: "不可为空" }],
code: [{ required: true, trigger: "blur", message: "不可为空" }],
numberSerialLength: [{ required: true, trigger: "blur", message: "不可为空" }],
},
editRule: {
name: [{ required: true, trigger: "blur", message: "不可为空" }],
code: [{ required: true, trigger: "blur", message: "不可为空" }],
numberSerialLength: [{ required: true, trigger: "blur", message: "不可为空" }],
}
},
};
},
mounted () {
this.paging();
},
};
</script>
<style lang="scss" scoped>
@import "../../../styles/basicData.scss";
</style>