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
a3a1d64c
"vscode:/vscode.git/clone" did not exist on "9d1550196de5db0c995e140eff10bb1fb8943250"
Commit
a3a1d64c
authored
May 18, 2021
by
季圣华
Browse files
权限控制
parent
ba4819f3
Changes
52
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/financial/MoneyInList.vue
View file @
a3a1d64c
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -58,10 +58,10 @@
...
@@ -58,10 +58,10 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"myHandleDetail(record, '收款')"
>
查看
</a>
<a
@
click=
"myHandleDetail(record, '收款')"
>
查看
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
...
jshERP-web/src/views/financial/MoneyOutList.vue
View file @
a3a1d64c
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -58,10 +58,10 @@
...
@@ -58,10 +58,10 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"myHandleDetail(record, '付款')"
>
查看
</a>
<a
@
click=
"myHandleDetail(record, '付款')"
>
查看
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
...
jshERP-web/src/views/material/MaterialCategoryList.vue
View file @
a3a1d64c
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<!-- 按钮操作区域 -->
<!-- 按钮操作区域 -->
<a-row
style=
"margin-left: 14px"
>
<a-row
style=
"margin-left: 14px"
>
<a-button
@
click=
"handleAdd()"
type=
"primary"
>
添加类别
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd()"
type=
"primary"
>
添加类别
</a-button>
<a-button
title=
"删除多条数据"
@
click=
"batchDel"
type=
"default"
>
批量删除
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"删除多条数据"
@
click=
"batchDel"
type=
"default"
>
批量删除
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
>
刷新
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
>
刷新
</a-button>
</a-row>
</a-row>
<div
style=
"background: #fff;padding-left:16px;height: 100%; margin-top: 5px"
>
<div
style=
"background: #fff;padding-left:16px;height: 100%; margin-top: 5px"
>
...
...
jshERP-web/src/views/material/MaterialList.vue
View file @
a3a1d64c
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-popover
title=
"表格模板"
>
<a-popover
title=
"表格模板"
>
<
template
slot=
"content"
>
<
template
slot=
"content"
>
...
@@ -61,9 +61,9 @@
...
@@ -61,9 +61,9 @@
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('商品信息')"
>
导出
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('商品信息')"
>
导出
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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-item
key=
"2"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"3"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -86,8 +86,8 @@
...
@@ -86,8 +86,8 @@
@
change=
"handleTableChange"
>
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
...
jshERP-web/src/views/system/AccountList.vue
View file @
a3a1d64c
...
@@ -31,10 +31,10 @@
...
@@ -31,10 +31,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -55,13 +55,13 @@
...
@@ -55,13 +55,13 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
<a>
设为默认
</a>
<a>
设为默认
</a>
</a-popconfirm>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -145,6 +145,14 @@
...
@@ -145,6 +145,14 @@
that
.
$message
.
warning
(
res
.
data
.
message
);
that
.
$message
.
warning
(
res
.
data
.
message
);
}
}
});
});
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/CustomerList.vue
View file @
a3a1d64c
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-popover
title=
"导入注意点"
>
<a-popover
title=
"导入注意点"
>
<template
slot=
"content"
>
<template
slot=
"content"
>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('客户信息')"
>
导出
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('客户信息')"
>
导出
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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-item
key=
"2"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"3"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
@
change=
"handleTableChange"
>
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -157,6 +157,14 @@
...
@@ -157,6 +157,14 @@
type
:
'
客户
'
,
type
:
'
客户
'
,
}
}
this
.
loadData
(
1
);
this
.
loadData
(
1
);
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/DepotList.vue
View file @
a3a1d64c
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -50,13 +50,13 @@
...
@@ -50,13 +50,13 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a-popconfirm
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定设为默认吗?"
@
confirm=
"() => handleSetDefault(record.id)"
>
<a>
设为默认
</a>
<a>
设为默认
</a>
</a-popconfirm>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -142,6 +142,14 @@
...
@@ -142,6 +142,14 @@
that
.
$message
.
warning
(
res
.
data
.
message
);
that
.
$message
.
warning
(
res
.
data
.
message
);
}
}
});
});
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/FunctionList.vue
View file @
a3a1d64c
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -118,7 +118,14 @@
...
@@ -118,7 +118,14 @@
},
},
methods
:
{
methods
:
{
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
</
script
>
</
script
>
...
...
jshERP-web/src/views/system/InOutItemList.vue
View file @
a3a1d64c
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -125,7 +125,14 @@
...
@@ -125,7 +125,14 @@
},
},
methods
:
{
methods
:
{
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
</
script
>
</
script
>
...
...
jshERP-web/src/views/system/MemberList.vue
View file @
a3a1d64c
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-popover
title=
"导入注意点"
>
<a-popover
title=
"导入注意点"
>
<template
slot=
"content"
>
<template
slot=
"content"
>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('会员信息')"
>
导出
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('会员信息')"
>
导出
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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-item
key=
"2"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"3"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -157,6 +157,14 @@
...
@@ -157,6 +157,14 @@
type
:
'
会员
'
,
type
:
'
会员
'
,
}
}
this
.
loadData
(
1
);
this
.
loadData
(
1
);
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/OrganizationList.vue
View file @
a3a1d64c
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<!-- 按钮操作区域 -->
<!-- 按钮操作区域 -->
<a-row
style=
"margin-left: 14px"
>
<a-row
style=
"margin-left: 14px"
>
<a-button
@
click=
"handleAdd()"
type=
"primary"
>
添加机构
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd()"
type=
"primary"
>
添加机构
</a-button>
<a-button
title=
"删除多条数据"
@
click=
"batchDel"
type=
"default"
>
批量删除
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"删除多条数据"
@
click=
"batchDel"
type=
"default"
>
批量删除
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
>
刷新
</a-button>
<a-button
@
click=
"refresh"
type=
"default"
icon=
"reload"
>
刷新
</a-button>
</a-row>
</a-row>
<div
style=
"background: #fff;padding-left:16px;height: 100%; margin-top: 5px"
>
<div
style=
"background: #fff;padding-left:16px;height: 100%; margin-top: 5px"
>
...
...
jshERP-web/src/views/system/PersonList.vue
View file @
a3a1d64c
...
@@ -31,10 +31,10 @@
...
@@ -31,10 +31,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -123,7 +123,14 @@
...
@@ -123,7 +123,14 @@
},
},
methods
:
{
methods
:
{
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
</
script
>
</
script
>
...
...
jshERP-web/src/views/system/RoleList.vue
View file @
a3a1d64c
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -45,13 +45,13 @@
...
@@ -45,13 +45,13 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleSetFunction(record)"
>
分配功能
</a>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleSetFunction(record)"
>
分配功能
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"handleSetPushBtn(record.id)"
>
分配按钮
</a>
<a
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleSetPushBtn(record.id)"
>
分配按钮
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -157,6 +157,14 @@
...
@@ -157,6 +157,14 @@
this
.
roleFunctionModalVisible
=
false
;
this
.
roleFunctionModalVisible
=
false
;
this
.
handleSetPushBtn
(
this
.
currentRoleId
)
this
.
handleSetPushBtn
(
this
.
currentRoleId
)
}
}
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/SerialNumberList.vue
View file @
a3a1d64c
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
@
click=
"handleBatchAdd"
type=
"primary"
icon=
"plus"
>
批量新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleBatchAdd"
type=
"primary"
icon=
"plus"
>
批量新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -52,8 +52,8 @@
...
@@ -52,8 +52,8 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -142,6 +142,14 @@
...
@@ -142,6 +142,14 @@
},
},
simpleDateFormat
(
millisecond
,
format
)
{
simpleDateFormat
(
millisecond
,
format
)
{
return
formatDate
(
millisecond
,
format
)
return
formatDate
(
millisecond
,
format
)
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/SystemConfigList.vue
View file @
a3a1d64c
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"myHandleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
<!-- 状态渲染模板 -->
<!-- 状态渲染模板 -->
<template
slot=
"customRenderFlag"
slot-scope=
"flag"
>
<template
slot=
"customRenderFlag"
slot-scope=
"flag"
>
...
@@ -124,6 +124,14 @@
...
@@ -124,6 +124,14 @@
}
else
{
}
else
{
this
.
handleAdd
()
this
.
handleAdd
()
}
}
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/UnitList.vue
View file @
a3a1d64c
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -107,7 +107,14 @@
...
@@ -107,7 +107,14 @@
},
},
methods
:
{
methods
:
{
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
</
script
>
</
script
>
...
...
jshERP-web/src/views/system/UserList.vue
View file @
a3a1d64c
...
@@ -25,13 +25,10 @@
...
@@ -25,13 +25,10 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"border-top: 5px"
>
<div
class=
"table-operator"
style=
"border-top: 5px"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
>
<a-menu-item
key=
"1"
v-if=
"btnEnableList.indexOf(1)>-1"
><a-icon
type=
"delete"
@
click=
"batchDel"
/>
删除
</a-menu-item>
<a-icon
type=
"delete"
@
click=
"batchDel"
/>
删除
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
批量操作
...
@@ -53,17 +50,17 @@
...
@@ -53,17 +50,17 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
@change="handleTableChange">
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
v-if=
"depotFlag === '1'"
@
click=
"btnSetDepot(record)"
>
分配仓库
</a>
<a
v-if=
"
btnEnableList.indexOf(1)>-1 &&
depotFlag === '1'
"
@
click=
"btnSetDepot(record)"
>
分配仓库
</a>
<a-divider
v-if=
"depotFlag === '1'"
type=
"vertical"
/>
<a-divider
v-if=
"
btnEnableList.indexOf(1)>-1 &&
depotFlag === '1'"
type=
"vertical"
/>
<a
v-if=
"customerFlag === '1'"
@
click=
"btnSetCustomer(record)"
>
分配客户
</a>
<a
v-if=
"
btnEnableList.indexOf(1)>-1 &&
customerFlag === '1'"
@
click=
"btnSetCustomer(record)"
>
分配客户
</a>
<a-divider
v-if=
"customerFlag === '1'"
type=
"vertical"
/>
<a-divider
v-if=
"
btnEnableList.indexOf(1)>-1 &&
customerFlag === '1'"
type=
"vertical"
/>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定重置密码为123456吗?"
@
confirm=
"() => handleReset(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定重置密码为123456吗?"
@
confirm=
"() => handleReset(record.id)"
>
<a>
重置密码
</a>
<a>
重置密码
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -156,6 +153,14 @@
...
@@ -156,6 +153,14 @@
this
.
loadData
(
1
);
this
.
loadData
(
1
);
this
.
getSystemConfig
();
this
.
getSystemConfig
();
},
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
},
handleReset
(
id
)
{
handleReset
(
id
)
{
let
that
=
this
;
let
that
=
this
;
postAction
(
that
.
url
.
resetPwd
,
{
id
:
id
}).
then
((
res
)
=>
{
postAction
(
that
.
url
.
resetPwd
,
{
id
:
id
}).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/system/VendorList.vue
View file @
a3a1d64c
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
</div>
</div>
<!-- 操作按钮区域 -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<div
class=
"table-operator"
style=
"margin-top: 5px"
>
<a-button
type=
"primary"
icon=
"plus"
@
click=
"handleAdd"
>
新增
</a-button>
<a-button
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"primary"
icon=
"plus"
@
click=
"handleAdd"
>
新增
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-upload
v-if=
"btnEnableList.indexOf(1)>-1"
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-popover
title=
"导入注意点"
>
<a-popover
title=
"导入注意点"
>
<template
slot=
"content"
>
<template
slot=
"content"
>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
<p>
预收款、期初应收、期初应付、税率均为数值且要大于0;
<br/>
另外期初应收、期初应付不能同时输入
</p>
...
@@ -43,9 +43,9 @@
...
@@ -43,9 +43,9 @@
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('供应商信息')"
>
导出
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('供应商信息')"
>
导出
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</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-item
key=
"2"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"2"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(true)"
><a-icon
type=
"check-square"
/>
启用
</a-menu-item>
<a-menu-item
key=
"3"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
<a-menu-item
key=
"3"
v-if=
"btnEnableList.indexOf(1)>-1"
@
click=
"batchSetStatus(false)"
><a-icon
type=
"close-square"
/>
禁用
</a-menu-item>
</a-menu>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/>
批量操作
<a-icon
type=
"down"
/>
...
@@ -67,8 +67,8 @@
...
@@ -67,8 +67,8 @@
@
change=
"handleTableChange"
>
@
change=
"handleTableChange"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-divider
v-if=
"btnEnableList.indexOf(1)>-1"
type=
"vertical"
/>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a-popconfirm
v-if=
"btnEnableList.indexOf(1)>-1"
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
</a-popconfirm>
</a-popconfirm>
</span>
</span>
...
@@ -157,6 +157,14 @@
...
@@ -157,6 +157,14 @@
type
:
'
供应商
'
,
type
:
'
供应商
'
,
}
}
this
.
loadData
(
1
);
this
.
loadData
(
1
);
},
handleEdit
:
function
(
record
)
{
this
.
$refs
.
modalForm
.
edit
(
record
);
this
.
$refs
.
modalForm
.
title
=
"
编辑
"
;
this
.
$refs
.
modalForm
.
disableSubmit
=
false
;
if
(
this
.
btnEnableList
.
indexOf
(
1
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isReadOnly
=
true
}
}
}
}
}
}
}
...
...
jshERP-web/src/views/system/modules/AccountModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:15%;height: 80%;overflow-y: hidden"
>
style=
"top:15%;height: 80%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"名称"
>
<a-form-item
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
label=
"名称"
>
...
@@ -40,6 +45,7 @@
...
@@ -40,6 +45,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
sm
:
{
span
:
5
},
...
...
jshERP-web/src/views/system/modules/CustomerModal.vue
View file @
a3a1d64c
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
cancelText=
"关闭"
cancelText=
"关闭"
wrapClassName=
"ant-modal-cust-warp"
wrapClassName=
"ant-modal-cust-warp"
style=
"top:5%;height: 100%;overflow-y: hidden"
>
style=
"top:5%;height: 100%;overflow-y: hidden"
>
<template
slot=
"footer"
>
<a-button
key=
"back"
v-if=
"isReadOnly"
@
click=
"handleCancel"
>
关闭
</a-button>
</
template
>
<a-spin
:spinning=
"confirmLoading"
>
<a-spin
:spinning=
"confirmLoading"
>
<a-form
:form=
"form"
>
<a-form
:form=
"form"
>
<a-col
:span=
"24/2"
>
<a-col
:span=
"24/2"
>
...
@@ -105,6 +110,7 @@
...
@@ -105,6 +110,7 @@
title
:
"
操作
"
,
title
:
"
操作
"
,
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
isReadOnly
:
false
,
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
sm
:
{
span
:
6
},
sm
:
{
span
:
6
},
...
...
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