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
52df6313
Commit
52df6313
authored
Sep 28, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特需申请
parent
d8e067ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
specialNeeds.vue
src/views/ecw/order/components/specialNeeds.vue
+23
-3
No files found.
src/views/ecw/order/components/specialNeeds.vue
View file @
52df6313
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<h1>
{{
orderNo
}}
特需
</h1>
<h1>
{{
orderNo
}}
特需
</h1>
<el-form
label-width=
"180px"
label-position=
"left"
>
<el-form
label-width=
"180px"
label-position=
"left"
>
<el-form-item
label=
"特殊要求"
>
<el-form-item
label=
"特殊要求"
>
<el-checkbox-group
v-model=
"advanceType"
>
<el-checkbox-group
v-model=
"advanceType"
>
<el-checkbox
v-for=
"(item) in getDictDatas(DICT_TYPE.ORDER_SPECIAL_NEEDS)"
:label=
"item.value"
>
{{
item
.
label
}}
</el-checkbox>
<el-checkbox
@
click=
"change(item)"
v-for=
"(item) in getDictDatas(DICT_TYPE.ORDER_SPECIAL_NEEDS)"
:label=
"item.value"
>
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"特殊要求备注"
><el-input
type=
"textarea"
style=
"width: 300px;"
v-model=
"todoDetail"
></el-input></el-form-item>
<el-form-item
label=
"特殊要求备注"
><el-input
type=
"textarea"
style=
"width: 300px;"
v-model=
"todoDetail"
></el-input></el-form-item>
...
@@ -55,6 +55,7 @@ export default {
...
@@ -55,6 +55,7 @@ export default {
advanceType
:[],
advanceType
:[],
specialNeedsList
:[],
specialNeedsList
:[],
todoDetail
:
''
,
todoDetail
:
''
,
echoList
:[],
}
}
},
},
methods
:{
methods
:{
...
@@ -63,7 +64,25 @@ export default {
...
@@ -63,7 +64,25 @@ export default {
i
.
todoDetail
=
this
.
todoDetail
i
.
todoDetail
=
this
.
todoDetail
})
})
let
p
=
this
.
specialNeedsList
.
filter
(
i
=>
this
.
advanceType
.
indexOf
(
i
.
advanceType
)
>
-
1
)
let
p
=
this
.
specialNeedsList
.
filter
(
i
=>
this
.
advanceType
.
indexOf
(
i
.
advanceType
)
>
-
1
)
specialNeedCreate
(
p
).
then
(
r
=>
{
console
.
log
(
p
,
'
p
'
)
let
p1
=
[]
//获取新增的和修改的
p
.
forEach
(
item
=>
{
if
(
this
.
echoList
.
find
(
i
=>
item
.
id
===
i
.
id
)){
p1
.
push
(
item
)
}
else
{
item
.
oper
=
'
add
'
p1
.
push
(
item
)
}
})
//获取删除的
this
.
echoList
.
forEach
(
item
=>
{
if
(
!
(
p
.
find
(
i
=>
i
.
id
===
item
.
id
))){
item
.
oper
=
'
del
'
p1
.
push
(
item
)
}
})
specialNeedCreate
(
p1
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
r
.
code
===
0
){
this
.
$emit
(
'
update:show
'
,
false
)
this
.
$emit
(
'
update:show
'
,
false
)
this
.
$emit
(
'
determine
'
)
this
.
$emit
(
'
determine
'
)
...
@@ -86,6 +105,7 @@ export default {
...
@@ -86,6 +105,7 @@ export default {
})
})
//特需回显
//特需回显
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
{
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
{
this
.
echoList
=
r
.
data
;
r
.
data
.
forEach
(
i
=>
{
r
.
data
.
forEach
(
i
=>
{
this
.
advanceType
.
push
(
i
.
advanceType
)
this
.
advanceType
.
push
(
i
.
advanceType
)
let
index
=
this
.
specialNeedsList
.
findIndex
(
item
=>
i
.
advanceType
==
item
.
advanceType
)
let
index
=
this
.
specialNeedsList
.
findIndex
(
item
=>
i
.
advanceType
==
item
.
advanceType
)
...
...
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