Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
92b10374
Commit
92b10374
authored
Nov 12, 2024
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加面料
parent
a4d37aa0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
3 deletions
+51
-3
src/api/typesetting.ts
+2
-0
src/types/api/typesetting.ts
+1
-0
src/views/typesetting/submitReviewModal.vue
+48
-3
No files found.
src/api/typesetting.ts
View file @
92b10374
...
...
@@ -50,6 +50,7 @@ export function submitReviewApi(
typesettingId
:
number
,
version
:
number
,
examineImages
:
VersionImageList
[],
fabric
:
string
,
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'supply/supplyTypesettingExamine/submitExamine'
,
...
...
@@ -57,6 +58,7 @@ export function submitReviewApi(
typesettingId
,
version
,
examineImages
,
fabric
,
},
)
}
...
...
src/types/api/typesetting.ts
View file @
92b10374
...
...
@@ -59,6 +59,7 @@ export interface VersionList {
opinion
?:
string
examinePeopleId
?:
string
examinePeopleName
?:
string
fabric
?:
string
state
?:
number
version
?:
number
createTime
?:
string
...
...
src/views/typesetting/submitReviewModal.vue
View file @
92b10374
...
...
@@ -77,6 +77,28 @@
>
<div
class=
"image-wrap-url"
>
<img
:src=
"versionImageUrl"
alt=
""
class=
"img-sign"
/>
<div
class=
"flex items-center"
v-if=
"
row?.state == 301 ||
(row?.state == 401 && lastVersion == version)
"
>
<span
style=
"width: 50px; font-size: 16px"
>
面料:
</span>
<el-input
v-model=
"fabric"
v-if=
"
row?.state == 301 ||
(row?.state == 401 && lastVersion == version)
"
></el-input>
</div>
<div
class=
"flex items-center"
v-else
>
<span
style=
"width: 50px; font-size: 16px"
>
面料:
</span>
<span
style=
"font-size: 15px; font-weight: 600"
>
{{
fabric
}}
</span>
</div>
</div>
<div
style=
"
...
...
@@ -410,10 +432,26 @@ watch(visible, (val) => {
}
})
const
opinion
=
ref
(
''
)
const
fabric
=
ref
(
''
)
const
loading
=
ref
(
false
)
const
submitReview
=
async
()
=>
{
if
(
versionImageList
.
value
.
length
===
0
)
{
showError
(
'请上传图片'
)
// if (versionImageList.value.length === 0) {
// showError('请上传图片')
// return
// }
let
BtnIndex
=
Number
(
version
.
value
-
1
)
// 检查 imagePath 是否为空或 null
if
(
versionImageList
.
value
.
length
==
0
||
(
versionImageList
.
value
[
BtnIndex
]
&&
!
versionImageList
.
value
[
BtnIndex
].
imagePath
)
)
{
ElMessage
.
warning
(
'请上传样版图片'
)
return
}
// 检查 fabric 是否为空或 null
if
(
!
fabric
.
value
)
{
ElMessage
.
warning
(
'请填写对应的面料'
)
return
}
loading
.
value
=
true
...
...
@@ -422,6 +460,7 @@ const submitReview = async () => {
props
.
row
?.
id
,
version
.
value
,
versionImageList
.
value
,
fabric
.
value
,
)
ElMessage
.
success
(
res
.
message
)
emit
(
'update:modelValue'
,
false
)
...
...
@@ -441,10 +480,12 @@ const prev = () => {
const
item
=
versionList
.
value
.
find
((
item
)
=>
item
.
version
==
version
.
value
)
if
(
item
)
{
versionImageList
.
value
=
item
.
examineImages
fabric
.
value
=
item
?.
fabric
||
''
versionImageUrl
.
value
=
item
.
examineImages
[
0
]?.
imagePath
}
else
{
versionImageList
.
value
=
[]
versionImageUrl
.
value
=
''
fabric
.
value
=
''
}
}
}
...
...
@@ -454,10 +495,12 @@ const next = () => {
const
item
=
versionList
.
value
.
find
((
item
)
=>
item
.
version
==
version
.
value
)
if
(
item
)
{
versionImageList
.
value
=
item
.
examineImages
fabric
.
value
=
item
?.
fabric
||
''
versionImageUrl
.
value
=
item
.
examineImages
[
0
]?.
imagePath
}
else
{
versionImageList
.
value
=
[]
versionImageUrl
.
value
=
''
fabric
.
value
=
''
}
}
const
versionImageUrl
=
ref
(
''
)
...
...
@@ -516,9 +559,11 @@ const getExamineInfo = async (data: TypesettingListData) => {
versionImageList
.
value
=
res
.
data
[
res
.
data
.
length
-
1
]?.
examineImages
versionImageUrl
.
value
=
res
.
data
[
res
.
data
.
length
-
1
]?.
examineImages
[
0
]?.
imagePath
fabric
.
value
=
res
.
data
[
res
.
data
.
length
-
1
].
fabric
||
''
}
else
{
versionImageList
.
value
=
[]
versionImageUrl
.
value
=
''
fabric
.
value
=
''
}
}
catch
(
e
)
{
console
.
error
(
e
)
...
...
@@ -680,7 +725,7 @@ defineExpose({ getExamineInfo, reset, getPriceDetail })
text-align
:
center
;
img
{
width
:
100%
;
height
:
10
0%
;
height
:
9
0%
;
object-fit
:
contain
;
}
}
...
...
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