apply-clients 3.3.222 → 3.4.2-FuGu-4

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.
Files changed (114) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +119 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +85 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +51 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dingding.html +23 -0
  18. package/index.html +1 -1
  19. package/package.json +4 -3
  20. package/src/AndroidApp.vue +18 -13
  21. package/src/App.vue +20 -20
  22. package/src/DingDingApp.vue +51 -0
  23. package/src/android.js +1 -1
  24. package/src/apply.js +75 -91
  25. package/src/applyAndroid.js +25 -54
  26. package/src/applyDingDing.js +12 -0
  27. package/src/components/android/AppOnetomany.vue +37 -21
  28. package/src/components/android/AppServiceView.vue +3 -7
  29. package/src/components/android/AppSign.vue +3 -3
  30. package/src/components/android/AppTakePic.vue +12 -13
  31. package/src/components/android/Process/AppExplorationUser.vue +88 -38
  32. package/src/components/android/Process/AppServiceControl.vue +87 -16
  33. package/src/components/android/Process/Processes/AppInstallationDetails.vue +90 -100
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  35. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  36. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  37. package/src/components/android/Supervisory/AppSupervisoryCart.vue +29 -23
  38. package/src/components/android/TaskGraph.vue +125 -0
  39. package/src/components/build/Install/ExplorationUser.vue +304 -0
  40. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  41. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  42. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  43. package/src/components/product/ApplyCharge/printCharge.vue +142 -0
  44. package/src/components/product/Function/InstallFunction.vue +11 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +29 -47
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +172 -6
  47. package/src/components/product/Onetomany.vue +105 -24
  48. package/src/components/product/Order/OrderApply.vue +30 -30
  49. package/src/components/product/Order/OrderApplyList.vue +78 -67
  50. package/src/components/product/Order/OrderMessage.vue +11 -88
  51. package/src/components/product/Process/ExplorationSelect.vue +176 -149
  52. package/src/components/product/Process/ExplorationUser.vue +95 -85
  53. package/src/components/product/Process/Processes/InstallationDetails.vue +440 -352
  54. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +35 -9
  55. package/src/components/product/Process/Processes/chargeManagement.vue +634 -638
  56. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  57. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  58. package/src/components/product/Process/Service/ServiceControl.vue +1241 -883
  59. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  60. package/src/components/product/ServiceView.vue +313 -423
  61. package/src/components/product/Stop/StopApply.vue +27 -25
  62. package/src/components/product/Stop/StopApplyList.vue +26 -11
  63. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +18 -349
  64. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -8
  65. package/src/components/product/Supervisory/SupervisoryList.vue +27 -47
  66. package/src/components/product/Supervisory/SupervisoryhCart.vue +32 -54
  67. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  68. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  69. package/src/dingding.js +20 -0
  70. package/src/expandcssAndroid.less +879 -362
  71. package/src/main.js +1 -1
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Order/ApplyOrder.vue +0 -141
  75. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  76. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  77. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  78. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  79. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  80. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  81. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  82. package/src/components/image/danwei.png +0 -0
  83. package/src/components/image/dizhi.png +0 -0
  84. package/src/components/image/dwg.jpg +0 -0
  85. package/src/components/image/name.png +0 -0
  86. package/src/components/image/phone.png +0 -0
  87. package/src/components/image/type.png +0 -0
  88. package/src/components/image/yasuobao.jpg +0 -0
  89. package/src/components/image/zaixiantousu1.png +0 -0
  90. package/src/components/image/zizhukaitong.png +0 -0
  91. package/src/components/image//346/210/221/347/232/204.png +0 -0
  92. package/src/components/product/Function/Inform.vue +0 -73
  93. package/src/components/product/Function/MarketSurvey.vue +0 -81
  94. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  95. package/src/components/product/Process/ShowBackReason.vue +0 -33
  96. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  97. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  98. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  99. package/src/components/product/VueUtils/Tree.vue +0 -330
  100. package/src/filiale/wuan/android.js +0 -0
  101. package/src/filiale/wuan/pc.js +0 -4
  102. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  103. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  105. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  106. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  107. package/src/filiale/yuchuan/android.js +0 -8
  108. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  109. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  110. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  111. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  112. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  113. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  114. package/src/filiale/yuchuan/pc.js +0 -13
@@ -1,414 +0,0 @@
1
- <template>
2
- <div class="col-sm-12 col-xs-12 p-10">
3
- <accordion one-at-a-time="true">
4
- <panel :header="selectdata.defname" :is-open="true" type="primary">
5
- <app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
6
- </panel>
7
- <!-- <panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">-->
8
- <!-- <app-take-pic :blobid="selectdata.f_process_id" type="手机照片" :defname="selectdata.defname" :isdelete="true" :istakepic="true"></app-take-pic>-->
9
- <!-- </panel>-->
10
- </accordion>
11
- </div>
12
- </template>
13
- <script>
14
- import Vue from 'vue'
15
- import {HttpResetClass} from 'vue-client'
16
- import {isEmpty} from '../../../../components/Util'
17
- // Date格式化
18
- Date.prototype.Format = function (fmt) {
19
- var o = {
20
- 'M+': this.getMonth() + 1, // 月份
21
- 'd+': this.getDate(), // 日
22
- 'H+': this.getHours(), // 小时
23
- 'm+': this.getMinutes(), // 分
24
- 's+': this.getSeconds(), // 秒
25
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
26
- 'S': this.getMilliseconds() // 毫秒
27
- }
28
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
29
- for (var k in o) {
30
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
31
- }
32
- return fmt
33
- }
34
- export default {
35
- title: '报建流程业务控制层',
36
- props: ['selectdata'],
37
- data () {
38
- return {
39
- json_datas: null,
40
- data: null,
41
- show_data: null,
42
- showview: false
43
- }
44
- },
45
- ready () {
46
- this.getApplyConfig()
47
- },
48
- methods: {
49
- async getApplyConfig() {
50
- let http = new HttpResetClass()
51
- let data = {
52
- workname: this.selectdata.processname
53
- }
54
-
55
- // let res = await this.$resetpost(
56
- // 'rs/logic/ApplyGetConfigs',
57
- // {data: data},
58
- // {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
59
- // )
60
-
61
- // this.json_datas = res.data
62
- this.json_datas = {"workflow_xmlfilename":"民用报建流程","activitys":[{"tables":["t_apply"],"buttons":[{"button_name":"保存"},{"button_name":"提交"}],"title":"现场勘察","fields":[{"field":"f_entry_name","readonly":true,"disabled":false,"label":"项目名称","type":"input","value":null,"required":true},{"field":"f_contact","readonly":true,"disabled":false,"label":"联系人","type":"input","required":true},{
63
- "label": "竣工时间",
64
- "type": "datepicker",
65
- "field": "f_completion_time",
66
- "placeholder": "请输入",
67
- "readonly": false,
68
- "required": true
69
- },{"field":"f_phone","readonly":true,"disabled":false,"label":"联系电话","type":"tel","required":true},{"field":"f_credentials","readonly":true,"options":[{"label":"身份证","value":"身份证"},{"label":"营业执照","value":"营业执照"}],"disabled":true,"label":"证件类型","placeholder":"请选择","type":"select","required":true},{"field":"f_idnumber","readonly":true,"disabled":false,"label":"证件号码","type":"input","required":true},{"field":"f_apply_type","readonly":true,"options":[{"label":"民用报建","value":"民用报建"},{"label":"非民用报建","value":"非民用报建"}],"disabled":true,"label":"报建类型","placeholder":"请选择","type":"select","required":true},{"field":"f_user_nature","readonly":true,"options":[{"label":"民用","value":"民用"},{"label":"非民用","value":"非民用"},{"label":"其他","value":"其他"}],"disabled":true,"label":"用户性质","placeholder":"请选择","type":"select","value":null,"required":true},{"field":"f_apply_count","readonly":true,"disabled":false,"label":"申请户数","type":"input","required":true},{"field":"f_order_address","readonly":true,"bootstraped":"","value_bootstraped":"","disabled":false,"label":"定位地址","type":"input","required":true},{"field":"f_installed_households","readonly":false,"disabled":false,"label":"安装户数","type":"input","required":true},{"field":"f_gas_nature","readonly":false,"options":[{"label":"民用单户","value":"民用单户"},{"label":"民用多户","value":"民用多户"}],"disabled":false,"label":"用气类型","placeholder":"请选择","type":"select","value":null,"required":true},{"field":"f_slice_area","readonly":false,"options":[{"label":"210国道西片区","value":"210国道西片区"},{"label":"长城路片区","value":"长城路片区"}],"disabled":false,"label":"片区","placeholder":"请选择","type":"select","value":null,"required":true},{"field":"f_survey_opinion","readonly":false,"disabled":false,"label":"勘察意见","type":"textarea","rows":2,"required":false},{"field":"f_design_company","readonly":false,"options":[{"label":"陕西省创天成工程技术有限公司","value":"陕西省创天成工程技术有限公司"},{"label":"陕西省燃气设计院有限公司","value":"陕西省燃气设计院有限公司"}],"disabled":false,"label":"设计单位","placeholder":"请选择","type":"select","value":null,"required":true},{"field":"f_designer_people","readonly":false,"options":[{"label":"程智","value":"程智"},{"label":"张强","value":"张强"}],"disabled":false,"label":"设计人","placeholder":"请选择","type":"select","value":null,"required":true},{"field":"f_design_opinion","readonly":false,"disabled":false,"label":"报建备注","type":"textarea","rows":2,"required":false},{"field":"f_apply_remarks","readonly":true,"disabled":false,"label":"报建备注","type":"textarea","rows":2,"required":false}]},{"tables":["t_apply"],"title":"完工","fields":[{"field":"f_successful","disabled":true,"label":"完工","type":"input","value":"---success---"}]}],"start_activity":"信息确认"}
70
-
71
- let sum = 0
72
- let jsonData = {}
73
- if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
74
- this.$showMessage("网络故障,请刷新页面")
75
- return
76
- }
77
-
78
- for (let i = 0; i < this.json_datas.activitys.length; i++) {
79
- if (this.selectdata.defname === this.json_datas.activitys[i].title) {
80
- jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
81
- sum++ // 节点名一样的个数
82
- }
83
- }
84
- if (sum === 1) {
85
- this.data = null
86
- this.data = jsonData
87
- // selectdata 填充 data
88
- this.data = Object.assign({}, this.data, this.selectdata)
89
- this.initializeJSON()
90
- } else if (sum === 0) {
91
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
92
- } else {
93
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
94
- }
95
- },
96
- // json配置数据处理
97
- async initializeJSON() {
98
- // 有默认值,value就给默认值,没有就是null
99
- this.data.fields.forEach(item => {
100
- if (!item.value) {
101
- if (item.value === 0) {
102
- item.value = 0
103
- } else {
104
- item.value = null
105
- }
106
- }
107
- if (item.default || item.default === 0) {
108
- item.value = item.default
109
- }
110
- if (this.selectdata[item.field]) {
111
- // 将json字符串格式化赋值给value
112
- if (String(this.selectdata[item.field]).startsWith("{")) {
113
- item.value = JSON.parse(this.selectdata[item.field])
114
- this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
115
- } else {
116
- item.value = this.selectdata[item.field]
117
- }
118
- } else {
119
- if (this.selectdata[item.field] === 0) {
120
- item.value = 0
121
- }
122
- }
123
-
124
- // datepicker 没有值给当时值
125
- if (item.type === 'datepicker' && !item.value && item.default) {
126
- item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
127
- }
128
-
129
- // 如果配置类型为select,优先从参数列表获取options
130
- if (item.type === 'select') {
131
- let temp = null
132
-
133
- temp = this.$appdata.getParam(item.label)
134
-
135
- if (temp && temp.length > 0 && item.label) {
136
- item.options = temp
137
- } else {
138
- if (item.paramLabel) {
139
- temp = this.$appdata.getParam(item.paramLabel)
140
- if (temp && temp.length > 0) {
141
- item.options = temp
142
- }
143
- }
144
- }
145
- }
146
- })
147
-
148
- // 控制组件
149
- if (this.data.components) {
150
- this.data.components.forEach(item => {
151
- item.mark = 0
152
- })
153
- }
154
-
155
- // 初始化 buttons_fields
156
- for (let i = 0; i < this.data.buttons.length; i++) {
157
- // 下发按钮相关配置
158
- if (this.data.buttons[i].button_name === '下发') {
159
- if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
160
- if (this.data.buttons[i].source){
161
- let http = new HttpResetClass()
162
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {
163
- source: this.data.buttons[i].source,
164
- userid: Vue.user.id
165
- }, {resolveMsg: null, rejectMsg: null})
166
-
167
- let options = []
168
- for (let i = 0; i < res.data.length; i++) {
169
- options.push(
170
- {
171
- "label": res.data[i].name,
172
- "value": res.data[i].id
173
- }
174
- )
175
- }
176
- this.data.buttons[i].button_fields[0]['options'] = options
177
- } else {
178
- this.$showMessage("请配置获取人员表达式")
179
- }
180
- } else {
181
- this.$showMessage("下发按钮必须满足 当且仅当一个字段")
182
- }
183
- }
184
- if (this.data.buttons[i].button_fields) {
185
- this.data.buttons[i].button_fields.forEach(item => {
186
- // 如果配置类型为select,优先从参数列表获取options
187
- if (item.type === 'select' && this.$appdata.getParam(item.label)) {
188
- item.options = this.$appdata.getParam(item.label)
189
- }
190
- })
191
- }
192
- }
193
-
194
- // onetomany 数据获取
195
- if (this.data.onetomany) {
196
- for (let index = 0; index < this.data.onetomany.length; index++) {
197
- let res = null
198
- if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
199
- let http = new HttpResetClass()
200
- let data = {
201
- tablename: this.data.onetomany[index].tables[0],
202
- condition: `${this.data.onetomany[index].condition ? this.data.onetomany[index].condition : '1=1'} and f_process_id = '${this.selectdata.f_process_id}'`
203
- }
204
- res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
205
- resolveMsg: null,
206
- rejectMsg: 'onetomany查询失败'
207
- })
208
- } else {
209
- res = await this[this.data.onetomany[index].queryEvent]()
210
- }
211
-
212
- // 初始化 onetomany
213
- this.data.onetomany[index].rows = res.data
214
-
215
- // 初始化onetomany中的fields
216
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
217
- if (!this.data.onetomany[index].fields[j].value) {
218
- if (this.data.onetomany[index].fields[j].value === 0) {
219
- this.data.onetomany[index].fields[j].value = 0
220
- } else {
221
- this.data.onetomany[index].fields[j].value = null
222
- }
223
- }
224
- if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default === 0) {
225
- this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
226
- }
227
- // 如果配置类型为select,优先从参数列表获取options
228
- if (this.data.onetomany[index].fields[j].type === 'select') {
229
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
230
- if (temp && temp.length > 0) {
231
- this.data.onetomany[index].fields[j].options = temp
232
- }
233
- }
234
- }
235
- }
236
- }
237
-
238
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
239
- let temp = JSON.parse(JSON.stringify(this.data))
240
-
241
- this.show_data = temp
242
- this.$nextTick(() => {
243
- this.showview = true
244
- })
245
- },
246
- async buttonBefore(model) {
247
- return model
248
- },
249
- async checkDuplicate(index) {
250
- let http = new HttpResetClass()
251
- let data = {
252
- tablename: 't_apply',
253
- condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
254
- }
255
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
256
- resolveMsg: null,
257
- rejectMsg: `${this.show_data.fields[index].label}查询失败`
258
- })
259
- if (res.data.length > 0) {
260
- this.show_data.fields[index].value = null
261
- throw `${this.show_data.fields[index].label}已存在!!!`
262
- }
263
- }
264
- },
265
- events: {
266
- async 'initializtionView'() {
267
- },
268
- // 失去焦点出触发事件
269
- async 'onchange'(index) {
270
- // 号码检测
271
- if (this.show_data.fields[index].label === '电话号码') {
272
- let phone = this.show_data.fields[index].value
273
- // 电话号码效验
274
- if (!(/^1[3456789]\d{9}$/.test(phone))) {
275
- this.show_data.fields[index].value = ""
276
- this.$showMessage("电话号码格式不正确,请重新输入!!!")
277
- }
278
- }
279
- },
280
- // 获取view层button事件/
281
- async 'button'(model) {
282
- // 修改提交数据
283
- model = Object.assign({}, this.selectdata, model)
284
- // 点击重置按钮就重置数据
285
- if (model.button.button_name === '重置') {
286
- this.breakControl()
287
- return
288
- }
289
-
290
- // 提交前置
291
- try {
292
- model = await this.buttonBefore(model)
293
- } catch (e) {
294
- this.$showMessage(e)
295
- return
296
- }
297
-
298
- let http = new HttpResetClass()
299
- let requestData = {
300
- tables: this.data.tables,
301
- start_activity: this.json_datas.start_activity,
302
- model: model,
303
- loginUser: Vue.user,
304
- // loginUser: {"parentname":"生产经营部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-business","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"183299","name":"流程业务","templatename":"functionedit","id":"183298","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.流程业务","fullid":"3.17.21.183292.183298","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-process-supervisory","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"188532","name":"流程监控","templatename":"functionedit","id":"188531","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.流程监控","fullid":"3.17.21.183292.188531","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","link":"ledger-install-function","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[],"selfid":"196444","name":"功能业务","templatename":"functionedit","id":"196443","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.功能业务","fullid":"3.17.21.183292.196443","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"purchase-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188550","name":"采购合同","templatename":"functionedit","id":"188549","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.采购合同","fullid":"3.17.21.183292.188543.188549","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"repair-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188658","name":"维修合同","templatename":"functionedit","id":"188657","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.维修合同","fullid":"3.17.21.183292.188543.188657","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"合同管理","link":"other-contract","hasright":true,"resourcetype":"function","parentid":"188543","f_parentname":"合同管理","children":[],"selfid":"188664","name":"其他合同","templatename":"functionedit","id":"188663","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理.其他合同","fullid":"3.17.21.183292.188543.188663","tablename":"t_function"}],"selfid":"188544","name":"合同管理","templatename":"functionedit","id":"188543","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.合同管理","fullid":"3.17.21.183292.188543","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"inventory-information","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188640","name":"材料库存","templatename":"functionedit","id":"188639","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.材料库存","fullid":"3.17.21.183292.188627.188639","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"warehousing-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188646","name":"入库记录","templatename":"functionedit","id":"188645","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.入库记录","fullid":"3.17.21.183292.188627.188645","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"delivery-record","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"188652","name":"出库记录","templatename":"functionedit","id":"188651","position":"3","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库记录","fullid":"3.17.21.183292.188627.188651","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"材料管理","link":"outbound-order","hasright":true,"resourcetype":"function","parentid":"188627","f_parentname":"材料管理","children":[],"selfid":"198662","name":"出库单记录","templatename":"functionedit","id":"198661","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理.出库单记录","fullid":"3.17.21.183292.188627.198661","tablename":"t_function"}],"selfid":"188628","name":"材料管理","templatename":"functionedit","id":"188627","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.材料管理","fullid":"3.17.21.183292.188627","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"picking-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238284","name":"领料记录","templatename":"functionedit","id":"238283","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.领料记录","fullid":"3.17.21.183292.238277.238283","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"秦华物料","link":"seasoning-record","hasright":true,"resourcetype":"function","parentid":"238277","f_parentname":"秦华物料","children":[],"selfid":"238290","name":"调料记录","templatename":"functionedit","id":"238289","position":"2","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料.调料记录","fullid":"3.17.21.183292.238277.238289","tablename":"t_function"}],"selfid":"238278","name":"秦华物料","templatename":"functionedit","id":"238277","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.秦华物料","fullid":"3.17.21.183292.238277","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"台账系统","hasright":true,"resourcetype":"function","parentid":"183292","f_parentname":"台账系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"facility-inventory","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189114","name":"设备库存","templatename":"functionedit","id":"189113","position":"1","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.设备库存","fullid":"3.17.21.183292.188633.189113","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"employ-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"257321","name":"使用记录","templatename":"functionedit","id":"257320","position":"4","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.使用记录","fullid":"3.17.21.183292.188633.257320","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"service-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189102","name":"维修记录","templatename":"functionedit","id":"189101","position":"5","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.维修记录","fullid":"3.17.21.183292.188633.189101","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"设备管理","link":"scrap-record","hasright":true,"resourcetype":"function","parentid":"188633","f_parentname":"设备管理","children":[],"selfid":"189108","name":"报废记录","templatename":"functionedit","id":"189107","position":"6","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理.报废记录","fullid":"3.17.21.183292.188633.189107","tablename":"t_function"}],"selfid":"188634","name":"设备管理","templatename":"functionedit","id":"188633","position":"7","fullname":"资源管理.功能模块.客服系统.台账系统.设备管理","fullid":"3.17.21.183292.188633","tablename":"t_function"}],"selfid":"183293","name":"台账系统","templatename":"functionedit","id":"183292","position":"27","fullname":"资源管理.功能模块.客服系统.台账系统","fullid":"3.17.21.183292","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=1015-1622454565681-74540","rolesnames":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","roles":"178650,178656,178662,178668,178674,178680","f_sex":"男","f_icon":"tree_user","fullnames":"西安市天然气工程有限责任公司.生产经营部.台账测试","dir":"qinhuagongcheng","accesstime":"1625456996393","userid":"1015-1622454565681-74540","parentid":"178638","fullids":"178632.178638.178686.","selfid":"178687","templatename":"useredit","logindate":"2021-06-08 16:11:44.527","id":"178686","state":"在职","tablename":"t_user","deptype":"部门","depids":"178638","loginid":"11","initpassword":"1","rolestr":"结算组,预决算组,生产组,设备材料组,主体项目部,客户项目部","deps":"生产经营部","loginnum":"0","resourcetype":"user","orgid":"178632","f_department_name":"生产经营部","ename":"tzcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.243","name":"台账测试","position":"1","orgs":"西安市天然气工程有限责任公司","f_role_name":"结算组 预决算组 生产组 设备材料组 主体项目部 客户项目部 ","f_allArea":[],"f_gasman":[],"lics":[]},
305
- workflow_xmlfilename: this.json_datas.workflow_xmlfilename
306
- }
307
- // 下发,提交,保存,退回通用业务后台处理logic
308
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
309
- // let res = await http.load('POST', `rs/logic/ApplyProductService`, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
310
-
311
- if (res.data.code === 200) {
312
- this.$dispatch('confirm')
313
- } else {
314
- if (res.data.msg) {
315
- this.$showMessage(res.data.msg)
316
- }
317
- }
318
- },
319
-
320
- // onetomany模态框默认监听监听事件
321
- async 'onetomanydelete'(i, j) {
322
- console.log('默认删除')
323
- let http = new HttpResetClass()
324
- let data = {
325
- table: this.show_data.onetomany[i].tables[0],
326
- row: this.show_data.onetomany[i].rows[j]
327
- }
328
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/onetomanyDefaultDeleteEvent`, {data: data}, {
329
- resolveMsg: null,
330
- rejectMsg: '删除失败'
331
- })
332
-
333
- if (res.data <= 0){
334
- this.$showMessage('删除失败')
335
- return
336
- }
337
-
338
- this.breakControl()
339
- },
340
- async 'onetomanyadd'(index) {
341
-
342
- let data = {
343
- f_process_id : this.show_data.f_process_id
344
- }
345
- this.show_data.onetomany[index].fields.forEach(item => {
346
- data[item.field] = item.value
347
- })
348
- let res = await this.$resetpost(
349
- `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[index].tables[0]}`,
350
- data
351
- )
352
-
353
- this.breakControl()
354
- },
355
- async 'onetomanyupdate'(i, j) {
356
- let onetomany = this.show_data.onetomany[i]
357
- let data = onetomany.rows[j]
358
-
359
- onetomany.fields.forEach(item => {
360
- data[item.field] = item.value
361
- })
362
- let res = await this.$resetpost(
363
- `${this.$androidUtil.getProxyUrl()}/rs/entity/${this.show_data.onetomany[i].tables[0]}`,
364
- data
365
- )
366
-
367
- this.breakControl()
368
- },
369
- // onetomany模态框监听事件
370
- async 'onchange_modal'(index, i) {
371
- },
372
- async 'oninput_modal'(index, i) {
373
- },
374
- error_check(index) {
375
- // 时间格式检测
376
- if (this.show_data.fields[index].type === 'datepicker' && !isEmpty(this.show_data.fields[index].value)) {
377
-
378
- let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
379
- let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
380
- let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
381
- if (this.show_data.fields[index].format) {
382
- if (this.show_data.fields[index].format === 'yyyy-MM-dd') {
383
- if (!dateReg.test(this.show_data.fields[index].value)) {
384
- this.show_data.fields[index].value = ''
385
- this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
386
- }
387
- }
388
- if (this.show_data.fields[index].format === 'HH:mm:ss') {
389
- if (!timeReg.test(this.show_data.fields[index].value)) {
390
- this.show_data.fields[index].value = ''
391
- this.$showMessage(this.show_data.fields[index].label + '格式错误如:00:00:00')
392
- }
393
- }
394
- if (this.show_data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
395
- if (!datetimeReg.test(this.show_data.fields[index].value)) {
396
- this.show_data.fields[index].value = ''
397
- this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01 00:00:00')
398
- }
399
- }
400
- } else {
401
- if (!dateReg.test(this.show_data.fields[index].value)) {
402
- this.show_data.fields[index].value = ''
403
- this.$showMessage(this.show_data.fields[index].label + '格式错误如:2021-01-01')
404
- }
405
- }
406
- }
407
- },
408
- },
409
- watch: {
410
- }
411
- }
412
- </script>
413
- <style scoped>
414
- </style>