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
931cdb73
"src/main/vscode:/vscode.git/clone" did not exist on "e6252e9c877abdfc8dcfa50b11f4722a9c103909"
Commit
931cdb73
authored
May 19, 2021
by
季圣华
Browse files
增加仓库和角色类型的数据权限控制
parent
f1fa71d3
Changes
34
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/modules/DisassembleModal.vue
View file @
931cdb73
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
JEditableTableMixin
}
from
'
@/mixins/JEditableTableMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
BillModalMixin
}
from
'
../mixins/BillModalMixin
'
import
{
getAction
}
from
'
@/api/manage
'
import
{
getMpListShort
}
from
"
@/utils/util
"
import
{
getMpListShort
}
from
"
@/utils/util
"
import
JDate
from
'
@/components/jeecg/JDate
'
import
JDate
from
'
@/components/jeecg/JDate
'
import
Vue
from
'
vue
'
import
Vue
from
'
vue
'
...
@@ -167,8 +168,17 @@
...
@@ -167,8 +168,17 @@
}
}
},
},
onAdded
(
event
)
{
onAdded
(
event
)
{
let
that
=
this
const
{
row
,
target
}
=
event
const
{
row
,
target
}
=
event
getAction
(
'
/depot/findDepotByCurrentUser
'
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
let
arr
=
res
.
data
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
].
isDefault
){
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
depotId
:
arr
[
i
].
id
+
''
}}])
}
}
}
})
if
(
target
.
rows
.
length
>=
2
)
{
if
(
target
.
rows
.
length
>=
2
)
{
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
mType
:
'
普通子件
'
}}])
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
mType
:
'
普通子件
'
}}])
}
else
{
}
else
{
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
931cdb73
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
931cdb73
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
931cdb73
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
931cdb73
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
@@ -207,6 +208,7 @@
...
@@ -207,6 +208,7 @@
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
let
that
=
this
this
.
addInit
(
"
CGRK
"
)
this
.
addInit
(
"
CGRK
"
)
}
else
{
}
else
{
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
931cdb73
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
931cdb73
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
931cdb73
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
</a-col>
</a-col>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
<a-col
:lg=
"6"
:md=
"12"
:sm=
"24"
>
...
@@ -177,6 +178,9 @@
...
@@ -177,6 +178,9 @@
editAfter
()
{
editAfter
()
{
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
"
LSCK
"
)
this
.
addInit
(
"
LSCK
"
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
payType
'
:
'
现付
'
})
})
}
else
{
}
else
{
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
931cdb73
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
931cdb73
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
931cdb73
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
:rowSelection=
"true"
:rowSelection=
"true"
:actionButton=
"true"
:actionButton=
"true"
@
valueChange=
"onValueChange"
@
valueChange=
"onValueChange"
@
added=
"onAdded"
@
deleted=
"onDeleted"
/>
@
deleted=
"onDeleted"
/>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-row
class=
"form-row"
:gutter=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
<a-col
:lg=
"24"
:md=
"24"
:sm=
"24"
>
...
...
jshERP-web/src/views/system/UserList.vue
View file @
931cdb73
...
@@ -135,12 +135,9 @@
...
@@ -135,12 +135,9 @@
methods
:
{
methods
:
{
getSystemConfig
()
{
getSystemConfig
()
{
getCurrentSystemConfig
().
then
((
res
)
=>
{
getCurrentSystemConfig
().
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
&&
res
.
data
){
let
systemConfig
=
res
.
data
this
.
depotFlag
=
res
.
data
.
depotFlag
this
.
depotFlag
=
systemConfig
.
depotFlag
this
.
customerFlag
=
res
.
data
.
customerFlag
this
.
customerFlag
=
systemConfig
.
customerFlag
}
else
{
this
.
$message
.
warning
(
res
.
data
);
}
}
})
})
},
},
...
...
jshERP-web/src/views/system/modules/RolePushBtnModal.vue
View file @
931cdb73
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
visible
:
false
,
visible
:
false
,
model
:
{},
model
:
{},
checked
:
false
,
checked
:
false
,
disableMixinCreated
:
true
,
confirmLoading
:
false
,
confirmLoading
:
false
,
form
:
this
.
$form
.
createForm
(
this
),
form
:
this
.
$form
.
createForm
(
this
),
/* 数据源 */
/* 数据源 */
...
...
jshERP-web/src/views/user/Login.vue
View file @
931cdb73
...
@@ -226,6 +226,7 @@
...
@@ -226,6 +226,7 @@
let
err
=
{};
let
err
=
{};
if
(
res
.
data
.
msgTip
==
'
user can login
'
){
if
(
res
.
data
.
msgTip
==
'
user can login
'
){
Vue
.
ls
.
set
(
'
winBtnStrList
'
,
res
.
data
.
userBtn
,
7
*
24
*
60
*
60
*
1000
);
Vue
.
ls
.
set
(
'
winBtnStrList
'
,
res
.
data
.
userBtn
,
7
*
24
*
60
*
60
*
1000
);
Vue
.
ls
.
set
(
'
roleType
'
,
res
.
data
.
roleType
,
7
*
24
*
60
*
60
*
1000
);
this
.
loginSuccess
()
this
.
loginSuccess
()
}
else
if
(
res
.
data
.
msgTip
==
'
user is not exist
'
){
}
else
if
(
res
.
data
.
msgTip
==
'
user is not exist
'
){
err
.
message
=
'
用户不存在
'
;
err
.
message
=
'
用户不存在
'
;
...
...
Prev
1
2
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