Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
integrate-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
integrate-admin
Commits
4881991c
提交
4881991c
authored
1月 11, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://192.168.0.27:8090/xuxu/integrate-admin
上级
6b697aa1
8425f950
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
13 行删除
+30
-13
commonConfig.ts
...services/api/systemApi/fieldConfiguration/commonConfig.ts
+11
-0
newField.vue
src/views/manage/components/fieldConfiguration/newField.vue
+14
-7
fieldConfiguration.vue
src/views/manage/fieldConfiguration.vue
+4
-5
platformProducts.vue
src/views/manage/platformProducts.vue
+1
-1
没有找到文件。
src/services/api/systemApi/fieldConfiguration/commonConfig.ts
浏览文件 @
4881991c
...
...
@@ -23,6 +23,17 @@ export function addCommonConfig(data: any) {
data
,
});
}
export
function
manualExcute
(
data
:
any
)
{
return
request
({
url
:
"/api/manual/synchronizationByParam"
,
method
:
"post"
,
data
,
});
}
// 金蝶通用配置更新
export
function
putCommonConfig
(
data
:
any
)
{
return
request
({
...
...
src/views/manage/components/fieldConfiguration/newField.vue
浏览文件 @
4881991c
...
...
@@ -28,20 +28,21 @@
<el-input
v-model=
"fieidForm.direction"
placeholder=
"请输入单据名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"16"
></el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"操作"
>
<el-select
v-model=
"fieidForm.operation"
placeholder=
"请选择"
>
<el-option
label=
"查询"
value=
"1"
></el-option>
<el-option
label=
"创建/更新"
value=
"2"
></el-option>
<el-option
label=
"同步"
value=
"3"
></el-option>
<el-option
label=
"字段匹配"
value=
"4"
></el-option>
<el-option
label=
"映射匹配"
value=
"5"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"8"
v-if=
"fieidForm.operation === '1' || fieidForm.operation === '3' || fieidForm.operation === 'ERP->MES'"
>
<el-form-item
label=
"
金蝶主键
字段"
prop=
"primaryKeyField"
>
<el-input
v-model=
"fieidForm.primaryKeyField"
placeholder=
"请输入
金蝶主键
字段"
/>
v-if=
"fieidForm.operation === '1' || fieidForm.operation === '
4' || fieidForm.operation === '
3' || fieidForm.operation === 'ERP->MES'"
>
<el-form-item
label=
"
唯一
字段"
prop=
"primaryKeyField"
>
<el-input
v-model=
"fieidForm.primaryKeyField"
placeholder=
"请输入
唯一
字段"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
...
...
@@ -107,6 +108,7 @@
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"handleClose"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"onManual"
v-show=
"fieldTitle !== '详情'"
>
手动执行
</el-button>
<el-button
type=
"primary"
@
click=
"onConfirm"
v-show=
"fieldTitle !== '详情'"
>
确认
</el-button>
</span>
</
template
>
...
...
@@ -116,7 +118,7 @@
<
script
setup
lang=
"ts"
>
import
{
ref
,
watch
}
from
'vue'
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
{
addCommonConfig
,
putCommonConfig
}
from
'@/services/api/systemApi/fieldConfiguration/commonConfig'
import
{
addCommonConfig
,
putCommonConfig
,
manualExcute
}
from
'@/services/api/systemApi/fieldConfiguration/commonConfig'
import
Change
from
'wangeditor/dist/editor/change'
;
const
props
=
defineProps
({
...
...
@@ -132,7 +134,7 @@ const emits = defineEmits(['initCommonConfig'])
const
disabled
=
ref
(
false
)
const
drawerVisible
=
ref
(
false
)
const
fieidRef
=
ref
()
const
fieldTitle
=
ref
(
'新增
字段
'
)
const
fieldTitle
=
ref
(
'新增
场景
'
)
const
fieidForm
=
ref
({
sFormId
:
''
,
...
...
@@ -178,7 +180,7 @@ const onConfirm = () => {
fieidRef
.
value
?.
validate
((
valid
:
boolean
,
fields
:
any
)
=>
{
if
(
valid
)
{
const
platformProductRelationId
=
sessionStorage
.
getItem
(
'platformProductRelationId'
)
if
(
fieldTitle
.
value
===
'新增
字段
'
)
{
if
(
fieldTitle
.
value
===
'新增
场景
'
)
{
fieidForm
.
value
=
{
...{
platformProductRelationId
},
...
fieidForm
.
value
}
addCommonConfig
(
fieidForm
.
value
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -228,6 +230,11 @@ const clear = () => {
disabled
.
value
=
false
drawerVisible
.
value
=
false
}
const
onManual
=
()
=>
{
manualExcute
({
docType
:
fieidForm
.
value
.
docType
});
}
const
handleClose
=
()
=>
{
if
(
fieldTitle
.
value
!==
'详情'
)
{
if
(
updateCount
.
value
>
0
)
{
...
...
src/views/manage/fieldConfiguration.vue
浏览文件 @
4881991c
<
template
>
<div
style=
"padding: 20px"
>
<el-button
type=
"primary"
style=
"margin-bottom: 20px;"
@
click=
"showFieid"
>
新增
字段
</el-button>
<el-button
type=
"primary"
style=
"margin-bottom: 20px;"
@
click=
"showFieid"
>
新增
场景
</el-button>
<el-table
:data=
"fieidData"
border
v-loading=
"loading"
stripe
>
<el-table-column
label=
"docType"
prop=
"docType"
align=
"center"
/>
<el-table-column
label=
"同步顺序"
prop=
"paiXu"
align=
"center"
/>
...
...
@@ -20,8 +20,7 @@
<el-divider
direction=
"vertical"
/>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"handleEdit(scope.row)"
>
编辑
</el-link>
<el-divider
direction=
"vertical"
/>
<el-link
:underline=
"false"
type=
"danger"
@
click=
"handleDelete(scope.row.id)"
>
删除
</el-link>
<el-link
:underline=
"false"
type=
"danger"
@
click=
"handleDelete(scope.row.id)"
>
删除
</el-link>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -66,14 +65,14 @@ const handleCurrentChange = (value: number) => {
const
showFieid
=
()
=>
{
newFieldRef
.
value
.
fieldTitle
=
'新增
字段
'
newFieldRef
.
value
.
fieldTitle
=
'新增
场景
'
newFieldRef
.
value
.
updateCount
=
0
newFieldRef
.
value
.
drawerVisible
=
true
}
const
handleEdit
=
(
row
:
any
)
=>
{
const
data
=
Object
.
assign
({},
row
)
newFieldRef
.
value
.
fieldTitle
=
'编辑
字段
'
newFieldRef
.
value
.
fieldTitle
=
'编辑
场景
'
data
.
operation
=
''
+
data
.
operation
data
.
isAutoPerform
=
''
+
data
.
isAutoPerform
data
.
isInTransaction
=
''
+
data
.
isInTransaction
...
...
src/views/manage/platformProducts.vue
浏览文件 @
4881991c
...
...
@@ -29,7 +29,7 @@
</
template
>
</el-dropdown>
<el-divider
direction=
"vertical"
/>
<el-button
type=
"primary"
link
size=
"small"
@
click=
"selectScene(scope.row.id)"
>
选择场景
<el-button
type=
"primary"
link
size=
"small"
@
click=
"selectScene(scope.row.id)"
>
场景配置
</el-button>
<el-divider
direction=
"vertical"
/>
<el-button
type=
"primary"
link
size=
"small"
@
click=
"editProduct(scope.row)"
>
编辑
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论