Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
ed7cc8a0
Commit
ed7cc8a0
authored
May 16, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓库
parent
585f5ac4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
24 deletions
+19
-24
index.vue
src/views/ecw/node/index.vue
+10
-10
index.vue
src/views/ecw/warehouse/index.vue
+9
-14
No files found.
src/views/ecw/node/index.vue
View file @
ed7cc8a0
...
...
@@ -168,9 +168,9 @@
</el-select>
</el-form-item>
<el-form-item
label=
"服务内容"
prop=
"
type
"
>
<el-checkbox-group
v-model=
"form.
type
"
>
<el-checkbox
v-for=
"dict in transportDatas"
:label=
"dict.value"
:key=
"dict.value"
name=
"freight"
>
{{dict.label}}
</el-checkbox>
<el-form-item
label=
"服务内容"
prop=
"
checkList
"
>
<el-checkbox-group
v-model=
"form.
checkList
"
>
<el-checkbox
v-for=
"dict in transportDatas"
:label=
"dict.value"
:key=
"dict.value"
:value=
"dict.value"
name=
"freight"
>
{{dict.label}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
...
...
@@ -264,7 +264,7 @@ export default {
},
// 表单参数
form
:
{
type
:[],
checkList
:[],
},
// 表单校验
rules
:
{
...
...
@@ -281,7 +281,7 @@ export default {
contentEn
:
[{
required
:
true
,
message
:
"
英文详情不能为空
"
,
trigger
:
"
blur
"
}],
worktime
:
[{
required
:
true
,
message
:
"
上班时间不能为空
"
,
trigger
:
"
blur
"
}],
tradeType
:
[{
required
:
true
,
message
:
'
请选择网点属性
'
,
trigger
:
'
change
'
}],
type
:
[
checkList
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
请至少选择一个服务内容
'
,
trigger
:
'
change
'
}
],
},
...
...
@@ -461,7 +461,7 @@ export default {
worktime
:
undefined
,
adminId
:
undefined
,
aorder
:
undefined
,
type
:
[]
checkList
:
[]
};
this
.
resetForm
(
"
form
"
);
...
...
@@ -494,8 +494,8 @@ export default {
this
.
changeCountry
(
response
.
data
.
guojia
);
this
.
changeProvince
(
response
.
data
.
sheng
);
//TODO
this
.
form
.
type
=
response
.
data
.
freight
.
split
(
'
,
'
);
let
ckList
=
response
.
data
.
freight
.
split
(
'
,
'
);
this
.
$set
(
this
.
form
,
'
checkList
'
,
ckList
);
this
.
open
=
true
;
this
.
title
=
"
修改服务网点
"
;
...
...
@@ -510,8 +510,8 @@ export default {
//逗号拼接运输方式
var
freight
=
''
for
(
let
i
=
0
;
i
<
this
.
form
.
type
.
length
;
i
++
)
{
freight
+=
this
.
form
.
type
[
i
]
+
'
,
'
for
(
let
i
=
0
;
i
<
this
.
form
.
checkList
.
length
;
i
++
)
{
freight
+=
this
.
form
.
checkList
[
i
]
+
'
,
'
}
freight
=
freight
.
substring
(
0
,
freight
.
length
-
1
);
this
.
form
.
freight
=
freight
;
...
...
src/views/ecw/warehouse/index.vue
View file @
ed7cc8a0
...
...
@@ -152,7 +152,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"运输方式"
prop=
"
freigh
t"
>
<el-form-item
label=
"运输方式"
prop=
"
checkLis
t"
>
<el-checkbox-group
v-model=
"form.checkList"
>
<el-checkbox
v-for=
"dict in transportDatas"
:label=
"dict.value"
:key=
"dict.value"
name=
"freight"
>
{{dict.label}}
</el-checkbox>
</el-checkbox-group>
...
...
@@ -200,16 +200,6 @@ export default {
}
};
var
freightCheck
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
'
@@@@@
'
);
console
.
log
(
this
.
form
.
checkList
);
if
(
!
this
.
form
.
checkList
)
{
callback
(
new
Error
(
'
请至少选择一个服务内容
'
));
}
else
{
callback
();
}
};
return
{
// 遮罩层
loading
:
true
,
...
...
@@ -279,7 +269,9 @@ export default {
addressZh
:
[{
required
:
true
,
message
:
"
仓库地址不能为空
"
,
trigger
:
"
blur
"
}],
addressEn
:
[{
required
:
true
,
message
:
"
英文地址不能为空
"
,
trigger
:
"
blur
"
}],
tradeType
:
[{
required
:
true
,
message
:
'
请选择网点属性
'
,
trigger
:
'
change
'
}],
freight
:
[{
validator
:
freightCheck
,
required
:
true
,
trigger
:
'
blur
'
}],
checkList
:
[
{
type
:
'
array
'
,
required
:
true
,
message
:
'
请至少选择一个服务内容
'
,
trigger
:
'
change
'
}
],
},
nodeId
:
this
.
$route
.
query
.
nodeId
,
...
...
@@ -485,12 +477,15 @@ export default {
getWarehouse
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
let
ckList
=
response
.
data
.
freight
.
split
(
'
,
'
);
this
.
$set
(
this
.
form
,
'
checkList
'
,
ckList
);
this
.
changeContinents
(
response
.
data
.
zhou
);
this
.
changeCountry
(
response
.
data
.
guojia
);
this
.
changeProvince
(
response
.
data
.
sheng
);
this
.
form
.
checkList
=
response
.
data
.
freight
.
split
(
'
,
'
);
this
.
isUpdate
=
true
;
this
.
open
=
true
;
...
...
Write
Preview
Markdown
is supported
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