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
3d89ece8
Commit
3d89ece8
authored
Mar 25, 2026
by
sunhaiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发拆车产出入库页面
parent
1ddcd376
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2189 additions
and
0 deletions
+2189
-0
xjrsoft-vue3/src/api/ckgl/ccccrk/index.ts
+93
-0
xjrsoft-vue3/src/api/ckgl/ccccrk/model/CcccrkModel.ts
+116
-0
xjrsoft-vue3/src/views/ckgl/ccccrk/components/CcccrkModal.vue
+139
-0
xjrsoft-vue3/src/views/ckgl/ccccrk/components/Form.vue
+226
-0
xjrsoft-vue3/src/views/ckgl/ccccrk/components/config.ts
+912
-0
xjrsoft-vue3/src/views/ckgl/ccccrk/components/workflowPermission.ts
+317
-0
xjrsoft-vue3/src/views/ckgl/ccccrk/index.vue
+386
-0
No files found.
xjrsoft-vue3/src/api/ckgl/ccccrk/index.ts
0 → 100644
View file @
3d89ece8
import
{
MesWarehouseOutputPageModel
,
MesWarehouseOutputPageParams
,
MesWarehouseOutputPageResult
}
from
'./model/CcccrkModel'
;
import
{
defHttp
}
from
'/@/utils/http/axios'
;
import
{
ErrorMessageMode
}
from
'/#/axios'
;
enum
Api
{
Page
=
'/ckgl/ccccrk/page'
,
List
=
'/ckgl/ccccrk/list'
,
Info
=
'/ckgl/ccccrk/info'
,
MesWarehouseOutput
=
'/ckgl/ccccrk'
,
}
/**
* @description: 查询MesWarehouseOutput分页列表
*/
export
async
function
getMesWarehouseOutputPage
(
params
:
MesWarehouseOutputPageParams
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
get
<
MesWarehouseOutputPageResult
>
(
{
url
:
Api
.
Page
,
params
,
},
{
errorMessageMode
:
mode
,
},
);
}
/**
* @description: 获取MesWarehouseOutput信息
*/
export
async
function
getMesWarehouseOutput
(
id
:
String
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
get
<
MesWarehouseOutputPageModel
>
(
{
url
:
Api
.
Info
,
params
:
{
id
},
},
{
errorMessageMode
:
mode
,
},
);
}
/**
* @description: 新增MesWarehouseOutput
*/
export
async
function
addMesWarehouseOutput
(
mesWarehouseOutput
:
Recordable
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
post
<
boolean
>
(
{
url
:
Api
.
MesWarehouseOutput
,
params
:
mesWarehouseOutput
,
},
{
errorMessageMode
:
mode
,
},
);
}
/**
* @description: 更新MesWarehouseOutput
*/
export
async
function
updateMesWarehouseOutput
(
mesWarehouseOutput
:
Recordable
,
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
put
<
boolean
>
(
{
url
:
Api
.
MesWarehouseOutput
,
params
:
mesWarehouseOutput
,
},
{
errorMessageMode
:
mode
,
},
);
}
/**
* @description: 删除MesWarehouseOutput(批量删除)
*/
export
async
function
deleteMesWarehouseOutput
(
ids
:
string
[],
mode
:
ErrorMessageMode
=
'modal'
)
{
return
defHttp
.
delete
<
boolean
>
(
{
url
:
Api
.
MesWarehouseOutput
,
data
:
ids
,
},
{
errorMessageMode
:
mode
,
},
);
}
xjrsoft-vue3/src/api/ckgl/ccccrk/model/CcccrkModel.ts
0 → 100644
View file @
3d89ece8
import
{
BasicPageParams
,
BasicFetchResult
}
from
'/@/api/model/baseModel'
;
/**
* @description: MesWarehouseOutput分页参数 模型
*/
export
interface
MesWarehouseOutputPageParams
extends
BasicPageParams
{
ywzz
:
string
;
lydj
:
string
;
pch
:
string
;
dbrq
:
string
;
}
/**
* @description: MesWarehouseOutput分页返回值模型
*/
export
interface
MesWarehouseOutputPageModel
{
id
:
string
;
ywzz
:
string
;
lydj
:
string
;
pch
:
string
;
ywlx
:
string
;
ck
:
string
;
dbrq
:
string
;
cgy
:
string
;
}
/**
* @description: MesWarehouseOutput表类型
*/
export
interface
MesWarehouseOutputModel
{
id
:
string
;
deleteMark
:
string
;
ywzz
:
string
;
ywlx
:
string
;
dbrq
:
string
;
lydj
:
string
;
ck
:
string
;
cgy
:
string
;
pch
:
string
;
cptp
:
string
;
createDate
:
string
;
createUserId
:
string
;
modifyDate
:
string
;
modifyUserId
:
string
;
mesWarehouseOutputInfoList
?:
MesWarehouseOutputInfoModel
;
}
/**
* @description: MesWarehouseOutputInfo表类型
*/
export
interface
MesWarehouseOutputInfoModel
{
id
:
string
;
deleteMark
:
string
;
outputid
:
string
;
cpbm
:
string
;
cp
:
string
;
gg
:
string
;
xh
:
string
;
xqsl
:
string
;
hgsl
:
string
;
bhgsl
:
string
;
jldw
:
string
;
hw
:
string
;
pch
:
string
;
bz
:
string
;
createDate
:
string
;
createUserId
:
string
;
modifyDate
:
string
;
modifyUserId
:
string
;
}
/**
* @description: MesWarehouseOutput分页返回值结构
*/
export
type
MesWarehouseOutputPageResult
=
BasicFetchResult
<
MesWarehouseOutputPageModel
>
;
xjrsoft-vue3/src/views/ckgl/ccccrk/components/CcccrkModal.vue
0 → 100644
View file @
3d89ece8
<
template
>
<BasicModal
:height=
"500"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
@
cancel=
"handleClose"
>
<ModalForm
ref=
"formRef"
v-model:value=
"state.formModel"
:fromPage=
"FromPageType.MENU"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
reactive
,
provide
,
Ref
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
formProps
}
from
'./config'
;
import
ModalForm
from
'./Form.vue'
;
import
{
FromPageType
}
from
'/@/enums/workflowEnum'
;
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
notification
}
=
useMessage
();
const
formRef
=
ref
();
const
isCopy
=
ref
<
boolean
>
(
false
)
const
state
=
reactive
({
formModel
:
{},
isUpdate
:
true
,
isView
:
false
,
rowId
:
''
,
});
provide
<
Ref
<
boolean
>>
(
'isCopy'
,
isCopy
);
const
{
t
}
=
useI18n
();
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
await
handleInner
(
data
);
});
const
getTitle
=
computed
(()
=>
(
state
.
isView
?
'查看'
:
state
.
isUpdate
?
'编辑'
:
isCopy
.
value
?
'复制数据'
:
'新增'
));
async
function
handleInner
(
data
){
state
.
isUpdate
=
!!
data
?.
isUpdate
;
state
.
isView
=
!!
data
?.
isView
;
isCopy
.
value
=
!!
data
?.
isCopy
;
setModalProps
({
destroyOnClose
:
true
,
maskClosable
:
false
,
showCancelBtn
:
!
state
.
isView
,
showOkBtn
:
!
state
.
isView
,
canFullscreen
:
true
,
width
:
900
,
footer
:
state
.
isView
?
null
:
undefined
,
defaultFullscreen
:
true
,
});
if
(
state
.
isUpdate
||
state
.
isView
||
isCopy
.
value
)
{
state
.
rowId
=
data
.
id
;
if
(
state
.
isView
)
{
await
formRef
.
value
.
setDisabledForm
();
}
await
formRef
.
value
.
setFormDataFromId
(
state
.
rowId
);
}
else
{
formRef
.
value
.
resetFields
();
}
}
async
function
saveModal
()
{
let
saveSuccess
=
false
;
try
{
const
values
=
await
formRef
.
value
?.
validate
();
//添加隐藏组件
if
(
formProps
.
hiddenComponent
?.
length
)
{
formProps
.
hiddenComponent
.
forEach
((
component
)
=>
{
values
[
component
.
bindField
]
=
component
.
value
;
});
}
if
(
values
!==
false
)
{
try
{
if
(
!
state
.
isUpdate
||
isCopy
.
value
)
{
saveSuccess
=
await
formRef
.
value
.
add
(
values
);
}
else
{
saveSuccess
=
await
formRef
.
value
.
update
({
values
,
rowId
:
state
.
rowId
});
}
return
saveSuccess
;
}
catch
(
error
)
{}
}
}
catch
(
error
)
{
return
saveSuccess
;
}
}
async
function
handleSubmit
()
{
try
{
const
saveSuccess
=
await
saveModal
();
setModalProps
({
confirmLoading
:
true
});
if
(
saveSuccess
)
{
if
(
!
state
.
isUpdate
||
isCopy
.
value
)
{
//false 新增
notification
.
success
({
message
:
'Tip'
,
description
:
isCopy
.
value
?
'复制成功'
:
t
(
'新增成功!'
),
});
//提示消息
}
else
{
notification
.
success
({
message
:
'Tip'
,
description
:
t
(
'修改成功!'
),
});
//提示消息
}
closeModal
();
formRef
.
value
.
resetFields
();
emit
(
'success'
);
}
}
finally
{
setModalProps
({
confirmLoading
:
false
});
}
}
function
handleClose
()
{
formRef
.
value
.
resetFields
();
}
</
script
>
\ No newline at end of file
xjrsoft-vue3/src/views/ckgl/ccccrk/components/Form.vue
0 → 100644
View file @
3d89ece8
<
template
>
<div
class=
"pt-4"
>
<SimpleForm
ref=
"systemFormRef"
:formProps=
"data.formDataProps"
:formModel=
"state.formModel"
:isWorkFlow=
"props.fromPage!=FromPageType.MENU"
:isCamelCase=
"true"
@
model-change=
"handleChange"
/>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
,
onMounted
,
nextTick
,
watch
}
from
'vue'
;
import
{
formProps
,
formEventConfigs
}
from
'./config'
;
import
SimpleForm
from
'/@/components/SimpleForm/src/SimpleForm.vue'
;
import
{
addMesWarehouseOutput
,
getMesWarehouseOutput
,
updateMesWarehouseOutput
}
from
'/@/api/ckgl/ccccrk'
;
import
{
cloneDeep
,
isString
}
from
'lodash-es'
;
import
{
FormDataProps
}
from
'/@/components/Designer/src/types'
;
import
{
usePermission
}
from
'/@/hooks/web/usePermission'
;
import
CustomButtonModal
from
'/@/components/Form/src/components/CustomButtonModal.vue'
;
import
{
FromPageType
}
from
'/@/enums/workflowEnum'
;
import
{
createFormEvent
,
getFormDataEvent
,
loadFormEvent
,
submitFormEvent
,}
from
'/@/hooks/web/useFormEvent'
;
import
{
changeWorkFlowForm
,
changeSchemaDisabled
}
from
'/@/hooks/web/useWorkFlowForm'
;
import
{
WorkFlowFormParams
}
from
'/@/model/workflow/bpmnConfig'
;
import
{
useRouter
}
from
'vue-router'
;
const
{
filterFormSchemaAuth
}
=
usePermission
();
const
RowKey
=
'id'
;
const
emits
=
defineEmits
([
'changeUploadComponentIds'
,
'loadingCompleted'
,
'update:value'
]);
const
props
=
defineProps
({
fromPage
:
{
type
:
Number
,
default
:
FromPageType
.
MENU
,
},
});
const
systemFormRef
=
ref
();
const
data
:
{
formDataProps
:
FormDataProps
}
=
reactive
({
formDataProps
:
cloneDeep
(
formProps
),
});
const
state
=
reactive
({
formModel
:
{},
formInfo
:{
formId
:
''
,
formName
:
''
}
});
const
{
currentRoute
}
=
useRouter
();
watch
(
()
=>
state
.
formModel
,
(
val
)
=>
{
emits
(
'update:value'
,
val
);
},
{
deep
:
true
,
},
);
onMounted
(
async
()
=>
{
try
{
if
(
props
.
fromPage
==
FromPageType
.
MENU
)
{
setMenuPermission
();
if
(
currentRoute
.
value
.
meta
){
state
.
formInfo
.
formName
=
currentRoute
.
value
.
meta
.
title
&&
isString
(
currentRoute
.
value
.
meta
.
title
)?
currentRoute
.
value
.
meta
.
title
:
''
;
state
.
formInfo
.
formId
=
currentRoute
.
value
.
meta
.
formId
&&
isString
(
currentRoute
.
value
.
meta
.
formId
)?
currentRoute
.
value
.
meta
.
formId
:
''
;
}
await
createFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:初始化表单
await
nextTick
();
await
loadFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:加载表单
}
else
if
(
props
.
fromPage
==
FromPageType
.
FLOW
)
{
emits
(
'loadingCompleted'
);
//告诉系统表单已经加载完毕
// loadingCompleted后 工作流页面直接利用Ref调用setWorkFlowForm方法
}
else
if
(
props
.
fromPage
==
FromPageType
.
PREVIEW
)
{
// 预览 无需权限,表单事件也无需执行
}
else
if
(
props
.
fromPage
==
FromPageType
.
DESKTOP
)
{
// 桌面设计 表单事件需要执行
emits
(
'loadingCompleted'
);
//告诉系统表单已经加载完毕
await
createFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:初始化表单
await
loadFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:加载表单
}
}
catch
(
error
)
{}
});
// 根据菜单页面权限,设置表单属性(必填,禁用,显示)
function
setMenuPermission
()
{
data
.
formDataProps
.
schemas
=
filterFormSchemaAuth
(
data
.
formDataProps
.
schemas
!
);
}
// 校验form 通过返回表单数据
async
function
validate
()
{
let
values
=
[];
try
{
values
=
await
systemFormRef
.
value
?.
validate
();
//添加隐藏组件
if
(
data
.
formDataProps
.
hiddenComponent
?.
length
)
{
data
.
formDataProps
.
hiddenComponent
.
forEach
((
component
)
=>
{
values
[
component
.
bindField
]
=
component
.
value
;
});
}
}
finally
{
}
return
values
;
}
// 根据行唯一ID查询行数据,并设置表单数据 【编辑】
async
function
setFormDataFromId
(
rowId
)
{
try
{
const
record
=
await
getMesWarehouseOutput
(
rowId
);
setFieldsValue
(
record
);
state
.
formModel
=
record
;
await
getFormDataEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:获取表单数据
}
catch
(
error
)
{
}
}
// 辅助返回表单数据
async
function
getFieldsValue
()
{
let
values
=
[];
try
{
values
=
await
systemFormRef
.
value
?.
getFieldsValue
();
//添加隐藏组件
if
(
data
.
formDataProps
.
hiddenComponent
?.
length
)
{
data
.
formDataProps
.
hiddenComponent
.
forEach
((
component
)
=>
{
values
[
component
.
bindField
]
=
component
.
value
;
});
}
}
finally
{
}
return
values
;
}
// 辅助设置表单数据
function
setFieldsValue
(
record
)
{
systemFormRef
.
value
.
setFieldsValue
(
record
);
}
// 重置表单数据
async
function
resetFields
()
{
await
systemFormRef
.
value
.
resetFields
();
}
// 设置表单数据全部为Disabled 【查看】
async
function
setDisabledForm
(
)
{
data
.
formDataProps
.
schemas
=
changeSchemaDisabled
(
cloneDeep
(
data
.
formDataProps
.
schemas
));
}
// 获取行键值
function
getRowKey
()
{
return
RowKey
;
}
// 更新api表单数据
async
function
update
({
values
,
rowId
})
{
try
{
values
[
RowKey
]
=
rowId
;
state
.
formModel
=
values
;
let
saveVal
=
await
updateMesWarehouseOutput
(
values
);
await
submitFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:提交表单
return
saveVal
;
}
catch
(
error
)
{}
}
// 新增api表单数据
async
function
add
(
values
)
{
try
{
state
.
formModel
=
values
;
let
saveVal
=
await
addMesWarehouseOutput
(
values
);
await
submitFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:提交表单
return
saveVal
;
}
catch
(
error
)
{}
}
// 根据工作流页面权限,设置表单属性(必填,禁用,显示)
async
function
setWorkFlowForm
(
obj
:
WorkFlowFormParams
)
{
try
{
if
(
obj
.
formId
)
state
.
formInfo
.
formId
=
obj
.
formId
;
if
(
obj
.
formName
)
state
.
formInfo
.
formName
=
obj
.
formName
;
let
flowData
=
await
changeWorkFlowForm
(
cloneDeep
(
formProps
),
obj
);
let
{
buildOptionJson
,
uploadComponentIds
,
formModels
,
isViewProcess
}
=
flowData
;
data
.
formDataProps
=
buildOptionJson
;
emits
(
'changeUploadComponentIds'
,
uploadComponentIds
);
//工作流中必须保存上传组件id【附件汇总需要】
if
(
isViewProcess
)
{
setDisabledForm
();
//查看
}
state
.
formModel
=
formModels
;
setFieldsValue
(
formModels
);
}
catch
(
error
)
{}
await
createFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:初始化表单
await
loadFormEvent
(
formEventConfigs
,
state
.
formModel
,
systemFormRef
.
value
,
formProps
.
schemas
,
true
,
state
.
formInfo
.
formName
,
state
.
formInfo
.
formId
);
//表单事件:加载表单
}
function
handleChange
(
val
)
{
emits
(
'update:value'
,
val
);
}
async
function
sendMessageForAllIframe
()
{
try
{
if
(
systemFormRef
.
value
&&
systemFormRef
.
value
.
sendMessageForAllIframe
)
{
systemFormRef
.
value
.
sendMessageForAllIframe
();
}
}
catch
(
error
)
{}
}
defineExpose
({
setFieldsValue
,
resetFields
,
validate
,
add
,
update
,
setFormDataFromId
,
setDisabledForm
,
setMenuPermission
,
setWorkFlowForm
,
getRowKey
,
getFieldsValue
,
sendMessageForAllIframe
});
</
script
>
\ No newline at end of file
xjrsoft-vue3/src/views/ckgl/ccccrk/components/config.ts
0 → 100644
View file @
3d89ece8
import
{
FormProps
,
FormSchema
}
from
'/@/components/Form'
;
import
{
BasicColumn
}
from
'/@/components/Table'
;
import
{
uploadApi
}
from
'/@/api/sys/upload'
;
export
const
searchFormSchema
:
FormSchema
[]
=
[
{
field
:
'ywzz'
,
label
:
'业务组织'
,
defaultValue
:
undefined
,
component
:
'Input'
,
},
{
field
:
'lydj'
,
label
:
'来源单据'
,
defaultValue
:
undefined
,
component
:
'Input'
,
},
{
field
:
'pch'
,
label
:
'批次号'
,
defaultValue
:
undefined
,
component
:
'Input'
,
},
{
field
:
'dbrq'
,
label
:
'调拨日期'
,
defaultValue
:
undefined
,
component
:
'RangePicker'
,
componentProps
:
{
format
:
'YYYY-MM-DD HH:mm:ss'
,
style
:
{
width
:
'100%'
},
getPopupContainer
:
()
=>
document
.
body
,
},
},
];
export
const
columns
:
BasicColumn
[]
=
[
{
resizable
:
true
,
dataIndex
:
'ywzz'
,
title
:
'业务组织'
,
componentType
:
'input'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
''
,
},
{
resizable
:
true
,
dataIndex
:
'lydj'
,
title
:
'来源单据'
,
componentType
:
'input'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
''
,
},
{
resizable
:
true
,
dataIndex
:
'pch'
,
title
:
'批次号'
,
componentType
:
'input'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
''
,
},
{
resizable
:
true
,
dataIndex
:
'ywlx'
,
title
:
'业务类型'
,
componentType
:
'input'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
''
,
},
{
resizable
:
true
,
dataIndex
:
'ck'
,
title
:
'仓库'
,
componentType
:
'select'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
undefined
,
},
{
resizable
:
true
,
dataIndex
:
'dbrq'
,
title
:
'调拨日期'
,
componentType
:
'date'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
undefined
,
},
{
resizable
:
true
,
dataIndex
:
'cgy'
,
title
:
'仓管员'
,
componentType
:
'input'
,
fixed
:
false
,
sorter
:
true
,
styleConfig
:
undefined
,
listStyle
:
''
,
},
];
//表头合并配置
export
const
headerMergingData
=
[];
//表单事件
export
const
formEventConfigs
=
{
0
:
[
{
type
:
'circle'
,
color
:
'#2774ff'
,
text
:
'开始节点'
,
icon
:
'#icon-kaishi'
,
bgcColor
:
'#D8E5FF'
,
isUserDefined
:
false
,
},
{
color
:
'#F6AB01'
,
icon
:
'#icon-chushihua'
,
text
:
'初始化表单'
,
bgcColor
:
'#f9f5ea'
,
isUserDefined
:
false
,
nodeInfo
:
{
processEvent
:
[]
},
},
],
1
:
[
{
color
:
'#B36EDB'
,
icon
:
'#icon-shujufenxi'
,
text
:
'获取表单数据'
,
detail
:
'(新增无此操作)'
,
bgcColor
:
'#F8F2FC'
,
isUserDefined
:
false
,
nodeInfo
:
{
processEvent
:
[]
},
},
],
2
:
[
{
color
:
'#F8625C'
,
icon
:
'#icon-jiazai'
,
text
:
'加载表单'
,
bgcColor
:
'#FFF1F1'
,
isUserDefined
:
false
,
nodeInfo
:
{
processEvent
:
[]
},
},
],
3
:
[
{
color
:
'#6C6AE0'
,
icon
:
'#icon-jsontijiao'
,
text
:
'提交表单'
,
bgcColor
:
'#F5F4FF'
,
isUserDefined
:
false
,
nodeInfo
:
{
processEvent
:
[]
},
},
],
4
:
[
{
type
:
'circle'
,
color
:
'#F8625C'
,
text
:
'结束节点'
,
icon
:
'#icon-jieshuzhiliao'
,
bgcColor
:
'#FFD6D6'
,
isLast
:
true
,
isUserDefined
:
false
,
},
],
};
export
const
formProps
:
FormProps
=
{
labelCol
:
{
span
:
3
,
offset
:
0
},
labelAlign
:
'right'
,
layout
:
'vertical'
,
size
:
'default'
,
schemas
:
[
{
key
:
'0bd9b93c911d4cb5a128e274f3e6478a'
,
field
:
''
,
label
:
''
,
type
:
'grid'
,
colProps
:
{
span
:
24
},
component
:
'Grid'
,
children
:
[
{
span
:
8
,
list
:
[
{
key
:
'acbfa09b59ed4732b8ca47e6b1b3a13d'
,
field
:
'ywzz'
,
label
:
'业务组织'
,
type
:
'input'
,
component
:
'Input'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
7
,
defaultValue
:
''
,
placeholder
:
'请输入业务组织'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{
width
:
'100%'
},
},
},
{
key
:
'7a6ad889635d4a12b2c0a924ed2cc4ff'
,
field
:
'lydj'
,
label
:
'来源单据'
,
type
:
'input'
,
component
:
'Input'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
7
,
defaultValue
:
''
,
placeholder
:
'请输入来源单据'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{
width
:
'100%'
},
},
},
{
key
:
'dcb26c95941347438fb72f12bf398cf1'
,
field
:
'pch'
,
label
:
'批次号'
,
type
:
'input'
,
component
:
'Input'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
7
,
defaultValue
:
''
,
placeholder
:
'请输入批次号'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{
width
:
'100%'
},
},
},
],
},
{
span
:
8
,
list
:
[
{
key
:
'e7bd3d6188224f4f87641bf2ff67ef2f'
,
field
:
'ywlx'
,
label
:
'业务类型'
,
type
:
'input'
,
component
:
'Input'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
7
,
defaultValue
:
''
,
placeholder
:
'请输入业务类型'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{
width
:
'100%'
},
},
},
{
key
:
'de0209cc46f444d4ab50d5c27d0f9178'
,
field
:
'ck'
,
label
:
'仓库'
,
type
:
'select'
,
component
:
'XjrSelect'
,
colProps
:
{
span
:
24
},
componentProps
:
{
width
:
'100%'
,
span
:
7
,
placeholder
:
'请选择仓库'
,
showLabel
:
true
,
showSearch
:
false
,
isMultiple
:
false
,
clearable
:
false
,
disabled
:
false
,
staticOptions
:
[
{
key
:
1
,
label
:
'Option 1'
,
value
:
'Option 1'
},
{
key
:
2
,
label
:
'Option 2'
,
value
:
'Option 2'
},
{
key
:
3
,
label
:
'Option 3'
,
value
:
'Option 3'
},
],
datasourceType
:
'dic'
,
params
:
{
itemId
:
'2010539474382962690'
},
labelField
:
'name'
,
valueField
:
'value'
,
apiConfig
:
{
path
:
'CodeGeneration/selection'
,
method
:
'GET'
,
apiId
:
'93d735dcb7364a0f8102188ec4d77ac7'
,
},
dicOptions
:
[],
required
:
false
,
rules
:
[],
events
:
{},
isShow
:
true
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
itemId
:
'2010539474382962690'
,
style
:
{
width
:
'100%'
},
},
},
{
key
:
'd5ac7e6309054f128abcbc5a8ce5133f'
,
field
:
'cptp'
,
label
:
'产品图片'
,
type
:
'upload'
,
component
:
'Upload'
,
colProps
:
{
span
:
24
},
componentProps
:
{
api
:
uploadApi
,
span
:
7
,
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
:
'提示文本'
},
},
},
],
},
{
span
:
8
,
list
:
[
{
key
:
'b78cd1ea23de4128b307549f9bc84a35'
,
field
:
'dbrq'
,
label
:
'调拨日期'
,
type
:
'date'
,
component
:
'DatePicker'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
span
:
7
,
defaultValue
:
''
,
width
:
'100%'
,
placeholder
:
'请选择调拨日期'
,
format
:
'YYYY-MM-DD HH:mm:ss'
,
showLabel
:
true
,
allowClear
:
true
,
disabled
:
false
,
required
:
false
,
isShow
:
true
,
rules
:
[],
events
:
{},
isGetCurrent
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
searchType
:
'time'
,
style
:
{
width
:
'100%'
},
},
},
{
key
:
'39a1f74c2af24ab6b72478f6dc44bef1'
,
field
:
'cgy'
,
label
:
'仓管员'
,
type
:
'input'
,
component
:
'Input'
,
colProps
:
{
span
:
24
},
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
7
,
defaultValue
:
''
,
placeholder
:
'请输入仓管员'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
style
:
{
width
:
'100%'
},
},
},
],
},
],
componentProps
:
{
gutter
:
16
,
justify
:
'start'
,
align
:
'top'
,
isShow
:
true
,
showBorder
:
false
,
bordercolor
:
'#d9d9d9'
,
bordershowtype
:
[
true
,
true
,
true
,
true
],
borderwidth
:
1
,
padding
:
'10px'
,
margin
:
'10px'
,
},
},
{
key
:
'3fdbfd0182d3427197b08bdbf5753565'
,
label
:
''
,
field
:
'mesWarehouseOutputInfoList'
,
type
:
'form'
,
component
:
'SubForm'
,
required
:
true
,
colProps
:
{
span
:
24
},
componentProps
:
{
mainKey
:
'mesWarehouseOutputInfoList'
,
columns
:
[
{
key
:
'07c999f4185b4794a7b2a2a258305460'
,
title
:
'产品编码'
,
dataIndex
:
'cpbm'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
defaultValue
:
''
,
placeholder
:
'请输入产品编码'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'1295923528f341efb6bb1fbca958db01'
,
title
:
'产品'
,
dataIndex
:
'cp'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入产品'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'29757c13d33a46d7a04f90e4505c6a71'
,
title
:
'规格'
,
dataIndex
:
'gg'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入规格'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'a83b44693a6d4ae7862511de346fe2c7'
,
title
:
'型号'
,
dataIndex
:
'xh'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入型号'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'15943230401146a794882f9faeed6e11'
,
title
:
'需求数量'
,
dataIndex
:
'xqsl'
,
componentType
:
'InputNumber'
,
defaultValue
:
0
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
0
,
min
:
0
,
max
:
100
,
step
:
1
,
disabled
:
false
,
showLabel
:
true
,
controls
:
true
,
required
:
false
,
subTotal
:
false
,
isShow
:
true
,
rules
:
[],
events
:
{},
placeholder
:
'请输入需求数量'
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
listStyle
:
"return 'width:100%'"
,
},
},
{
key
:
'f3bf34668280460d832dbfe53daa5d75'
,
title
:
'合格数量'
,
dataIndex
:
'hgsl'
,
componentType
:
'InputNumber'
,
defaultValue
:
0
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
0
,
min
:
0
,
max
:
100
,
step
:
1
,
disabled
:
false
,
showLabel
:
true
,
controls
:
true
,
required
:
false
,
subTotal
:
false
,
isShow
:
true
,
rules
:
[],
events
:
{},
placeholder
:
'请输入合格数量'
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
listStyle
:
"return 'width:100%'"
,
},
},
{
key
:
'b211bee7e8d4405b8f0c6f7050ca8cda'
,
title
:
'不合格数量'
,
dataIndex
:
'bhgsl'
,
componentType
:
'InputNumber'
,
defaultValue
:
0
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
0
,
min
:
0
,
max
:
100
,
step
:
1
,
disabled
:
false
,
showLabel
:
true
,
controls
:
true
,
required
:
false
,
subTotal
:
false
,
isShow
:
true
,
rules
:
[],
events
:
{},
placeholder
:
'请输入不合格数量'
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
listStyle
:
"return 'width:100%'"
,
},
},
{
key
:
'b8333ae4a7654966a8efd92f854dfd5c'
,
title
:
'计量单位'
,
dataIndex
:
'jldw'
,
componentType
:
'XjrSelect'
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
placeholder
:
'请选择计量单位'
,
showLabel
:
true
,
showSearch
:
false
,
isMultiple
:
false
,
clearable
:
false
,
disabled
:
false
,
staticOptions
:
[
{
key
:
1
,
label
:
'Option 1'
,
value
:
'Option 1'
},
{
key
:
2
,
label
:
'Option 2'
,
value
:
'Option 2'
},
{
key
:
3
,
label
:
'Option 3'
,
value
:
'Option 3'
},
],
datasourceType
:
'dic'
,
params
:
{
itemId
:
'2003765781699985410'
},
labelField
:
'name'
,
valueField
:
'value'
,
apiConfig
:
{
path
:
'CodeGeneration/selection'
,
method
:
'GET'
,
apiId
:
'93d735dcb7364a0f8102188ec4d77ac7'
,
},
dicOptions
:
[],
required
:
false
,
rules
:
[],
events
:
{},
isShow
:
true
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
itemId
:
'2003765781699985410'
,
listStyle
:
"return 'border: 0'"
,
},
},
{
key
:
'0d59778977654519ae38b7aa1c71ec64'
,
title
:
'货位'
,
dataIndex
:
'hw'
,
componentType
:
'XjrSelect'
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
placeholder
:
'请选择货位'
,
showLabel
:
true
,
showSearch
:
false
,
isMultiple
:
false
,
clearable
:
false
,
disabled
:
false
,
staticOptions
:
[
{
key
:
1
,
label
:
'Option 1'
,
value
:
'Option 1'
},
{
key
:
2
,
label
:
'Option 2'
,
value
:
'Option 2'
},
{
key
:
3
,
label
:
'Option 3'
,
value
:
'Option 3'
},
],
defaultSelect
:
''
,
datasourceType
:
'api'
,
labelField
:
'label'
,
valueField
:
'value'
,
apiConfig
:
{
path
:
'/getStoreLocation'
,
method
:
'GET'
,
apiId
:
'93d735dcb7364a0f8102188ec4d77ac7'
,
apiParams
:
[
{
key
:
'1'
,
title
:
'Query Params'
,
tableInfo
:
[]
},
{
key
:
'2'
,
title
:
'Header'
,
tableInfo
:
[]
},
{
key
:
'3'
,
title
:
'Body'
,
tableInfo
:
[]
},
],
},
dicOptions
:
[],
required
:
false
,
rules
:
[],
events
:
{},
isShow
:
true
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
listStyle
:
"return 'border: 0'"
,
},
},
{
key
:
'c95f92f8c17e4e3b8943c1a166c54f86'
,
title
:
'批次号'
,
dataIndex
:
'pch'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入批次号'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
key
:
'9f6abc3c4e88423e929672c28a751a31'
,
title
:
'备注'
,
dataIndex
:
'bz'
,
componentType
:
'Input'
,
defaultValue
:
''
,
componentProps
:
{
width
:
'100%'
,
span
:
''
,
defaultValue
:
''
,
placeholder
:
'请输入备注'
,
prefix
:
''
,
suffix
:
''
,
addonBefore
:
''
,
addonAfter
:
''
,
disabled
:
false
,
allowClear
:
false
,
showLabel
:
true
,
required
:
false
,
rules
:
[],
events
:
{},
listStyle
:
''
,
isSave
:
false
,
isShow
:
true
,
scan
:
false
,
bordered
:
true
,
isShowAi
:
false
,
tooltipConfig
:
{
visible
:
false
,
title
:
'提示文本'
},
},
},
{
title
:
'操作'
,
key
:
'action'
,
fixed
:
'right'
,
width
:
'50px'
},
],
span
:
'24'
,
preloadType
:
'api'
,
apiConfig
:
{},
itemId
:
''
,
dicOptions
:
[],
useSelectButton
:
false
,
buttonName
:
'选择数据'
,
showLabel
:
true
,
showComponentBorder
:
true
,
showBorder
:
false
,
backgroundStyle
:
{
isShow
:
false
,
bgColor
:
'#ffffff'
,
bgImgUrl
:
''
,
fontColor
:
''
,
borderColor
:
''
,
},
theadStyle
:
{
isShow
:
false
,
fontSize
:
14
,
fontColor
:
'#000000'
,
bgType
:
'color'
,
gradientDegree
:
''
,
gradientColors
:
''
,
bgImageUrl
:
''
,
bgColor
:
''
,
bgRepeat
:
'no-repeat'
,
},
tbodyStyle
:
{
isShow
:
false
,
fontSize
:
14
,
fontColor
:
'#000000'
,
bgType
:
'color'
,
gradientDegree
:
''
,
gradientColors
:
''
,
bgImageUrl
:
''
,
bgColor
:
''
,
bgRepeat
:
'no-repeat'
,
},
bordercolor
:
'#f0f0f0'
,
bordershowtype
:
[
true
,
true
,
true
,
true
],
borderwidth
:
1
,
showIndex
:
false
,
isShow
:
true
,
multipleHeads
:
[],
buttonList
:
[],
topButtonList
:
[],
isExport
:
false
,
isImport
:
false
,
isDeleteSelected
:
false
,
isListView
:
false
,
viewList
:
[],
isShowAdd
:
true
,
isShowDelete
:
true
,
hasCheckedCol
:
false
,
checkedColType
:
'checkbox'
,
pageSize
:
10
,
events
:
{},
showPagenation
:
true
,
},
},
],
showActionButtonGroup
:
false
,
buttonLocation
:
'center'
,
actionColOptions
:
{
span
:
24
},
showResetButton
:
false
,
showSubmitButton
:
false
,
hiddenComponent
:
[],
};
xjrsoft-vue3/src/views/ckgl/ccccrk/components/workflowPermission.ts
0 → 100644
View file @
3d89ece8
export
const
permissionList
=
[
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'业务组织'
,
fieldId
:
'ywzz'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'input'
,
key
:
'acbfa09b59ed4732b8ca47e6b1b3a13d'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'来源单据'
,
fieldId
:
'lydj'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'input'
,
key
:
'7a6ad889635d4a12b2c0a924ed2cc4ff'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'批次号'
,
fieldId
:
'pch'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'input'
,
key
:
'dcb26c95941347438fb72f12bf398cf1'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'业务类型'
,
fieldId
:
'ywlx'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'input'
,
key
:
'e7bd3d6188224f4f87641bf2ff67ef2f'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'仓库'
,
fieldId
:
'ck'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'select'
,
key
:
'de0209cc46f444d4ab50d5c27d0f9178'
,
children
:
[],
options
:
{},
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'产品图片'
,
fieldId
:
'cptp'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'upload'
,
key
:
'd5ac7e6309054f128abcbc5a8ce5133f'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'调拨日期'
,
fieldId
:
'dbrq'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'date'
,
key
:
'b78cd1ea23de4128b307549f9bc84a35'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
false
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSaveTable
:
false
,
tableName
:
''
,
fieldName
:
'仓管员'
,
fieldId
:
'cgy'
,
isSubTable
:
false
,
showChildren
:
true
,
type
:
'input'
,
key
:
'39a1f74c2af24ab6b72478f6dc44bef1'
,
children
:
[],
options
:
{},
defaultValue
:
''
,
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
true
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
''
,
fieldId
:
'mesWarehouseOutputInfoList'
,
type
:
'form'
,
key
:
'3fdbfd0182d3427197b08bdbf5753565'
,
children
:
[
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'产品编码'
,
fieldId
:
'cpbm'
,
type
:
'Input'
,
key
:
'07c999f4185b4794a7b2a2a258305460'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'产品'
,
fieldId
:
'cp'
,
type
:
'Input'
,
key
:
'1295923528f341efb6bb1fbca958db01'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'规格'
,
fieldId
:
'gg'
,
type
:
'Input'
,
key
:
'29757c13d33a46d7a04f90e4505c6a71'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'型号'
,
fieldId
:
'xh'
,
type
:
'Input'
,
key
:
'a83b44693a6d4ae7862511de346fe2c7'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'需求数量'
,
fieldId
:
'xqsl'
,
type
:
'InputNumber'
,
key
:
'15943230401146a794882f9faeed6e11'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'合格数量'
,
fieldId
:
'hgsl'
,
type
:
'InputNumber'
,
key
:
'f3bf34668280460d832dbfe53daa5d75'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'不合格数量'
,
fieldId
:
'bhgsl'
,
type
:
'InputNumber'
,
key
:
'b211bee7e8d4405b8f0c6f7050ca8cda'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'计量单位'
,
fieldId
:
'jldw'
,
type
:
'XjrSelect'
,
key
:
'b8333ae4a7654966a8efd92f854dfd5c'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'货位'
,
fieldId
:
'hw'
,
type
:
'XjrSelect'
,
key
:
'0d59778977654519ae38b7aa1c71ec64'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'批次号'
,
fieldId
:
'pch'
,
type
:
'Input'
,
key
:
'c95f92f8c17e4e3b8943c1a166c54f86'
,
children
:
[],
},
{
required
:
true
,
view
:
true
,
edit
:
true
,
disabled
:
false
,
isSubTable
:
false
,
isSaveTable
:
false
,
showChildren
:
false
,
tableName
:
'mesWarehouseOutputInfoList'
,
fieldName
:
'备注'
,
fieldId
:
'bz'
,
type
:
'Input'
,
key
:
'9f6abc3c4e88423e929672c28a751a31'
,
children
:
[],
},
],
},
];
xjrsoft-vue3/src/views/ckgl/ccccrk/index.vue
0 → 100644
View file @
3d89ece8
<
template
>
<ResizePageWrapper
:hasLeft=
"false"
>
<template
#
resizeRight
>
<BasicTable
@
register=
"registerTable"
isMenuTable
ref=
"tableRef"
>
<template
#
toolbar
>
<template
v-for=
"button in tableButtonConfig"
:key=
"button.code"
>
<a-button
v-if=
"button.isDefault"
type=
"primary"
@
click=
"buttonClick(button.code)"
>
<template
#
icon
><Icon
:icon=
"button.icon"
/></
template
>
{{ button.name }}
</a-button>
<CustomButtonModal
v-else-if=
"button.buttonType == 'modal'"
:info=
"button"
/>
<a-button
v-else
:type=
"button.buttonType === 'danger' ? 'default' : button.buttonType || 'primary'"
:danger=
"button.buttonType === 'danger'"
>
<
template
#
icon
><Icon
:icon=
"button.icon"
/></
template
>
{{ button.name }}
</a-button>
</template>
</template>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.dataIndex === 'action'"
>
<TableAction
:actions=
"getLessActions(record)"
:dropDownActions=
"getMoreActions(record)"
/>
</
template
>
<
template
v-else-if=
"column.dataIndex && column?.listStyle"
>
<span
:style=
"executeListStyle(getValue(record, column, 'style'), column?.listStyle)"
>
{{
getValue
(
record
,
column
,
'value'
)
}}
</span>
</
template
>
</template>
</BasicTable>
</template>
<CcccrkModal
@
register=
"registerModal"
@
success=
"handleFormSuccess"
@
cancel=
"handleFormCancel"
/>
</ResizePageWrapper>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
provide
,
Ref
,
createVNode
,
}
from
'vue'
;
import
{
Modal
}
from
'ant-design-vue'
;
import
{
ExclamationCircleOutlined
}
from
'@ant-design/icons-vue'
;
import
{
BasicTable
,
useTable
,
TableAction
,
ActionItem
}
from
'/@/components/Table'
;
import
{
getMesWarehouseOutputPage
,
deleteMesWarehouseOutput
}
from
'/@/api/ckgl/ccccrk'
;
import
{
ResizePageWrapper
}
from
'/@/components/Page'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
import
{
useI18n
}
from
'/@/hooks/web/useI18n'
;
import
{
usePermission
}
from
'/@/hooks/web/usePermission'
;
import
CustomButtonModal
from
'/@/components/Form/src/components/CustomButtonModal.vue'
;
import
{
executeListStyle
,
getValue
}
from
'/@/hooks/web/useListStyle'
;
//列表样式配置
import
{
useRouter
}
from
'vue-router'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
CcccrkModal
from
'./components/CcccrkModal.vue'
;
import
{
searchFormSchema
,
columns
}
from
'./components/config'
;
import
Icon
from
'/@/components/Icon/index'
;
const
listSpliceNum
=
ref
(
3
);
//操作列最先展示几个
import
{
useConcurrentLock
}
from
'/@/hooks/web/useConcurrentLock'
;
const
pageParamsInfo
=
ref
<
any
>
({});
const
{
enableLockeData
,
handleOpenFormEnableLockeData
,
handleCloseFormEnableLocke
,
handleHasEnableLocke
}
=
useConcurrentLock
();
const
{
notification
}
=
useMessage
();
const
{
t
}
=
useI18n
();
defineEmits
([
'register'
]);
const
{
filterColumnAuth
,
filterButtonAuth
,
hasPermission
}
=
usePermission
();
const
filterColumns
=
filterColumnAuth
(
columns
);
const
tableRef
=
ref
();
//展示在列表内的按钮
const
actionButtons
=
ref
<
string
[]
>
([
"view"
,
"edit"
,
"delete"
]);
const
buttonConfigs
=
computed
(()
=>
{
const
list
=
[{
"buttonId"
:
"2036703577771544576"
,
"name"
:
"查看"
,
"code"
:
"view"
,
"icon"
:
"ant-design:eye-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2036703577775738880"
,
"name"
:
"新增"
,
"code"
:
"add"
,
"icon"
:
"ant-design:plus-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
},{
"buttonId"
:
"2036703577775738881"
,
"name"
:
"编辑"
,
"code"
:
"edit"
,
"icon"
:
"ant-design:form-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
,
"isEnableLock"
:
true
},{
"buttonId"
:
"2036703577775738882"
,
"name"
:
"删除"
,
"code"
:
"delete"
,
"icon"
:
"ant-design:delete-outlined"
,
"isDefault"
:
true
,
"isUse"
:
true
}]
return
filterButtonAuth
(
list
);
})
const
tableButtonConfig
=
computed
(()
=>
{
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
!
actionButtons
.
value
.
includes
(
x
.
code
));
});
const
actionButtonConfig
=
computed
(()
=>
{
return
buttonConfigs
.
value
?.
filter
((
x
)
=>
actionButtons
.
value
.
includes
(
x
.
code
));
});
const
btnEvent
=
{
view
:
handleView
,
add
:
handleAdd
,
edit
:
handleEdit
,
delete
:
handleDelete
,}
const
{
currentRoute
}
=
useRouter
();
const
formIdComputedRef
=
computed
(()
=>
currentRoute
.
value
.
meta
.
formId
as
string
);
provide
<
Ref
<
string
>>
(
'currentFormId'
,
formIdComputedRef
);
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerTable
,
{
reload
,
}]
=
useTable
({
title
:
'Ccccrk列表'
,
api
:
getMesWarehouseOutputPage
,
rowKey
:
'id'
,
columns
:
filterColumns
,
pagination
:
{
pageSize
:
10
,
},
formConfig
:
{
labelWidth
:
100
,
schemas
:
searchFormSchema
,
fieldMapToTime
:
[[
'dbrq'
,
[
'dbrqStart'
,
'dbrqEnd'
],
'YYYY-MM-DD HH:mm:ss '
,
true
],],
showResetButton
:
false
,
},
bordered
:
false
,
beforeFetch
:
(
params
)
=>
{
pageParamsInfo
.
value
=
{...
params
,
FormId
:
formIdComputedRef
.
value
,
PK
:
'id'
}
return
pageParamsInfo
.
value
;
},
afterFetch
:
(
res
)
=>
{
},
useSearchForm
:
true
,
showTableSetting
:
true
,
striped
:
false
,
actionColumn
:
{
width
:
195
,
title
:
'操作'
,
dataIndex
:
'action'
,
slots
:
{
customRender
:
'action'
},
},
tableSetting
:
{
size
:
false
,
},
customRow
,
isAdvancedQuery
:
false
,
querySelectOption
:
JSON
.
stringify
(
searchFormSchema
),
objectId
:
formIdComputedRef
.
value
,
////系统表单formId,自定义表单releaseId的id值
});
function
buttonClick
(
code
)
{
btnEvent
[
code
]();
}
function
handleAdd
()
{
openModal
(
true
,
{
isUpdate
:
false
,
});
}
async
function
handleEdit
(
record
:
Recordable
)
{
let
field
=
'id'
;
try
{
let
hasIn
=
handleHasEnableLocke
(
buttonConfigs
.
value
,
'edit'
);
if
(
hasIn
)
{
let
res
=
await
handleOpenFormEnableLockeData
(
record
[
field
],
formIdComputedRef
.
value
,
);
if
(
res
!==
null
)
{
return
;
}
}
let
info
=
{
id
:
record
[
field
],
isUpdate
:
true
,
};
openModal
(
true
,
info
);
}
catch
(
error
)
{}
}
function
handleDelete
(
record
:
Recordable
)
{
deleteList
([
record
.
id
]);
}
function
deleteList
(
ids
)
{
Modal
.
confirm
({
title
:
'提示信息'
,
icon
:
createVNode
(
ExclamationCircleOutlined
),
content
:
'是否确认删除?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
()
{
deleteMesWarehouseOutput
(
ids
).
then
((
_
)
=>
{
handleSuccess
();
notification
.
success
({
message
:
'Tip'
,
description
:
t
(
'删除成功!'
),
});
});
},
onCancel
()
{},
});
}
function
customRow
(
record
:
Recordable
)
{
return
{
ondblclick
:
()
=>
{
if
(
record
.
isCanEdit
&&
hasPermission
(
"ccccrk:edit"
))
{
handleEdit
(
record
);
}
},
};
}
function
handleSuccess
()
{
reload
();
}
function
handleFormSuccess
()
{
handleSuccess
();
handleCloseFormEnableLocke
(
buttonConfigs
.
value
,
'edit'
);
}
function
handleFormCancel
()
{
handleCloseFormEnableLocke
(
buttonConfigs
.
value
,
'edit'
);
}
function
handleView
(
record
:
Recordable
)
{
let
info
=
{
isView
:
true
,
id
:
record
.
id
,
}
openModal
(
true
,
info
);
}
function
getLessActions
(
record
:
Recordable
)
{
let
list
=
getActions
(
record
);
return
list
.
slice
(
0
,
listSpliceNum
.
value
);
}
function
getMoreActions
(
record
:
Recordable
)
{
let
list
=
getActions
(
record
);
return
list
.
slice
(
listSpliceNum
.
value
);
}
function
getActions
(
record
:
Recordable
):
ActionItem
[]
{
record
.
isCanEdit
=
false
;
let
actionsList
:
ActionItem
[]
=
[];
actionButtonConfig
.
value
?.
map
((
button
)
=>
{
if
(
!
record
?.
workflowData
?.
processId
)
{
record
.
isCanEdit
=
true
;
actionsList
.
push
({
...
button
,
auth
:
`ccccrk:
${
button
.
code
}
`
,
label
:
button
?.
name
,
color
:
button
.
code
===
'delete'
?
'error'
:
undefined
,
onClick
:
btnEvent
[
button
.
code
]?.
bind
(
null
,
record
),
});
}
else
{
if
(
!
[
'edit'
,
'delete'
].
includes
(
button
.
code
))
{
actionsList
.
push
({
auth
:
`ccccrk:
${
button
.
code
}
`
,
label
:
button
?.
name
,
onClick
:
btnEvent
[
button
.
code
]?.
bind
(
null
,
record
),
});
}
}
});
return
actionsList
;
}
</
script
>
<
style
lang=
"less"
scoped
>
:deep
(
.ant-table-selection-col
)
{
width
:
50px
;
}
.show
{
display
:
flex
;
}
.hide
{
display
:
none
!important
;
}
</
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