apply-clients 5.0.361 → 6.0.3

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 (192) 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 +72 -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 +83 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +39 -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/dist-android/static/.gitkeep +0 -0
  18. package/dist-android/static/batchleft.png +0 -0
  19. package/dist-android/static/batchright.png +0 -0
  20. package/dist-android/static/bluemainbg.jpg +0 -0
  21. package/dist-android/static/huangtengbiaozhi.png +0 -0
  22. package/dist-android/static/login_bg.jpg +0 -0
  23. package/dist-android/static/login_title.png +0 -0
  24. package/dist-android/static/login_title1.png +0 -0
  25. package/dist-android/static/loginbg.jpg +0 -0
  26. package/dist-android/static/loginlogo.png +0 -0
  27. package/dist-android/static/main_logo.png +0 -0
  28. package/dist-android/static/mainbg.jpg +0 -0
  29. package/dist-android/static/menulogo.png +0 -0
  30. package/dist-android/static/newmainbg.jpg +0 -0
  31. package/dist-android/static/psicon.png +0 -0
  32. package/dist-android/static/singleleft.png +0 -0
  33. package/dist-android/static/singleright.png +0 -0
  34. package/dist-android/static/treeopen.png +0 -0
  35. package/dist-android/static/treeout.png +0 -0
  36. package/dist-android/static/treeset.png +0 -0
  37. package/dist-android/static/usericon.png +0 -0
  38. package/dist-android/static/xinxi.png +0 -0
  39. package/package.json +5 -10
  40. package/src/AndroidApp.vue +1 -1
  41. package/src/App.vue +0 -1
  42. package/src/apply.js +172 -104
  43. package/src/applyAndroid.js +0 -5
  44. package/src/assets/shipin1.mp4 +0 -0
  45. package/src/bootstrap/less/bootstrap.less +2 -1
  46. package/src/components/Hello.vue +39 -0
  47. package/src/components/Table.js +2 -2
  48. package/src/components/Test.vue +26 -0
  49. package/src/components/Util.js +6 -11
  50. package/src/components/app_apply/Acceptance.vue +2 -7
  51. package/src/components/app_apply/ApplyApp.vue +6 -16
  52. package/src/components/app_apply/ApplyInfo.vue +1 -1
  53. package/src/components/app_apply/ApplyListUpload.vue +3 -3
  54. package/src/components/app_apply/ApplyToDoList.vue +3 -3
  55. package/src/components/app_apply/ApplyUserInfo.vue +3 -2
  56. package/src/components/app_apply/FieldExploration.vue +1 -3
  57. package/src/components/app_apply/PlaceControler.vue +49 -38
  58. package/src/components/{product/VueUtils → apply/base}/rightview/InstallCardList2.vue +38 -29
  59. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
  60. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/StopApplyDetail2.vue +1 -1
  61. package/src/components/build/Install/ApplyChargeSearch.vue +210 -0
  62. package/src/components/build/Install/ExplorationSelect.vue +308 -0
  63. package/src/components/build/Install/ExplorationUser.vue +315 -0
  64. package/src/components/build/Install/InstallFee/AddContract.vue +257 -0
  65. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -0
  66. package/src/components/build/Install/InstallFee/InstallFee2.vue +291 -0
  67. package/src/components/{product/Function/functions → build/Install/InstallFee}/InstallFeeInfo.vue +11 -42
  68. package/src/components/build/Install/InstallFee/InstallFunction.vue +242 -0
  69. package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -0
  70. package/src/components/{product/Process → build/Install}/ModifyUserFiles.vue +1 -1
  71. package/src/components/build/Install/Process/BuildJob.vue +242 -0
  72. package/src/components/build/Install/Process/ContratSigne.vue +283 -0
  73. package/src/components/build/Install/Process/CustomerEssentialInfo.vue +325 -0
  74. package/src/components/build/Install/Process/CustomerFile.vue +423 -0
  75. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -0
  76. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -0
  77. package/src/components/build/Install/Process/DispatchingJob.vue +261 -0
  78. package/src/components/build/Install/Process/FeeNorme.vue +252 -0
  79. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -0
  80. package/src/components/build/Install/Process/FeeVerifier.vue +199 -0
  81. package/src/components/build/Install/Process/IgnitionVentilation.vue +232 -0
  82. package/src/components/build/Install/Process/MeterType.vue +379 -0
  83. package/src/components/build/Install/Process/PlaceControler.vue +304 -0
  84. package/src/components/build/Install/Process/ProjeterFigure.vue +211 -0
  85. package/src/components/build/Install/Process/ReceivingNote.vue +317 -0
  86. package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +370 -0
  87. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -0
  88. package/src/components/build/Install/Process/zhongran/ZR_ContratSigne.vue +496 -0
  89. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +415 -0
  90. package/src/components/build/Install/Process/zhongran/ZR_DispatchingJob.vue +409 -0
  91. package/src/components/build/Install/Process/zhongran/ZR_FeeNorme.vue +342 -0
  92. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation.vue +253 -0
  93. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation_transfer.vue +198 -0
  94. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -0
  95. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -0
  96. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -0
  97. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -0
  98. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote.vue +404 -0
  99. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote1.vue +301 -0
  100. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -0
  101. package/src/components/build/Install/Process/zhongran/ZR_end.vue +20 -0
  102. package/src/components/build/Install/ProcessInfo/BasicInfo.vue +68 -0
  103. package/src/components/build/Install/ProcessInfo/BuildInfo.vue +110 -0
  104. package/src/components/build/Install/ProcessInfo/ContratProcessInfo.vue +116 -0
  105. package/src/components/build/Install/ProcessInfo/DispatchingInfo.vue +114 -0
  106. package/src/components/build/Install/ProcessInfo/FeeNormeInfo.vue +108 -0
  107. package/src/components/build/Install/ProcessInfo/FeeVerifierInfo.vue +102 -0
  108. package/src/components/build/Install/ProcessInfo/IgnitionInfo.vue +99 -0
  109. package/src/components/build/Install/ProcessInfo/MeterProcessInfo.vue +114 -0
  110. package/src/components/build/Install/ProcessInfo/PlaceProcessInfo.vue +115 -0
  111. package/src/components/build/Install/ProcessInfo/ProjeterProcessInfo.vue +107 -0
  112. package/src/components/build/Install/ProcessInfo/ReceivingInfo.vue +107 -0
  113. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BasicInfo.vue +74 -0
  114. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BuildInfo.vue +114 -0
  115. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ContratProcessInfo.vue +114 -0
  116. package/src/components/build/Install/ProcessInfo/zhongran/ZR_DispatchingInfo.vue +119 -0
  117. package/src/components/build/Install/ProcessInfo/zhongran/ZR_FeeNormeInfo.vue +105 -0
  118. package/src/components/build/Install/ProcessInfo/zhongran/ZR_IgnitionInfo.vue +99 -0
  119. package/src/components/build/Install/ProcessInfo/zhongran/ZR_MaterialPlan_info.vue +104 -0
  120. package/src/components/build/Install/ProcessInfo/zhongran/ZR_PlaceProcessInfo.vue +109 -0
  121. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ReceivingInfo.vue +102 -0
  122. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ignition_transfer_info.vue +104 -0
  123. package/src/components/{product/Bill → build/Install/bill}/BillXSDMakeInfo.vue +1 -1
  124. package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -0
  125. package/src/components/build/Install/monitor/SupervisoryList.vue +209 -0
  126. package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryhCart.vue +3 -29
  127. package/src/components/product/Process/Processes/Service/ServiceControl.vue +91 -1718
  128. package/src/main.js +2 -9
  129. package/src/stores/ApplyLoadParams.js +1 -1
  130. package/src/bootstrap/less/standard.less +0 -208
  131. package/src/components/app_apply/ServiceControl.vue +0 -442
  132. package/src/components/app_apply/ServiceView.vue +0 -356
  133. package/src/components/product/Common/ApplyValidateBill.vue +0 -55
  134. package/src/components/product/Common/PrintBill.vue +0 -120
  135. package/src/components/product/Function/InstallFunction.vue +0 -142
  136. package/src/components/product/Function/InstallInfoSelect.vue +0 -254
  137. package/src/components/product/Function/Service/FunctionServiceControl.vue +0 -328
  138. package/src/components/product/Function/functions/AddContract.vue +0 -301
  139. package/src/components/product/Function/functions/BuyerMessage.vue +0 -512
  140. package/src/components/product/Function/functions/InstallFee.vue +0 -919
  141. package/src/components/product/Function/functions/material_recording.vue +0 -237
  142. package/src/components/product/MaterialBatchList.vue +0 -109
  143. package/src/components/product/MaterialBatchManage.vue +0 -34
  144. package/src/components/product/Process/ExplorationSelect.vue +0 -636
  145. package/src/components/product/Process/ExplorationUser.vue +0 -131
  146. package/src/components/product/Process/MaterialUseList.vue +0 -159
  147. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -134
  148. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -776
  149. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -910
  150. package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -383
  151. package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -957
  152. package/src/components/product/Process/Processes/SendOrder.vue +0 -47
  153. package/src/components/product/Process/Processes/Service/ApplyAcceptBill.vue +0 -89
  154. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -305
  155. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  156. package/src/components/product/Process/ShowBackReason.vue +0 -18
  157. package/src/components/product/ServiceView.vue +0 -800
  158. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -407
  159. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -130
  160. package/src/components/product/Supervisory/SupervisoryList.vue +0 -349
  161. package/src/components/product/stopInfo/ApplyStopInfo.vue +0 -280
  162. package/src/plugins/commonService.js +0 -229
  163. package/yarn.lock +0 -8072
  164. /package/src/components/{product/VueUtils → apply/base}/ToolsPage.vue +0 -0
  165. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/BuildFeeDetail2.vue +0 -0
  166. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ChangeFeeDetail2.vue +0 -0
  167. /package/src/components/{product/Function/functions → build/Install/InstallFee}/AllSelect.vue +0 -0
  168. /package/src/components/{product/Function → build/Install/InstallFee}/InstallInfoDown.vue +0 -0
  169. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PreparationFee.vue +0 -0
  170. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PrestoreFee.vue +0 -0
  171. /package/src/components/{product/Function/functions → build/Install/InstallFee}/ReduceFee.vue +0 -0
  172. /package/src/components/{product/Function/functions → build/Install/InstallFee}/StopInstall.vue +0 -0
  173. /package/src/components/{product/Function/functions → build/Install/InstallFee}/UpdateFee.vue +0 -0
  174. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerBuildingMessage.vue +0 -0
  175. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerEquipmentMessage.vue +0 -0
  176. /package/src/components/{product/Function/functions → build/Install/ProcessInfo}/ApplyRecordCancel.vue +0 -0
  177. /package/src/components/{product/Bill → build/Install/bill}/BillGZK.vue +0 -0
  178. /package/src/components/{product/Bill → build/Install/bill}/BillGZKMakeInfo.vue +0 -0
  179. /package/src/components/{product/Bill → build/Install/bill}/BillGZKRecordInfo.vue +0 -0
  180. /package/src/components/{product/Bill → build/Install/bill}/BillJLB.vue +0 -0
  181. /package/src/components/{product/Bill → build/Install/bill}/BillJLBMakeInfo.vue +0 -0
  182. /package/src/components/{product/Bill → build/Install/bill}/BillJLBRecordInfo.vue +0 -0
  183. /package/src/components/{product/Bill → build/Install/bill}/BillKTK.vue +0 -0
  184. /package/src/components/{product/Bill → build/Install/bill}/BillKTKMakeInfo.vue +0 -0
  185. /package/src/components/{product/Bill → build/Install/bill}/BillKTKRecordInfo.vue +0 -0
  186. /package/src/components/{product/Bill → build/Install/bill}/BillQRK.vue +0 -0
  187. /package/src/components/{product/Bill → build/Install/bill}/BillQRKMakeInfo.vue +0 -0
  188. /package/src/components/{product/Bill → build/Install/bill}/BillQRKRecordInfo.vue +0 -0
  189. /package/src/components/{product/Bill → build/Install/bill}/BillSelect.vue +0 -0
  190. /package/src/components/{product/Bill → build/Install/bill}/BillXSD.vue +0 -0
  191. /package/src/components/{product/Bill → build/Install/bill}/BillXSDRecordInfo.vue +0 -0
  192. /package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryBaseInfo.vue +0 -0
@@ -1,442 +0,0 @@
1
- <template>
2
- <service-view-app v-ref:service_show :data="show_data" v-if="showview"></service-view-app>
3
- </template>
4
- <script>
5
- import co from 'co'
6
- import Vue from 'vue'
7
- import {HttpResetClass} from 'vue-client'
8
- export default {
9
- title: '报建流程业务控制层',
10
- props: ['selectdata'],
11
- data() {
12
- return {
13
- data: null, // 数据库数据,json配置文件数据的数据集合
14
- json_datas: null, // Json配置文件集合
15
- showview: false, // 控制显示service-view组件
16
- show_data: null, // 给view层显示的数据
17
- department_search: null // 当前部门下所有人
18
- }
19
- },
20
- methods: {
21
- // 特殊化处理
22
- async special(model) {
23
- console.log('进入async special方法')
24
- if (this.data.distribute_async && model.button.button_name === '下发') {
25
- // 流程异步处理
26
- let http = new HttpResetClass();
27
- let res = await http.load('POST', this.$androidUtil.getProxyUrl() + '/rs/logic/syncprocess', {
28
- data: {
29
- model: model,
30
- loginUser: this.$login.f
31
- }
32
- }, {resolveMsg: null, rejectMsg: '流程异步下发据保存失败'})
33
- console.log("流程的异步处理:", JSON.stringify(res.data))
34
- }
35
- if (this.data.distribute_async && model.button.button_name === '完成') {
36
- // 强制结束
37
- let http = new HttpResetClass();
38
- let res = await http.load('POST', this.$androidUtil.getProxyUrl() + '/rs/logic/stoprocess', {
39
- data: {
40
- model: model,
41
- loginUser: this.$login.f
42
- }
43
- }, {resolveMsg: null, rejectMsg: '流程异步完成数据保存失败'})
44
- console.log("流程的异步处理:", JSON.stringify(res.data))
45
- }
46
- },
47
- // 组件初始化操作
48
- refurbish() {
49
- if (!this.$workflow_vue) {
50
- this.$showMessage('流程配置文件不存在,请反馈系统管理员')
51
- return
52
- }
53
- console.log('内存中的流程配置文件数据=>' + JSON.stringify(this.$workflow_vue))
54
- this.json_datas = this.$workflow_vue
55
- let sum = 0
56
- let jsonData = {}
57
- for (let i = 0; i < this.json_datas.activitys.length; i++) {
58
- if (this.selectdata.defname == this.json_datas.activitys[i].title) {
59
- jsonData = this.json_datas.activitys[i]
60
- sum++
61
- }
62
- }
63
- console.log('sum=>' + sum)
64
- if (sum == 1) {
65
- this.data = null
66
- this.data = jsonData
67
- console.log('调用initializtion前的this.data=>' + JSON.stringify(this.data))
68
- this.initializtion()
69
-
70
- } else if (sum == 0) {
71
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
72
- } else {
73
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
74
- }
75
- },
76
- // json配置数据处理 比如下拉框的options
77
- async initializtion() {
78
- console.log('进入initializtion()方法')
79
- // 下发人 options 处理,options初始化
80
- if (this.selectdata.actorexpression) {
81
- let http = new HttpResetClass()
82
- var url = this.$androidUtil.getProxyUrl() + '/rs/search'
83
- console.log('即将请求后台获取下发人员,url=>' + url)
84
- let res = await http.load('POST', url, this.selectdata.actorexpression, {resolveMsg: null, rejectMsg: '获取当前部门人员失败'})
85
- console.log("请求后台获取下发人员结果转换=>" + JSON.stringify(res))
86
- let jsonString = JSON.stringify(res.data)
87
- let jsonArray = []
88
- if (jsonString.startsWith("{")) {
89
- jsonArray.push(res.data)
90
- res.data = jsonArray
91
- }
92
- this.department_search = res.data
93
- }
94
-
95
- // data 填充 selectdata
96
- console.log('即将合并data与selectdata,selectdata数据=>' + JSON.stringify(this.selectdata))
97
- this.data = Object.assign({}, this.data, this.selectdata)
98
- console.log('this.data的值=>' + JSON.stringify(this.data))
99
-
100
- // 初始化 fields
101
- console.log('this.data.fields.length=>' + this.data.fields.length)
102
- for (let i = 0; i < this.data.fields.length; i++) {
103
- // 如果selectdata有这些key,则把selectdata的value赋值给data的value
104
- if (this.selectdata[this.data.fields[i].field]) {
105
- this.data.fields[i].value = this.selectdata[this.data.fields[i].field]
106
- }
107
- // 如果配置类型为select,优先从参数列表获取options
108
- // if(this.data.fields[i].type == 'select'){
109
- // var param = this.$appdata.getParam(this.data.fields[i].label)
110
- // console.log(param)
111
- // this.data.fields[i].options = param
112
-
113
- // if (this.data.fields[i].type === 'select') {
114
- // console.log('进入下拉框参数获取方法,参数名称=>' + this.data.fields[i].label)
115
- // let temp = this.$appdata.getParam(this.data.fields[i].label)
116
- // console.log('$appdata中的缓存参数与单值=>' + this.$appdata.getParam(temp))
117
- // if (temp && temp.length > 0) {
118
- // this.data.fields[i].options = Vue.$appdata.getParam(this.data.fields[i].label)
119
- // }
120
- // }
121
- if (this.data.fields[i].type === 'select') {
122
- let temp = Vue.$appdata.getParam(this.data.fields[i].label)
123
- if (temp && temp.length > 0) {
124
- this.data.fields[i].options = Vue.$appdata.getParam(this.data.fields[i].label)
125
- }
126
- }
127
- let gasbrand_id=''
128
- if (this.data.fields[i].label == '气表品牌') {
129
- let meterbrand = await this.$resetpost('rs/sql/singleTable', {
130
- data: {
131
- items: 'f_meter_brand',
132
- tablename: 't_gasbrand',
133
- condition: `f_filialeids = '${this.$login.f.f_orgids}'`
134
- }
135
- }, {resolveMsg: null, rejectMsg: null})
136
- let rs = []
137
- for (let i = 0; i < meterbrand.data.length; i++) {
138
- let temp = {
139
- label: meterbrand.data[i].f_meter_brand,
140
- value: meterbrand.data[i].f_meter_brand
141
- }
142
- rs.push(temp)
143
- }
144
- this.data.fields[i].options = [{label: '全部', value: ''}, ...rs]
145
- }
146
-
147
-
148
-
149
- }
150
-
151
-
152
-
153
-
154
- // 初始化 buttons_fields
155
- for (let i = 0; i < this.data.buttons.length; i++) {
156
- if (this.data.buttons[i].button_fields) {
157
- for (let j = 0; j < this.data.buttons[i].button_fields.length; j++) {
158
- // 如果selectdata有这些key,则把selectdata的value赋值给data的value
159
- if (this.selectdata[this.data.buttons[i].button_fields[j].field]) {
160
- this.data.buttons[i].button_fields[j].value = this.selectdata[this.data.buttons[i].button_fields[j].field]
161
- }
162
- // 如果配置类型为select,优先从参数列表获取options
163
- if (this.data.buttons[i].button_fields[j].type === 'select' && this.$appdata.getParam(this.data.buttons[i].button_fields[j].label)) {
164
- this.data.buttons[i].button_fields[j].options = this.$appdata.getParam(this.data.buttons[i].button_fields[j].label)
165
- }
166
- // 下发特殊配置
167
- if (this.data.buttons[i].button_name === '下发') {
168
- if (this.data.buttons[i].button_fields.length === 1) {
169
- // value初始化
170
- // if(this.department_search){
171
- if (this.selectdata[this.data.buttons[i].button_fields[0].field]) {
172
- for (let k = 0; k < this.department_search.length; k++) {
173
- // 将id转换为name
174
- if (Number(this.department_search[k].id) === Number(this.selectdata[this.data.buttons[i].button_fields[0].field])) {
175
- this.data.buttons[i].button_fields[0].value = this.department_search[k].name
176
- }
177
- }
178
- }
179
-
180
- if (this.department_search) {
181
- let array = []
182
- for (let k = 0; k < this.department_search.length; k++) {
183
- array.push({label: this.department_search[k].name, value: this.department_search[k].name})
184
- }
185
- this.data.buttons[i].button_fields[0].options = array
186
- }
187
- } else {
188
- this.$showMessage("下发按钮必须满足 当且仅当一个字段")
189
- }
190
- }
191
- }
192
- }
193
- }
194
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
195
- let temp = JSON.parse(JSON.stringify(this.data))
196
- // 退回原因展示
197
- if (this.selectdata.f_back_reason) {
198
- temp['back_reason'] = this.selectdata.f_back_reason
199
- }
200
- console.log('即将给show_data赋值temp=>' + JSON.stringify(temp))
201
- this.show_data = temp
202
- console.log('initializtion()方法结束,showview')
203
- this.showview = true
204
- },
205
- deleteLocalApply(model) {
206
- console.log(`前台上传完成,开始删除本地报建工单`)
207
- this.$androidUtil.bzLogic('deleteApply', {data: model})
208
- }
209
- },
210
- events: {
211
- // 任意select选中时触发事件
212
- async 'select_cascade'(index) {
213
- console.log("app中ServiceController接收到子组件select改变传播事件")
214
- console.log(this.$refs.service_show.data)
215
- // this.$refs.service_show.model_temp // 子业务显示组件
216
- // 级联操作示例:
217
- /*
218
- if(this.$refs.service_show.model_temp.activitys.fields[index].label==='报建类型'){
219
- for(let i=0;i<this.$refs.service_show.model_temp.activitys.fields.length;i++){
220
- // 控制设置级联
221
- // 源select所选的值 this.$refs.service_show.model_temp.activitys.fields[index].value
222
- if(this.$refs.service_show.model_temp.activitys.fields[i].label==='级联测试2'){
223
- this.$refs.service_show.model_temp.activitys.fields[i].options=[
224
- {label:'级联选项1',value:'级联选项1'},{label:'级联选项2',value:'级联选项2'},{label:'级联选项3',value:'级联选项3'}
225
- ]
226
- }
227
- }
228
- }
229
- */
230
-
231
-
232
- if (this.$refs.service_show.data.fields[index].label === '气表品牌') {
233
- let temp = this.$refs.service_show.data.fields[index].value
234
- let meterbrand = await this.$resetpost('rs/sql/singleTable', {
235
- data: {
236
- //items: 'f_bill_url,f_url_code',
237
- tablename: 't_gasbrand',
238
- condition: `f_filialeids = '${this.$login.f.f_orgids}' and f_meter_brand='${temp}'`
239
- }
240
- }, {resolveMsg: null, rejectMsg: null})
241
- console.log(meterbrand)
242
- console.log(meterbrand.data)
243
- let idstring = '('
244
- idstring += meterbrand.data[0].id
245
- console.log("idstring第一个" + idstring)
246
- if (meterbrand.data.length > 1) {
247
- for (let i = 1; i < meterbrand.data.length; i++) {
248
- idstring += ',' + meterbrand.data[i].id
249
- }
250
- }
251
- idstring += ')'
252
- console.log("idstring" + idstring)
253
- for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
254
-
255
- if (this.$refs.service_show.data.fields[i].label === '气表型号') {
256
- this.$refs.service_show.data.fields[i].value = ''
257
-
258
-
259
- let gasbrand = await this.$resetpost('rs/sql/singleTable', {
260
- data: {
261
- tablename: 't_gasmodel',
262
- condition: ` f_gasbrand_id in ${idstring}`
263
- }
264
- }, {resolveMsg: null, rejectMsg: null})
265
- let brandstr = []
266
- for (let i = 0; i < gasbrand.data.length; i++) {
267
- let brand = {
268
- label: gasbrand.data[i].f_meter_style,
269
- value: gasbrand.data[i].f_meter_style
270
- }
271
- brandstr.push(brand)
272
- }
273
-
274
- this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...brandstr]
275
- //this.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
276
- // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.data.fields[i].options)
277
-
278
- this.$refs.service_show.update()
279
- }
280
- }
281
- }
282
-
283
-
284
- if (this.$refs.service_show.data.fields[index].label === '气表型号') {
285
- let meterstyle= this.$refs.service_show.data.fields[index].value
286
- let meterbrand = ''
287
- for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
288
- if (this.$refs.service_show.data.fields[i].label === '气表品牌') {
289
- meterbrand = this.$refs.service_show.data.fields[i].value
290
- }}
291
-
292
- for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
293
-
294
- if (this.$refs.service_show.data.fields[i].label === '别名') {
295
- console.log("获取别名")
296
- this.$refs.service_show.data.fields[i].value = ''
297
-
298
- let meterbrandalias = await this.$resetpost('rs/sql/getMeterBrand', {
299
- data: {
300
- condition: `f_filialeids = '${this.$login.f.f_orgids}' and f_meter_brand='${meterbrand}' and f_meter_style='${meterstyle}'`
301
- }
302
- }, {resolveMsg: null, rejectMsg: null})
303
-
304
- let alias = []
305
- for (let i = 0; i < meterbrandalias.data.length; i++) {
306
- let brand = {
307
- label: meterbrandalias.data[i].f_alias,
308
- value: meterbrandalias.data[i].f_alias
309
- }
310
- alias.push(brand)
311
- }
312
-
313
- this.$refs.service_show.data.fields[i].options = [{label: '全部', value: ''}, ...alias]
314
- //this.data.fields[i].options = [{label: '全部', value: ''}, ...streetrs]
315
- // console.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~option:', this.data.fields[i].options)
316
-
317
- this.$refs.service_show.update()
318
-
319
- }
320
- }
321
-
322
- }
323
-
324
-
325
- if (
326
- this.$refs.service_show.data.fields[index].label === '工程安装费' ||
327
- this.$refs.service_show.data.fields[index].label === '材料费' ||
328
- this.$refs.service_show.data.fields[index].label === '人工费'
329
- ) {
330
- console.log('即将合成价格')
331
- let fee = 0
332
- for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
333
- // 控制设置级联
334
- // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
335
- // xxx xx xxx
336
- if (this.$refs.service_show.data.fields[i].label === '工程安装费' && this.$refs.service_show.data.fields[i].value) {
337
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
338
- }
339
- if (this.$refs.service_show.data.fields[i].label === '材料费' && this.$refs.service_show.data.fields[i].value) {
340
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
341
- }
342
- if (this.$refs.service_show.data.fields[i].label === '人工费' && this.$refs.service_show.data.fields[i].value) {
343
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
344
-
345
-
346
- }
347
- // 数据获取完毕时放入地址text
348
- for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
349
- if (this.$refs.service_show.data.fields[i].label === '费用合计') {
350
- this.$refs.service_show.data.fields[i].value = fee
351
- console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
352
- }
353
- }
354
- }
355
- }
356
- },
357
- // 获取view层button事件
358
- async 'button'(model){
359
- console.log('进入async button事件方法')
360
- var delteLocal = true
361
- // 点击保存与重置按钮不需要修改本地工单状态
362
- if(model.button.button_name == '保存' || model.button.button_name==='重置'){
363
- delteLocal = false
364
- }
365
- // 点击重置按钮就重置数据
366
- if(model.button.button_name==='重置'){
367
- this.initializtion()
368
- return
369
- }
370
- if(model.button.button_name==='下发'){
371
- let person_name = model.button.button_fields[this.show_data.buttons[model.button.button_index].button_fields[0].field]
372
- for(let i=0;i<this.department_search.length;i++){
373
- // 找到人名为person_name 的人,然后把人名换成id
374
- if(this.department_search[i].name === person_name){
375
- model.button.button_fields[this.show_data.buttons[model.button.button_index].button_fields[0].field] = this.department_search[i].id
376
- }
377
- }
378
- }
379
- console.log("button事件接收参数model=>" + JSON.stringify(model))
380
- model=Object.assign({},this.selectdata,model)
381
- console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
382
- let http = new HttpResetClass()
383
- var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
384
- // let res = await http.load('POST',url,{data:{tables:this.data.tables,start_activity:this.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
385
- // // 先判断是否包含code,如果服务端异常,可能不存在code
386
- // console.log("service处理完成返回数据=>" + res)
387
- // if(!res.code){
388
- // console.log("service处理完成返回数据=>" + res)
389
- // this.$showMessage('操作异常,原因:' + res)
390
- // }else{
391
- // console.log("service处理完成返回数据=>" + JSON.stringify(res))
392
- // if(res.code = 200){
393
- // this.showview = false
394
- // // 特殊处理
395
- // this.special(model)
396
- // this.$dispatch('close')
397
- // this.initializtion()
398
- // this.$showMessage('操作成功')
399
- // }else{
400
- // this.$showMessage('操作失败,原因:' + res.data.msg)
401
- // }
402
- // }
403
- let btn = btn_operate(this, url, http, model, delteLocal)
404
- co(btn)
405
- }
406
- },
407
- watch:{
408
- // 监听selectdata的变化
409
- 'selectdata'() {
410
- console.log('进入selectdata改变事件data=>' + JSON.stringify(this.selectdata))
411
- this.refurbish()
412
- },
413
- deep:true
414
- }
415
- }
416
-
417
- let btn_operate = function * (self, url, http, model, delteLocal) {
418
- // 下发,提交,保存,退回都在后台处理
419
- console.log('即将请求后台url=>' + url)
420
- http.load('POST',url,{data:{tables:self.data.tables,start_activity:self.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
421
- .then((res) => {
422
- console.log(JSON.stringify(res))
423
- if(res.code = 200){
424
- self.showview = false
425
- // 如果需要删除本地记录则去删除
426
- if(delteLocal){
427
- self.deleteLocalApply(model)
428
- }
429
- // 特殊处理
430
- self.special(model)
431
- self.$dispatch('close')
432
- self.initializtion()
433
- self.$showMessage('操作成功')
434
- }else{
435
- self.$showMessage('操作失败,原因:' + res.data.msg)
436
- }
437
- })
438
- .catch((ret) => {
439
- self.$showMessage('操作异常,原因:' + JSON.stringify(ret.data))
440
- })
441
- }
442
- </script>