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
320aeeb7
Commit
320aeeb7
authored
Feb 24, 2026
by
sunhaiwei
Committed by
王宝涛
Feb 26, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售出库页面添加物料编码选择框
parent
292e5fc9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
24 deletions
+72
-24
xjrsoft-vue3/src/views/ckgl/xsck/components/XsckModal.vue
+34
-6
xjrsoft-vue3/src/views/ckgl/xsck/components/config.ts
+38
-18
No files found.
xjrsoft-vue3/src/views/ckgl/xsck/components/XsckModal.vue
View file @
320aeeb7
...
...
@@ -7,7 +7,21 @@
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
@
cancel=
"handleClose"
>
<ModalForm
ref=
"formRef"
v-model:value=
"state.formModel"
:fromPage=
"FromPageType.MENU"
/>
<template
#
footer
v-if=
" !state.isView"
>
<template
v-for=
"(item, index) in sortBy(formButtons, 'index')"
:key=
"item.key"
>
<template
v-if=
"item.isShow"
>
<CustomButtonModal
v-if=
"item.type == CustomButtonModalType.Modal"
:info=
"item"
/>
<a-button
:type=
"item.style"
v-else
:style=
"
{ marginLeft: index > 0 ? '10px' : 0 }"
@click="customClick(item)"
>
{{
t
(
item
.
name
)
}}
</a-button>
</
template
>
</template>
</template>
</BasicModal>
</template>
...
...
@@ -15,13 +29,16 @@
import
{
ref
,
computed
,
reactive
,
provide
,
Ref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
CustomButtonModalType
}
from
'/@/enums/userEnum'
;
import
CustomButtonModal
from
'/@/components/Form/src/components/CustomButtonModal.vue'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
formProps
}
from
'./config'
;
import
{
formProps
,
formButtons
}
from
'./config'
;
import
ModalForm
from
'./Form.vue'
;
import
{
FromPageType
}
from
'/@/enums/workflowEnum'
;
import
{
sortBy
}
from
'lodash-es'
;
import
{
executeCurFormEvent
}
from
'/@/utils/event/data'
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
...
...
@@ -52,8 +69,8 @@
setModalProps
({
destroyOnClose
:
true
,
maskClosable
:
false
,
showCancelBtn
:
!
state
.
isView
,
showOkBtn
:
!
state
.
isView
,
showCancelBtn
:
false
,
showOkBtn
:
false
,
canFullscreen
:
true
,
width
:
1980
,
footer
:
state
.
isView
?
null
:
undefined
,
defaultFullscreen
:
true
,
...
...
@@ -128,7 +145,18 @@
}
}
function
customClick
(
item
)
{
if
(
item
.
key
==
'confirm'
)
{
handleSubmit
();
}
else
if
(
item
.
key
==
'cancel'
&&
props
.
formType
!==
'normal'
)
{
handleClose
();
closeModal
();
}
else
if
(
item
.
key
==
'reset'
)
{
formRef
.
value
.
resetFields
();
}
else
{
executeCurFormEvent
(
item
.
event
,
state
.
formModel
,
true
);
}
}
function
handleClose
()
{
formRef
.
value
.
resetFields
();
}
...
...
xjrsoft-vue3/src/views/ckgl/xsck/components/config.ts
View file @
320aeeb7
...
...
@@ -1044,7 +1044,7 @@ export const formProps: FormProps = {
labelField
:
'label'
,
valueField
:
'value'
,
pageSize
:
10
,
assoTitle
:
''
,
assoTitle
:
'
物料信息
'
,
apiConfig
:
{
path
:
'/jcxx/wlInfoList'
,
method
:
'GET'
,
...
...
@@ -1053,22 +1053,7 @@ export const formProps: FormProps = {
{
key
:
'1'
,
title
:
'Query Params'
,
tableInfo
:
[
{
name
:
'keyword'
,
value
:
null
,
description
:
null
,
required
:
false
,
dataType
:
null
,
type
:
null
,
defaultValue
:
null
,
validateType
:
null
,
error
:
null
,
expression
:
null
,
children
:
null
,
bindType
:
''
,
},
],
tableInfo
:
[{
name
:
'keyword'
,
required
:
false
,
bindType
:
''
}],
},
{
key
:
'2'
,
title
:
'Header'
,
tableInfo
:
[]
},
{
key
:
'3'
,
title
:
'Body'
},
...
...
@@ -1125,7 +1110,6 @@ export const formProps: FormProps = {
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入物料名称'
,
maxlength
:
null
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
...
...
@@ -1408,3 +1392,39 @@ export const formProps: FormProps = {
showSubmitButton
:
false
,
hiddenComponent
:
[],
};
export
const
formButtons
=
[
{
key
:
'confirm'
,
code
:
'confirm'
,
name
:
'确定'
,
style
:
'primary'
,
event
:
[],
isShow
:
true
,
index
:
2
,
type
:
1
,
modal
:
null
,
},
{
key
:
'cancel'
,
code
:
'cancel'
,
name
:
'取消'
,
style
:
'default'
,
event
:
[],
isShow
:
true
,
index
:
1
,
type
:
1
,
modal
:
null
,
},
{
key
:
'reset'
,
code
:
'reset'
,
name
:
'重置'
,
style
:
'default'
,
event
:
[],
isShow
:
true
,
index
:
0
,
type
:
1
,
modal
:
null
,
},
];
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