apply-clients 5.0.361 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +72 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +83 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +39 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dist-android/static/.gitkeep +0 -0
  18. package/dist-android/static/batchleft.png +0 -0
  19. package/dist-android/static/batchright.png +0 -0
  20. package/dist-android/static/bluemainbg.jpg +0 -0
  21. package/dist-android/static/huangtengbiaozhi.png +0 -0
  22. package/dist-android/static/login_bg.jpg +0 -0
  23. package/dist-android/static/login_title.png +0 -0
  24. package/dist-android/static/login_title1.png +0 -0
  25. package/dist-android/static/loginbg.jpg +0 -0
  26. package/dist-android/static/loginlogo.png +0 -0
  27. package/dist-android/static/main_logo.png +0 -0
  28. package/dist-android/static/mainbg.jpg +0 -0
  29. package/dist-android/static/menulogo.png +0 -0
  30. package/dist-android/static/newmainbg.jpg +0 -0
  31. package/dist-android/static/psicon.png +0 -0
  32. package/dist-android/static/singleleft.png +0 -0
  33. package/dist-android/static/singleright.png +0 -0
  34. package/dist-android/static/treeopen.png +0 -0
  35. package/dist-android/static/treeout.png +0 -0
  36. package/dist-android/static/treeset.png +0 -0
  37. package/dist-android/static/usericon.png +0 -0
  38. package/dist-android/static/xinxi.png +0 -0
  39. package/package.json +5 -10
  40. package/src/AndroidApp.vue +1 -1
  41. package/src/App.vue +0 -1
  42. package/src/apply.js +172 -104
  43. package/src/applyAndroid.js +0 -5
  44. package/src/assets/shipin1.mp4 +0 -0
  45. package/src/bootstrap/less/bootstrap.less +2 -1
  46. package/src/components/Hello.vue +39 -0
  47. package/src/components/Table.js +2 -2
  48. package/src/components/Test.vue +26 -0
  49. package/src/components/Util.js +6 -11
  50. package/src/components/app_apply/Acceptance.vue +2 -7
  51. package/src/components/app_apply/ApplyApp.vue +6 -16
  52. package/src/components/app_apply/ApplyInfo.vue +1 -1
  53. package/src/components/app_apply/ApplyListUpload.vue +3 -3
  54. package/src/components/app_apply/ApplyToDoList.vue +3 -3
  55. package/src/components/app_apply/ApplyUserInfo.vue +3 -2
  56. package/src/components/app_apply/FieldExploration.vue +1 -3
  57. package/src/components/app_apply/PlaceControler.vue +49 -38
  58. package/src/components/{product/VueUtils → apply/base}/rightview/InstallCardList2.vue +38 -29
  59. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
  60. package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/StopApplyDetail2.vue +1 -1
  61. package/src/components/build/Install/ApplyChargeSearch.vue +210 -0
  62. package/src/components/build/Install/ExplorationSelect.vue +308 -0
  63. package/src/components/build/Install/ExplorationUser.vue +315 -0
  64. package/src/components/build/Install/InstallFee/AddContract.vue +257 -0
  65. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -0
  66. package/src/components/build/Install/InstallFee/InstallFee2.vue +291 -0
  67. package/src/components/{product/Function/functions → build/Install/InstallFee}/InstallFeeInfo.vue +11 -42
  68. package/src/components/build/Install/InstallFee/InstallFunction.vue +242 -0
  69. package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -0
  70. package/src/components/{product/Process → build/Install}/ModifyUserFiles.vue +1 -1
  71. package/src/components/build/Install/Process/BuildJob.vue +242 -0
  72. package/src/components/build/Install/Process/ContratSigne.vue +283 -0
  73. package/src/components/build/Install/Process/CustomerEssentialInfo.vue +325 -0
  74. package/src/components/build/Install/Process/CustomerFile.vue +423 -0
  75. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -0
  76. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -0
  77. package/src/components/build/Install/Process/DispatchingJob.vue +261 -0
  78. package/src/components/build/Install/Process/FeeNorme.vue +252 -0
  79. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -0
  80. package/src/components/build/Install/Process/FeeVerifier.vue +199 -0
  81. package/src/components/build/Install/Process/IgnitionVentilation.vue +232 -0
  82. package/src/components/build/Install/Process/MeterType.vue +379 -0
  83. package/src/components/build/Install/Process/PlaceControler.vue +304 -0
  84. package/src/components/build/Install/Process/ProjeterFigure.vue +211 -0
  85. package/src/components/build/Install/Process/ReceivingNote.vue +317 -0
  86. package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +370 -0
  87. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -0
  88. package/src/components/build/Install/Process/zhongran/ZR_ContratSigne.vue +496 -0
  89. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +415 -0
  90. package/src/components/build/Install/Process/zhongran/ZR_DispatchingJob.vue +409 -0
  91. package/src/components/build/Install/Process/zhongran/ZR_FeeNorme.vue +342 -0
  92. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation.vue +253 -0
  93. package/src/components/build/Install/Process/zhongran/ZR_IgnitionVentilation_transfer.vue +198 -0
  94. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -0
  95. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -0
  96. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -0
  97. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -0
  98. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote.vue +404 -0
  99. package/src/components/build/Install/Process/zhongran/ZR_ReceivingNote1.vue +301 -0
  100. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -0
  101. package/src/components/build/Install/Process/zhongran/ZR_end.vue +20 -0
  102. package/src/components/build/Install/ProcessInfo/BasicInfo.vue +68 -0
  103. package/src/components/build/Install/ProcessInfo/BuildInfo.vue +110 -0
  104. package/src/components/build/Install/ProcessInfo/ContratProcessInfo.vue +116 -0
  105. package/src/components/build/Install/ProcessInfo/DispatchingInfo.vue +114 -0
  106. package/src/components/build/Install/ProcessInfo/FeeNormeInfo.vue +108 -0
  107. package/src/components/build/Install/ProcessInfo/FeeVerifierInfo.vue +102 -0
  108. package/src/components/build/Install/ProcessInfo/IgnitionInfo.vue +99 -0
  109. package/src/components/build/Install/ProcessInfo/MeterProcessInfo.vue +114 -0
  110. package/src/components/build/Install/ProcessInfo/PlaceProcessInfo.vue +115 -0
  111. package/src/components/build/Install/ProcessInfo/ProjeterProcessInfo.vue +107 -0
  112. package/src/components/build/Install/ProcessInfo/ReceivingInfo.vue +107 -0
  113. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BasicInfo.vue +74 -0
  114. package/src/components/build/Install/ProcessInfo/zhongran/ZR_BuildInfo.vue +114 -0
  115. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ContratProcessInfo.vue +114 -0
  116. package/src/components/build/Install/ProcessInfo/zhongran/ZR_DispatchingInfo.vue +119 -0
  117. package/src/components/build/Install/ProcessInfo/zhongran/ZR_FeeNormeInfo.vue +105 -0
  118. package/src/components/build/Install/ProcessInfo/zhongran/ZR_IgnitionInfo.vue +99 -0
  119. package/src/components/build/Install/ProcessInfo/zhongran/ZR_MaterialPlan_info.vue +104 -0
  120. package/src/components/build/Install/ProcessInfo/zhongran/ZR_PlaceProcessInfo.vue +109 -0
  121. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ReceivingInfo.vue +102 -0
  122. package/src/components/build/Install/ProcessInfo/zhongran/ZR_ignition_transfer_info.vue +104 -0
  123. package/src/components/{product/Bill → build/Install/bill}/BillXSDMakeInfo.vue +1 -1
  124. package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -0
  125. package/src/components/build/Install/monitor/SupervisoryList.vue +209 -0
  126. package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryhCart.vue +3 -29
  127. package/src/components/product/Process/Processes/Service/ServiceControl.vue +91 -1718
  128. package/src/main.js +2 -9
  129. package/src/stores/ApplyLoadParams.js +1 -1
  130. package/src/bootstrap/less/standard.less +0 -208
  131. package/src/components/app_apply/ServiceControl.vue +0 -442
  132. package/src/components/app_apply/ServiceView.vue +0 -356
  133. package/src/components/product/Common/ApplyValidateBill.vue +0 -55
  134. package/src/components/product/Common/PrintBill.vue +0 -120
  135. package/src/components/product/Function/InstallFunction.vue +0 -142
  136. package/src/components/product/Function/InstallInfoSelect.vue +0 -254
  137. package/src/components/product/Function/Service/FunctionServiceControl.vue +0 -328
  138. package/src/components/product/Function/functions/AddContract.vue +0 -301
  139. package/src/components/product/Function/functions/BuyerMessage.vue +0 -512
  140. package/src/components/product/Function/functions/InstallFee.vue +0 -919
  141. package/src/components/product/Function/functions/material_recording.vue +0 -237
  142. package/src/components/product/MaterialBatchList.vue +0 -109
  143. package/src/components/product/MaterialBatchManage.vue +0 -34
  144. package/src/components/product/Process/ExplorationSelect.vue +0 -636
  145. package/src/components/product/Process/ExplorationUser.vue +0 -131
  146. package/src/components/product/Process/MaterialUseList.vue +0 -159
  147. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -134
  148. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -776
  149. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -910
  150. package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -383
  151. package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -957
  152. package/src/components/product/Process/Processes/SendOrder.vue +0 -47
  153. package/src/components/product/Process/Processes/Service/ApplyAcceptBill.vue +0 -89
  154. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +0 -305
  155. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  156. package/src/components/product/Process/ShowBackReason.vue +0 -18
  157. package/src/components/product/ServiceView.vue +0 -800
  158. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +0 -407
  159. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -130
  160. package/src/components/product/Supervisory/SupervisoryList.vue +0 -349
  161. package/src/components/product/stopInfo/ApplyStopInfo.vue +0 -280
  162. package/src/plugins/commonService.js +0 -229
  163. package/yarn.lock +0 -8072
  164. /package/src/components/{product/VueUtils → apply/base}/ToolsPage.vue +0 -0
  165. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/BuildFeeDetail2.vue +0 -0
  166. /package/src/components/{product/VueUtils → apply/base}/rightview/carddetail/ChangeFeeDetail2.vue +0 -0
  167. /package/src/components/{product/Function/functions → build/Install/InstallFee}/AllSelect.vue +0 -0
  168. /package/src/components/{product/Function → build/Install/InstallFee}/InstallInfoDown.vue +0 -0
  169. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PreparationFee.vue +0 -0
  170. /package/src/components/{product/Function/functions → build/Install/InstallFee}/PrestoreFee.vue +0 -0
  171. /package/src/components/{product/Function/functions → build/Install/InstallFee}/ReduceFee.vue +0 -0
  172. /package/src/components/{product/Function/functions → build/Install/InstallFee}/StopInstall.vue +0 -0
  173. /package/src/components/{product/Function/functions → build/Install/InstallFee}/UpdateFee.vue +0 -0
  174. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerBuildingMessage.vue +0 -0
  175. /package/src/components/{product/Process/Processes → build/Install/Process}/CustomerEquipmentMessage.vue +0 -0
  176. /package/src/components/{product/Function/functions → build/Install/ProcessInfo}/ApplyRecordCancel.vue +0 -0
  177. /package/src/components/{product/Bill → build/Install/bill}/BillGZK.vue +0 -0
  178. /package/src/components/{product/Bill → build/Install/bill}/BillGZKMakeInfo.vue +0 -0
  179. /package/src/components/{product/Bill → build/Install/bill}/BillGZKRecordInfo.vue +0 -0
  180. /package/src/components/{product/Bill → build/Install/bill}/BillJLB.vue +0 -0
  181. /package/src/components/{product/Bill → build/Install/bill}/BillJLBMakeInfo.vue +0 -0
  182. /package/src/components/{product/Bill → build/Install/bill}/BillJLBRecordInfo.vue +0 -0
  183. /package/src/components/{product/Bill → build/Install/bill}/BillKTK.vue +0 -0
  184. /package/src/components/{product/Bill → build/Install/bill}/BillKTKMakeInfo.vue +0 -0
  185. /package/src/components/{product/Bill → build/Install/bill}/BillKTKRecordInfo.vue +0 -0
  186. /package/src/components/{product/Bill → build/Install/bill}/BillQRK.vue +0 -0
  187. /package/src/components/{product/Bill → build/Install/bill}/BillQRKMakeInfo.vue +0 -0
  188. /package/src/components/{product/Bill → build/Install/bill}/BillQRKRecordInfo.vue +0 -0
  189. /package/src/components/{product/Bill → build/Install/bill}/BillSelect.vue +0 -0
  190. /package/src/components/{product/Bill → build/Install/bill}/BillXSD.vue +0 -0
  191. /package/src/components/{product/Bill → build/Install/bill}/BillXSDRecordInfo.vue +0 -0
  192. /package/src/components/{product/Supervisory → build/Install/monitor}/SupervisoryBaseInfo.vue +0 -0
@@ -1,776 +0,0 @@
1
- <template>
2
- <div class="auto">
3
- <div class="form-inline auto" style="margin-bottom: 5px;width: 100%">
4
- <form novalidate class="auto" partial>
5
- <div class="col-sm-12">
6
- <div class="col-sm-2">
7
- <div class="col-sm-10">
8
- <v-select :options="f_user_name" placeholder='操作人' condition="f_user_type = '{}'"
9
- v-model="f_material_operator" :value.sync="f_material_operator" close-on-select>
10
- </v-select>
11
- </div>
12
- </div>
13
- <div class="col-sm-2 ">
14
- <div class="col-sm-11 pull-right" >
15
- <v-select :options="f_effective_state" placeholder='有效状态' condition="f_user_type = '{}'"
16
- v-model="f_effective_stated" :value.sync="f_effective_stated" close-on-select>
17
- </v-select>
18
- </div>
19
- </div>
20
- <!--<div class="col-sm-2">-->
21
- <!--<div class="col-sm-11">-->
22
- <!--<v-select :options="f_picking_state" placeholder='领料状态' condition="f_user_type like '{}%'"-->
23
- <!--v-model="f_picking_stated" :value.sync="f_picking_stated" close-on-select>-->
24
- <!--</v-select>-->
25
- <!--</div>-->
26
- <!--</div>-->
27
- <div class="col-sm-1">
28
- <center>
29
- <div class="col-sm-12 pull-right">
30
- <button type="button" class="btn btn-primary" @click="filterParams(f_material_operator,f_effective_stated,f_picking_stated)">查询</button>
31
- </div>
32
- </center>
33
- </div>
34
- <div class="col-sm-1"style="float: right">
35
- <center>
36
- <!--<div class="col-sm-12 pull-right">
37
- <button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入</button>
38
- </div>-->
39
- <div class="col-sm-11 pull-right" style="float: right">
40
- <button type="button" class="btn btn-warning add-postition" @click="addmaterial()" v-show="edit">添加批次</button>
41
- </div>
42
- </center>
43
- </div>
44
- </div>
45
- </form>
46
- <!-- <button type="button" class="btn btn-primary" @click="filterParams(param)">查询</button>-->
47
- <!--<button type="button" class="btn btn-warning" @click="add()" v-show="edit">新增</button>-->
48
- <!-- <div class="form-inline" style="float: right">
49
- <button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入</button>
50
- </div>-->
51
- <div class="col-sm-12 span recordTable" style="margin-top: 10px;height:auto;">
52
- <partial-view v-ref:single-load>
53
- <data-grid :model="model" v-ref:grid>
54
- <template partial='head'>
55
- <tr>
56
- <th>序号</th>
57
- <th>有效状态</th>
58
- <!--<th>领料状态</th>-->
59
- <th>报建编号</th>
60
- <th>批次操作人</th>
61
- <th>导入时间</th>
62
- <th >操作</th>
63
- </tr>
64
- </template>
65
- <template partial='body' >
66
- <td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{$index+1}}</td>
67
- <td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_effective_state}}</td>
68
- <!--<td @click="$parent.$parent.$parent.showdetail(row.id)">{{row.f_picking_state}}</td>-->
69
- <td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_apply_num}}</td>
70
- <td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_material_operator}}</td>
71
- <td @click="$parent.$parent.$parent.showdetail(row.id,row.f_effective_state)">{{row.f_batch_importdate}}</td>
72
-
73
- <!--<td>{{row.f_remarks}}</td>-->
74
- <td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
75
- <td class="">
76
- <button type="button" name="button" class="btn btn-link" :disabled="row.f_effective_state == '无效'"
77
- @click.stop="$parent.$parent.$parent.tovoid(row)">作废
78
- </button>
79
- <!--<button type="button" name="button" class="btn btn-link"-->
80
- <!--@click.stop="$parent.$parent.$parent.deleteItem(row)">删除-->
81
- <!--</button>-->
82
- </td>
83
- </template>
84
- </data-grid>
85
-
86
- </partial-view>
87
- </div>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <div class="col-sm-12 span recordTable" style="margin-top: 10px;height:auto;" v-if="isShowdetail" >
99
- <div style="width: 100%;height: auto">
100
- <button type="button" class="btn btn-warning add-postition" v-show="isbuttonshow" style="float: right" @click="addDetailed()">添加明细</button>
101
- </div>
102
- <div style="width: 100%;height: auto;float: left">
103
- <partial-view v-ref:single-load>
104
- <data-grid :model="batchmodel" v-ref:batchgrid>
105
- <template partial='head'>
106
- <tr>
107
- <th>序号</th>
108
- <th>材料名称</th>
109
- <th>材料类型</th>
110
- <th>材料编码</th>
111
- <th>材料规格</th>
112
- <th>数量</th>
113
- <th>材料单位</th>
114
- <th v-show="edit">是否缴费</th>
115
- <th >操作</th>
116
- </tr>
117
- </template>
118
- <template partial='body'>
119
- <td>{{$index+1}}</td>
120
- <td>{{row.f_batch_name}}</td>
121
- <td>{{row.f_batch_type}}</td>
122
- <td>{{row.f_batch_code}}</td>
123
- <td>{{row.f_batch_norms}}</td>
124
- <td>{{row.f_budget_num}}</td>
125
- <td>{{row.f_batch_company}}</td>
126
- <!--<td>{{row.f_remarks}}</td>-->
127
- <td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
128
- <td class="">
129
- <button type="button" name="button" class="btn btn-link"
130
- @click.stop="$parent.$parent.$parent.modifyParam(row)">修改
131
- </button>
132
- <!-- <button type="button" name="button" class="btn btn-link"
133
- @click.stop="$parent.$parent.$parent.deleteItem(row)" >删除
134
- </button>-->
135
- </td>
136
- </template>
137
- </data-grid>
138
-
139
-
140
-
141
-
142
- </partial-view>
143
- </div>
144
- </div>
145
- </div>
146
- <modal :show.sync="addshow" v-ref:modal backdrop="false">
147
- <header slot="modal-header" class="modal-header">
148
- <button type="button" class="close" @click="addclose"><span>&times;</span></button>
149
- <h4 class="modal-title">添加明细</h4>
150
- </header>
151
- <article slot="modal-body" class="modal-body">
152
- <div class="col-sm-3 form-group form-input-group" style="width: 100%">
153
- <label class="control-label">材料名称</label>
154
- <!-- <input type="text" class="form-control" placeholder="材料名称" v-model="model.f_batch_name">-->
155
- <v-select :value.sync="model.f_batch_name" v-model="model.f_batch_name"
156
- :options='material' placeholder='请选择' style="width: 50%"
157
- close-on-select search="" >
158
- </v-select>
159
- </div>
160
-
161
- <div class="col-sm-3 form-group form-input-group" style="width: 100%">
162
- <label style="float: left" class="control-label">材料数量</label>
163
- <input type="number" class="form-control" placeholder="材料数量" style="width: 50%;float: left" v-model="model.f_budget_num">
164
- </div>
165
- </article>
166
- <footer slot="modal-footer" class="modal-footer">
167
- <button type="button" class="btn btn-default" @click='addclose'>取消</button>
168
- <button type="button" class="btn btn-success" @click='addconfirm'>确认</button>
169
- </footer>
170
- </modal>
171
- <modal :show.sync="show" v-ref:modal backdrop="false">
172
- <header slot="modal-header" class="modal-header">
173
- <button type="button" class="close" @click="close"><span>&times;</span></button>
174
- <h4 class="modal-title">修改明细</h4>
175
- </header>
176
- <article slot="modal-body" class="modal-body">
177
- <div class="from-group">
178
- <label>材料名称</label>
179
- <input type="text" class="form-control" v-model="selectItem.f_batch_name" readonly>
180
- </div>
181
- <div class="from-group">
182
- <label>材料数量</label>
183
- <input type="number" class="form-control" v-model="selectItem.f_budget_num">
184
- </div>
185
- </article>
186
- <footer slot="modal-footer" class="modal-footer">
187
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
188
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
189
- </footer>
190
- </modal>
191
- <modal :show.sync="isShow" v-ref:modal backdrop="false">
192
- <header slot="modal-header" class="modal-header">
193
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
194
- <h4 class="modal-title">材料导入</h4>
195
- </header>
196
- <article slot="modal-body" class="modal-body">
197
- <div class="form-group">
198
- <file-upload class="my-file-uploader" name="materialExcel"
199
- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
200
- </div>
201
- </article>
202
-
203
-
204
- <footer slot="modal-footer" class="modal-footer"></footer>
205
- </modal>
206
- </div>
207
- </template>
208
-
209
- <script>
210
- import {HttpResetClass} from 'vue-client'
211
- import co from 'co'
212
- let insert = async function (self) {
213
- let param = {
214
- processid: self.selectdata.f_process_id,
215
- f_apply_num: self.selectdata.f_apply_num,
216
- f_filiale:self.selectdata.f_filiale,
217
- f_parentname:self.$login.f.f_parentname,
218
- f_material_operator:self.$login.f.name,
219
- f_effective_state:'有效',
220
- f_picking_state:'未领完'
221
- }
222
- console.log('新增批次', param)
223
- self.$resetpost('rs/entity/t_material_batch', param).then(() => {
224
- // this.params.rows.splice(index, 1)
225
- console.log('更新成功!')
226
- self.getaaa()
227
- })
228
-
229
-
230
- }
231
- let insertdetail = async function (self) {
232
- let data={
233
- f_batch_name:self.model.f_batch_name[0],
234
- f_apply_num: self.selectdata.f_apply_num,
235
- f_batch_id: self.batch_id,
236
- }
237
- console.log('判断数据:',data)
238
- self.$resetpost('rs/logic/insertdetail', data , {resolveMsg: null, rejectMsg: null}).then((res) => {
239
- // this.params.rows.splice(index, 1)
240
- console.log('更新成功!',res)
241
- if (res.data.batch.length>0){
242
- self.$showMessage("已添加过此材料,请勿重复添加,若要修改数量请点击修改!")
243
- } else{
244
- if (res.data.array.length>0){
245
- let param = {
246
- f_batch_id: self.batch_id,
247
- f_apply_num: self.selectdata.f_apply_num,
248
- f_filiale:self.selectdata.f_filiale,
249
- f_parentname:self.$login.f.f_parentname,
250
- f_material_operator:self.$login.f.name,
251
- f_batch_name:self.model.f_batch_name[0],
252
- f_budget_num:self.model.f_budget_num,
253
- f_surplus_num:self.model.f_budget_num,
254
- f_add_receive:0,
255
- f_receive_num:0,
256
- f_revenue_id:res.data.array[0].id,
257
- f_batch_type:res.data.array[0].f_type,
258
- f_batch_code:res.data.array[0].f_num,
259
- f_batch_norms:res.data.array[0].f_format,
260
- f_batch_company:res.data.array[0].f_unit,
261
- f_batch_price:res.data.array[0].f_price
262
- }
263
- console.log('添加明细:',param)
264
- self.$resetpost('rs/entity/t_material_list', param).then(() => {
265
- // this.params.rows.splice(index, 1)
266
- console.log('更新成功!')
267
- self.showdetail(self.batch_id,'有效')
268
- self.model.f_batch_name=[]
269
- self.model.f_budget_num=''
270
- self.addshow = false
271
- })
272
- }else {
273
- self.$showMessage('此种材料系统中不存在!请检查材料名称')
274
- }
275
- }
276
-
277
-
278
- })
279
-
280
-
281
- }
282
- let getInfo = async function (self,isbatchdetail,batchid,istoVoidBatch) {
283
- if (!self.selectdata)
284
- return
285
-
286
- if (isbatchdetail==1){
287
- let data = {
288
- tablename: 't_material_list',
289
- condition: `f_apply_num = '${self.selectdata.f_apply_num}' and f_batch_id ='${batchid}' `
290
- }
291
- let reset = new HttpResetClass()
292
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
293
- .then((res) => {
294
- console.log('查询完毕,返回res.data=>' + JSON.stringify(res.data))
295
- self.batchmodel.rows = res.data
296
- // 备份用于查询
297
- /* self.params = res.data*/
298
- if (istoVoidBatch){
299
- console.log('进入istovoidBatch')
300
- let num=0
301
- for (var i = 0; i < self.batchmodel.rows.length; i++) {
302
- num+=self.batchmodel.rows[i].f_add_receive
303
- console.log(i+'f_add_receive'+self.batchmodel.rows[i].f_add_receive)
304
- }
305
- if (num>0){
306
- self.$showMessage('累计领取数量大于0,不能作废!')
307
- }else{
308
- self.$showMessage('作废后不可恢复,确认作废吗?', ['confirm', 'cancel']).then((res) => {
309
- if (res === 'confirm') {
310
- self.$resetpost('rs/logic/tovoidbatch',{id: batchid}).then((res) => {
311
- getInfo(self,0,0,false)
312
- })
313
- }
314
- })
315
- }
316
- // this.istoVoidBatch=false
317
- }
318
-
319
- })
320
-
321
- } else{
322
-
323
- let data = {
324
- tablename: 't_material_batch',
325
- condition: `f_apply_num = '${self.selectdata.f_apply_num}' `
326
- }
327
- let reset = new HttpResetClass()
328
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
329
- .then((res) => {
330
- self.model.rows = []
331
- self.model.rows = res.data
332
- self.params = res.data
333
- })
334
-
335
- }
336
-
337
-
338
-
339
-
340
- }
341
-
342
-
343
- let gen = function* (self, val) {
344
- let data = {
345
- model: {
346
- f_processid: self.selectdata.f_process_id,
347
- },
348
- loginUser: {
349
- id: self.$login.f.id,
350
- name: self.$login.f.name,
351
- ename: self.$login.f.ename
352
- },
353
- employeetemplate: self.employeetemplate,// 指派勘察人员
354
- subdep: '提交'
355
- }
356
- console.log('提交前')
357
- self.$resetpost(`rs/logic/grantnext`,
358
- {data: data})
359
- .then(() => {
360
- self.reset()
361
- })
362
- }
363
- export default {
364
- title: '材料信息',
365
- props: ['selectdata','edit','state'],
366
- data() {
367
- return {
368
- fmaterialtype: [],
369
- fmaterialname: [],
370
- fmaterialspec: [],
371
- fmaterialprice: [],
372
- headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id,'fusetype':'报建execl导入材料'},
373
- params: null,
374
- record: {},
375
- selectItem: {},
376
- isbuttonshow:true,
377
- model: {
378
- rows: []
379
- },
380
- // istoVoidBatch:false,
381
- f_material_operator:'',
382
- f_picking_stated: '',
383
- f_effective_stated:'',
384
- f_picking_state:[
385
- {label: '未领完', value: '未领完'},
386
- {label:'已领完', value: '已领完'},
387
- {label:'全部', value: ''}
388
- ],
389
- f_effective_state:[
390
- {label: '有效', value: '有效'},
391
- {label:'无效', value: '无效'},
392
- {label:'全部', value: ''}
393
- ],
394
- batchmodel:{
395
- rows:[]
396
- },
397
- show: false,
398
- isShow: false,
399
- isShowdetail:false,
400
- addshow:false,
401
- batch_id: 0,
402
- material:[],
403
- f_user_name:[]
404
- }
405
- },
406
- async ready() {
407
- this.load()
408
- getInfo(this,0,0,false)
409
- this.getname()
410
- },
411
- watch: {
412
- 'selectdata.f_process_id'() {
413
- this.headers.blodid = this.selectdata.f_process_id
414
- getInfo(this,0,0,false)
415
- },
416
- 'state'() {
417
- this.f_material_operator=''
418
- this.f_picking_stated=''
419
- this.f_effective_stated=''
420
- },
421
- deep:true
422
- },
423
- computed: {
424
- async fprice(){
425
- if(this.selectItem.f_material_type && this.selectItem.f_material_name && this.selectItem.f_material_spec){
426
- this.fmaterialprice = []
427
- let http = new HttpResetClass()
428
- let data = {
429
- columnname: 'f_price',
430
- tablename: 't_material',
431
- condition: `f_material_type = '${this.selectItem.f_material_type}' and f_material_name = '${this.selectItem.f_material_name}' and f_material_spec = '${this.selectItem.f_material_spec}' ORDER BY f_price desc`
432
- }
433
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
434
- resolveMsg: null,
435
- rejectMsg: "获取f_material_type失败"
436
- }, {silent: true})
437
- res.data.forEach((row) => {
438
- let temp = {
439
- label: row.f_price,
440
- value: row.f_price
441
- }
442
- this.fmaterialprice.push(temp)
443
- })
444
- }
445
- },
446
- async fmaterialnames() {
447
- if (this.selectItem.f_material_type) {
448
- this.fmaterialname = []
449
- let f_material_type = this.selectItem.f_material_type
450
- let http = new HttpResetClass()
451
- let data = {
452
- columnname: 'f_material_name',
453
- tablename: 't_material',
454
- condition: `f_material_type = '${f_material_type}'`
455
- }
456
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
457
- resolveMsg: null,
458
- rejectMsg: "获取f_material_name失败"
459
- }, {silent: true})
460
- res.data.forEach((row) => {
461
- let temp = {
462
- label: row.f_material_name,
463
- value: row.f_material_name
464
- }
465
- this.fmaterialname.push(temp)
466
- })
467
- }
468
- },
469
- async fmaterialspecs() {
470
- if (this.selectItem.f_material_name) {
471
- this.fmaterialspec = []
472
- let f_material_name = this.selectItem.f_material_name
473
- let http = new HttpResetClass()
474
- let data = {
475
- columnname: 'f_material_spec',
476
- tablename: 't_material',
477
- condition: `f_material_name = '${f_material_name}'`
478
- }
479
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
480
- resolveMsg: null,
481
- rejectMsg: "获取f_material_spec失败"
482
- }, {silent: true})
483
- res.data.forEach((row) => {
484
- let temp = {
485
- label: row.f_material_spec,
486
- value: row.f_material_spec
487
- }
488
- this.fmaterialspec.push(temp)
489
- })
490
- }
491
- }
492
- },
493
- methods: {
494
- async getname(){
495
- let data = await this.$resetpost('rs/logic/getMaterialAddItem', {data: {condition: `f_apply_num = '${this.selectdata.f_apply_num}' `}}, {resolveMsg: null, rejectMsg: null})
496
- console.log('查询到的选项',data)
497
- let house = []
498
- for (let row of data.data.f_name){
499
- house.push({label: row.f_name,value: row.f_name})
500
- }
501
- this.material = house
502
- let house2 = [{label:'全部', value: ''}]
503
- for (let row of data.data.f_user_name){
504
- house2.push({label: row.f_material_operator,value: row.f_material_operator})
505
- }
506
- this.f_user_name = house2
507
-
508
- },
509
- addDetailed(){
510
- this.addshow = true
511
- },
512
- addclose(){
513
- this.addshow = false
514
- },
515
- async addconfirm(){
516
- if(!this.model.f_batch_name){
517
- this.$showAlert("请输入材料名称","warning", 1500)
518
- return
519
- }
520
- if(!this.model.f_budget_num){
521
- this.$showAlert("请输入材料数量","warning", 1500)
522
- return
523
- }
524
- insertdetail(this)
525
-
526
- },
527
- // 父组件更新子组件属性
528
- updateData(val) {
529
- this.headers.blodid = val.f_process_id
530
- this.selectdata = val
531
- },
532
- addmaterial(){
533
- this.$showMessage(`是否确认添加批次`, ['confirm', 'cancel']).then((res) => {
534
- if (res === 'confirm') {
535
- insert(this)
536
- }
537
- })
538
- },
539
- showdetail(val,f_effective_state) {
540
- if (f_effective_state === '无效'){
541
- this.isbuttonshow=false
542
- } else{
543
- this.isbuttonshow = true
544
- }
545
- console.log('查询明细')
546
- console.log(val)
547
- this.batch_id = val
548
- this.isShowdetail=true
549
- getInfo(this,1,val,false)
550
- },
551
- async load(){
552
- let http = new HttpResetClass()
553
- let data = {
554
- columnname: 'f_material_type',
555
- tablename: 't_material',
556
- condition: `1=1`
557
- }
558
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
559
- resolveMsg: null,
560
- rejectMsg: null
561
- }, {silent: true})
562
- res.data.forEach((row) => {
563
- let temp = {
564
- label: row.f_material_type,
565
- value: row.f_material_type
566
- }
567
- this.fmaterialtype.push(temp)
568
- })
569
- },
570
-
571
- commit() {
572
- console.log("edit>>>>>",)
573
- //判断当前节点的状态(开始活动/完工)
574
- var entryName = this.model.f_entry_name //项目名称
575
- var ename = this.selectdata.f_entry_name
576
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
577
- resolveMsg: null,
578
- rejectMsg: '提交错误!'
579
- }).then((res) => {
580
- if (res.data[0].state != '开始活动') {
581
- this.$showMessage("该节点信息已在别处提交,请刷新!")
582
- this.reset()
583
- } else {
584
- //通过数据校验再进行下一步判断
585
- if (this.verification()) {
586
- if(name == null){
587
- //项目名称唯一性判断
588
- this.$resetpost('rs/sql/findByEntryName', {data: {entryName: entryName}}, {
589
- resolveMsg: null,
590
- rejectMsg: '提交错误!'
591
- }).then((res) => {
592
- if (res.data.length > 0) {
593
- console.log('length>0')
594
- this.$showMessage("项目名称不能重复!")
595
- } else {
596
- console.log('length<=0')
597
- let getGen = gen(this, this.model)
598
- console.log('getgen')
599
- co(getGen)
600
- console.log('co(getgen)')
601
- }
602
- })
603
- }else{
604
- let getGen = gen(this, this.model)
605
- co(getGen)
606
- }
607
- }
608
- }
609
- })
610
- },
611
- reset() {
612
- this.$dispatch('close')
613
- this.$dispatch('selfsearch')
614
- },
615
-
616
- //数据校验
617
- verification() {
618
- /* var isNum = /^(([+]?\d*$)|(^[+]?\d+(\.\d+)?$))/ //非负纯数字
619
- var regex = /.*?[\u4e00-\u9fa5].*?[\u4e00-\u9fa5].*!/ //至少两个汉字
620
- var phoneReg = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/ //手机号码正则
621
- var telReg = /0\d{2,3}-\d{7,8}/ //座机正则
622
- if (!this.model.f_entry_name) {
623
- this.$showMessage("项目名称不能为空!")
624
- return false
625
- }*/
626
- return true
627
- },
628
- impexcel() {
629
- this.isShow = true
630
- },
631
- closeFile() {
632
- this.isShow = false
633
- // 将选的文件清空
634
- this.$refs.file.$el.querySelector('input').value = ''
635
- },
636
- tovoid(row) {
637
- console.log('作废')
638
- getInfo(this,1,row.id,true)
639
- },
640
- async filterParams(f_material_operator,f_effective_stated,f_picking_stated) {
641
- this.isShowdetail=false
642
- let data = {
643
- tablename: 't_material_batch',
644
- condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_material_operator like '%${f_material_operator}%'
645
- and f_effective_state like '%${f_effective_stated}%' and f_picking_state like '%${f_picking_stated}%'
646
- `
647
- }
648
- console.log('condition:',data.condition)
649
- let reset = new HttpResetClass()
650
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
651
- .then((res) => {
652
- console.log('查询结果:',res)
653
-
654
- this.model.rows = []
655
- this.model.rows = res.data
656
- this.params = res.data
657
- })
658
- },
659
- add() {
660
- this.show = true
661
- },
662
- // 修改按钮
663
- modifyParam(row) {
664
- this.$set('selectItem.id', row.id)
665
- this.$set('selectItem.f_batch_id', row.f_batch_id)
666
- this.$set('selectItem.f_revenue_id', row.f_revenue_id)
667
- this.$set('selectItem.f_budget_num', row.f_budget_num)
668
- this.$set('selectItem.f_surplus_num', row.f_surplus_num)
669
- this.$set('selectItem.f_batch_type', row.f_batch_type)
670
- this.$set('selectItem.f_batch_code', row.f_batch_code)
671
- this.$set('selectItem.f_batch_name', row.f_batch_name)
672
- this.$set('selectItem.f_batch_norms', row.f_batch_norms)
673
- this.$set('selectItem.f_batch_company', row.f_batch_company)
674
- this.$set('selectItem.f_apply_num', row.f_apply_num)
675
- this.$set('selectItem.f_filiale', row.f_filiale)
676
- this.$set('selectItem.f_parentname', row.f_parentname)
677
- this.$set('selectItem.f_material_operator', row.f_material_operator)
678
- this.$set('selectItem.f_batch_importdate', row.f_batch_importdate)
679
-
680
- this.show = true
681
- },
682
- // 缴费情况修改
683
- paychange(row) {
684
- let http = new HttpResetClass()
685
- row.f_pay=!row.f_pay
686
- http.load('POST','rs/logic/saveentity', {data:{tablename:'t_material',parameters:row}}, {
687
- resolveMsg: null,
688
- rejectMsg: "缴费状态更新失败"
689
- }, {silent: true})
690
- },
691
- confirm() {
692
- this.selectItem.f_surplus_num = this.selectItem.f_budget_num
693
- let data = {
694
- tablename: 't_material_list',
695
- parameters: this.selectItem
696
- }
697
- let this1=this
698
- this.$resetpost('rs/logic/saveentity', {data: data}).then((res) => {
699
- this.show = false
700
- // 如果没有id,需要在数组中添加
701
- getInfo(this,1,this.selectItem.f_batch_id,false)
702
- this.selectItem = {}
703
-
704
- })
705
- },
706
-
707
- // 关闭模态框
708
- close() {
709
- this.show = false
710
- this.selectItem = {}
711
- },
712
-
713
- async getaaa(){
714
- console.log('进来了')
715
- let data = {
716
- tablename: 't_material_batch',
717
- condition: `f_apply_num = '${this.selectdata.f_apply_num}' `
718
- }
719
- let reset = new HttpResetClass()
720
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
721
- .then((res) => {
722
- this.model.rows = []
723
- this.model.rows = res.data
724
- this.params = res.data
725
- })
726
- }
727
- }
728
- ,
729
- events: {
730
- onFileUpload: function (file, res) {
731
- if (!this.selectdata.f_process_id) {
732
- this.$showMessage("数据异常,导入失败")
733
- return
734
- }
735
- let data = {
736
- tablename: 'f_material',
737
- filepath: res.f_downloadpath,
738
- processid: this.selectdata.f_process_id,
739
- f_apply_num: this.selectdata.f_apply_num,
740
- f_filiale:this.selectdata.f_filiale,
741
- f_parentname:this.$login.f.f_parentname,
742
- f_material_operator:this.$login.f.name
743
- /* processid:this.selectdata.f_processid*/
744
- }
745
-
746
-
747
-
748
- this.$resetpost('rs/logic/materialImport', data, {resolveMsg: '上传成功', rejectMsg: '上传失败'}).then((res) => {
749
-
750
- getInfo(this,0,0,false)
751
- this.closeFile()
752
- })
753
- }
754
- }
755
- }
756
- </script>
757
- <style scoped>
758
- .recordTable table tr th {
759
- font-weight: bold;
760
- }
761
-
762
- .recordTable table tr:hover {
763
- background-color: rgb(230, 230, 230);
764
- }
765
-
766
- td {
767
- text-align: center !important
768
- }
769
-
770
- .input-select {
771
- width: 100%;
772
- height: 34px;
773
- align-content: center;
774
- margin-top: 10px;
775
- }
776
- </style>