apply-clients 3.3.16 → 3.3.17
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/index.html +33 -33
- package/package.json +1 -1
- package/src/AndroidApp.vue +30 -30
- package/src/android.js +21 -21
- package/src/apply.js +3 -6
- package/src/applyAndroid.js +35 -35
- package/src/components/android/AppOnetomany.vue +285 -285
- package/src/components/android/AppServiceView.vue +570 -570
- package/src/components/android/AppTakePic.vue +143 -143
- package/src/components/android/Function/AppFunctionServiceControl.vue +329 -329
- package/src/components/android/Function/AppInstallFunction.vue +327 -327
- package/src/components/android/Process/AppExplorationUser.vue +268 -268
- package/src/components/android/Process/AppServiceControl.vue +711 -686
- package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +490 -490
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +466 -466
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +261 -261
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +265 -265
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
- package/src/components/product/Function/InstallFunction.vue +122 -122
- package/src/components/product/Function/InstallInfoSelect.vue +289 -289
- package/src/components/product/Function/Service/FunctionServiceControl.vue +254 -254
- package/src/components/product/Onetomany.vue +296 -296
- package/src/components/product/Order/OrderApply.vue +47 -47
- package/src/components/product/Order/OrderApplyList.vue +62 -62
- package/src/components/product/Order/OrderMessage.vue +237 -237
- package/src/components/product/Process/ExplorationSelect.vue +145 -143
- package/src/components/product/Process/ExplorationUser.vue +128 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +421 -352
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/{printCharge.vue → Print/printCharge.vue} +139 -121
- package/src/components/product/Process/Processes/Print/printRefund.vue +193 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +181 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -639
- package/src/components/product/Process/Processes/devicesManagement.vue +458 -458
- package/src/components/product/Process/Processes/selectApply.vue +250 -250
- package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
- package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
- package/src/components/product/Process/Service/ServiceControl.vue +916 -810
- package/src/components/product/Process/ShowBackReason.vue +33 -33
- package/src/components/product/ServiceView.vue +301 -307
- package/src/components/product/Stop/StopApplyList.vue +254 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +512 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
- package/src/components/product/Supervisory/SupervisoryList.vue +226 -226
- package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
- package/src/main.js +23 -23
- package/src/components/product/Function/Inform.vue +0 -74
- package/src/components/product/Function/MarketSurvey.vue +0 -80
|
@@ -1,254 +1,254 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
|
|
3
|
-
</template>
|
|
4
|
-
<script>
|
|
5
|
-
import {HttpResetClass} from 'vue-client'
|
|
6
|
-
import Vue from 'vue'
|
|
7
|
-
export default {
|
|
8
|
-
title: '报建功能业务控制层',
|
|
9
|
-
props: ['selectdata'],
|
|
10
|
-
data () {
|
|
11
|
-
return {
|
|
12
|
-
show_data: null, // 给通用页面显示的数据
|
|
13
|
-
showview: false // 控制通用页面
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
ready () {
|
|
17
|
-
this.refurbish()
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
async refurbish () {
|
|
21
|
-
// fields 字段填充值
|
|
22
|
-
for (const item of this.selectdata.fields) {
|
|
23
|
-
if (!item.value) {
|
|
24
|
-
item.value = null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
28
|
-
if (item.eval) {
|
|
29
|
-
item.value = eval(item.default)
|
|
30
|
-
} else {
|
|
31
|
-
item.value = item.default
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (this.selectdata[item.field]) {
|
|
36
|
-
// 将json字符串格式化赋值给value
|
|
37
|
-
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
38
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
39
|
-
} else {
|
|
40
|
-
item.value = this.selectdata[item.field]
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
if (this.selectdata[item.field] === 0) {
|
|
44
|
-
item.value = 0
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// datepicker
|
|
48
|
-
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
49
|
-
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// 如果配置类型为select,优先从参数列表获取options
|
|
53
|
-
if (item.type === 'select' || item.type === 'checkbox') {
|
|
54
|
-
if (item.param) {
|
|
55
|
-
let temp = this.$appdata.getParam(item.label)
|
|
56
|
-
|
|
57
|
-
if (temp && temp.length > 0) {
|
|
58
|
-
item.options = temp
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (item.paramLabel) {
|
|
62
|
-
temp = this.$appdata.getParam(item.paramLabel)
|
|
63
|
-
if (temp && temp.length > 0) {
|
|
64
|
-
item.options = temp
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (item.ready) {
|
|
70
|
-
item.options = await this[item.ready]()
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (item.type === 'checkbox') {
|
|
76
|
-
if (this.selectdata[item.field]) {
|
|
77
|
-
item.value = JSON.parse(this.selectdata[item.field])
|
|
78
|
-
} else {
|
|
79
|
-
item.value = []
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 控制组件
|
|
85
|
-
if (this.selectdata.components) {
|
|
86
|
-
this.selectdata.components.forEach(item => {
|
|
87
|
-
item.mark = 2
|
|
88
|
-
})
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// 初始化onetomany
|
|
92
|
-
if (this.selectdata.onetomany) {
|
|
93
|
-
for (const item of this.selectdata.onetomany) {
|
|
94
|
-
let res = null
|
|
95
|
-
if (item.queryEvent) {
|
|
96
|
-
res = this[item.queryEvent]()
|
|
97
|
-
} else {
|
|
98
|
-
let data = {
|
|
99
|
-
tablename: item.tables[0],
|
|
100
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
101
|
-
}
|
|
102
|
-
res = await this.$resetpost(
|
|
103
|
-
'rs/sql/singleTable',
|
|
104
|
-
{data: data},
|
|
105
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
item.rows = res.data
|
|
110
|
-
|
|
111
|
-
// 初始化onetomany中的fields
|
|
112
|
-
for (const field of item.fields) {
|
|
113
|
-
if (!field.value) {
|
|
114
|
-
if (field.value !== 0) {
|
|
115
|
-
field.value = null
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (field.default || field.default === 0) {
|
|
120
|
-
field.value = field.default
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// datepicker
|
|
124
|
-
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
125
|
-
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (field.type === 'select') {
|
|
129
|
-
let temp = this.$appdata.getParam(field.label)
|
|
130
|
-
|
|
131
|
-
if (temp && temp.length > 0) {
|
|
132
|
-
field.options = temp
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (field.paramLabel) {
|
|
136
|
-
temp = this.$appdata.getParam(field.paramLabel)
|
|
137
|
-
if (temp && temp.length > 0) {
|
|
138
|
-
item.options = temp
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
147
|
-
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
148
|
-
|
|
149
|
-
this.show_data = temp
|
|
150
|
-
this.$nextTick(() => {
|
|
151
|
-
this.showview = true
|
|
152
|
-
})
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
events: {
|
|
156
|
-
async 'stopApply' () {
|
|
157
|
-
|
|
158
|
-
let data = {
|
|
159
|
-
data: this.show_data,
|
|
160
|
-
user: this.$login.f
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
let res = await this.$resetpost(
|
|
164
|
-
`rs/logic/stopApply`,
|
|
165
|
-
{data: data},
|
|
166
|
-
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
this.$dispatch('search')
|
|
170
|
-
},
|
|
171
|
-
async 'pauseApply' () {
|
|
172
|
-
|
|
173
|
-
let data = {
|
|
174
|
-
data: this.show_data,
|
|
175
|
-
user: this.$login.f
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
let res = await this.$resetpost(
|
|
179
|
-
`rs/logic/pauseApply`,
|
|
180
|
-
{data: data},
|
|
181
|
-
{resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
|
|
182
|
-
)
|
|
183
|
-
|
|
184
|
-
this.$dispatch('search')
|
|
185
|
-
},
|
|
186
|
-
// 获取view层button事件
|
|
187
|
-
async 'button' (){
|
|
188
|
-
|
|
189
|
-
let res = await this.$resetpost(
|
|
190
|
-
`rs/entity/t_apply`,
|
|
191
|
-
this.show_data,
|
|
192
|
-
{resolveMsg: null, rejectMsg: '数据保存失败!!!'}
|
|
193
|
-
)
|
|
194
|
-
|
|
195
|
-
this.$dispatch('search')
|
|
196
|
-
},
|
|
197
|
-
// 失去焦点出触发事件
|
|
198
|
-
'onchange' (index) {
|
|
199
|
-
},
|
|
200
|
-
'onblur' (index) {},
|
|
201
|
-
'oninput' (index) {},
|
|
202
|
-
'initializtionView' () {},
|
|
203
|
-
async 'onchangeModal' (index, fieldIndex) {
|
|
204
|
-
},
|
|
205
|
-
async 'onblurModal' (index, fieldIndex) {
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
async 'oninputModal' (index, fieldIndex) {
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
async 'onetomanydelete' (index, rowIndex) {
|
|
212
|
-
|
|
213
|
-
let http = new HttpResetClass()
|
|
214
|
-
|
|
215
|
-
let res = await http.load(
|
|
216
|
-
'DELETE',
|
|
217
|
-
`rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
218
|
-
null,
|
|
219
|
-
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
220
|
-
)
|
|
221
|
-
|
|
222
|
-
this.$dispatch('breakControl', this.show_data)
|
|
223
|
-
},
|
|
224
|
-
async 'onetomanyupdate' (index, rowIndex) {
|
|
225
|
-
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
226
|
-
|
|
227
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
228
|
-
data[item.field] = item.value
|
|
229
|
-
})
|
|
230
|
-
let res = await this.$resetpost(
|
|
231
|
-
`rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
232
|
-
data
|
|
233
|
-
)
|
|
234
|
-
|
|
235
|
-
this.$dispatch('breakControl', this.show_data)
|
|
236
|
-
},
|
|
237
|
-
async 'onetomanyadd' (index) {
|
|
238
|
-
let data = {
|
|
239
|
-
f_process_id : this.show_data.f_process_id
|
|
240
|
-
}
|
|
241
|
-
this.show_data.onetomany[index].fields.forEach(item => {
|
|
242
|
-
data[item.field] = item.value
|
|
243
|
-
})
|
|
244
|
-
let res = await this.$resetpost(
|
|
245
|
-
`rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
246
|
-
data
|
|
247
|
-
)
|
|
248
|
-
this.$dispatch('breakControl', this.show_data)
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
watch:{
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
import {HttpResetClass} from 'vue-client'
|
|
6
|
+
import Vue from 'vue'
|
|
7
|
+
export default {
|
|
8
|
+
title: '报建功能业务控制层',
|
|
9
|
+
props: ['selectdata'],
|
|
10
|
+
data () {
|
|
11
|
+
return {
|
|
12
|
+
show_data: null, // 给通用页面显示的数据
|
|
13
|
+
showview: false // 控制通用页面
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
ready () {
|
|
17
|
+
this.refurbish()
|
|
18
|
+
},
|
|
19
|
+
methods: {
|
|
20
|
+
async refurbish () {
|
|
21
|
+
// fields 字段填充值
|
|
22
|
+
for (const item of this.selectdata.fields) {
|
|
23
|
+
if (!item.value) {
|
|
24
|
+
item.value = null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
|
|
28
|
+
if (item.eval) {
|
|
29
|
+
item.value = eval(item.default)
|
|
30
|
+
} else {
|
|
31
|
+
item.value = item.default
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (this.selectdata[item.field]) {
|
|
36
|
+
// 将json字符串格式化赋值给value
|
|
37
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
38
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
39
|
+
} else {
|
|
40
|
+
item.value = this.selectdata[item.field]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (this.selectdata[item.field] === 0) {
|
|
44
|
+
item.value = 0
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// datepicker
|
|
48
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
49
|
+
item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
53
|
+
if (item.type === 'select' || item.type === 'checkbox') {
|
|
54
|
+
if (item.param) {
|
|
55
|
+
let temp = this.$appdata.getParam(item.label)
|
|
56
|
+
|
|
57
|
+
if (temp && temp.length > 0) {
|
|
58
|
+
item.options = temp
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (item.paramLabel) {
|
|
62
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
63
|
+
if (temp && temp.length > 0) {
|
|
64
|
+
item.options = temp
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (item.ready) {
|
|
70
|
+
item.options = await this[item.ready]()
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if (item.type === 'checkbox') {
|
|
76
|
+
if (this.selectdata[item.field]) {
|
|
77
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
78
|
+
} else {
|
|
79
|
+
item.value = []
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 控制组件
|
|
85
|
+
if (this.selectdata.components) {
|
|
86
|
+
this.selectdata.components.forEach(item => {
|
|
87
|
+
item.mark = 2
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// 初始化onetomany
|
|
92
|
+
if (this.selectdata.onetomany) {
|
|
93
|
+
for (const item of this.selectdata.onetomany) {
|
|
94
|
+
let res = null
|
|
95
|
+
if (item.queryEvent) {
|
|
96
|
+
res = this[item.queryEvent]()
|
|
97
|
+
} else {
|
|
98
|
+
let data = {
|
|
99
|
+
tablename: item.tables[0],
|
|
100
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
101
|
+
}
|
|
102
|
+
res = await this.$resetpost(
|
|
103
|
+
'rs/sql/singleTable',
|
|
104
|
+
{data: data},
|
|
105
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
item.rows = res.data
|
|
110
|
+
|
|
111
|
+
// 初始化onetomany中的fields
|
|
112
|
+
for (const field of item.fields) {
|
|
113
|
+
if (!field.value) {
|
|
114
|
+
if (field.value !== 0) {
|
|
115
|
+
field.value = null
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (field.default || field.default === 0) {
|
|
120
|
+
field.value = field.default
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// datepicker
|
|
124
|
+
if (field.type === 'datepicker' && !field.value && field.default) {
|
|
125
|
+
field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (field.type === 'select') {
|
|
129
|
+
let temp = this.$appdata.getParam(field.label)
|
|
130
|
+
|
|
131
|
+
if (temp && temp.length > 0) {
|
|
132
|
+
field.options = temp
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (field.paramLabel) {
|
|
136
|
+
temp = this.$appdata.getParam(field.paramLabel)
|
|
137
|
+
if (temp && temp.length > 0) {
|
|
138
|
+
item.options = temp
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
147
|
+
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
148
|
+
|
|
149
|
+
this.show_data = temp
|
|
150
|
+
this.$nextTick(() => {
|
|
151
|
+
this.showview = true
|
|
152
|
+
})
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
events: {
|
|
156
|
+
async 'stopApply' () {
|
|
157
|
+
|
|
158
|
+
let data = {
|
|
159
|
+
data: this.show_data,
|
|
160
|
+
user: this.$login.f
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let res = await this.$resetpost(
|
|
164
|
+
`rs/logic/stopApply`,
|
|
165
|
+
{data: data},
|
|
166
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
this.$dispatch('search')
|
|
170
|
+
},
|
|
171
|
+
async 'pauseApply' () {
|
|
172
|
+
|
|
173
|
+
let data = {
|
|
174
|
+
data: this.show_data,
|
|
175
|
+
user: this.$login.f
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
let res = await this.$resetpost(
|
|
179
|
+
`rs/logic/pauseApply`,
|
|
180
|
+
{data: data},
|
|
181
|
+
{resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
this.$dispatch('search')
|
|
185
|
+
},
|
|
186
|
+
// 获取view层button事件
|
|
187
|
+
async 'button' (){
|
|
188
|
+
|
|
189
|
+
let res = await this.$resetpost(
|
|
190
|
+
`rs/entity/t_apply`,
|
|
191
|
+
this.show_data,
|
|
192
|
+
{resolveMsg: null, rejectMsg: '数据保存失败!!!'}
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
this.$dispatch('search')
|
|
196
|
+
},
|
|
197
|
+
// 失去焦点出触发事件
|
|
198
|
+
'onchange' (index) {
|
|
199
|
+
},
|
|
200
|
+
'onblur' (index) {},
|
|
201
|
+
'oninput' (index) {},
|
|
202
|
+
'initializtionView' () {},
|
|
203
|
+
async 'onchangeModal' (index, fieldIndex) {
|
|
204
|
+
},
|
|
205
|
+
async 'onblurModal' (index, fieldIndex) {
|
|
206
|
+
|
|
207
|
+
},
|
|
208
|
+
async 'oninputModal' (index, fieldIndex) {
|
|
209
|
+
|
|
210
|
+
},
|
|
211
|
+
async 'onetomanydelete' (index, rowIndex) {
|
|
212
|
+
|
|
213
|
+
let http = new HttpResetClass()
|
|
214
|
+
|
|
215
|
+
let res = await http.load(
|
|
216
|
+
'DELETE',
|
|
217
|
+
`rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
|
|
218
|
+
null,
|
|
219
|
+
{resolveMsg: null, rejectMsg: '删除失败!!!'}
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
this.$dispatch('breakControl', this.show_data)
|
|
223
|
+
},
|
|
224
|
+
async 'onetomanyupdate' (index, rowIndex) {
|
|
225
|
+
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
226
|
+
|
|
227
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
228
|
+
data[item.field] = item.value
|
|
229
|
+
})
|
|
230
|
+
let res = await this.$resetpost(
|
|
231
|
+
`rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
232
|
+
data
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
this.$dispatch('breakControl', this.show_data)
|
|
236
|
+
},
|
|
237
|
+
async 'onetomanyadd' (index) {
|
|
238
|
+
let data = {
|
|
239
|
+
f_process_id : this.show_data.f_process_id
|
|
240
|
+
}
|
|
241
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
242
|
+
data[item.field] = item.value
|
|
243
|
+
})
|
|
244
|
+
let res = await this.$resetpost(
|
|
245
|
+
`rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
246
|
+
data
|
|
247
|
+
)
|
|
248
|
+
this.$dispatch('breakControl', this.show_data)
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
watch:{
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
</script>
|