vue2-client 1.14.97 → 1.15.1
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/.env.message +19 -19
- package/package.json +109 -109
- package/src/base-client/components/common/XFormTable/XFormTable.vue +2 -2
- package/src/base-client/components/common/XFormTable/demo.vue +86 -86
- package/src/base-client/components/common/XTable/XTable.vue +1587 -1571
- package/src/base-client/components/common/XUploadFilesView/index.vue +485 -485
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +10 -14
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaireItem.vue +23 -47
- package/src/base-client/components/layout/XPageView/RenderRow.vue +88 -88
- package/src/base-client/components/layout/XPageView/XPageView.vue +223 -223
- package/src/base-client/components/layout/XPageView/XTab/XTab.vue +96 -96
- package/src/base-client/components/layout/XPageView/componentTypes.js +22 -22
- package/src/pages/WorkflowDetail/WorkFlowDemo2.vue +70 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue +388 -388
- package/src/pages/XPageViewExample/index.vue +149 -149
- package/src/router/async/router.map.js +127 -127
- package/vue.config.js +220 -220
@@ -30,6 +30,23 @@
|
|
30
30
|
>
|
31
31
|
</WorkflowDetail>
|
32
32
|
<address-select ref="addressSelect" @setAddress="setForm"></address-select>
|
33
|
+
<!-- 协议作废功能 -->
|
34
|
+
<a-modal
|
35
|
+
v-model="formState"
|
36
|
+
:dialog-style="{ top: '5rem' }"
|
37
|
+
:z-index="1001"
|
38
|
+
title="作废"
|
39
|
+
:destroyOnClose="true"
|
40
|
+
width="55vw">
|
41
|
+
<x-add-native-form
|
42
|
+
ref="xCancelForm"
|
43
|
+
@onSubmit="submit"
|
44
|
+
/>
|
45
|
+
<template #footer>
|
46
|
+
<a-button key="back" @click="formState = false">取消</a-button>
|
47
|
+
<a-button key="submit" type="primary" :loading="submitLoading" @click="formSubmit">确认</a-button>
|
48
|
+
</template>
|
49
|
+
</a-modal>
|
33
50
|
</a-card>
|
34
51
|
</template>
|
35
52
|
|
@@ -54,7 +71,10 @@ export default {
|
|
54
71
|
// 查询配置文件名
|
55
72
|
queryParamsName: 'applyCRUD',
|
56
73
|
// 发起报建弹框控制
|
57
|
-
applyAddFlag: false
|
74
|
+
applyAddFlag: false,
|
75
|
+
formState: false,
|
76
|
+
submitLoading: false,
|
77
|
+
cancelRecord: {}
|
58
78
|
}
|
59
79
|
},
|
60
80
|
computed: {
|
@@ -101,6 +121,55 @@ export default {
|
|
101
121
|
},
|
102
122
|
setForm (record) {
|
103
123
|
this.$refs.workFlow.setFormValue({ address: record.f_address })
|
124
|
+
},
|
125
|
+
// 协议作废
|
126
|
+
setCancel (record) {
|
127
|
+
this.cancelRecord = record
|
128
|
+
this.formState = true
|
129
|
+
this.$nextTick(() => {
|
130
|
+
getConfigByName('setCancelForm', 'af-apply', (config) => {
|
131
|
+
if (this.$refs.xCancelForm) {
|
132
|
+
this.$refs.xCancelForm.init({
|
133
|
+
formItems: config.formJson,
|
134
|
+
title: '补充协议作废',
|
135
|
+
businessType: '修改',
|
136
|
+
showSubmitBtn: false,
|
137
|
+
...config
|
138
|
+
})
|
139
|
+
if (this.$refs.xCancelForm) {
|
140
|
+
console.log(record)
|
141
|
+
// this.$refs.xCancelForm.setForm(recordData)
|
142
|
+
}
|
143
|
+
} else {
|
144
|
+
console.error('xCancelForm组件未加载完成')
|
145
|
+
// 延迟重试
|
146
|
+
setTimeout(() => {
|
147
|
+
this.setCancel(record)
|
148
|
+
}, 100)
|
149
|
+
}
|
150
|
+
})
|
151
|
+
})
|
152
|
+
},
|
153
|
+
async formSubmit () {
|
154
|
+
this.submitLoading = true
|
155
|
+
const formData = await this.$refs.xCancelForm.asyncSubmit()
|
156
|
+
try {
|
157
|
+
await this.submit(formData)
|
158
|
+
} catch (error) {
|
159
|
+
this.$message.error('表单验证失败,请检查填写内容')
|
160
|
+
} finally {
|
161
|
+
this.submitLoading = false
|
162
|
+
}
|
163
|
+
},
|
164
|
+
async submit (formData) {
|
165
|
+
const data = {
|
166
|
+
...formData,
|
167
|
+
}
|
168
|
+
console.log('==formData', data)
|
169
|
+
await runLogic('666', data, 'af-apply').then(() => {
|
170
|
+
this.$message.success('操作成功')
|
171
|
+
this.formState = false
|
172
|
+
})
|
104
173
|
}
|
105
174
|
}
|
106
175
|
}
|