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
@@ -0,0 +1,198 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <div class="panel panel-info">
4
+ <div class="panel-heading">
5
+ <h3 class="panel-title">资料移交</h3>
6
+ </div>
7
+ <div class="panel-body">
8
+ <form class="form-horizontal">
9
+ <div class="from-group col-sm-11">
10
+ <div class="form-group col-sm-4">
11
+ <div class="col-sm-3"></div>
12
+ <div class="col-sm-6">
13
+ <input type="checkbox" class="" id="checkbox" v-model="model.f_iscomplete_information":readonly="edit ? false : 'readonly'">
14
+ <label for="checkbox" class="font-size">资料是否齐全</label>
15
+ </div>
16
+ </div>
17
+ </div>i
18
+ <div class="form-group col-sm-11">
19
+ <label class="col-sm-2" for="f_ignitionVentilation_transfer_remark">移交点火通气备注:</label>
20
+ <div class="col-sm-10" id="f_ignitionVentilation_transfer_remark">
21
+ <textarea class="form-control" v-model="model.f_ignitionventilation_transfer_remark" rows="3"
22
+ :readonly="edit ? false : 'readonly'">
23
+ </textarea>
24
+ </div>
25
+ </div>
26
+ </form>
27
+ <div class="from-group col-sm-12" v-show="edit">
28
+ <center>
29
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
30
+ 保存
31
+ </button>
32
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;">
33
+ 提交
34
+ </button>
35
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
36
+ 取消
37
+ </button>
38
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
39
+ 退回
40
+ </button>
41
+ </center>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </template>
47
+ <script>
48
+ import co from 'co'
49
+ import * as Util from '../../../../Util'
50
+ import AppData from '../../../../../stores/AppData'
51
+
52
+ let gen = function* (self, val) {
53
+ // val.f_sub_state = ''
54
+ val.f_temp_date = Util.toStandardTimeString()
55
+ if (self.selectdata.defname === '工程结算') {
56
+ if (!val.f_fee_state && self.selectdata.defname === '工程结算') {
57
+ self.$showMessage("请结清费用再提交")
58
+ return
59
+ }
60
+ val.f_fee_state = val.f_fee_state[0]
61
+ }
62
+
63
+ let data = {
64
+ tablename: 't_apply',
65
+ parameters: val
66
+ }
67
+ yield self.$resetpost('rs/logic/save', {data: data})
68
+ if (self.selectdata.defname === '工程结算' && self.selectdata.actdefid === '16') {
69
+ let data = {
70
+ model: {
71
+ f_processid: self.selectdata.f_process_id,
72
+ },
73
+ loginUser: {
74
+ id: self.$login.f.id,
75
+ name: self.$login.f.name,
76
+ ename: self.$login.f.ename
77
+ },
78
+ employeetemplate: self.selectdata.f_survey_name,
79
+ subdep: '提交'
80
+ }
81
+ self.$resetpost(`rs/logic/grantnext`,
82
+ {data: data})
83
+ .then(() => {
84
+ self.reset()
85
+ })
86
+ } else {
87
+ let data = {
88
+ model: {
89
+ f_processid: self.selectdata.f_process_id,
90
+ },
91
+ loginUser: {
92
+ id: self.$login.f.id,
93
+ name: self.$login.f.name,
94
+ ename: self.$login.f.ename
95
+ },
96
+ subdep: '提交'
97
+ }
98
+ self.$resetpost(`rs/logic/ignitionnext`,
99
+ {data: data})
100
+ .then(() => {
101
+ self.reset()
102
+ })
103
+ }
104
+ }
105
+ export default {
106
+ title: '移交通气点火',
107
+ data() {
108
+ return {
109
+ ffeestate: this.$appdata.getParam('用气类型'),
110
+ model: {
111
+ actid: ''
112
+ }
113
+ }
114
+ },
115
+ props: ['selectdata','edit'],
116
+ ready() {
117
+ this.$nextTick(() => {
118
+ this.model = Object.assign({}, this.model, this.selectdata)
119
+ this.model.f_gas_date = this.$login.toStandardDateString()
120
+ this.model.f_gas_department = this.$login.f.f_parentname
121
+ this.model.f_gas_operator = this.$login.f.name
122
+ })
123
+ },
124
+ methods: {
125
+ back() {
126
+ let data = {
127
+ model: {
128
+ f_processid: this.selectdata.f_process_id,
129
+ },
130
+ loginUser: {
131
+ id: this.$login.f.id,
132
+ name: this.$login.f.name,
133
+ ename: this.$login.f.ename
134
+ },
135
+ subdep: '退回'
136
+ }
137
+ this.$resetpost(`rs/logic/ignitionnext`,
138
+ {data: data})
139
+ .then(() => {
140
+ this.reset()
141
+ })
142
+ },
143
+ confirm() {
144
+ //判断当前节点的状态(开始活动/完工)
145
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
146
+ resolveMsg: null,
147
+ rejectMsg: '提交错误!'
148
+ }).then((res) => {
149
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
150
+ if (res.data[0].state != '开始活动') {
151
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
152
+ this.reset()
153
+ } else {
154
+ let data ={
155
+ tablename:'t_apply',
156
+ parameters:this.model
157
+ }
158
+ this.$resetpost('rs/logic/save',{data:data} )
159
+ .then(() => {
160
+ this.reset()
161
+ })
162
+ }
163
+ })
164
+ },
165
+ commit() {
166
+ //判断当前节点的状态(开始活动/完工)
167
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
168
+ resolveMsg: null,
169
+ rejectMsg: '提交错误!'
170
+ }).then((res) => {
171
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
172
+ if (res.data[0].state != '开始活动') {
173
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
174
+ this.reset()
175
+ } else {
176
+ let getGen = gen(this, this.model)
177
+ co(getGen)
178
+ }
179
+ })
180
+
181
+ },
182
+ reset() {
183
+ this.$dispatch('close')
184
+ this.$dispatch('selfsearch')
185
+ }
186
+ },
187
+ watch: {
188
+ 'selectdata'() {
189
+ this.$nextTick(() => {
190
+ this.model = Object.assign({}, this.model, this.selectdata)
191
+ this.model.f_gas_date = this.$login.toStandardDateString()
192
+ this.model.f_gas_department = this.$login.f.f_parentname
193
+ this.model.f_gas_operator = this.$login.f.name
194
+ })
195
+ }
196
+ }
197
+ }
198
+ </script>
@@ -0,0 +1,259 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <div class="panel panel-info">
4
+ <div class="panel-heading">
5
+ <h3 class="panel-title">材料计划</h3>
6
+ </div>
7
+ </div>
8
+ <validator name="v">
9
+ <form class="form-horizontal">
10
+ <div class="col-sm-11 form-group">
11
+ <div class="form-group col-sm-4">
12
+ <div class="col-sm-3"></div>
13
+ <div class="col-sm-6">
14
+ <input type="checkbox" class="" id="checkbox" v-model="model.f_ismaterial_complete" :readonly="edit ? false : 'readonly'">
15
+ <label for="checkbox" class="font-size">材料是否齐全</label>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="form-group col-sm-11">
20
+ <label class="col-sm-2" for="f_material_remarks">材料备注:</label>
21
+ <div class="col-sm-10" id="f_material_remarks">
22
+ <textarea class="form-control" v-model="model.f_material_remarks" rows="3"
23
+ :readonly="edit ? false : 'readonly'">
24
+ </textarea>
25
+ </div>
26
+ </div>
27
+ <div class="form-group col-sm-11" v-if="showreason">
28
+ <label class="col-sm-2" for="f_material_remarks">申请不通过原因:</label>
29
+ <div class="col-sm-10">
30
+ <textarea class="form-control" v-model="model.f_back_reason" rows="3" readonly>
31
+ </textarea>
32
+ </div>
33
+ </div>
34
+ </form>
35
+ </validator>
36
+ <div class="from-group col-sm-11" v-show="edit">
37
+ <center>
38
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
39
+ 保存
40
+ </button>
41
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;">
42
+ {{buttonName}}
43
+ </button>
44
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
45
+ 取消
46
+ </button>
47
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
48
+ 退回
49
+ </button>
50
+ </center>
51
+ </div>
52
+ </div>
53
+ </template>
54
+ <script>
55
+ import co from 'co'
56
+ import {HttpResetClass} from 'vue-client'
57
+ import * as Util from '../../../../Util'
58
+ let gen = function* (self, val) {
59
+ val.f_survey_name = self.employeetemplate
60
+ val.f_temp_date = Util.toStandardTimeString()
61
+ val.f_sub_state = '正常'
62
+ /*val.f_gas_type = val.f_gas_type[0] ? val.f_gas_type[0] : ''
63
+ val.f_gas_type = val.f_survey_name[0] ? val.f_survey_name[0] : ''*/
64
+ let data ={
65
+ tablename:'t_apply',
66
+ parameters:val
67
+ }
68
+ yield self.$resetpost('rs/logic/save', {data:data})
69
+ data = {
70
+ model: {
71
+ f_processid: self.selectdata.f_process_id,
72
+ },
73
+ loginUser: {
74
+ id: self.$login.f.id,
75
+ name: self.$login.f.name,
76
+ ename: self.$login.f.ename
77
+ },
78
+ employeetemplate: self.employeetemplate,// 指派勘察人员
79
+ subdep: self.buttonName
80
+ }
81
+ console.log(">>>>>>>>>>>>11>>>>>>>>>>",data.model.f_processid)
82
+ self.$resetpost(`rs/logic/grantnext`,
83
+ {data: data})
84
+ .then(() => {
85
+ self.reset()
86
+ })
87
+ }
88
+ export default {
89
+ title: '材料计划',
90
+ data() {
91
+ return {
92
+ employees: [], // 部门人员数组
93
+ employeetemplate: '', // 选定部门人员
94
+ model: {
95
+ },
96
+ buttonName:'',
97
+ showsub:false,
98
+ showreason:false
99
+ }
100
+ },
101
+ props: ['selectdata','edit'],
102
+ ready() {
103
+
104
+ this.model = Object.assign({}, this.model, this.selectdata)
105
+ if( this.selectdata.f_sub_state == '申请打回'){
106
+ this.showreason = true
107
+ }
108
+ },
109
+ methods: {
110
+ // 退回则默认值为已存储的人
111
+ toemployees() {
112
+ if (this.temploader == '技术组长' && this.model.f_survey_name) {
113
+ this.employeetemplate = this.model.f_survey_name
114
+ }
115
+ },
116
+ // 获取部门领导角色
117
+ async loademployees() {
118
+ let http = new HttpResetClass()
119
+ if (this.selectdata.actdefid != '1') {
120
+ await http.load('POST','rs/sql/singleTable', {
121
+ data: {
122
+ tablename: 't_actorperson',
123
+ condition: " userseq='" + this.$login.f.id + "' order by id desc"
124
+ }
125
+ }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
126
+ .then((res) => {
127
+ console.log("取得部门领导的角色" + res.data[0].actorid)
128
+ if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
129
+ let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
130
+ this.temploader = loaderstr
131
+ // 如果是退回的就用已经保存的人员,保证下发的是同一个人
132
+ this.toemployees()
133
+ let loademployeestr = null
134
+ if (loaderstr.includes("部门")) {
135
+ loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
136
+ } else if (loaderstr.includes("部")) {
137
+ loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
138
+ } else if (loaderstr.includes("组长")) {
139
+ loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
140
+ }
141
+ console.log(loademployeestr)
142
+ let http2 = new HttpResetClass()
143
+ http2.load('POST','rs/sql/singleTable', {
144
+ data: {
145
+ tablename: 't_role',
146
+ condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
147
+ // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
148
+ }
149
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
150
+ console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
151
+ let strid = res.data[0].id
152
+ let http3 = new HttpResetClass()
153
+ http3.load('POST','rs/sql/singleTable', {
154
+ data: {
155
+ tablename: 't_user',
156
+ condition: "roles like '%" + strid + "%'"
157
+ }
158
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
159
+ console.log("角色人员(部门人员)信息成功")
160
+ for (var i = 0; i < res.data.length; i++) {
161
+ this.employees.push({lable: res.data[i].name, value: res.data[i].name})
162
+ }
163
+ })
164
+ })
165
+ }
166
+ })
167
+ }
168
+ },
169
+ confirm() {
170
+ //判断当前节点的状态(开始活动/完工)
171
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
172
+ resolveMsg: null,
173
+ rejectMsg: '提交错误!'
174
+ }).then((res) => {
175
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
176
+ if (res.data[0].state != '开始活动') {
177
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
178
+ this.reset()
179
+ } else {
180
+ let data ={
181
+ tablename:'t_apply',
182
+ parameters:this.model
183
+ }
184
+ this.$resetpost('rs/logic/save',{data:data} )
185
+ .then(() => {
186
+ this.reset()
187
+ })
188
+ }
189
+ })
190
+
191
+ },
192
+ commit() {
193
+ //判断当前节点的状态(开始活动/完工)
194
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
195
+ resolveMsg: null,
196
+ rejectMsg: '提交错误!'
197
+ }).then((res) => {
198
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
199
+ if (res.data[0].state != '开始活动') {
200
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
201
+ this.reset()
202
+ } else {
203
+ let getGen = gen(this, this.model)
204
+ co(getGen)
205
+ }
206
+ })
207
+ },
208
+ //退回上一个流程
209
+ back() {
210
+ // this.model.f_sub_state = '退回'
211
+ this.confirm()
212
+ let data = {
213
+ model: {
214
+ f_processid: this.selectdata.f_process_id,
215
+ },
216
+ loginUser: {
217
+ id: this.$login.f.id,
218
+ name: this.$login.f.name,
219
+ ename: this.$login.f.ename
220
+ },
221
+ subdep: '退回'
222
+ }
223
+ let http = new HttpResetClass()
224
+ http.load('POST',`rs/logic/ignitionnext`,
225
+ {data: data})
226
+ .then(() => {
227
+ this.reset()
228
+ })
229
+ },
230
+
231
+ //数据校验
232
+ verification() {
233
+
234
+ },
235
+ reset() {
236
+ this.$dispatch('close')
237
+ this.$dispatch('selfsearch')
238
+ },
239
+ setselect() {
240
+ this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
241
+ this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
242
+ this.model = Object.assign({}, this.model, this.selectdata)
243
+ this.model.f_survey_date = this.$login.toStandardDateString()
244
+ this.model.f_survey_department = this.$login.f.f_parentname
245
+ this.model.f_survey_operator = this.$login.f.name
246
+ }
247
+ },
248
+ watch: {
249
+ 'model.f_ismaterial_complete'(val){
250
+
251
+ if(val === true){
252
+ this.buttonName = '提交'
253
+ }else{
254
+ this.buttonName = '申请材料'
255
+ }
256
+ }
257
+ }
258
+ }
259
+ </script>