Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
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
金民
weiqiao-vue
Commits
da4bd2d3
Commit
da4bd2d3
authored
Mar 18, 2026
by
齐伟伦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增质检结果反馈附件
隐藏审批意见字段 产品名称联动质检方案查询
parent
dee15156
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
12 deletions
+31
-12
xjrsoft-vue3/src/views/zlgl/fgysycqkfk/components/config.ts
+1
-1
xjrsoft-vue3/src/views/zlgl/llzjd/components/Form.vue
+5
-11
xjrsoft-vue3/src/views/zlgl/scbmypwtd/components/config.ts
+25
-0
No files found.
xjrsoft-vue3/src/views/zlgl/fgysycqkfk/components/config.ts
View file @
da4bd2d3
...
...
@@ -483,7 +483,7 @@ export const formProps: FormProps = {
dashed
:
false
,
orientation
:
'left'
,
text
:
'审批意见'
,
isShow
:
tru
e
,
isShow
:
fals
e
,
style
:
{
marginTop
:
'0px'
,
marginBottom
:
'0px'
},
},
},
...
...
xjrsoft-vue3/src/views/zlgl/llzjd/components/Form.vue
View file @
da4bd2d3
...
...
@@ -65,10 +65,11 @@
deep
:
true
,
},
);
//监听质检方案变化
watch
(
()
=>
formModel
.
value
.
zjfa
,
async
(
newZjfaId
)
=>
{
console
.
log
(
formModel
.
value
);
if
(
!
newZjfaId
)
{
formModel
.
value
.
mesQualityInspectionDetailList
=
[];
return
;
...
...
@@ -76,7 +77,7 @@
await
handleZjfaChange
(
newZjfaId
);
},
);
//监听产品名称变化
watch
(
()
=>
formModel
.
value
.
cp
,
async
(
newCpflId
,
oldCpflId
)
=>
{
...
...
@@ -97,30 +98,23 @@
);
const
zjfaData
=
(
response
as
any
)?.
data
?.
data
;
console
.
log
(
zjfaData
);
// return;
if
(
zjfaData
)
{
// 回填质检方案字段
formModel
.
value
.
zjfa
=
zjfaData
[
0
].
mc
;
formModel
.
value
.
zjfa
=
zjfaData
[
0
].
id
;
// 手动触发一次质检方案变化的处理,带出质检明细
// 由于watch是异步的,直接赋值会触发上面的zjfa监听
// 但为了确保立即执行,可以手动调用
await
handleZjfaChange
(
zjfaData
[
0
].
id
);
notification
.
success
({
message
:
'已自动匹配质检方案'
});
// await handleZjfaChange(zjfaData[0].mc);
}
else
{
// 如果没有找到对应的质检方案,清空质检方案和相关明细
formModel
.
value
.
zjfa
=
''
;
formModel
.
value
.
mesQualityInspectionDetailList
=
[];
notification
.
info
({
message
:
'该产品分类未配置质检方案'
});
}
}
catch
(
error
)
{
formModel
.
value
.
zjfa
=
''
;
formModel
.
value
.
mesQualityInspectionDetailList
=
[];
console
.
error
(
'获取产品对应的质检方案失败:'
,
error
);
notification
.
error
({
message
:
'获取质检方案失败'
});
}
}
...
...
xjrsoft-vue3/src/views/zlgl/scbmypwtd/components/config.ts
View file @
da4bd2d3
...
...
@@ -596,6 +596,31 @@ export const formProps: FormProps = {
},
},
{
key
:
'99d27b8f19a04b59bdf3d5d822038206'
,
field
:
'fj'
,
label
:
'质检结果反馈'
,
type
:
'upload'
,
component
:
'Upload'
,
colProps
:
{
span
:
24
},
componentProps
:
{
api
:
uploadApi
,
span
:
''
,
defaultValue
:
''
,
accept
:
''
,
maxNumber
:
5
,
maxSize
:
5
,
showLabel
:
true
,
multiple
:
false
,
disabled
:
false
,
required
:
false
,
isShow
:
true
,
events
:
{},
listType
:
'text'
,
sourceType
:
'album,camera'
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'd1ca8e23c8394cc19550c34155538206'
,
field
:
'jsbz'
,
label
:
'技术标准'
,
...
...
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