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
f504a1a0
Commit
f504a1a0
authored
Dec 03, 2021
by
季圣华
Browse files
优化供应商和客户的校验逻辑
parent
3abb818f
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/api/api.js
View file @
f504a1a0
...
...
@@ -91,7 +91,7 @@ const checkUnit = (params)=>getAction("/unit/checkIsNameExist",params);
//供应商|客户|会员
const
addSupplier
=
(
params
)
=>
postAction
(
"
/supplier/add
"
,
params
);
const
editSupplier
=
(
params
)
=>
putAction
(
"
/supplier/update
"
,
params
);
const
checkSupplier
=
(
params
)
=>
getAction
(
"
/supplier/checkIsNameExist
"
,
params
);
const
checkSupplier
=
(
params
)
=>
getAction
(
"
/supplier/checkIsName
AndType
Exist
"
,
params
);
const
findBySelectSup
=
(
params
)
=>
postAction
(
"
/supplier/findBySelect_sup
"
,
params
);
const
findBySelectCus
=
(
params
)
=>
postAction
(
"
/supplier/findBySelect_cus
"
,
params
);
const
findBySelectRetail
=
(
params
)
=>
postAction
(
"
/supplier/findBySelect_retail
"
,
params
);
...
...
jshERP-web/src/views/system/modules/CustomerModal.vue
View file @
f504a1a0
...
...
@@ -182,6 +182,7 @@
validateSupplierName
(
rule
,
value
,
callback
){
let
params
=
{
name
:
value
,
type
:
'
客户
'
,
id
:
this
.
model
.
id
?
this
.
model
.
id
:
0
};
checkSupplier
(
params
).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/system/modules/MemberModal.vue
View file @
f504a1a0
...
...
@@ -141,6 +141,7 @@
validateSupplierName
(
rule
,
value
,
callback
){
let
params
=
{
name
:
value
,
type
:
'
会员
'
,
id
:
this
.
model
.
id
?
this
.
model
.
id
:
0
};
checkSupplier
(
params
).
then
((
res
)
=>
{
...
...
jshERP-web/src/views/system/modules/VendorModal.vue
View file @
f504a1a0
...
...
@@ -177,6 +177,7 @@
validateSupplierName
(
rule
,
value
,
callback
){
let
params
=
{
name
:
value
,
type
:
'
供应商
'
,
id
:
this
.
model
.
id
?
this
.
model
.
id
:
0
};
checkSupplier
(
params
).
then
((
res
)
=>
{
...
...
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