Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
c2953567
Commit
c2953567
authored
Jun 10, 2021
by
季圣华
Browse files
解决菜单切换页面闪现的bug
parent
283b4ef9
Changes
54
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/DepotList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"4"
:sm=
"6"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"仓库名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入仓库名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"仓库名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入仓库名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"描述"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入描述查询"
v-model=
"queryParam.remark"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"描述"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入描述查询"
v-model=
"queryParam.remark"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
@change="handleTableChange">
<a>
设为默认
</a>
<span
slot=
"action"
slot-scope=
"text, record"
>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a>
设为默认
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
</a-popconfirm>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<template
slot=
"customRenderFlag"
slot-scope=
"isDefault"
>
</span>
<a-tag
v-if=
"isDefault"
color=
"green"
>
是
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"!isDefault"
color=
"orange"
>
否
</a-tag>
<template
slot=
"customRenderFlag"
slot-scope=
"isDefault"
>
</
template
>
<a-tag
v-if=
"isDefault"
color=
"green"
>
是
</a-tag>
</a-table>
<a-tag
v-if=
"!isDefault"
color=
"orange"
>
否
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<depot-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></depot-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<depot-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></depot-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
DepotModal
from
'
./modules/DepotModal
'
import
DepotModal
from
'
./modules/DepotModal
'
...
...
jshERP-web/src/views/system/FunctionList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</span>
<a-tag
v-if=
"enabled==1"
color=
"green"
>
启用
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"enabled==0"
color=
"orange"
>
禁用
</a-tag>
<template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</
template
>
<a-tag
v-if=
"enabled==1"
color=
"green"
>
启用
</a-tag>
</a-table>
<a-tag
v-if=
"enabled==0"
color=
"orange"
>
禁用
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<function-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></function-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<function-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></function-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
FunctionModal
from
'
./modules/FunctionModal
'
import
FunctionModal
from
'
./modules/FunctionModal
'
...
...
jshERP-web/src/views/system/InOutItemList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"4"
:sm=
"6"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"类型"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-select
v-model=
"queryParam.type"
placeholder=
"请选择类型"
>
<a-col
:md=
"4"
:sm=
"6"
>
<a-select-option
value=
""
>
请选择
</a-select-option>
<a-form-item
label=
"类型"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-select-option
value=
"收入"
>
收入
</a-select-option>
<a-select
v-model=
"queryParam.type"
placeholder=
"请选择类型"
>
<a-select-option
value=
"支出"
>
支出
</a-select-option>
<a-select-option
value=
""
>
请选择
</a-select-option>
</a-select>
<a-select-option
value=
"收入"
>
收入
</a-select-option>
</a-form-item>
<a-select-option
value=
"支出"
>
支出
</a-select-option>
</a-col>
</a-select>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"备注"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入备注查询"
v-model=
"queryParam.remark"
></a-input>
<a-col
:md=
"4"
:sm=
"6"
>
</a-form-item>
<a-form-item
label=
"备注"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入备注查询"
v-model=
"queryParam.remark"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<template
slot=
"customRenderFlag"
slot-scope=
"isDefault"
>
</span>
<a-tag
v-if=
"isDefault"
color=
"green"
>
是
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"!isDefault"
color=
"orange"
>
否
</a-tag>
<template
slot=
"customRenderFlag"
slot-scope=
"isDefault"
>
</
template
>
<a-tag
v-if=
"isDefault"
color=
"green"
>
是
</a-tag>
</a-table>
<a-tag
v-if=
"!isDefault"
color=
"orange"
>
否
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<inOutItem-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></inOutItem-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<inOutItem-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></inOutItem-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
InOutItemModal
from
'
./modules/InOutItemModal
'
import
InOutItemModal
from
'
./modules/InOutItemModal
'
...
...
jshERP-web/src/views/system/LogList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<!-- 查询区域 -->
<a-row
:gutter=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"操作模块"
>
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入操作模块"
v-model=
"queryParam.operation"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"操作模块"
>
</a-col>
<a-input
placeholder=
"请输入操作模块"
v-model=
"queryParam.operation"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"操作详情"
>
</a-col>
<a-input
placeholder=
"请输入操作详情"
v-model=
"queryParam.content"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"操作详情"
>
</a-col>
<a-input
placeholder=
"请输入操作详情"
v-model=
"queryParam.content"
></a-input>
<a-col
:md=
"6"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"创建时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
</a-col>
<a-range-picker
<a-col
:md=
"6"
:sm=
"10"
>
style=
"width: 210px"
<a-form-item
label=
"创建时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
v-model=
"queryParam.createTimeRange"
<a-range-picker
format=
"YYYY-MM-DD"
style=
"width: 210px"
:placeholder=
"['开始时间', '结束时间']"
v-model=
"queryParam.createTimeRange"
@
change=
"onDateChange"
format=
"YYYY-MM-DD"
@
ok=
"onDateOk"
:placeholder=
"['开始时间', '结束时间']"
/>
@
change=
"onDateChange"
</a-form-item>
@
ok=
"onDateOk"
</a-col>
/>
<template
v-if=
"toggleSearchStatus"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"8"
>
</a-col>
<a-form-item
label=
"操作IP"
>
<template
v-if=
"toggleSearchStatus"
>
<a-input
placeholder=
"请输入操作IP"
v-model=
"queryParam.clientIp"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"操作IP"
>
</a-col>
<a-input
placeholder=
"请输入操作IP"
v-model=
"queryParam.clientIp"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"操作状态"
>
</a-col>
<a-select
v-model=
"queryParam.status"
placeholder=
"请选择操作状态"
>
<a-col
:md=
"6"
:sm=
"8"
>
<a-select-option
value=
""
>
请选择
</a-select-option>
<a-form-item
label=
"操作状态"
>
<a-select-option
value=
"0"
>
成功
</a-select-option>
<a-select
v-model=
"queryParam.status"
placeholder=
"请选择操作状态"
>
<a-select-option
value=
"1"
>
失败
</a-select-option>
<a-select-option
value=
""
>
请选择
</a-select-option>
</a-select>
<a-select-option
value=
"0"
>
成功
</a-select-option>
</a-form-item>
<a-select-option
value=
"1"
>
失败
</a-select-option>
</a-col>
</a-select>
</
template
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</
template
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
</a>
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
</a>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- table区域-begin -->
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
@
change=
"handleTableChange"
>
<!-- 字符串超长截取省略号显示-->
<span
slot=
"content"
slot-scope=
"text, record"
>
<j-ellipsis
:value=
"text"
:length=
"40"
/>
</span>
</span>
</a-col>
</a-table>
</a-row>
<!-- table区域-end -->
</a-form>
</a-card>
</div>
</a-col>
<!-- table区域-begin -->
</a-row>
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
@
change=
"handleTableChange"
>
<!-- 字符串超长截取省略号显示-->
<span
slot=
"content"
slot-scope=
"text, record"
>
<j-ellipsis
:value=
"text"
:length=
"40"
/>
</span>
</a-table>
<!-- table区域-end -->
</a-card>
</template>
</template>
<
script
>
<
script
>
...
...
jshERP-web/src/views/system/MemberList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"5"
:sm=
"10"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.supplier"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.supplier"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"手机号码"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入手机号码查询"
v-model=
"queryParam.telephone"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"手机号码"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入手机号码查询"
v-model=
"queryParam.telephone"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"联系电话"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入联系电话查询"
v-model=
"queryParam.phonenum"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"联系电话"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入联系电话查询"
v-model=
"queryParam.phonenum"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-popover
title=
"导入注意点"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<template
slot=
"content"
>
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<p>
预收款为数值且要大于0
</p>
<a-popover
title=
"导入注意点"
>
</
template
>
<template
slot=
"content"
>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
<p>
预收款为数值且要大于0
</p>
</a-popover>
</
template
>
</a-upload>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('会员信息')"
>
导出
</a-button>
</a-popover>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-upload>
<a-menu
slot=
"overlay"
>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('会员信息')"
>
导出
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@
change=
"handleTableChange"
>
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@
change=
"handleTableChange"
>
<a-divider
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<
template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</span>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
<
template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</
template
>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
</a-table>
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<member-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></member-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<member-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></member-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
MemberModal
from
'
./modules/MemberModal
'
import
MemberModal
from
'
./modules/MemberModal
'
...
...
jshERP-web/src/views/system/PersonList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"姓名"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入姓名查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"姓名"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入姓名查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"类型"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-select
v-model=
"queryParam.type"
placeholder=
"请选择类型"
>
<a-col
:md=
"6"
:sm=
"8"
>
<a-select-option
value=
""
>
请选择
</a-select-option>
<a-form-item
label=
"类型"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-select-option
value=
"业务员"
>
业务员
</a-select-option>
<a-select
v-model=
"queryParam.type"
placeholder=
"请选择类型"
>
<a-select-option
value=
"仓管员"
>
仓管员
</a-select-option>
<a-select-option
value=
""
>
请选择
</a-select-option>
<a-select-option
value=
"财务员"
>
财务员
</a-select-option>
<a-select-option
value=
"业务员"
>
业务员
</a-select-option>
</a-select>
<a-select-option
value=
"仓管员"
>
仓管员
</a-select-option>
</a-form-item>
<a-select-option
value=
"财务员"
>
财务员
</a-select-option>
</a-col>
</a-select>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
</a-table>
</a-popconfirm>
</div>
</span>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<person-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></person-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<person-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></person-modal>
</a-card>
</a-col>
</a-row>
</
template
>
</
template
>
<
script
>
<
script
>
import
PersonModal
from
'
./modules/PersonModal
'
import
PersonModal
from
'
./modules/PersonModal
'
...
...
jshERP-web/src/views/system/PluginList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.name"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
type=
"primary"
style=
"margin-left: 8px"
@
click=
"writeCode"
>
填写激活码
</a-button>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</a-col>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</span>
<a-button
type=
"primary"
style=
"margin-left: 8px"
@
click=
"writeCode"
>
填写激活码
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importUrl"
@
change=
"handleImportJar"
>
<!-- 操作按钮区域 -->
<a-popover
title=
"导入注意点"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<template
slot=
"content"
>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importUrl"
@
change=
"handleImportJar"
>
<p>
请选择需要导入的插件jar包
</p>
<a-popover
title=
"导入注意点"
>
</
template
>
<template
slot=
"content"
>
<a-button
type=
"primary"
icon=
"import"
>
上传插件包
</a-button>
<p>
请选择需要导入的插件jar包
</p>
</a-popover>
</
template
>
</a-upload>
<a-button
type=
"primary"
icon=
"import"
>
上传插件包
</a-button>
</div>
</a-popover>
<!-- table区域-begin -->
</a-upload>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
@
change=
"handleTableChange"
>
:pagination=
"ipagination"
<span
slot=
"action"
slot-scope=
"text, record"
>
:loading=
"loading"
<a
@
click=
"uploadTemplate(record)"
>
上传页面
</a>
@
change=
"handleTableChange"
>
<a-divider
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
title=
"确定要开启该插件吗?"
@
confirm=
"() => startPlugin(record.pluginDescriptor.pluginId)"
>
<a
@
click=
"uploadTemplate(record)"
>
上传页面
</a>
<a>
开启
</a>
<a-divider
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
title=
"确定要开启该插件吗?"
@
confirm=
"() => startPlugin(record.pluginDescriptor.pluginId)"
>
<a-divider
type=
"vertical"
/>
<a>
开启
</a>
<a-popconfirm
title=
"确定要停止该插件吗?"
@
confirm=
"() => stopPlugin(record.pluginDescriptor.pluginId)"
>
</a-popconfirm>
<a>
停止
</a>
<a-divider
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
title=
"确定要停止该插件吗?"
@
confirm=
"() => stopPlugin(record.pluginDescriptor.pluginId)"
>
<a-divider
type=
"vertical"
/>
<a>
停止
</a>
<a-popconfirm
title=
"确定要卸载该插件吗?"
@
confirm=
"() => uninstallPlugin(record.pluginDescriptor.pluginId)"
>
</a-popconfirm>
<a>
卸载
</a>
<a-divider
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
title=
"确定要卸载该插件吗?"
@
confirm=
"() => uninstallPlugin(record.pluginDescriptor.pluginId)"
>
</span>
<a>
卸载
</a>
<span
slot=
"linkInfo"
slot-scope=
"text, record"
>
</a-popconfirm>
<a
@
click=
"linkTo(record)"
target=
'_blank'
>
链接跳转
</a>
</span>
</span>
<span
slot=
"linkInfo"
slot-scope=
"text, record"
>
<
template
slot=
"customRenderFlag"
slot-scope=
"pluginState"
>
<a
@
click=
"linkTo(record)"
target=
'_blank'
>
链接跳转
</a>
<a-tag
v-if=
"pluginState=='STARTED'"
color=
"green"
>
启用
</a-tag>
</span>
<a-tag
v-if=
"pluginState=='STOPPED'"
color=
"orange"
>
停止
</a-tag>
<
template
slot=
"customRenderFlag"
slot-scope=
"pluginState"
>
</
template
>
<a-tag
v-if=
"pluginState=='STARTED'"
color=
"green"
>
启用
</a-tag>
</a-table>
<a-tag
v-if=
"pluginState=='STOPPED'"
color=
"orange"
>
停止
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<plugin-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></plugin-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<plugin-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></plugin-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
PluginModal
from
'
./modules/PluginModal
'
import
PluginModal
from
'
./modules/PluginModal
'
...
...
jshERP-web/src/views/system/RoleList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"角色名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入角色名称查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"角色名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入角色名称查询"
v-model=
"queryParam.name"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleSetFunction(record)"
>
分配功能
</a>
@change="handleTableChange">
<a-divider
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleSetPushBtn(record.id)"
>
分配按钮
</a>
<a
@
click=
"handleSetFunction(record)"
>
分配功能
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleSetPushBtn(record.id)"
>
分配按钮
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
</a-table>
</a-popconfirm>
</div>
</span>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<role-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></role-modal>
<!-- table区域-end -->
<role-function-modal
ref=
"roleFunctionModal"
@
ok=
"roleFunctionModalFormOk"
></role-function-modal>
<!-- 表单区域 -->
<role-push-btn-modal
ref=
"rolePushBtnModal"
@
ok=
"modalFormOk"
></role-push-btn-modal>
<role-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></role-modal>
<a-modal
v-model=
"roleFunctionModalVisible"
title=
"操作提示"
@
ok=
"handleTipOk"
>
<role-function-modal
ref=
"roleFunctionModal"
@
ok=
"roleFunctionModalFormOk"
></role-function-modal>
<p>
分配功能已经操作成功!现在继续
<b>
分配按钮
</b>
吗?
</p>
<role-push-btn-modal
ref=
"rolePushBtnModal"
@
ok=
"modalFormOk"
></role-push-btn-modal>
</a-modal>
<a-modal
v-model=
"roleFunctionModalVisible"
title=
"操作提示"
@
ok=
"handleTipOk"
>
</a-card>
<p>
分配功能已经操作成功!现在继续
<b>
分配按钮
</b>
吗?
</p>
</a-modal>
</a-card>
</a-col>
</a-row>
</
template
>
</
template
>
<
script
>
<
script
>
import
RoleModal
from
'
./modules/RoleModal
'
import
RoleModal
from
'
./modules/RoleModal
'
...
...
jshERP-web/src/views/system/SerialNumberList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"序列号"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入序列号查询"
v-model=
"queryParam.serialNumber"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"序列号"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入序列号查询"
v-model=
"queryParam.serialNumber"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"商品名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入商品名称查询"
v-model=
"queryParam.materialName"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"商品名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入商品名称查询"
v-model=
"queryParam.materialName"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleBatchAdd"
type=
"primary"
icon=
"plus"
>
批量新增
</a-button>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleBatchAdd"
type=
"primary"
icon=
"plus"
>
批量新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<span
slot=
"numberCustomRender"
slot-scope=
"text, record"
>
</a-popconfirm>
<a
@
click=
"myHandleDetail(record)"
>
{{
record
.
depotHeadNumber
}}
</a>
</span>
</span>
<span
slot=
"numberCustomRender"
slot-scope=
"text, record"
>
<!-- 状态渲染模板 -->
<a
@
click=
"myHandleDetail(record)"
>
{{
record
.
depotHeadNumber
}}
</a>
<template
slot=
"customRenderFlag"
slot-scope=
"isSell"
>
</span>
<a-tag
v-if=
"isSell==1"
color=
"green"
>
是
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"isSell==0"
color=
"orange"
>
否
</a-tag>
<template
slot=
"customRenderFlag"
slot-scope=
"isSell"
>
</
template
>
<a-tag
v-if=
"isSell==1"
color=
"green"
>
是
</a-tag>
<
template
slot=
"customRenderTime"
slot-scope=
"timeStr"
>
<a-tag
v-if=
"isSell==0"
color=
"orange"
>
否
</a-tag>
{{
simpleDateFormat
(
timeStr
,
'
yyyy-MM-dd hh:mm:ss
'
)
}}
</
template
>
</
template
>
<
template
slot=
"customRenderTime"
slot-scope=
"timeStr"
>
</a-table>
{{
simpleDateFormat
(
timeStr
,
'
yyyy-MM-dd hh:mm:ss
'
)
}}
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<serial-number-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></serial-number-modal>
<!-- table区域-end -->
<serial-number-batch-modal
ref=
"serialNumberBatchModel"
@
ok=
"modalFormOk"
></serial-number-batch-modal>
<!-- 表单区域 -->
<bill-detail
ref=
"modalDetail"
></bill-detail>
<serial-number-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></serial-number-modal>
</a-card>
<serial-number-batch-modal
ref=
"serialNumberBatchModel"
@
ok=
"modalFormOk"
></serial-number-batch-modal>
<bill-detail
ref=
"modalDetail"
></bill-detail>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
SerialNumberModal
from
'
./modules/SerialNumberModal
'
import
SerialNumberModal
from
'
./modules/SerialNumberModal
'
...
...
jshERP-web/src/views/system/SystemConfigList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"公司名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入公司名称查询"
v-model=
"queryParam.companyName"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"公司名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入公司名称查询"
v-model=
"queryParam.companyName"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<template
slot=
"customRenderFlag"
slot-scope=
"flag"
>
</span>
<a-tag
v-if=
"flag==1"
color=
"green"
>
启用
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"flag==0"
color=
"orange"
>
关闭
</a-tag>
<template
slot=
"customRenderFlag"
slot-scope=
"flag"
>
</
template
>
<a-tag
v-if=
"flag==1"
color=
"green"
>
启用
</a-tag>
</a-table>
<a-tag
v-if=
"flag==0"
color=
"orange"
>
关闭
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<systemConfig-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></systemConfig-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<systemConfig-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></systemConfig-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
SystemConfigModal
from
'
./modules/SystemConfigModal
'
import
SystemConfigModal
from
'
./modules/SystemConfigModal
'
...
...
jshERP-web/src/views/system/TenantList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<!-- 查询区域 -->
<a-row
:gutter=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"登录名称"
>
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"输入登录名称模糊查询"
v-model=
"queryParam.loginName"
></a-input>
<a-col
:md=
"6"
:sm=
"12"
>
</a-form-item>
<a-form-item
label=
"登录名称"
>
</a-col>
<a-input
placeholder=
"输入登录名称模糊查询"
v-model=
"queryParam.loginName"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-col
:md=
"6"
:sm=
"8"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"border-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
</div>
<!-- table区域-begin -->
<div>
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
</span>
</span>
</a-col>
</a-table>
</a-row>
</div>
</a-form>
<!-- table区域-end -->
</div>
<tenant-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></tenant-modal>
<!-- 操作按钮区域 -->
</a-card>
<div
class=
"table-operator"
style=
"border-top: 5px"
>
</a-col>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
</a-row>
</div>
<!-- table区域-begin -->
<div>
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
</span>
</a-table>
</div>
<!-- table区域-end -->
<tenant-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></tenant-modal>
</a-card>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
jshERP-web/src/views/system/UnitList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"6"
:sm=
"8"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"计量单位"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入计量单位查询"
v-model=
"queryParam.name"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<a-form-item
label=
"计量单位"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入计量单位查询"
v-model=
"queryParam.name"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-menu
slot=
"overlay"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-menu>
<a-menu
slot=
"overlay"
>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@change="handleTableChange">
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@change="handleTableChange">
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
</a-table>
</a-popconfirm>
</div>
</span>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<unit-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></unit-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<unit-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></unit-modal>
</a-card>
</a-col>
</a-row>
</
template
>
</
template
>
<
script
>
<
script
>
import
UnitModal
from
'
./modules/UnitModal
'
import
UnitModal
from
'
./modules/UnitModal
'
...
...
jshERP-web/src/views/system/UserList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<!-- 查询区域 -->
<a-row
:gutter=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"登录名称"
>
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"输入登录名称模糊查询"
v-model=
"queryParam.loginName"
></a-input>
<a-col
:md=
"6"
:sm=
"12"
>
</a-form-item>
<a-form-item
label=
"登录名称"
>
</a-col>
<a-input
placeholder=
"输入登录名称模糊查询"
v-model=
"queryParam.loginName"
></a-input>
<a-col
:md=
"6"
:sm=
"12"
>
</a-form-item>
<a-form-item
label=
"用户姓名"
>
</a-col>
<a-input
placeholder=
"输入用户姓名模糊查询"
v-model=
"queryParam.userName"
></a-input>
<a-col
:md=
"6"
:sm=
"12"
>
</a-form-item>
<a-form-item
label=
"用户姓名"
>
</a-col>
<a-input
placeholder=
"输入用户姓名模糊查询"
v-model=
"queryParam.userName"
></a-input>
<a-col
:md=
"6"
:sm=
"8"
>
</a-form-item>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-col
:md=
"6"
:sm=
"8"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"border-top: 5px"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
</a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
v-if=
"btnEnableList.indexOf(1)>-1 && depotFlag === '1' "
@
click=
"btnSetDepot(record)"
>
分配仓库
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1 && depotFlag === '1'"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1 && customerFlag === '1'"
@
click=
"btnSetCustomer(record)"
>
分配客户
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1 && customerFlag === '1'"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"确定重置密码为123456吗?"
@
confirm=
"() => handleReset(record.id)"
>
<a>
重置密码
</a>
</a-popconfirm>
</span>
</span>
</a-col>
</a-table>
</a-row>
</div>
</a-form>
<!-- table区域-end -->
</div>
<user-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></user-modal>
<!-- 操作按钮区域 -->
<user-depot-modal
ref=
"userDepotModal"
@
ok=
"modalFormOk"
></user-depot-modal>
<div
class=
"table-operator"
style=
"border-top: 5px"
>
<user-customer-modal
ref=
"userCustomerModal"
@
ok=
"modalFormOk"
></user-customer-modal>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
</a-card>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-col>
<a-menu
slot=
"overlay"
>
</a-row>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
</a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<a-table
ref=
"table"
bordered
size=
"middle"
rowKey=
"id"
:columns=
"columns"
:dataSource=
"dataSource"
:pagination=
"ipagination"
:loading=
"loading"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
v-if=
"btnEnableList.indexOf(1)>-1 && depotFlag === '1' "
@
click=
"btnSetDepot(record)"
>
分配仓库
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1 && depotFlag === '1'"
type=
"vertical"
/>
<a
v-if=
"btnEnableList.indexOf(1)>-1 && customerFlag === '1'"
@
click=
"btnSetCustomer(record)"
>
分配客户
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1 && customerFlag === '1'"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"确定重置密码为123456吗?"
@
confirm=
"() => handleReset(record.id)"
>
<a>
重置密码
</a>
</a-popconfirm>
</span>
</a-table>
</div>
<!-- table区域-end -->
<user-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></user-modal>
<user-depot-modal
ref=
"userDepotModal"
@
ok=
"modalFormOk"
></user-depot-modal>
<user-customer-modal
ref=
"userCustomerModal"
@
ok=
"modalFormOk"
></user-customer-modal>
</a-card>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
jshERP-web/src/views/system/VendorList.vue
View file @
c2953567
<
template
>
<
template
>
<a-card
:bordered=
"false"
class=
"card-area"
>
<a-row
:gutter=
"24"
>
<!-- 查询区域 -->
<a-col
:md=
"24"
>
<div
class=
"table-page-search-wrapper"
>
<a-card
:bordered=
"false"
>
<!-- 搜索区域 -->
<!-- 查询区域 -->
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<div
class=
"table-page-search-wrapper"
>
<a-row
:gutter=
"24"
>
<!-- 搜索区域 -->
<a-col
:md=
"5"
:sm=
"10"
>
<a-form
layout=
"inline"
@
keyup.enter.native=
"searchQuery"
>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<a-row
:gutter=
"24"
>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.supplier"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"名称"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入名称查询"
v-model=
"queryParam.supplier"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"手机号码"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入手机号码查询"
v-model=
"queryParam.telephone"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"手机号码"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入手机号码查询"
v-model=
"queryParam.telephone"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"联系电话"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入联系电话查询"
v-model=
"queryParam.phonenum"
></a-input>
<a-col
:md=
"5"
:sm=
"10"
>
</a-form-item>
<a-form-item
label=
"联系电话"
:labelCol=
"
{span: 5}" :wrapperCol="{span: 18, offset: 1}">
</a-col>
<a-input
placeholder=
"请输入联系电话查询"
v-model=
"queryParam.phonenum"
></a-input>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
</a-form-item>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
<a-col
:md=
"6"
:sm=
"24"
>
</a-col>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
</span>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset"
>
重置
</a-button>
</a-row>
</a-col>
</a-form>
</span>
</div>
</a-row>
<!-- 操作按钮区域 -->
</a-form>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
</div>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"primary"
icon=
"plus"
@
click=
"handleAdd"
>
新增
</a-button>
<!-- 操作按钮区域 -->
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-popover
title=
"导入注意点"
>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"primary"
icon=
"plus"
@
click=
"handleAdd"
>
新增
</a-button>
<template
slot=
"content"
>
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<p>
期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
<a-popover
title=
"导入注意点"
>
</
template
>
<template
slot=
"content"
>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
<p>
期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
</a-popover>
</
template
>
</a-upload>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('供应商信息')"
>
导出
</a-button>
</a-popover>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
</a-upload>
<a-menu
slot=
"overlay"
>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('供应商信息')"
>
导出
</a-button>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-button
style=
"margin-left: 8px"
>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
批量操作
<a-icon
type=
"down"
/>
</a-menu>
</a-button>
<a-button
style=
"margin-left: 8px"
>
</a-dropdown>
批量操作
<a-icon
type=
"down"
/>
</div>
</a-button>
<!-- table区域-begin -->
</a-dropdown>
<div>
</div>
<a-table
<!-- table区域-begin -->
ref=
"table"
<div>
size=
"middle"
<a-table
bordered
ref=
"table"
rowKey=
"id"
size=
"middle"
:columns=
"columns"
bordered
:dataSource=
"dataSource"
rowKey=
"id"
:pagination=
"ipagination"
:columns=
"columns"
:loading=
"loading"
:dataSource=
"dataSource"
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:pagination=
"ipagination"
@
change=
"handleTableChange"
>
:loading=
"loading"
<span
slot=
"action"
slot-scope=
"text, record"
>
:rowSelection=
"{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
@
change=
"handleTableChange"
>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a>
删除
</a>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
</a-popconfirm>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
</span>
<a>
删除
</a>
<!-- 状态渲染模板 -->
</a-popconfirm>
<
template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</span>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
<!-- 状态渲染模板 -->
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
<
template
slot=
"customRenderFlag"
slot-scope=
"enabled"
>
</
template
>
<a-tag
v-if=
"enabled"
color=
"green"
>
启用
</a-tag>
</a-table>
<a-tag
v-if=
"!enabled"
color=
"orange"
>
禁用
</a-tag>
</div>
</
template
>
<!-- table区域-end -->
</a-table>
<!-- 表单区域 -->
</div>
<vendor-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></vendor-modal>
<!-- table区域-end -->
</a-card>
<!-- 表单区域 -->
<vendor-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></vendor-modal>
</a-card>
</a-col>
</a-row>
</template>
</template>
<
script
>
<
script
>
import
VendorModal
from
'
./modules/VendorModal
'
import
VendorModal
from
'
./modules/VendorModal
'
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment