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
fb89aec5
Commit
fb89aec5
authored
Feb 28, 2026
by
sunhaiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品信息页面添加是否启用批次字段
parent
aae663c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
4 deletions
+67
-4
xjrsoft-vue3/src/api/jcsj/cpxx/model/CpxxModel.ts
+4
-0
xjrsoft-vue3/src/views/jcsj/cpxx/components/config.ts
+36
-2
xjrsoft-vue3/src/views/jcsj/cpxx/components/workflowPermission.ts
+17
-0
xjrsoft-vue3/src/views/jcsj/cpxx/index.vue
+10
-2
No files found.
xjrsoft-vue3/src/api/jcsj/cpxx/model/CpxxModel.ts
View file @
fb89aec5
...
@@ -28,6 +28,8 @@ export interface MesBaseProductInfoPageModel {
...
@@ -28,6 +28,8 @@ export interface MesBaseProductInfoPageModel {
cplx
:
string
;
cplx
:
string
;
bzzl
:
string
;
bzzl
:
string
;
sfqypc
:
string
;
}
}
/**
/**
...
@@ -101,6 +103,8 @@ export interface MesBaseProductInfoModel {
...
@@ -101,6 +103,8 @@ export interface MesBaseProductInfoModel {
modifyUserId
:
string
;
modifyUserId
:
string
;
p1
:
string
;
p1
:
string
;
sfqypc
:
string
;
}
}
/**
/**
...
...
xjrsoft-vue3/src/views/jcsj/cpxx/components/config.ts
View file @
fb89aec5
import
{
FormProps
,
FormSchema
}
from
'/@/components/Form'
;
import
{
FormProps
,
FormSchema
}
from
'/@/components/Form'
;
import
{
BasicColumn
}
from
'/@/components/Table'
;
import
{
BasicColumn
}
from
'/@/components/Table'
;
import
{
uploadApi
}
from
'/@/api/sys/upload'
;
export
const
searchFormSchema
:
FormSchema
[]
=
[
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
{
...
@@ -137,6 +136,19 @@ export const columns: BasicColumn[] = [
...
@@ -137,6 +136,19 @@ export const columns: BasicColumn[] = [
styleConfig
:
undefined
,
styleConfig
:
undefined
,
listStyle
:
undefined
,
listStyle
:
undefined
,
},
},
{
resizable
:
true
,
dataIndex
:
'sfqypc'
,
title
:
'是否启用批次'
,
componentType
:
'switch'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
undefined
,
},
];
];
//表头合并配置
//表头合并配置
export
const
headerMergingData
=
[];
export
const
headerMergingData
=
[];
...
@@ -686,6 +698,29 @@ export const formProps: FormProps = {
...
@@ -686,6 +698,29 @@ export const formProps: FormProps = {
style
:
{
width
:
'100%'
},
style
:
{
width
:
'100%'
},
},
},
},
},
{
key
:
'1c96dccdc764461690cb631d5cc2662b'
,
field
:
'sfqypc'
,
label
:
'是否启用批次'
,
type
:
'switch'
,
component
:
'Switch'
,
colProps
:
{
span
:
24
},
defaultValue
:
1
,
componentProps
:
{
span
:
7
,
defaultValue
:
1
,
checkedChildren
:
''
,
unCheckedChildren
:
''
,
checkedColor
:
'#1C8DFF'
,
unCheckedColor
:
'#bbbdbf'
,
showLabel
:
true
,
disabled
:
false
,
events
:
{},
isShow
:
true
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{},
},
},
],
],
},
},
{
{
...
@@ -846,7 +881,6 @@ export const formProps: FormProps = {
...
@@ -846,7 +881,6 @@ export const formProps: FormProps = {
},
},
],
],
},
},
],
],
componentProps
:
{
tabPosition
:
'top'
,
size
:
'default'
,
type
:
'line'
,
isShow
:
true
},
componentProps
:
{
tabPosition
:
'top'
,
size
:
'default'
,
type
:
'line'
,
isShow
:
true
},
},
},
...
...
xjrsoft-vue3/src/views/jcsj/cpxx/components/workflowPermission.ts
View file @
fb89aec5
...
@@ -207,6 +207,23 @@ export const permissionList = [
...
@@ -207,6 +207,23 @@ export const permissionList = [
disabled
:
false
,
disabled
:
false
,
isSaveTable
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
tableName
:
''
,
fieldName
:
'是否启用批次'
,
fieldId
:
'sfqypc'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'switch'
,
key
:
'1c96dccdc764461690cb631d5cc2662b'
,
children
:
[],
options
:
{},
defaultValue
:
1
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'型号'
,
fieldName
:
'型号'
,
fieldId
:
'xh'
,
fieldId
:
'xh'
,
isSubTable
:
false
,
isSubTable
:
false
,
...
...
xjrsoft-vue3/src/views/jcsj/cpxx/index.vue
View file @
fb89aec5
...
@@ -28,7 +28,14 @@
...
@@ -28,7 +28,14 @@
</template>
</template>
</template>
</template>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.componentType === 'switch'"
>
<a-switch
v-model:checked=
"record[column.dataIndex]"
:unCheckedValue=
"0"
:checkedValue=
"1"
:disabled=
"true"
/>
</
template
>
<
template
v-if=
"column.dataIndex === 'action'"
>
<
template
v-if=
"column.dataIndex === 'action'"
>
...
@@ -421,4 +428,4 @@
...
@@ -421,4 +428,4 @@
</
style
>
</
style
>
\ No newline at end of file
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