Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a783d4a
authored
Sep 23, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
fe0b8343
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
src/views/List/inquireDetail.vue
src/views/List/inquireDetail.vue
View file @
6a783d4a
...
...
@@ -599,39 +599,41 @@ export default {
}
},
checkBind
(
ids
)
{
this
.
$http
(
'get'
,
"/api/quote/checkpinlist"
,
{
inquiry_items_id
:
this
.
$route
.
query
.
id
,
pin_type
:
(
this
.
active
==
1
?
1
:
2
),
pin_obj_ids
:
ids
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
&&
res
.
data
.
bind_ids
&&
res
.
data
.
bind_ids
.
length
>
0
)
{
var
arr_
=
this
.
active
==
1
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
historyList
))
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableData
))
for
(
var
i
=
0
;
i
<
arr_
.
length
;
i
++
)
{
var
str_
=
this
.
active
==
1
?
String
(
arr_
[
i
].
id
)
:
String
(
arr_
[
i
].
goods_id
);
if
(
res
.
data
.
bind_ids
.
indexOf
(
str_
)
!=
-
1
)
{
if
(
this
.
active
==
1
)
{
arr_
[
i
].
disabled
=
true
this
.
historyList
=
arr_
}
else
{
arr_
[
i
].
disabled
=
true
this
.
tableData
=
arr_
}
}
else
{
if
(
this
.
active
==
1
)
{
arr_
[
i
].
disabled
=
false
this
.
historyList
=
arr_
if
(
ids
){
this
.
$http
(
'get'
,
"/api/quote/checkpinlist"
,
{
inquiry_items_id
:
this
.
$route
.
query
.
id
,
pin_type
:
(
this
.
active
==
1
?
1
:
2
),
pin_obj_ids
:
ids
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
&&
res
.
data
.
bind_ids
&&
res
.
data
.
bind_ids
.
length
>
0
)
{
var
arr_
=
this
.
active
==
1
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
historyList
))
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableData
))
for
(
var
i
=
0
;
i
<
arr_
.
length
;
i
++
)
{
var
str_
=
this
.
active
==
1
?
String
(
arr_
[
i
].
id
)
:
String
(
arr_
[
i
].
goods_id
);
if
(
res
.
data
.
bind_ids
.
indexOf
(
str_
)
!=
-
1
)
{
if
(
this
.
active
==
1
)
{
arr_
[
i
].
disabled
=
true
this
.
historyList
=
arr_
}
else
{
arr_
[
i
].
disabled
=
true
this
.
tableData
=
arr_
}
}
else
{
arr_
[
i
].
disabled
=
false
this
.
tableData
=
arr_
if
(
this
.
active
==
1
)
{
arr_
[
i
].
disabled
=
false
this
.
historyList
=
arr_
}
else
{
arr_
[
i
].
disabled
=
false
this
.
tableData
=
arr_
}
}
}
}
}
}
})
})
}
},
getHistory
()
{
console
.
log
(
'历史报价'
)
...
...
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