vue2-client 1.14.68 → 1.14.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -1
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +1 -2
- package/package.json +1 -1
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XReport/XReport.vue +72 -1
- package/src/base-client/components/common/XReport/XReportDemo.vue +1 -2
- package/src/base-client/components/common/XReport/XReportTrGroup.vue +218 -29
- package/src/base-client/components/common/XReport/index.md +59 -0
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +79 -36
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +28 -22
- package/src/router/async/router.map.js +2 -2
- package/vue.config.js +2 -2
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
|
@@ -1,47 +1,90 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<x-form-table
|
|
4
|
+
title="示例页面"
|
|
5
|
+
:queryParamsName="queryParamsName"
|
|
6
|
+
:fixed-query-form="{
|
|
7
|
+
users_f_handler_id: currUser.id,
|
|
8
|
+
}"
|
|
9
|
+
@action="toDetail">
|
|
10
|
+
<template slot="button">
|
|
11
|
+
<a-button @click="add">
|
|
12
|
+
<a-icon type="plus"/>
|
|
13
|
+
发起报建
|
|
14
|
+
</a-button>
|
|
15
|
+
</template>
|
|
16
|
+
</x-form-table>
|
|
17
|
+
<a-modal
|
|
18
|
+
v-model="applyAddFlag"
|
|
19
|
+
:footer="null"
|
|
20
|
+
:dialog-style="{ top: '5rem' }"
|
|
21
|
+
:z-index="1001"
|
|
22
|
+
title="发起报建"
|
|
23
|
+
:destroyOnClose="true">
|
|
24
|
+
<x-add-native-form ref="xForm" @onSubmit="applySubmit"/>
|
|
25
|
+
</a-modal>
|
|
26
|
+
<WorkflowDetail ref="workFlow" @success="success"></WorkflowDetail>
|
|
27
|
+
</a-card>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
1
30
|
<script>
|
|
2
31
|
import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
|
|
32
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
33
|
+
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
34
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
35
|
+
import { mapState } from 'vuex'
|
|
3
36
|
|
|
4
37
|
export default {
|
|
5
|
-
name: '
|
|
6
|
-
components: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
38
|
+
name: 'Apply',
|
|
39
|
+
components: {
|
|
40
|
+
XFormTable,
|
|
41
|
+
XAddNativeForm,
|
|
42
|
+
WorkflowDetail
|
|
43
|
+
},
|
|
44
|
+
data () {
|
|
45
|
+
return {
|
|
46
|
+
// 查询配置文件名
|
|
47
|
+
queryParamsName: 'applyCRUD',
|
|
48
|
+
// 发起报建弹框控制
|
|
49
|
+
applyAddFlag: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
computed: {
|
|
53
|
+
...mapState('account', { currUser: 'user' }),
|
|
11
54
|
},
|
|
12
55
|
methods: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
56
|
+
add () {
|
|
57
|
+
this.applyAddFlag = true
|
|
58
|
+
this.$nextTick(
|
|
59
|
+
() => {
|
|
60
|
+
getConfigByName('addApplyForm', 'af-apply', (res) => {
|
|
61
|
+
this.$refs.xForm.init({
|
|
62
|
+
businessType: '新增',
|
|
63
|
+
title: '发起报建',
|
|
64
|
+
...res
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
},
|
|
70
|
+
applySubmit (formData) {
|
|
71
|
+
runLogic('addApply', formData).then(
|
|
72
|
+
res => {
|
|
73
|
+
this.$message.success('发起报建成功')
|
|
74
|
+
this.applyAddFlag = false
|
|
75
|
+
}
|
|
76
|
+
).catch(() => {
|
|
77
|
+
this.applyAddFlag = false
|
|
78
|
+
})
|
|
21
79
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* @param successStepId 完成步骤id
|
|
30
|
-
* @param successStep 完成步骤名称
|
|
31
|
-
* @param fromStep 起步骤名称
|
|
32
|
-
* @param toStep 往步骤名称
|
|
33
|
-
*/
|
|
34
|
-
nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
|
|
35
|
-
console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
|
|
80
|
+
success () {
|
|
81
|
+
console.log('完工')
|
|
82
|
+
},
|
|
83
|
+
toDetail (record, id) {
|
|
84
|
+
this.$refs.workFlow.init({
|
|
85
|
+
workflowId: record.twf_id
|
|
86
|
+
})
|
|
36
87
|
}
|
|
37
88
|
}
|
|
38
89
|
}
|
|
39
90
|
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<WorkflowDetail ref="workFlow" @success="success" @nextClick="nextClick"></WorkflowDetail>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<style scoped lang="less">
|
|
46
|
-
|
|
47
|
-
</style>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<a-tab-pane key="0" tab="步骤详情">
|
|
38
38
|
<a-card :bordered="false" :loading="loadingHistory">
|
|
39
39
|
<!-- 当前步骤历史记录 -->
|
|
40
|
-
<template v-if="formCompletedDataPreview
|
|
40
|
+
<template v-if="formCompletedDataPreview">
|
|
41
41
|
<a-descriptions
|
|
42
42
|
v-show="formCompletedDataPreview.data"
|
|
43
43
|
:column="{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
|
|
@@ -48,11 +48,12 @@
|
|
|
48
48
|
填写历史
|
|
49
49
|
</p>
|
|
50
50
|
<a-descriptions-item
|
|
51
|
-
v-for="(
|
|
52
|
-
:key="
|
|
51
|
+
v-for="(value,key) in formCompletedDataPreview.data"
|
|
52
|
+
:key="key"
|
|
53
|
+
v-show="key !== '附件上传'"
|
|
53
54
|
>
|
|
54
|
-
<span slot="label" style="color: #000">{{
|
|
55
|
-
<div style="white-space: pre-wrap">{{
|
|
55
|
+
<span slot="label" style="color: #000">{{ key }}</span>
|
|
56
|
+
<div style="white-space: pre-wrap">{{ value }}</div>
|
|
56
57
|
</a-descriptions-item>
|
|
57
58
|
</a-descriptions>
|
|
58
59
|
<a-descriptions
|
|
@@ -809,28 +810,33 @@ export default {
|
|
|
809
810
|
formCompletedDataPreview = JSON.parse(JSON.stringify(this.formCompletedData))
|
|
810
811
|
// 使用字段定义中内容,将回显数据的列名,替换为定义的中文名
|
|
811
812
|
const formData = formCompletedDataPreview.data
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
813
|
+
for (const key in formData) {
|
|
814
|
+
for (let i = 0; i < this.targetStepDefine.length; i++) {
|
|
815
|
+
const stepDefine = this.targetStepDefine[i]
|
|
816
|
+
if (key === stepDefine.model) {
|
|
817
|
+
if (!['FilesId', 'Images'].includes(key)) {
|
|
818
|
+
// 读取字典值
|
|
819
|
+
if (stepDefine.formType === 'select' && stepDefine.selectType === 'key') {
|
|
820
|
+
for (const item of this.$appdata.getDictionaryList(stepDefine.selectKey)) {
|
|
821
|
+
if (item.value === formData[key]) {
|
|
822
|
+
formData[stepDefine.name] = item.label
|
|
823
|
+
break
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
} else {
|
|
827
|
+
formData[stepDefine.name] = formData[key]
|
|
824
828
|
}
|
|
825
829
|
}
|
|
830
|
+
if (key !== stepDefine.name) {
|
|
831
|
+
delete formData[key]
|
|
832
|
+
}
|
|
833
|
+
break
|
|
826
834
|
}
|
|
827
|
-
orderedFormData.push({
|
|
828
|
-
label: stepDefine.name,
|
|
829
|
-
value
|
|
830
|
-
})
|
|
831
835
|
}
|
|
832
836
|
}
|
|
833
|
-
formCompletedDataPreview.data
|
|
837
|
+
if (!Object.keys(formCompletedDataPreview.data).length) {
|
|
838
|
+
formCompletedDataPreview.data = null
|
|
839
|
+
}
|
|
834
840
|
// 备注
|
|
835
841
|
formCompletedDataPreview.note = this.stepsForChild[stepId - 1].note
|
|
836
842
|
if (!formCompletedDataPreview.data && !formCompletedDataPreview.files.length && !formCompletedDataPreview.images.length && !formCompletedDataPreview.note) {
|
|
@@ -56,9 +56,9 @@ routerResource.example = {
|
|
|
56
56
|
path: 'example',
|
|
57
57
|
name: '示例主页面',
|
|
58
58
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
59
|
-
component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
59
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
60
60
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
61
|
-
|
|
61
|
+
component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
62
62
|
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
63
63
|
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
64
64
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
package/vue.config.js
CHANGED
|
@@ -11,12 +11,12 @@ const productionGzipExtensions = ['js', 'css']
|
|
|
11
11
|
const isProd = process.env.NODE_ENV === 'production'
|
|
12
12
|
|
|
13
13
|
// v4 产品演示
|
|
14
|
-
const v3Server = 'http://
|
|
14
|
+
const v3Server = 'http://192.168.50.67:31567'
|
|
15
15
|
// const gateway = 'http://192.168.50.67:31467'
|
|
16
16
|
// const testUpload = 'http://123.60.214.109:8406'
|
|
17
17
|
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
18
18
|
// const revenue = 'http://aote-office.8866.org:31567'
|
|
19
|
-
const revenue = 'http://
|
|
19
|
+
const revenue = 'http://192.168.50.67:31567'
|
|
20
20
|
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
21
21
|
// const testUploadLocal = 'http://127.0.0.1:9001'
|
|
22
22
|
// v3 铜川
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8"/>
|
|
5
|
-
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml"/>
|
|
6
|
-
<link rel="stylesheet" href="./vender/jquery/zTreeStyle/zTreeStyle.css" type="text/css">
|
|
7
|
-
<script src = "./vender/jquery/jquery.js"></script>
|
|
8
|
-
<script src = "./vender/date97/WdatePicker.js"></script>
|
|
9
|
-
<script src = "./vender/jquery/jquery.ztree.core.min.js"></script>
|
|
10
|
-
<script src = "./vender/jquery/jquery.ztree.exedit.min.js"></script>
|
|
11
|
-
<script src = "./vender/jquery/jquery.ztree.exhide.min.js"></script>
|
|
12
|
-
<script src = "./vender/codemirror.js"></script>
|
|
13
|
-
<script src = "./vender/fabric.js"></script>
|
|
14
|
-
<script src="./vender/editor.js"></script>
|
|
15
|
-
<script>
|
|
16
|
-
$(function() {
|
|
17
|
-
//配置项可以不设置,会使用默认设置
|
|
18
|
-
let option = {
|
|
19
|
-
license:'QO1pepfLYwDNqGvW21ensj0psE9CxBxf5MSRD1q2sCvclYGGtk6clTZEIth12i4SvvvDC04ZNcHe3uQuNtBUFcAk7sHUwAdYvffM2aZis/jpZqrm1rDGk1NHYsheD6DroF+m3jZ5Izh/LxRjzZJfaHHejfrn5InFoSqErfPm4gY=',
|
|
20
|
-
mode:'form', //默认模式 form:表单模式,design:设计模式
|
|
21
|
-
pdfUrl:'https://www.x-emr.cn/pdf/post', //pdf生成服务
|
|
22
|
-
dictionary: [ //知识库
|
|
23
|
-
{name: '体征', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
24
|
-
{name: '症状', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
25
|
-
{name: '卫生信息数据元', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=40', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
26
|
-
{name: '电子病历数据集', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=50', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
27
|
-
{name: '国家医保标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=80', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
28
|
-
{name: '省数据平台标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=90', itemUrl:'https://www.x-emr.cn/dictitem'},
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//从模块的Editor组件中获取mode,doc,lang属性 (该段代码可删除)
|
|
33
|
-
let mode = window.frameElement.getAttribute('mode')
|
|
34
|
-
let doc = window.frameElement.getAttribute('doc')
|
|
35
|
-
let lang = window.frameElement.getAttribute('lang')
|
|
36
|
-
mode? option.mode = mode: null
|
|
37
|
-
lang? option.lang = lang: null
|
|
38
|
-
|
|
39
|
-
//初始化编辑器(初始化代码可以放入组件的load事件中)
|
|
40
|
-
editor.init(option).then(()=>{
|
|
41
|
-
doc? editor.loadUrl(doc) : null
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
})
|
|
45
|
-
</script>
|
|
46
|
-
</head>
|
|
47
|
-
<body>
|
|
48
|
-
<!-- 默认id 为editor -->
|
|
49
|
-
<div id="editor" style="width:100%; height:100%;"></div>
|
|
50
|
-
</body>
|
|
51
|
-
</html>
|