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,187 @@
1
+ <template>
2
+ <div id="print1" v-show="false">
3
+ <div id="print2">
4
+ <style id="style1">
5
+ #print2 td{
6
+ height:32px;
7
+ width: 100px;
8
+ text-align: center;
9
+ }
10
+ #print2 table{
11
+ margin: auto;
12
+ }
13
+ #print2 h1{
14
+ text-align: center;
15
+ }
16
+ #print2 p{
17
+ text-align: center;
18
+ }
19
+ .border-btn{
20
+ border-bottom: #000000 solid 2px;
21
+ }
22
+ </style>
23
+ <h1>西昌工程项目设计/测绘申请单</h1>
24
+ <p>申请编号:{{userinfo.f_offsite_time}}</p>
25
+ <table border="1" cellspacing="0" width="800px" height="1000px">
26
+ <tr>
27
+ <td ><b>项目名称</b></td><td width="">{{$parent.model.f_entry_name}}</td>
28
+ <td ><b>设计户数</b></td><td >{{$parent.model.f_install_num}}</td>
29
+ </tr>
30
+ <tr>
31
+ <td><b>市场开发部负责人</b></td><td >{{$parent.model.f_market_person}}</td>
32
+ <td><b>总户数</b></td><td>{{$parent.model.f_total_households}}</td>
33
+ </tr>
34
+ <tr>
35
+ <td><b>已登记户数</b></td><td >{{$parent.model.f_register_households}}</td>
36
+ <td ><b>用气类型</b></td><td >{{$parent.model.f_gas_type}}</td>
37
+ </tr>
38
+ <tr>
39
+ <td><b>客户联系人</b></td><td >{{$parent.model.f_customer_contact}}</td>
40
+ <td><b>联系电话</b></td><td >{{$parent.model.f_contact}}</td>
41
+ </tr>
42
+ <tr>
43
+ <td><b>勘查人员</b></td><td >{{$parent.model.f_survey_name}}</td>
44
+ <td ><b>已完成户数</b></td><td >{{$parent.model.f_ompletion_households}}</td>
45
+ </tr>
46
+ <tr>
47
+ <td ><b>勘查日期</b></td><td >{{$parent.model.f_survey_time}}</td>
48
+ <td ><b>是否设计出图</b></td><td >{{$parent.model.f_isdesign==true?"是":"否"}}</td>
49
+ </tr>
50
+ <tr>
51
+ <td ><b>申请类别</b></td><td >{{$parent.model.f_application_type}}</td>
52
+ <td ><b>完成时间</b></td><td >{{$parent.model.f_ompletion_time}}</td>
53
+ </tr>
54
+ <tr>
55
+ <td ><b>设计周期</b></td><td >{{$parent.model.f_design_cycle}}</td>
56
+ <td ><b>设计派工日期</b></td><td >{{$parent.model.f_design_start_date}}</td>
57
+ </tr>
58
+ <tr>
59
+ <td ><b>设计完成日期</b></td><td >{{$parent.model.f_design_end_date}}</td>
60
+ <td ><b>图纸设计人</b></td><td >{{$parent.model.f_designer}}</td>
61
+ </tr>
62
+ <tr>
63
+ <td ><b>图纸审计单位</b></td><td >{{$parent.model.f_design_unit}}</td>
64
+ <td ><b>图纸审核人</b></td><td >{{$parent.model.f_design_check_name}}</td>
65
+ </tr>
66
+ <tr>
67
+ <td ><b>市场开发部意见</b></td><td colspan="3" >{{$parent.model.f_market_opinions}}</td>
68
+ </tr>
69
+ <tr>
70
+ <td ><b>工程管理部意见</b></td><td colspan="3" >{{$parent.model.f_engineer_opinions}}</td>
71
+ </tr>
72
+ <tr>
73
+ <td ><b>工程总监意见</b></td><td colspan="3" >{{$parent.model.f_inspector_opinions}}</td>
74
+ </tr>
75
+
76
+ <tr>
77
+ <td colspan="4" height="15%">
78
+ <p>附见:设计依据</p>
79
+ <p>备注:</p>
80
+ &nbsp;&nbsp;<p>1、委托编号</p>
81
+ </td>
82
+ </tr>
83
+
84
+ </table>
85
+ </div>
86
+ </div>
87
+
88
+ <modal :show.sync="show" v-ref:modal :backdrop="isBack">
89
+ <div slot="modal-header" class="modal-header">
90
+ <span class="modal-title font">
91
+ 测绘申请单打印
92
+ </span>
93
+ </div>
94
+ <div slot="modal-body" class="modal-body">
95
+ 确定打印测绘申请单?
96
+ </div>
97
+ <div slot="modal-footer" class="modal-footer">
98
+ <button type="button" class="btn btn-cancel" @click="cancel()">取消</button>
99
+ <print-element @click="getInfo" class="btn btn-success width-80" id="print1" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
100
+ </div>
101
+ </modal>
102
+
103
+ </template>
104
+
105
+ <script>
106
+
107
+ import co from 'co'
108
+ import { PagedList } from 'vue-client'
109
+
110
+ export default {
111
+ title: '安检信息',
112
+ data () {
113
+ return {
114
+ imgs:[],
115
+ normalDevices:{},//设备信息
116
+ device:[],//表具信息
117
+ devices:[],//所有表具信息
118
+ userinfo:[],
119
+ deviceInfo:{},//具体表具信息
120
+ deviceInfos:{},//每个表具的所有信息
121
+ drowspan:0,
122
+ erowspan:0,//设备信息个数
123
+ hrowspan:0,//隐患数
124
+ f_defect_content:'', //安检结果
125
+ equipmentmsgs:[],//所有设备信息
126
+ Hinvestigations:[], //所有隐患信息
127
+ Hinvestigation:{},
128
+ defect:{},//隐患信息
129
+ normal:{},
130
+ normalDevice:[],
131
+ Hiddenchecks:[],
132
+ hiddenvalues:[],
133
+ HazardDevice:[],
134
+ HazardDevices:{},
135
+ printtime:'',
136
+ print_id:'',
137
+ showAdd:true,
138
+ company:''
139
+ }
140
+ },
141
+ props: ['data','show'],
142
+ ready () {
143
+
144
+ },
145
+ methods: {
146
+ cancel(){
147
+ this.$parent.showcheckmsg = false
148
+ },
149
+ gotoPage(val,data,self='tab'){
150
+ console.log(data)
151
+ data.f_type = '回访'
152
+ data.f_telvisit_type = '安检'
153
+ this.$goto(val,{row:data},self)
154
+ },
155
+ //获取当前时间
156
+ getNowFormatDate() {
157
+ var date = new Date(this.userinfo.f_check_date);
158
+ var month = date.getMonth() + 1;
159
+ var strDate = date.getDate();
160
+ if (month >= 1 && month <= 9) {
161
+ month = "0" + month;
162
+ }
163
+ if (strDate >= 0 && strDate <= 9) {
164
+ strDate = "0" + strDate;
165
+ }
166
+ var currentdate = date.getFullYear() +'年'+ month + '月' + strDate
167
+ + "日" + date.getHours() + "时" + date.getMinutes()+'分'
168
+ return currentdate;
169
+ },
170
+ // getId(){
171
+ // console.log('返回值:')
172
+ // },
173
+ //获取隐患信息
174
+ getInfo(){
175
+ setTimeout(()=> {
176
+ console.log('关闭打印提示框')
177
+ this.$parent.showPrint = false
178
+ this.$dispatch('finashPrint')
179
+ }, 1000)
180
+ },
181
+ }
182
+ }
183
+ </script>
184
+ <style media="screen" scoped>
185
+
186
+
187
+ </style>
@@ -0,0 +1,404 @@
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="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">
14
+ <input type="text" class="form-control col-sm-6" id="f_project_name" v-model="model.f_project_name"
15
+ disabled>
16
+ </div>
17
+ </div>
18
+ <div class="col-sm-4 form-group">
19
+ <label class="control-label col-sm-6">施工任务书编号:</label>
20
+ <div class="col-sm-6" id="f_project_number"
21
+ :class="[$v.f_project_number.required ? 'formItem-required' : '' ]">
22
+ <input type="text" class="form-control col-sm-6" id="f_project_name" v-model="model.f_project_number"
23
+ :readonly="edit ? false : 'readonly'" v-validate:f_project_number='{required: true }'>
24
+ </div>
25
+ </div>
26
+ <div class="col-sm-4 form-group">
27
+ <label class="control-label col-sm-6">开工日期:</label>
28
+ <div class="col-sm-6" id="f_project_startdate"
29
+ :class="[$v.f_project_startdate.required ? 'formItem-required' : '' ]"
30
+ >
31
+ <input type="text" v-show="false" v-model="model.f_project_startdate"
32
+ v-validate:f_project_startdate='{required: true }'>
33
+ <datepicker width="200.72px;" v-ref:f_project_startdate
34
+ :value.sync="model.f_project_startdate"
35
+ :disabled-days-of-Week="[]"
36
+ :readonly="true"
37
+ :format="'yyyy-MM-dd'"
38
+ v-model="model.f_project_startdate"
39
+ :show-reset-button="reset"
40
+ class="col-sm-6">
41
+ </datepicker>
42
+ </div>
43
+ </div>
44
+
45
+ </div>
46
+ <div class="from-group col-sm-11">
47
+
48
+ <div class="col-sm-4 form-group">
49
+ <label class="control-label col-sm-6">竣工日期:</label>
50
+ <div class="col-sm-6" id="f_project_enddate"
51
+ :class="[$v.f_project_enddate.required ? 'formItem-required' : '' ]">
52
+ <input type="text" v-show="false" v-model="model.f_project_enddate"
53
+ v-validate:f_project_enddate='{required: true }'>
54
+ <datepicker width="200.72px;" v-ref:f_project_enddate
55
+ :value.sync="model.f_project_enddate"
56
+ :disabled-days-of-Week="[]"
57
+ :format="'yyyy-MM-dd'"
58
+ :readonly="true"
59
+ v-model="model.f_project_enddate"
60
+ :show-reset-button="reset"
61
+ class="col-sm-6">
62
+ </datepicker>
63
+ </div>
64
+ </div>
65
+ <div class="col-sm-4 form-group">
66
+ <label class="control-label col-sm-6">现场代表:</label>
67
+ <div class="col-sm-6">
68
+ <input type="text" class="form-control col-sm-6" id="f_scne_deputy" v-model="model.f_scne_deputy"
69
+ :readonly="edit ? false : 'readonly'">
70
+ </div>
71
+ </div>
72
+ <div class="col-sm-4 form-group">
73
+ <label class="control-label col-sm-6">验收人员:</label>
74
+ <div class="col-sm-6">
75
+ <input type="text" class="form-control col-sm-6" id="f_check_person" v-model="model.f_check_person"
76
+ :readonly="edit ? false : 'readonly'">
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ <div class="from-group col-sm-11">
82
+
83
+ <div class="col-sm-4 form-group">
84
+ <label class="control-label col-sm-6">施工地点:</label>
85
+ <div class="col-sm-6">
86
+ <input type="text" class="form-control col-sm-6" id="f_project_name" v-model="model.f_usegasren_address"
87
+ disabled>
88
+ </div>
89
+ </div>
90
+ <div class="col-sm-4 form-group">
91
+ <label class="control-label col-sm-6">验收日期:</label>
92
+ <div class="col-sm-6">
93
+ <input type="text" id="f_check_date" v-show="false" v-model="$refs.dunitdate.value"
94
+ :readonly="edit ? false : 'readonly'">
95
+ <datepicker width="200.72px;" v-ref:f_check_date
96
+ :value.sync="model.f_check_date"
97
+ :disabled-days-of-Week="[]"
98
+ :readonly="true"
99
+ :format="'yyyy-MM-dd'"
100
+ v-model="model.f_check_date"
101
+ :show-reset-button="reset"
102
+ class="col-sm-6">
103
+ </datepicker>
104
+ </div>
105
+ </div>
106
+ </div>
107
+
108
+
109
+ <div class="col-sm-11">
110
+ <div class="panel panel-info">
111
+ <div class="panel-heading">
112
+ <h3 class="panel-title">验收内容</h3>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <div class="form-group col-sm-11"
117
+ v-show="model.f_apply_type.includes('居民') || model.f_apply_type.includes('市政')">
118
+ <div class="form-group col-sm-11">
119
+ <label class="col-sm-2" for="f_survey_remarks">庭院工程:</label>
120
+ <div class="col-sm-10" id="f_survey_remarks">
121
+ <textarea class="form-control" v-model="model.f_courtyard_project" rows="3"
122
+ :readonly="edit ? false : 'readonly'">
123
+ </textarea>
124
+ </div>
125
+ </div>
126
+ <div class="form-group col-sm-11">
127
+ <label class="col-sm-2" for="f_survey_remarks">户内工程:</label>
128
+ <div class="col-sm-10" id="f_survey_remarks">
129
+ <textarea class="form-control" v-model="model.f_indoor_project" rows="3"
130
+ :readonly="edit ? false : 'readonly'">
131
+ </textarea>
132
+ </div>
133
+ </div>
134
+ <div class="form-group col-sm-11">
135
+ <label class="col-sm-2" for="f_survey_remarks">市政工程:</label>
136
+ <div class="col-sm-10" id="f_survey_remarks">
137
+ <textarea class="form-control" v-model="model.f_municipality_project" rows="3"
138
+ :readonly="edit ? false : 'readonly'">
139
+ </textarea>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+ <div class="form-group col-sm-11"
145
+ v-show="model.f_apply_type.includes('工业') || model.f_apply_type.includes('商业')">
146
+ <div class="form-group col-sm-11">
147
+ <label class="col-sm-2" for="f_pipeline_project">管线工程:</label>
148
+ <div class="col-sm-10" id="f_pipeline_project">
149
+ <textarea class="form-control" v-model="model.f_pipeline_project" rows="3"
150
+ :readonly="edit ? false : 'readonly'">
151
+ </textarea>
152
+ </div>
153
+ </div>
154
+ <div class="form-group col-sm-11">
155
+ <label class="col-sm-2" for="f_eq_install">设备安装:</label>
156
+ <div class="col-sm-10" id="f_eq_install">
157
+ <textarea class="form-control" v-model="model.f_eq_install" rows="3"
158
+ :readonly="edit ? false : 'readonly'">
159
+ </textarea>
160
+ </div>
161
+ </div>
162
+ <div class="form-group col-sm-11">
163
+ <label class="col-sm-2" for="f_police_system">报警系统:</label>
164
+ <div class="col-sm-10" id="f_police_system">
165
+ <textarea class="form-control" v-model="model.f_police_system" rows="3"
166
+ :readonly="edit ? false : 'readonly'">
167
+ </textarea>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ <div class="form-group col-sm-11">
172
+ <div class="form-group col-sm-11">
173
+ <label class="col-sm-2" for="f_survey_remarks">验收结论:</label>
174
+ <div class="col-sm-10" id="f_survey_remarks">
175
+ <textarea class="form-control" v-model="model.f_completed_remarks" rows="3"
176
+ :readonly="edit ? false : 'readonly'">
177
+ </textarea>
178
+ </div>
179
+ </div>
180
+ <div class="form-group col-sm-6">
181
+ <label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
182
+ <div class="col-sm-5" id="f_filiale">
183
+ <input class="form-control" type="text" v-model="model.f_filiale" disabled>
184
+ </div>
185
+ </div>
186
+ <div class="col-sm-6 form-group">
187
+ <label class="control-label col-sm-4">操作日期:</label>
188
+ <div class="col-sm-5">
189
+ <input type="text" class="form-control" disabled v-model="model.f_completed_date"/>
190
+ </div>
191
+ </div>
192
+ <div class="col-sm-6 form-group">
193
+ <label class="control-label col-sm-4">部门:</label>
194
+ <div class="col-sm-5">
195
+ <input type="text" class="form-control" disabled v-model="model.f_completed_department"/>
196
+ </div>
197
+ </div>
198
+ <div class="col-sm-6 form-group">
199
+ <label class="control-label col-sm-4">操作人:</label>
200
+ <div class="col-sm-5">
201
+ <input type="text" class="form-control" disabled v-model="model.f_completed_operator"/>
202
+ </div>
203
+ </div>
204
+ </div>
205
+ </form>
206
+ </validator>
207
+ <div class="from-group col-sm-12" v-show="edit">
208
+ <center>
209
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
210
+ 保存
211
+ </button>
212
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;"
213
+ :disabled='!$v.valid'>
214
+ 提交
215
+ </button>
216
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
217
+ 取消
218
+ </button>
219
+ <button type="button" @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
220
+ 退回
221
+ </button>
222
+ </center>
223
+ </div>
224
+ </div>
225
+ </template>
226
+ <script>
227
+ import co from 'co'
228
+ import AppData from '../../../../../stores/AppData'
229
+ import * as Util from '../../../../Util'
230
+
231
+ let gen = function* (self, val) {
232
+ val.f_sub_state = ''
233
+ val.f_temp_date = Util.toStandardTimeString()
234
+ val.f_check_project = val.f_check_project[0] ? val.f_check_project[0] : ''
235
+ val.f_check_blueprint = val.f_check_blueprint[0] ? val.f_check_blueprint[0] : ''
236
+ let data = {
237
+ tablename: 't_apply',
238
+ parameters: val
239
+ }
240
+ yield self.$resetpost('rs/logic/save', {data: data})
241
+ if (self.selectdata.defname === '内部验收' && self.selectdata.actdefid === '14') {
242
+ let data = {
243
+ model: {
244
+ f_processid: self.selectdata.f_process_id,
245
+ },
246
+ loginUser: {
247
+ id: self.$login.f.id,
248
+ name: self.$login.f.name,
249
+ ename: self.$login.f.ename
250
+ },
251
+ employeetemplate: self.selectdata.f_survey_name,
252
+ subdep: '提交'
253
+ }
254
+ self.$resetpost(`rs/logic/grantnext`,
255
+ {data: data})
256
+ .then(() => {
257
+ self.reset()
258
+ })
259
+ } else {
260
+ let data = {
261
+ model: {
262
+ f_processid: self.selectdata.f_process_id,
263
+ },
264
+ loginUser: {
265
+ id: self.$login.f.id,
266
+ name: self.$login.f.name,
267
+ ename: self.$login.f.ename
268
+ },
269
+ subdep: '提交'
270
+ }
271
+ self.$resetpost(`rs/logic/checknext`,
272
+ {data: data})
273
+ .then(() => {
274
+ self.reset()
275
+ })
276
+ }
277
+
278
+ }
279
+ export default {
280
+ title: '竣工验收',
281
+ data() {
282
+ return {
283
+ model: {
284
+ actid: ''
285
+ }
286
+ }
287
+ },
288
+ props: ['selectdata', 'edit'],
289
+ ready() {
290
+ this.$nextTick(() => {
291
+ this.setselect()
292
+ })
293
+ },
294
+ methods: {
295
+ back() {
296
+ let data = {
297
+ model: {
298
+ f_processid: this.selectdata.f_process_id,
299
+ },
300
+ loginUser: {
301
+ id: this.$login.f.id,
302
+ name: this.$login.f.name,
303
+ ename: this.$login.f.ename
304
+ },
305
+ subdep: '退回'
306
+ }
307
+ this.$resetpost(`rs/logic/checknext`,
308
+ {data: data})
309
+ .then(() => {
310
+ this.reset()
311
+ })
312
+ },
313
+ confirm() {
314
+ //判断当前节点的状态(开始活动/完工)
315
+ this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
316
+ resolveMsg: null,
317
+ rejectMsg: '提交错误!'
318
+ }).then((res) => {
319
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
320
+ if (res.data[0].state != '开始活动') {
321
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
322
+ this.reset()
323
+ } else {
324
+ //通过数据校验再进行下一步判断
325
+ if (this.verification()) {
326
+ let data = {
327
+ tablename: 't_apply',
328
+ parameters: this.model
329
+ }
330
+ this.$resetpost('rs/logic/save', {data: data})
331
+ .then(() => {
332
+ this.reset()
333
+ })
334
+ }
335
+ }
336
+ })
337
+ },
338
+ commit() {
339
+ //判断当前节点的状态(开始活动/完工)
340
+ this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
341
+ resolveMsg: null,
342
+ rejectMsg: '提交错误!'
343
+ }).then((res) => {
344
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
345
+ if (res.data[0].state != '开始活动') {
346
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
347
+ this.reset()
348
+ } else {
349
+ //通过数据校验再进行下一步判断
350
+ if (this.verification()) {
351
+ let getGen = gen(this, this.model)
352
+ co(getGen)
353
+ }
354
+ }
355
+ })
356
+ },
357
+ //数据校验
358
+ verification() {
359
+ if (!this.model.f_project_number) {
360
+ this.$showMessage("施工任务书编号不能为空!")
361
+ return false
362
+ }
363
+ if (!this.model.f_project_startdate) {
364
+ this.$showMessage("开工日期不能为空!")
365
+ return false
366
+ }
367
+ if (!this.model.f_project_enddate) {
368
+ this.$showMessage("竣工日期不能为空!")
369
+ return false
370
+ }
371
+ return true
372
+ },
373
+ reset() {
374
+ this.$dispatch('close')
375
+ this.$dispatch('selfsearch')
376
+ },
377
+ setselect() {
378
+ this.selectdata.f_check_project = [this.selectdata.f_check_project ? this.selectdata.f_check_project : this.model.f_check_project]
379
+ this.selectdata.f_check_blueprint = [this.selectdata.f_check_blueprint ? this.selectdata.f_check_blueprint : this.model.f_check_blueprint]
380
+ this.model = Object.assign({}, this.model, this.selectdata)
381
+ this.model.f_completed_date = this.$login.toStandardDateString()
382
+ this.model.f_completed_department = this.$login.f.f_parentname
383
+ this.model.f_completed_operator = this.$login.f.name
384
+ }
385
+ },
386
+ watch: {
387
+ 'selectdata'() {
388
+ this.$nextTick(() => {
389
+ this.setselect()
390
+ })
391
+ }
392
+ }
393
+ }
394
+ </script>
395
+ <style>
396
+ .formItem-required::after {
397
+ content: '*';
398
+ position: absolute;
399
+ font-size: 20px;
400
+ margin-top: 3.5%;
401
+ margin-left: 3%;
402
+ color: #d91118;
403
+ }
404
+ </style>