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,414 @@
1
+ <template>
2
+ <div class="flex">
3
+ <div class="form-inline auto" style="margin-bottom: 5px;">
4
+ <label>材料查找:</label>
5
+ <input type="text" class="form-control" placeholder='请输入查找的材料名称' v-model="param"
6
+ @keyup.enter="filterParams(param)">
7
+ <button type="button" class="btn btn-primary" @click="filterParams(param)">查询</button>
8
+ <button type="button" class="btn btn-warning" @click="add()" v-show="edit">新增</button>
9
+ <div class="form-inline" style="float: right">
10
+ <button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入</button>
11
+ </div>
12
+ </div>
13
+ <div class="col-sm-12 span recordTable" style="margin-top: 10px;min-height: 500px">
14
+ <partial-view v-ref:single-load>
15
+ <data-grid :model="model" v-ref:grid>
16
+ <template partial='head'>
17
+ <tr>
18
+ <th>序号</th>
19
+ <th>材料类型</th>
20
+ <th>材料名称</th>
21
+ <th>材料规格</th>
22
+ <th>数量</th>
23
+ <th>单价</th>
24
+ <th>金额</th>
25
+ <th v-show="edit">是否缴费</th>
26
+ <th v-show="edit">操作</th>
27
+ </tr>
28
+ </template>
29
+ <template partial='body'>
30
+ <td>{{$index+1}}</td>
31
+ <td>{{row.f_material_type}}</td>
32
+ <td>{{row.f_material_name}}</td>
33
+ <td>{{row.f_material_spec}}</td>
34
+ <td>{{row.f_quantity}}</td>
35
+ <td>{{row.f_price}}</td>
36
+ <td>{{row.f_money}}</td>
37
+ <!--<td>{{row.f_remarks}}</td>-->
38
+ <td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>
39
+ <td class="flex-around">
40
+ <button type="button" name="button" class="btn btn-link"
41
+ @click.stop="$parent.$parent.$parent.modifyParam(row)" v-show="edit">修改
42
+ </button>
43
+ <button type="button" name="button" class="btn btn-link"
44
+ @click.stop="$parent.$parent.$parent.deleteItem(row)" v-show="edit">删除
45
+ </button>
46
+ </td>
47
+ </template>
48
+ </data-grid>
49
+ </partial-view>
50
+ </div>
51
+ </div>
52
+ <modal :show.sync="show" v-ref:modal backdrop="false">
53
+ <header slot="modal-header" class="modal-header">
54
+ <button type="button" class="close" @click="close"><span>&times;</span></button>
55
+ <h4 class="modal-title">配置</h4>
56
+ </header>
57
+ <article slot="modal-body" class="modal-body">
58
+ <div class="from-group">
59
+ <label>材料类型</label>
60
+ <input-select class="input-select" :value.sync="selectItem.f_material_type" v-model="selectItem.f_material_type"
61
+ v-ref:customertype
62
+ :options='fmaterialtype'
63
+ @change="fmaterialnames"
64
+ close-on-select></input-select>
65
+ </div>
66
+ <div class="from-group">
67
+ <label>材料名称</label>
68
+ <input-select class="input-select" :value.sync="selectItem.f_material_name" v-model="selectItem.f_material_name"
69
+ v-ref:customertype
70
+ :options='fmaterialname'
71
+ @change="fmaterialspecs"
72
+ close-on-select></input-select>
73
+ <!--<input type="text" class="form-control" v-model="selectItem.f_material_name">-->
74
+ </div>
75
+ <div class="from-group">
76
+ <label>材料规格</label>
77
+ <input-select class="input-select" :value.sync="selectItem.f_material_spec" v-model="selectItem.f_material_spec"
78
+ v-ref:customertype
79
+ :options='fmaterialspec'
80
+ @change="fprice"
81
+ close-on-select></input-select>
82
+ <!--<input type="text" class="form-control" v-model="selectItem.f_material_spec">-->
83
+ </div>
84
+ <div class="from-group">
85
+ <label>单价</label>
86
+ <input-select class="input-select" :value.sync="selectItem.f_price" v-model="selectItem.f_price"
87
+ v-ref:customertype
88
+ :options='fmaterialprice'
89
+ close-on-select></input-select>
90
+ <!--<input type="text" class="form-control" v-model="selectItem.f_price">-->
91
+ </div>
92
+ <div class="from-group">
93
+ <label>数量</label>
94
+ <input type="text" class="form-control" v-model="selectItem.f_quantity">
95
+ </div>
96
+ <div class="from-group">
97
+ <label>金额</label>
98
+ <input type="text" class="form-control" v-model="selectItem.f_money">
99
+ </div>
100
+ <div class="from-group">
101
+ <label>备注</label>
102
+ <input type="text" class="form-control" v-model="selectItem.f_remarks">
103
+ </div>
104
+ </article>
105
+ <footer slot="modal-footer" class="modal-footer">
106
+ <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
107
+ <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
108
+ </footer>
109
+ </modal>
110
+ <modal :show.sync="isShow" v-ref:modal backdrop="false">
111
+ <header slot="modal-header" class="modal-header">
112
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
113
+ <h4 class="modal-title">材料导入</h4>
114
+ </header>
115
+ <article slot="modal-body" class="modal-body">
116
+ <div class="form-group">
117
+ <file-upload class="my-file-uploader" name="materialExcel"
118
+ action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
119
+ </div>
120
+ </article>
121
+ <footer slot="modal-footer" class="modal-footer"></footer>
122
+ </modal>
123
+ </template>
124
+
125
+ <script>
126
+ import {HttpResetClass} from 'vue-client'
127
+
128
+ let getInfo = async function (self) {
129
+ if (!self.selectdata)
130
+ return
131
+ let data = {
132
+ tablename: 't_material',
133
+ condition: `f_uuuid = '${self.selectdata.f_process_id}' and f_type = '报建'`
134
+ }
135
+ let reset = new HttpResetClass()
136
+ await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
137
+ .then((res) => {
138
+ self.model.rows = []
139
+ self.model.rows = res.data
140
+ // 备份用于查询
141
+ self.params = res.data
142
+ })
143
+ }
144
+ export default {
145
+ title: '材料信息',
146
+ props: ['selectdata','edit'],
147
+ data() {
148
+ return {
149
+ fmaterialtype: [],
150
+ fmaterialname: [],
151
+ fmaterialspec: [],
152
+ fmaterialprice: [],
153
+ headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id,'fusetype':'报建execl导入材料'},
154
+ params: null,
155
+ record: {},
156
+ selectItem: {},
157
+ model: {
158
+ rows: []
159
+ },
160
+ show: false,
161
+ isShow: false
162
+ }
163
+ },
164
+ async ready() {
165
+ this.load()
166
+ },
167
+ watch: {
168
+ 'selectdata'() {
169
+ this.headers.blodid = this.selectdata.f_process_id
170
+ getInfo(this)
171
+ }
172
+ },
173
+ computed: {
174
+ async fprice(){
175
+ if(this.selectItem.f_material_type && this.selectItem.f_material_name && this.selectItem.f_material_spec){
176
+ this.fmaterialprice = []
177
+ let http = new HttpResetClass()
178
+ let data = {
179
+ columnname: 'f_price',
180
+ tablename: 't_material',
181
+ 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`
182
+ }
183
+ let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
184
+ resolveMsg: null,
185
+ rejectMsg: "获取f_material_type失败"
186
+ }, {silent: true})
187
+ res.data.forEach((row) => {
188
+ let temp = {
189
+ label: row.f_price,
190
+ value: row.f_price
191
+ }
192
+ this.fmaterialprice.push(temp)
193
+ })
194
+ }
195
+ },
196
+ async fmaterialnames() {
197
+ if (this.selectItem.f_material_type) {
198
+ this.fmaterialname = []
199
+ let f_material_type = this.selectItem.f_material_type
200
+ let http = new HttpResetClass()
201
+ let data = {
202
+ columnname: 'f_material_name',
203
+ tablename: 't_material',
204
+ condition: `f_material_type = '${f_material_type}'`
205
+ }
206
+ let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
207
+ resolveMsg: null,
208
+ rejectMsg: "获取f_material_name失败"
209
+ }, {silent: true})
210
+ res.data.forEach((row) => {
211
+ let temp = {
212
+ label: row.f_material_name,
213
+ value: row.f_material_name
214
+ }
215
+ this.fmaterialname.push(temp)
216
+ })
217
+ }
218
+ },
219
+ async fmaterialspecs() {
220
+ if (this.selectItem.f_material_name) {
221
+ this.fmaterialspec = []
222
+ let f_material_name = this.selectItem.f_material_name
223
+ let http = new HttpResetClass()
224
+ let data = {
225
+ columnname: 'f_material_spec',
226
+ tablename: 't_material',
227
+ condition: `f_material_name = '${f_material_name}'`
228
+ }
229
+ let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
230
+ resolveMsg: null,
231
+ rejectMsg: "获取f_material_spec失败"
232
+ }, {silent: true})
233
+ res.data.forEach((row) => {
234
+ let temp = {
235
+ label: row.f_material_spec,
236
+ value: row.f_material_spec
237
+ }
238
+ this.fmaterialspec.push(temp)
239
+ })
240
+ }
241
+ }
242
+ },
243
+ methods: {
244
+ // 父组件更新子组件属性
245
+ updateData(val) {
246
+ this.headers.blodid = val.f_process_id
247
+ this.selectdata = val
248
+ },
249
+ async load(){
250
+ let http = new HttpResetClass()
251
+ let data = {
252
+ columnname: 'f_material_type',
253
+ tablename: 't_material',
254
+ condition: `1=1`
255
+ }
256
+ let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
257
+ resolveMsg: null,
258
+ rejectMsg: null
259
+ }, {silent: true})
260
+ res.data.forEach((row) => {
261
+ let temp = {
262
+ label: row.f_material_type,
263
+ value: row.f_material_type
264
+ }
265
+ this.fmaterialtype.push(temp)
266
+ })
267
+ },
268
+ impexcel() {
269
+ this.isShow = true
270
+ },
271
+ closeFile() {
272
+ this.isShow = false
273
+ // 将选的文件清空
274
+ this.$refs.file.$el.querySelector('input').value = ''
275
+ },
276
+ deleteItem(row) {
277
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
278
+ if (res === 'confirm') {
279
+ this.$resetpost('rs/logic/applyDeleteValue', {tablename: 't_material', id: row.id}).then((res) => {
280
+ getInfo(this)
281
+ })
282
+ }
283
+ })
284
+ },
285
+ filterParams(param) {
286
+ if (param && param !== "") {
287
+ let temp = []
288
+ for (var i = 0; i < this.model.rows.length; i++) {
289
+ if (this.model.rows[i].f_material_name.includes(param)) {
290
+ temp.push(this.model.rows[i])
291
+ }
292
+ }
293
+ this.model.rows = temp
294
+ } else {
295
+ this.model.rows = this.params
296
+ }
297
+ },
298
+ add() {
299
+ this.show = true
300
+ },
301
+ // 修改按钮
302
+ modifyParam(row) {
303
+ // this.selectItem = row
304
+ this.$set('selectItem.id', row.id)
305
+ this.$set('selectItem.f_uuuid', row.f_uuuid)
306
+ this.$set('selectItem.f_material_type', row.f_material_type)
307
+ this.$set('selectItem.f_material_name', row.f_material_name)
308
+ this.$set('selectItem.f_material_spec', row.f_material_spec)
309
+ this.$set('selectItem.f_quantity', row.f_quantity)
310
+ this.$set('selectItem.f_price', row.f_price)
311
+ this.$set('selectItem.f_money', row.f_money)
312
+ this.$set('selectItem.f_remarks', row.f_remarks)
313
+ this.show = true
314
+ },
315
+ // 缴费情况修改
316
+ paychange(row) {
317
+ let http = new HttpResetClass()
318
+ row.f_pay=!row.f_pay
319
+ http.load('POST','rs/logic/saveentity', {data:{tablename:'t_material',parameters:row}}, {
320
+ resolveMsg: null,
321
+ rejectMsg: "缴费状态更新失败"
322
+ }, {silent: true})
323
+ },
324
+ confirm() {
325
+ // 无主键为插入
326
+ if (!this.selectItem.f_uuuid) {
327
+ this.selectItem.f_type = '报建'
328
+ this.selectItem.f_uuuid = this.selectdata.f_process_id
329
+ let data = {
330
+ tablename: 't_material',
331
+ parameters: this.selectItem
332
+ }
333
+ this.$resetpost('rs/logic/save', {data: data}).then((res) => {
334
+ this.show = false
335
+ // 如果没有id,需要在数组中添加
336
+ getInfo(this)
337
+ this.selectItem = {}
338
+ })
339
+ } else { // 有主键为更新
340
+ let data = {
341
+ tablename: 't_material',
342
+ parameters: this.selectItem
343
+ }
344
+ this.$resetpost('rs/logic/saveentity', {data: data}).then((res) => {
345
+ this.show = false
346
+ // 如果没有id,需要在数组中添加
347
+ getInfo(this)
348
+ this.selectItem = {}
349
+ })
350
+ }
351
+ },
352
+ // 关闭模态框
353
+ close() {
354
+ this.show = false
355
+ this.selectItem = {}
356
+ }
357
+ // modify (row, key) {
358
+ // this.value = row
359
+ // this.key = key
360
+ // },
361
+ // clear (row, key) {
362
+ // if (this.key) {
363
+ // this.model.rows[key] = this.value
364
+ // this.value = null
365
+ // this.key = null
366
+ // }
367
+ // }
368
+ }
369
+ ,
370
+ events: {
371
+ onFileUpload: function (file, res) {
372
+ if (!this.selectdata.f_process_id) {
373
+ this.$showMessage("数据异常,导入失败")
374
+ return
375
+ }
376
+ let data = {
377
+ tablename: 'f_material',
378
+ filepath: res.f_downloadpath,
379
+ f_process_id: this.selectdata.f_process_id
380
+ }
381
+ this.$resetpost('rs/logic/materialImport', data, {resolveMsg: '上传成功', rejectMsg: '上传失败'}).then((res) => {
382
+ //this.model.rows = res.data.data
383
+ // for (var i = 0; i < res.data.data.length; i++) {
384
+ // res.data.data[i].t_material.f_pay = res.data.data[i].t_material.t_pay?true:false
385
+ // this.model.rows.push(res.data.data[i].t_material)
386
+ // }
387
+ this.load()
388
+ console.log('dddddddd', this)
389
+ this.closeFile()
390
+ })
391
+ }
392
+ }
393
+ }
394
+ </script>
395
+ <style scoped>
396
+ .recordTable table tr th {
397
+ font-weight: bold;
398
+ }
399
+
400
+ .recordTable table tr:hover {
401
+ background-color: rgb(230, 230, 230);
402
+ }
403
+
404
+ td {
405
+ text-align: center !important
406
+ }
407
+
408
+ .input-select {
409
+ width: 100%;
410
+ height: 34px;
411
+ align-content: center;
412
+ margin-top: 10px;
413
+ }
414
+ </style>