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,342 @@
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
+ <validator name= "v">
9
+ <form class="form-horizontal">
10
+ <div class="col-sm-12 form-group">
11
+ <div class="col-sm-4 form-group">
12
+ <label class="control-label col-sm-6">是否做预算</label>
13
+ <div class="col-sm-6">
14
+ <input type="checkbox" class="" id="checkbox" v-model="model.f_isbudget"
15
+ :disabled="edit ? false : 'disabled'">
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="form-group col-sm-4" v-if="isbudget">
20
+ <label for="f_valueadded_money" class=" col-sm-6 control-label">增值业务费:</label>
21
+ <div class="col-sm-6" id="f_valueadded_money" :class="[$v.f_valueadded_money.required ? 'formItem-required' : '' ]">
22
+ <input class="form-control col-sm-6" type="number" v-model="model.f_valueadded_money"
23
+ :readonly="edit ? false : 'readonly'" v-validate:f_valueadded_money = '{required:true}'>
24
+ </div>
25
+ </div>
26
+ <div class="form-group col-sm-4" v-if="isbudget">
27
+ <label for="f_budget_money" class=" col-sm-6 controlf_sbaz_cost-label">预算金额:</label>
28
+ <div class="col-sm-6" :class="[$v.f_budget_money.required ? 'formItem-required' : '' ]">
29
+ <input class="form-control col-sm-6" id="f_budget_money" type="number" v-model="model.f_budget_money"
30
+ v-validate:f_budget_money = '{required: true}'
31
+ :readonly="edit ? false : 'readonly'">
32
+ </div>
33
+ </div>
34
+ <div class="form-group col-sm-4" v-if="this.isbudget == true">
35
+ <label for="f_budget_person" class=" col-sm-6 control-label">预算人员:</label>
36
+ <div class="col-sm-6" :class="[$v.f_budget_person.required ? 'formItem-required' : '' ]">
37
+ <input class="form-control col-sm-6" id="f_budget_person" type="text" v-model="model.f_budget_person"
38
+ v-validate:f_budget_person = '{required: true}'
39
+ :readonly="edit ? false : 'readonly'">
40
+ </div>
41
+ </div>
42
+ <div class="form-group col-sm-4" v-if="isbudget">
43
+ <label for="f_gasproperties" class="col-sm-6 control-label">用气性质:</label>
44
+ <div class="col-sm-6" id="f_gasproperties" :class="[$v.f_gasproperties.required ? 'formItem-required' : '' ]">
45
+ <input class="form-control col-sm-6" type="text" v-if="selectdata.f_gasproperties"
46
+ v-model="model.f_gasproperties" readonly >
47
+ <input class="form-control col-sm-6" type="text" v-show="false"
48
+ v-validate:f_gasproperties = '{required: true}'
49
+ v-model="model.f_gasproperties" >
50
+ <v-select :is-all-line="true" v-model="model.f_gasproperties" v-ref:gasproperties v-else placeholder='全部' class="col-sm-6"
51
+ :value-single="true"
52
+ :value.sync="model.f_gasproperties"
53
+ :options='fgasproperties'
54
+ close-on-select
55
+ >
56
+ </v-select>
57
+ </div>
58
+ </div>
59
+
60
+ <div class="form-group col-sm-4" v-if="this.isbudget == true">
61
+ <label for="f_stair_price" class="col-sm-6 control-label">气价类型:</label>
62
+ <div class="col-sm-6" id="f_stair_price" :class="[$v.f_stair_price.required ? 'formItem-required' : '' ]">
63
+ <input class="form-control col-sm-6" type="text" v-if="selectdata.f_stair_price"
64
+ v-model="model.f_stair_price" readonly>
65
+ <input class="form-control col-sm-6" type="text" v-show="false"
66
+ v-validate:f_stair_price = '{required: true}'
67
+ v-model="model.f_stair_price" >
68
+ <v-select :is-all-line="true" v-else class="col-sm-6"
69
+ v-model="model.f_stair_price"
70
+ v-ref:stairprice
71
+ placeholder='全部'
72
+ :value-single="true"
73
+ :value.sync="model.f_stair_price"
74
+ :options='fstairprice'
75
+ close-on-select
76
+ >
77
+ </v-select>
78
+ </div>
79
+ </div>
80
+ <div class="form-group col-sm-4" v-if="isbudget">
81
+ <label for="f_sbaz_cost" class=" col-sm-6 control-label">气价名称:</label>
82
+ <div class="col-sm-6" id="f_sbaz_cost" :class="[$v.f_sbaz_cost.required ? 'formItem-required' : '' ]">
83
+ <input class="form-control col-sm-6" type="text" v-model="model.f_stair_price_name" :readonly="edit ? false : 'readonly'" v-validate:f_sbaz_cost = '{required:true}'>
84
+ </div>
85
+ </div>
86
+ <div class="form-group col-sm-6">
87
+ <label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
88
+ <div class="col-sm-6" id="f_filiale">
89
+ <input class="form-control" type="text" v-model="model.f_filiale" disabled>
90
+ </div>
91
+ </div>
92
+ <div class="form-group col-sm-6">
93
+ <label class=" col-sm-5 control-label" for="f_fee_date">操作日期:</label>
94
+ <div class="col-sm-6" id="f_fee_date">
95
+ <input class="form-control" type="text" v-model="model.f_fee_date" disabled>
96
+ </div>
97
+ </div>
98
+ <div class="form-group col-sm-6">
99
+ <label class=" col-sm-4 control-label" for="f_fee_department">部门:</label>
100
+ <div class="col-sm-6" id="f_fee_department">
101
+ <input class="form-control" type="text" v-model="model.f_fee_department" disabled>
102
+ </div>
103
+ </div>
104
+ <div class="form-group col-sm-6">
105
+ <label for="f_fee_operator" class=" col-sm-5 control-label">执行人:</label>
106
+ <div class="col-sm-6" id="f_fee_operator">
107
+ <input class="form-control" type="text" v-model="model.f_fee_operator" disabled>
108
+ </div>
109
+ </div>
110
+ </form>
111
+ </validator>
112
+ <div class="from-group col-sm-12" v-show="edit">
113
+ <center>
114
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
115
+ 保存
116
+ </button>
117
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;" :disabled='!$v.valid'>
118
+ 提交
119
+ </button>
120
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
121
+ 退回
122
+ </button>
123
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
124
+ 取消
125
+ </button>
126
+ </center>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </template>
132
+ <script>
133
+ import co from 'co'
134
+ import AppData from '../../../../../stores/AppData'
135
+ import * as Util from '../../../../Util'
136
+ let gen = function * (self, val) {
137
+ val.f_sub_state = ''
138
+ val.f_temp_date = Util.toStandardTimeString()
139
+ let data ={
140
+ tablename:'t_apply',
141
+ parameters:val
142
+ }
143
+ yield self.$resetpost('rs/logic/save', {data:data})
144
+ data = {
145
+ model: {
146
+ f_processid: self.selectdata.f_process_id,
147
+ },
148
+ loginUser: {
149
+ id: self.$login.f.id,
150
+ name: self.$login.f.name,
151
+ ename: self.$login.f.ename
152
+ },
153
+ subdep: '提交'
154
+ }
155
+ self.$resetpost(`rs/logic/standardnext`,
156
+ {data: data})
157
+ .then(() => {
158
+ self.reset()
159
+ })
160
+ }
161
+ export default {
162
+ title: '收费标准制定',
163
+ data () {
164
+ return {
165
+ isbudget:false,
166
+ fgasproperties: this.$appdata.getParam('用气性质'),
167
+ fstairprice: this.$appdata.getParam('气价类型'),
168
+ model: {
169
+ actid: ''
170
+ }
171
+ }
172
+ },
173
+ props: ['selectdata','edit'],
174
+ ready () {
175
+ this.selectdata.f_gasproperties = this.selectdata.f_gasproperties ? [this.selectdata.f_gasproperties] : this.model.f_gasproperties
176
+ this.selectdata.f_stair_price = this.selectdata.f_stair_price ? [this.selectdata.f_stair_price] : this.model.f_stair_price
177
+ this.model = Object.assign({}, this.model, this.selectdata)
178
+ // this.$nextTick(() => {
179
+ // this.setselect()
180
+ // })
181
+ },
182
+ methods: {
183
+ //保存表单信息
184
+ confirm() {
185
+ //判断当前节点的状态(开始活动/完工)
186
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
187
+ resolveMsg: null,
188
+ rejectMsg: '提交错误!'
189
+ }).then((res) => {
190
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
191
+ if (res.data[0].state != '开始活动') {
192
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
193
+ this.reset()
194
+ } else {
195
+ //通过数据校验再进行下一步判断
196
+ if (this.verification()) {
197
+ let data ={
198
+ tablename:'t_apply',
199
+ parameters:this.model
200
+ }
201
+ this.$resetpost('rs/logic/save',{data:data} )
202
+ .then(() => {
203
+ this.reset()
204
+ })
205
+ }
206
+ }
207
+ })
208
+ },
209
+ //退回上一个节点
210
+ back() {
211
+ let data = {
212
+ model: {
213
+ f_processid: this.selectdata.f_process_id,
214
+ },
215
+ loginUser: {
216
+ id: this.$login.f.id,
217
+ name: this.$login.f.name,
218
+ ename: this.$login.f.ename
219
+ },
220
+ subdep: '退回'
221
+ }
222
+ this.$resetpost(`rs/logic/standardnext`,
223
+ {data: data})
224
+ .then(() => {
225
+ this.reset()
226
+ })
227
+ },
228
+ //提交(保存当前表单信息并下发到下个节点)
229
+ commit () {
230
+ //判断当前节点的状态(开始活动/完工)
231
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
232
+ resolveMsg: null,
233
+ rejectMsg: '提交错误!'
234
+ }).then((res) => {
235
+ if (res.data[0].state != '开始活动') {
236
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
237
+ this.reset()
238
+ } else {
239
+ let data = {
240
+ model: {
241
+ f_processid: this.selectdata.f_process_id,
242
+ },
243
+ loginUser: {
244
+ id: this.$login.f.id,
245
+ name: this.$login.f.name,
246
+ ename: this.$login.f.ename
247
+ },
248
+ subdep: '提交'
249
+ }
250
+
251
+ this.$resetpost(`rs/logic/standardnext`,
252
+ {data: data})
253
+ .then(() => {
254
+ this.reset()
255
+ })
256
+ }
257
+ })
258
+ },
259
+ //取消提交
260
+ reset () {
261
+ this.$dispatch('close')
262
+ this.$dispatch('selfsearch')
263
+ },
264
+ //数据校验
265
+ verification(){
266
+ var isNum = /^(([+]?\d*$)|(^[+]?\d+(\.\d+)?$))/ //非负纯数字
267
+ var regex = /.*?[\u4e00-\u9fa5].*?[\u4e00-\u9fa5].*/ //至少两个汉字
268
+ if(!this.model.f_valueadded_money){
269
+ this.$showMessage("增值业务费不能为空!")
270
+ return false
271
+ }else if(!isNum.test(this.model.f_valueadded_money)){
272
+ this.$showMessage("增值业务费格式错误!")
273
+ return false
274
+ }
275
+ if(!this.model.f_budget_money){
276
+ this.$showMessage("预算金额不能为空!")
277
+ return false
278
+ }else if(!isNum.test(this.model.f_budget_money)){
279
+ this.$showMessage("预算金额格式错误!")
280
+ return false
281
+ }
282
+ if(!this.model.f_budget_person){
283
+ this.$showMessage("预算人员不能为空!")
284
+ return false
285
+ }else if(!regex.test(this.model.f_budget_person.trim())){
286
+ this.$showMessage("预算人员格式错误!")
287
+ return false
288
+ }
289
+
290
+ if(!this.model.f_gasproperties){
291
+ this.$showMessage("用气性质不能为空!")
292
+ return false
293
+ }
294
+ if(!this.model.f_stair_price){
295
+ this.$showMessage("气价类型不能为空!")
296
+ return false
297
+ }
298
+ if(!this.model.f_stair_price_name){
299
+ this.$showMessage("气价名称不能为空!")
300
+ return false
301
+ }
302
+ return true
303
+ },
304
+ setselect () {
305
+ this.selectdata.f_gasproperties = this.selectdata.f_gasproperties ? [this.selectdata.f_gasproperties] : this.model.f_gasproperties
306
+ this.selectdata.f_stair_price = this.selectdata.f_stair_price ? [this.selectdata.f_stair_price] : this.model.f_stair_price
307
+ this.model = Object.assign({}, this.model, this.selectdata)
308
+ this.model.f_fee_date = this.$login.toStandardDateString()
309
+ this.model.f_fee_department = this.$login.f.f_parentname
310
+ this.model.f_fee_operator = this.$login.f.name
311
+ }
312
+ },
313
+ watch: {
314
+ /* 'model.f_stair_price'(){
315
+ console.log("gggg",model.f_stair_price)
316
+ },*/
317
+ 'model.f_isbudget'(val){
318
+ if(val == true){
319
+ this.isbudget = true
320
+ }else{
321
+ this.isbudget = false
322
+ }
323
+ },
324
+ 'selectdata'() {
325
+ this.$nextTick(() => {
326
+ this.setselect()
327
+ })
328
+ }
329
+ },
330
+ }
331
+ </script>
332
+ <style>
333
+ .formItem-required::after {
334
+ content: '*';
335
+ position: absolute;
336
+ font-size: 20px;
337
+ margin-top: 3.5%;
338
+ margin-left: 3%;
339
+ color: #d91118;
340
+ }
341
+ </style>
342
+
@@ -0,0 +1,253 @@
1
+ <template>
2
+ <validator name="v">
3
+ <div class="auto select-overspread">
4
+ <div class="panel panel-info">
5
+ <div class="panel-heading">
6
+ <h3 class="panel-title">通气点火</h3>
7
+ </div>
8
+ <div class="panel-body">
9
+ <form class="form-horizontal">
10
+ <div class="from-group col-sm-11">
11
+ <div class="col-sm-4 form-group" >
12
+ <label class="control-label col-sm-6">移交人:</label>
13
+ <div class="col-sm-6" id="f_transfer_person" :class="[$v.f_transfer_person.required ? 'formItem-required' : '' ]">
14
+ <input type="text" class="form-control col-sm-6" v-model="model.f_transfer_person" :readonly="edit ? false : 'readonly'" v-validate:f_transfer_person ='{required: true }'>
15
+ </div>
16
+ </div>
17
+ <div class="col-sm-4 form-group" >
18
+ <label class="control-label col-sm-6">接收人:</label>
19
+ <div class="col-sm-6" id="f_receiver" :class="[$v.f_receiver.required ? 'formItem-required' : '' ]">
20
+ <input type="text" class="form-control col-sm-6" v-model="model.f_receiver" :readonly="edit ? false : 'readonly'" v-validate:f_receiver ='{required: true }'>
21
+ </div>
22
+ </div>
23
+ <div class="col-sm-4 form-group" >
24
+ <label class="control-label col-sm-6">通气户数:</label>
25
+ <div class="col-sm-6" id="f_entilationv_households" :class="[$v.f_entilationv_households.required ? 'formItem-required' : '' ]">
26
+ <input type="number" class="form-control col-sm-6" v-model="model.f_entilationv_households" :readonly="edit ? false : 'readonly'" v-validate:f_entilationv_households ='{required: true }'>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ <div class="form-group col-sm-11">
31
+ <label class="col-sm-2" >通气点火备注:</label>
32
+ <div class="col-sm-10" id="f_IgnitionVentilation_remark">
33
+ <textarea class="form-control" v-model="model.f_IgnitionVentilation_remark" rows="3"
34
+ :readonly="edit ? false : 'readonly'">
35
+ </textarea>
36
+ </div>
37
+ </div>
38
+ </form>
39
+ <div class="from-group col-sm-12" v-show="edit">
40
+ <center>
41
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
42
+ 保存
43
+ </button>
44
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;" :disabled='!$v.valid'>
45
+ 提交
46
+ </button>
47
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
48
+ 取消
49
+ </button>
50
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
51
+ 退回
52
+ </button>
53
+ </center>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </validator>
59
+ </template>
60
+ <script>
61
+ import co from 'co'
62
+ import * as Util from '../../../../Util'
63
+ import AppData from '../../../../../stores/AppData'
64
+
65
+ let gen = function* (self, val) {
66
+ // val.f_sub_state = ''
67
+ val.f_temp_date = Util.toStandardTimeString()
68
+ if (self.selectdata.defname === '工程结算') {
69
+ if (!val.f_fee_state && self.selectdata.defname === '工程结算') {
70
+ self.$showMessage("请结清费用再提交")
71
+ return
72
+ }
73
+ val.f_fee_state = val.f_fee_state[0]
74
+ }
75
+
76
+ let data = {
77
+ tablename: 't_apply',
78
+ parameters: val
79
+ }
80
+ yield self.$resetpost('rs/logic/save', {data: data})
81
+ if (self.selectdata.defname === '工程结算' && self.selectdata.actdefid === '16') {
82
+ let data = {
83
+ model: {
84
+ f_processid: self.selectdata.f_process_id,
85
+ },
86
+ loginUser: {
87
+ id: self.$login.f.id,
88
+ name: self.$login.f.name,
89
+ ename: self.$login.f.ename
90
+ },
91
+ employeetemplate: self.selectdata.f_survey_name,
92
+ subdep: '提交'
93
+ }
94
+ self.$resetpost(`rs/logic/grantnext`,
95
+ {data: data})
96
+ .then(() => {
97
+ self.reset()
98
+ })
99
+ } else {
100
+ let data = {
101
+ model: {
102
+ f_processid: self.selectdata.f_process_id,
103
+ },
104
+ loginUser: {
105
+ id: self.$login.f.id,
106
+ name: self.$login.f.name,
107
+ ename: self.$login.f.ename
108
+ },
109
+ subdep: '提交'
110
+ }
111
+ self.$resetpost(`rs/logic/ignitionnext`,
112
+ {data: data})
113
+ .then(() => {
114
+ self.reset()
115
+ })
116
+ }
117
+ }
118
+ export default {
119
+ title: '通气点火',
120
+ data() {
121
+ return {
122
+ ffeestate: this.$appdata.getParam('用气类型'),
123
+ model: {
124
+ actid: ''
125
+ }
126
+ }
127
+ },
128
+ props: ['selectdata','edit'],
129
+ ready() {
130
+ this.$nextTick(() => {
131
+ this.model = Object.assign({}, this.model, this.selectdata)
132
+ this.model.f_gas_date = this.$login.toStandardDateString()
133
+ this.model.f_gas_department = this.$login.f.f_parentname
134
+ this.model.f_gas_operator = this.$login.f.name
135
+ })
136
+ },
137
+ methods: {
138
+ back() {
139
+ let data = {
140
+ model: {
141
+ f_processid: this.selectdata.f_process_id,
142
+ },
143
+ loginUser: {
144
+ id: this.$login.f.id,
145
+ name: this.$login.f.name,
146
+ ename: this.$login.f.ename
147
+ },
148
+ subdep: '退回'
149
+ }
150
+ this.$resetpost(`rs/logic/ignitionnext`,
151
+ {data: data})
152
+ .then(() => {
153
+ this.reset()
154
+ })
155
+ },
156
+ confirm() {
157
+ //判断当前节点的状态(开始活动/完工)
158
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
159
+ resolveMsg: null,
160
+ rejectMsg: '提交错误!'
161
+ }).then((res) => {
162
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
163
+ if (res.data[0].state != '开始活动') {
164
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
165
+ this.reset()
166
+ } else {
167
+ //通过数据校验再进行下一步判断
168
+ if (this.verification()) {
169
+ let data ={
170
+ tablename:'t_apply',
171
+ parameters:this.model
172
+ }
173
+ this.$resetpost('rs/logic/save',{data:data} )
174
+ .then(() => {
175
+ this.reset()
176
+ })
177
+ }
178
+ }
179
+ })
180
+ },
181
+ commit() {
182
+ //判断当前节点的状态(开始活动/完工)
183
+ this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
184
+ resolveMsg: null,
185
+ rejectMsg: '提交错误!'
186
+ }).then((res) => {
187
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
188
+ if (res.data[0].state != '开始活动') {
189
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
190
+ this.reset()
191
+ } else {
192
+ //通过数据校验再进行下一步判断
193
+ if (this.verification()) {
194
+ let getGen = gen(this, this.model)
195
+ co(getGen)
196
+ }
197
+ }
198
+ })
199
+ },
200
+ //数据校验
201
+ verification(){
202
+ var isNum = /^(([+]?\d*$)|(^[+]?\d+(\.\d+)?$))/ //非负纯数字
203
+ var regex = /.*?[\u4e00-\u9fa5].*?[\u4e00-\u9fa5].*/ //至少两个汉字
204
+ if(!this.model.f_transfer_person){
205
+ this.$showMessage("移交人不能为空!")
206
+ return false
207
+ }else if(!regex.test(this.model.f_transfer_person.trim())){
208
+ this.$showMessage("移交人请至少输入两个汉字!")
209
+ return false
210
+ }
211
+ if(!this.model.f_receiver){
212
+ this.$showMessage("接收人不能为空!")
213
+ return false
214
+ }else if(!regex.test(this.model.f_receiver.trim())){
215
+ this.$showMessage("接收人请至少输入两个汉字!")
216
+ return false
217
+ }
218
+ if(!this.model.f_entilationv_households){
219
+ this.$showMessage("通气户数不能为空!")
220
+ return false
221
+ }else if(!isNum.test(this.model.f_entilationv_households)){
222
+ this.$showMessage("通气户数格式错误!")
223
+ return false
224
+ }
225
+ return true
226
+ },
227
+ reset() {
228
+ this.$dispatch('close')
229
+ this.$dispatch('selfsearch')
230
+ }
231
+ },
232
+ watch: {
233
+ 'selectdata'() {
234
+ this.$nextTick(() => {
235
+ this.model = Object.assign({}, this.model, this.selectdata)
236
+ this.model.f_gas_date = this.$login.toStandardDateString()
237
+ this.model.f_gas_department = this.$login.f.f_parentname
238
+ this.model.f_gas_operator = this.$login.f.name
239
+ })
240
+ }
241
+ }
242
+ }
243
+ </script>
244
+ <style>
245
+ .formItem-required::after {
246
+ content: '*';
247
+ position: absolute;
248
+ font-size: 20px;
249
+ margin-top: 3.5%;
250
+ margin-left: 3%;
251
+ color: #d91118;
252
+ }
253
+ </style>