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,409 @@
1
+ <template>
2
+ <div class="auto">
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 select-overspread">
10
+ <div class="form-group col-sm-11">
11
+ <div class="form-group col-sm-4">
12
+ <label for="f_project_name" class=" col-sm-6 control-label">工程名称:</label>
13
+ <div class="col-sm-6" id="f_project_name">
14
+ <input class="form-control" type="text" v-model="model.f_project_name" disabled>
15
+ </div>
16
+ </div>
17
+ <div class="form-group col-sm-4">
18
+ <label for="f_usegasren_address" class=" col-sm-6 control-label">工程地址:</label>
19
+ <div class="col-sm-6" id="f_usegasren_address">
20
+ <input class="form-control" type="text" v-model="model.f_usegasren_address"
21
+ :readonly="edit ? false : 'readonly'">
22
+ </div>
23
+ </div>
24
+ <div class="form-group col-sm-4">
25
+ <label for="f_lueprintb_num" class=" col-sm-6 control-label">图纸编号:</label>
26
+ <div class="col-sm-6" id="f_lueprintb_num"
27
+ :class="[$v.f_lueprintb_num.required ? 'formItem-required' : '' ]">
28
+ <input class="form-control col-sm-6" type="text" v-model="model.f_lueprintb_num"
29
+ :readonly="edit ? false : 'readonly'" v-validate:f_lueprintb_num='{required: true }'>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <div class="form-group col-sm-11">
34
+ <div class="form-group col-sm-4">
35
+ <label for="f_apply_type" class=" col-sm-6 control-label">用户类型:</label>
36
+ <div class="col-sm-6" id="f_apply_type">
37
+ <input class="form-control col-sm-6" type="text" v-model="model.f_apply_type" disabled>
38
+ </div>
39
+ </div>
40
+ <div class="form-group col-sm-4">
41
+ <label for="f_total_households" class=" col-sm-6 control-label">工程量(总户数):</label>
42
+ <div class="col-sm-6" id="f_total_households">
43
+ <input class="form-control col-sm-6" type="number" v-model="model.f_total_households" disabled>
44
+ </div>
45
+ </div>
46
+ <div class="form-group col-sm-4">
47
+ <label for="f_backamount_household" class=" col-sm-6 control-label">已收款户数:</label>
48
+ <div class="col-sm-6" id="f_backamount_household">
49
+ <input class="form-control col-sm-6" type="text" v-model="model.f_backamount_household" disabled>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="form-group col-sm-11">
54
+ <div class="form-group col-sm-4">
55
+ <label for="f_approach_time" class="col-sm-6 control-label">安排进场时间:</label>
56
+ <div class="col-sm-6" id="f_approach_time"
57
+ :class="[$v.f_approach_time.required ? 'formItem-required' : '' ]">
58
+ <input type="text" v-show="false" v-model="model.f_approach_time" :readonly="edit ? false : 'readonly'"
59
+ v-validate:f_approach_time='{required: true }'>
60
+ <datepicker id="f_approach_time" width="200.72px;" v-ref:f_approach_time
61
+ :value.sync="model.f_approach_time"
62
+ :disabled-days-of-Week="[]"
63
+ :readonly="true"
64
+ :format="'yyyy-MM-dd'"
65
+ v-model="model.f_approach_time"
66
+ class="col-sm-6">
67
+ </datepicker>
68
+ </div>
69
+ </div>
70
+ <div class="form-group col-sm-4">
71
+ <label for="f_finished_time" class="col-sm-6 control-label">计划完工时间:</label>
72
+ <div class="col-sm-6" id="f_finished_time"
73
+ :class="[$v.f_finished_time.required ? 'formItem-required' : '' ]">
74
+ <input type="text" v-show="false" v-model="model.f_finished_time" :readonly="edit ? false : 'readonly'"
75
+ v-validate:f_finished_time='{required: true }'>
76
+ <datepicker id="f_survey_time" width="200.72px;" v-ref:f_finished_time
77
+ :value.sync="model.f_finished_time"
78
+ :disabled-days-of-Week="[]"
79
+ :format="'yyyy-MM-dd'"
80
+ :readonly="true"
81
+ v-model="model.f_finished_time"
82
+ class="col-sm-6">
83
+ </datepicker>
84
+ </div>
85
+ </div>
86
+ <div class="form-group col-sm-4">
87
+ <label for="f_customer_contact" class=" col-sm-6 control-label">客户联系人:</label>
88
+ <div class="col-sm-6" id="f_customer_contact">
89
+ <input class="form-control" type="text" v-model="model.f_customer_contact" disabled>
90
+ </div>
91
+ </div>
92
+ </div>
93
+
94
+ <div class="form-group col-sm-11">
95
+ <div class="form-group col-sm-4">
96
+ <label for="f_contact" class=" col-sm-6 control-label">客户电话:</label>
97
+ <div class="col-sm-6" id="f_contact">
98
+ <input class="form-control col-sm-6" type="text" v-model="model.f_contact" disabled>
99
+ </div>
100
+ </div>
101
+ <div class="form-group col-sm-4">
102
+ <label for="f_market_development" class=" col-sm-6 control-label">市场开发员:</label>
103
+ <div class="col-sm-6" id="f_market_development"
104
+ :class="[$v.f_market_development.required ? 'formItem-required' : '' ]">
105
+ <input class="form-control col-sm-6" type="text" v-model="model.f_market_development"
106
+ :readonly="edit ? false : 'readonly'" v-validate:f_market_development='{required: true }'>
107
+ </div>
108
+ </div>
109
+ <div class="form-group col-sm-4">
110
+ <label for="f_market_development_phone" class=" col-sm-6 control-label">开发员电话:</label>
111
+ <div class="col-sm-6" id="f_market_development_phone"
112
+ :class="[$v.f_market_development_phone.required ? 'formItem-required' : '' ]">
113
+ <input class="form-control col-sm-6" type="text" v-model="model.f_market_development_phone"
114
+ :readonly="edit ? false : 'readonly'" v-validate:f_market_development_phone='{required: true }'>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ <div class="form-group col-sm-11">
119
+ <div class="panel panel-info">
120
+ <div class="panel-heading">
121
+ <h3 class="panel-title">施工单位信息</h3>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <div class="form-group col-sm-11">
126
+ <div class="form-group col-sm-4">
127
+ <label for="f_construction_project_department" class=" col-sm-6 control-label">施工单位:</label>
128
+ <div class="col-sm-6" id="f_construction_project_department" :class="[$v.f_construction_project_department.required ? 'formItem-required' : '' ]">
129
+ <input class="form-control col-sm-6" type="text" v-model="model.f_construction_project_department"
130
+ :readonly="edit ? false : 'readonly'" v-validate:f_construction_project_department ='{required: true }'>
131
+ </div>
132
+ </div>
133
+ <div class="form-group col-sm-4">
134
+ <label for="f_project_principal" class=" col-sm-6 control-label">施工负责人:</label>
135
+ <div class="col-sm-6" id="f_project_principal">
136
+ <input class="form-control col-sm-6" type="text" v-model="model.f_project_principal"
137
+ :readonly="edit ? false : 'readonly'">
138
+ </div>
139
+ </div>
140
+ <div class="form-group col-sm-4">
141
+ <label for="f_construction_project_phone" class=" col-sm-6 control-label">联系电话:</label>
142
+ <div class="col-sm-6" id="f_construction_project_phone" :class="[$v.f_construction_project_phone.required ? 'formItem-required' : '' ]">
143
+ <input class="form-control col-sm-6" type="text" v-model="model.f_construction_project_phone"
144
+ v-validate:f_construction_project_phone ='{required: true }'
145
+ :readonly="edit ? false : 'readonly'">
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </form>
150
+ </validator>
151
+ <div class="from-group col-sm-12" v-show="edit">
152
+ <center>
153
+ <button @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:50px;">
154
+ 保存
155
+ </button>
156
+ <button @click="commit()" class="btn btn-primary" style="width:80px; margin-left:50px;" :disabled='!$v.valid'>
157
+ 提交
158
+ </button>
159
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
160
+ 取消
161
+ </button>
162
+ <button @click="back()" class="btn btn-warning" style="width:80px; margin-left:50px;">
163
+ 退回
164
+ </button>
165
+ </center>
166
+ </div>
167
+ </div>
168
+ </template>
169
+ <script>
170
+ import co from 'co'
171
+ import * as Util from '../../../../Util'
172
+
173
+ let gen = function* (self, val) {
174
+ val.f_sub_state = ''
175
+ val.f_temp_date = Util.toStandardTimeString()
176
+ self.setval()
177
+ let data = {
178
+ tablename: 't_apply',
179
+ parameters: val
180
+ }
181
+ yield self.$resetpost('rs/logic/save', {data: data})
182
+ data = {
183
+ model: {
184
+ f_processid: self.selectdata.f_process_id,
185
+ },
186
+ loginUser: {
187
+ id: self.$login.f.id,
188
+ name: self.$login.f.name,
189
+ ename: self.$login.f.ename
190
+ },
191
+ subdep: '提交'
192
+ }
193
+ self.$resetpost(`rs/logic/engineeringnext`,
194
+ {data: data})
195
+ .then(() => {
196
+ self.reset()
197
+ })
198
+ }
199
+ export default {
200
+ title: '工程施工任务书',
201
+ data() {
202
+ return {
203
+ fprojectprincipal: this.$appdata.getParam('工程负责人'),
204
+ frepresentative: this.$appdata.getParam('现场代表'),
205
+ fsupervisionunit: this.$appdata.getParam('监理单位'),
206
+ fbuildunit: this.$appdata.getParam('建设单位'),
207
+ fconstructionunit: this.$appdata.getParam('施工单位'),
208
+ flag: false,
209
+ model: {
210
+ actid: ''
211
+ }
212
+ }
213
+ },
214
+ props: ['selectdata', 'edit'],
215
+ ready() {
216
+ this.load()
217
+ /* this.$nextTick(() => {
218
+ this.setselect()
219
+ })*/
220
+ },
221
+ methods: {
222
+ async load() {
223
+ await this.$ApplyLoadParams.loadParam()
224
+ this.flag = true
225
+ },
226
+ back() {
227
+ let data = {
228
+ model: {
229
+ f_processid: this.selectdata.f_process_id,
230
+ },
231
+ loginUser: {
232
+ id: this.$login.f.id,
233
+ name: this.$login.f.name,
234
+ ename: this.$login.f.ename
235
+ },
236
+ subdep: '退回'
237
+ }
238
+ this.$resetpost(`rs/logic/engineeringnext`,
239
+ {data: data})
240
+ .then(() => {
241
+ this.reset()
242
+ })
243
+ },
244
+ confirm() {
245
+ //判断当前节点的状态(开始活动/完工)
246
+ this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
247
+ resolveMsg: null,
248
+ rejectMsg: '提交错误!'
249
+ }).then((res) => {
250
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
251
+ if (res.data[0].state != '开始活动') {
252
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
253
+ this.reset()
254
+ } else {
255
+ //通过数据校验再进行下一步判断
256
+ if (this.verification()) {
257
+ let data = {
258
+ tablename: 't_apply',
259
+ parameters: this.model
260
+ }
261
+ this.$resetpost('rs/logic/save', {data: data})
262
+ .then(() => {
263
+ this.reset()
264
+ })
265
+ }
266
+ }
267
+ })
268
+ },
269
+ commit() {
270
+ //判断当前节点的状态(开始活动/完工)
271
+ this.$resetpost('rs/sql/findProcessState', {data: {actid: this.selectdata.actid}}, {
272
+ resolveMsg: null,
273
+ rejectMsg: '提交错误!'
274
+ }).then((res) => {
275
+ console.log(">>>>>>>>>节点状态查询结果<<<<<<<<<<<", res)
276
+ if (res.data[0].state != '开始活动') {
277
+ this.$showMessage("该节点信息已在别处提交,请刷新!")
278
+ this.reset()
279
+ } else {
280
+ //通过数据校验再进行下一步判断
281
+ if (this.verification()) {
282
+ let getGen = gen(this, this.model)
283
+ co(getGen)
284
+ }
285
+ }
286
+ })
287
+ },
288
+ //数据校验
289
+ verification() {
290
+ var regex = /^[\u4e00-\u9fa5]{2,}$/ //至少两个汉字
291
+ var phoneReg = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/ //手机号码正则
292
+ var telReg = /0\d{2,3}-\d{7,8}/ //座机正则
293
+ if (!this.model.f_lueprintb_num) {
294
+ this.$showMessage("图纸编号不能为空!")
295
+ return false
296
+ }
297
+ if (!this.model.f_approach_time) {
298
+ this.$showMessage("安排进场时间不能为空!")
299
+ return false
300
+ }
301
+ if (!this.model.f_finished_time) {
302
+ this.$showMessage("计划完工时间不能为空!")
303
+ return false
304
+ }
305
+ if (!this.model.f_market_development) {
306
+ this.$showMessage("市场开发员不能为空!")
307
+ return false
308
+ } else if (!regex.test(this.model.f_market_development.trim())) {
309
+ this.$showMessage("市场开发员格式错误!")
310
+ return false
311
+ }
312
+ if (!this.model.f_market_development_phone) {
313
+ this.$showMessage("开发员电话不能为空!")
314
+ return false
315
+ } else if (!telReg.test(this.model.f_market_development_phone) && !phoneReg.test(this.model.f_market_development_phone)) {
316
+ this.$showMessage("开发员电话格式错误!")
317
+ return false
318
+ }
319
+ if (!this.model.f_construction_project_department) {
320
+ this.$showMessage("施工项目部不能为空!")
321
+ return false
322
+ }
323
+ if (!this.model.f_construction_project_phone) {
324
+ this.$showMessage("施工项目部联系电话不能为空!")
325
+ return false
326
+ } else if (!telReg.test(this.model.f_construction_project_phone) && !phoneReg.test(this.model.f_construction_project_phone)) {
327
+ this.$showMessage("施工项目部联系电话格式错误!")
328
+ return false
329
+ }
330
+ return true
331
+ },
332
+ reset() {
333
+ this.$dispatch('close')
334
+ this.$dispatch('selfsearch')
335
+ },
336
+ setselect() {
337
+ this.model = Object.assign({}, this.model, this.selectdata)
338
+ this.model.f_tasking_date = this.$login.toStandardDateString()
339
+ this.model.f_tasking_department = this.$login.f.f_parentname
340
+ this.model.f_tasking_operator = this.$login.f.name
341
+ },
342
+ setval() {
343
+ }
344
+ },
345
+ watch: {
346
+ 'flag'() {
347
+ if (this.flag) {
348
+ this.$nextTick(() => {
349
+ this.setselect()
350
+ })
351
+ }
352
+ },
353
+ 'model.f_meter_brand[0]'() {
354
+ let val = this.model.f_meter_brand[0]
355
+ this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
356
+ if (val === item.label) {
357
+ this.model.f_meter_type = item.value.f_meter_type
358
+ this.model.f_manufacturers = item.value.f_manufacturers
359
+ this.model.f_alias = item.value.f_alias
360
+ }
361
+ })
362
+ },
363
+ },
364
+ computed: {
365
+ brand() {
366
+ let arr = []
367
+ let flag = this.flag
368
+ if (flag) {
369
+ this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
370
+ let temp = {}
371
+ temp.label = item.label
372
+ temp.value = item.label
373
+ arr.push(temp)
374
+ })
375
+ }
376
+ return arr
377
+ },
378
+ styled() {
379
+ let arr = []
380
+ let temp = this.model.f_meter_brand
381
+ if (temp) {
382
+ this.$ApplyGetSaleParam.getGasbrand().forEach((item) => {
383
+ let temp2 = item.value
384
+ if (item.value.f_meter_brand == temp) {
385
+ let gasStyles = temp2.gasmodel
386
+ for (var i = 0; i < gasStyles.length; i++) {
387
+ let tempp = {}
388
+ tempp.label = gasStyles[i].label
389
+ tempp.value = gasStyles[i].label
390
+ arr.push(tempp)
391
+ }
392
+ }
393
+ })
394
+ return arr
395
+ }
396
+ }
397
+ }
398
+ }
399
+ </script>
400
+ <style>
401
+ .formItem-required::after {
402
+ content: '*';
403
+ position: absolute;
404
+ font-size: 20px;
405
+ margin-top: 3.5%;
406
+ margin-left: 3%;
407
+ color: #d91118;
408
+ }
409
+ </style>