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,957 +0,0 @@
1
- <template>
2
- <div class="flex" style="height: auto;">
3
- <div class="form-inline auto" style="margin-bottom: 5px;"style="height: auto;">
4
- <form novalidate class="" partial>
5
- <div class="col-sm-10">
6
-
7
- <div class="col-sm-2">
8
- <div class="col-sm-10">
9
- <input type="text" class="form-control" v-model="f_material_operator" v-on:keyup.enter="search"
10
- condition="f_user_name like '{}%'" placeholder="操作人">
11
- </div>
12
- </div>
13
-
14
- <div class="col-sm-1">
15
-
16
- </div>
17
-
18
-
19
- <div class="col-sm-2 ">
20
- <div class="col-sm-11 pull-right" >
21
- <v-select :options="f_effective_state" placeholder='有效状态' condition="f_user_type like '{}%'"
22
- v-model="f_effective_stated" :value.sync="f_effective_stated" close-on-select>
23
- </v-select>
24
- </div>
25
- </div>
26
- <div class="col-sm-2">
27
- <div class="col-sm-11">
28
- <v-select :options="f_picking_state" placeholder='领料状态' condition="f_user_type like '{}%'"
29
- v-model="f_picking_stated" :value.sync="f_picking_stated" close-on-select>
30
- </v-select>
31
- </div>
32
- </div>
33
-
34
- <div class="col-sm-1">
35
- <center>
36
- <div class="col-sm-12 pull-right">
37
- <button type="button" class="btn btn-primary" @click="filterParams(f_material_operator,f_effective_stated,f_picking_stated)">查询</button>
38
- </div>
39
-
40
- </center>
41
- </div>
42
- <!--<div class="col-sm-1">-->
43
- <!--<center>-->
44
-
45
- <!--<div class="col-sm-12 pull-right">-->
46
- <!--<button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入</button>-->
47
- <!--</div>-->
48
- <!--</center>-->
49
- <!--</div>-->
50
- </div>
51
- </form>
52
-
53
- <!-- <button type="button" class="btn btn-primary" @click="filterParams(param)">查询</button>-->
54
- <!--<button type="button" class="btn btn-warning" @click="add()" v-show="edit">新增</button>-->
55
- <!-- <div class="form-inline" style="float: right">
56
- <button type="button" class="btn btn-warning add-postition" @click="impexcel()" v-show="edit">导入</button>
57
- </div>-->
58
- <div class="col-sm-12 span recordTable " style="margin-top: 10px;height:auto;">
59
- <partial-view v-ref:single-load>
60
- <data-grid :model="model" v-ref:grid>
61
- <template partial='head'>
62
- <tr>
63
- <th>序号</th>
64
- <th>有效状态</th>
65
- <th>领料状态</th>
66
- <th>报建编号</th>
67
- <th>批次操作人</th>
68
- <th>导入时间</th>
69
- <th>操作</th>
70
- </tr>
71
- </template>
72
- <template partial='body' >
73
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{$index+1}}</td>
74
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{row.f_effective_state}}</td>
75
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{row.f_picking_state}}</td>
76
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{row.f_apply_num}}</td>
77
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{row.f_material_operator}}</td>
78
- <td @click="$parent.$parent.$parent.showdetail(row.id,$index,row.f_effective_state)">{{row.f_batch_importdate}}</td>
79
- <td >
80
- <button class="btn btn-link" @click="$parent.$parent.$parent.showReceiptSheet(row.id)">打印</button>
81
- </td>
82
- <!--<td>{{row.f_remarks}}</td>-->
83
- <!--<td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>-->
84
- <!--<td class="flex-around">-->
85
- <!--<button type="button" name="button" class="btn btn-link"-->
86
- <!--@click.stop="$parent.$parent.$parent.tovoid(row)">作废-->
87
- <!--</button>-->
88
- <!---->
89
- <!--</td>-->
90
- </template>
91
- </data-grid>
92
-
93
- </partial-view>
94
- </div>
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <div class="col-sm-12 span recordTable " style="margin-top: 10px;height:auto;" v-if="isShowdetail" >
106
- <p>材料清单
107
- <button type="button" class="close" @click="isShowdetail=false" aria-hidden="true">&times;</button>
108
- </p>
109
- <partial-view v-ref:single-load>
110
- <data-grid :model="batchmodel" v-ref:batchgrid>
111
- <template partial='head'>
112
- <tr>
113
- <th>序号</th>
114
- <th>材料名称</th>
115
- <th>材料类型</th>
116
- <th>材料编码</th>
117
- <th>材料规格</th>
118
- <th>预算数量</th>
119
- <th>累计领取数量</th>
120
- <th>剩余数量</th>
121
- <th>材料单位</th>
122
- <th ><button type="button" @click="$parent.$parent.$parent.lowerhair()" class="btn btn-warning add-postition" style="width:80px; margin-left:40px;">
123
- 领取材料
124
- </button> </th>
125
- <!--<th >操作</th>-->
126
- </tr>
127
- </template>
128
- <template partial='body'style="min-height: 100px;max-height:200px;">
129
- <td>{{$index+1}}</td>
130
- <td>{{row.f_batch_name}}</td>
131
- <td>{{row.f_batch_type}}</td>
132
- <td>{{row.f_batch_code}}</td>
133
- <td>{{row.f_batch_norms}}</td>
134
- <td>{{row.f_budget_num}}</td>
135
- <td>{{row.f_add_receive}}</td>
136
- <td>{{row.f_surplus_num}}</td>
137
- <td>{{row.f_batch_company}}</td>
138
- <!--<td>{{row.f_remarks}}</td>-->
139
- <!--<td v-show="edit"><input type="checkbox" v-model="row.f_pay" @click="$parent.$parent.$parent.paychange(row)"/></td>-->
140
- <td><input type="text" class="form-control" v-model="row.f_receive_num"/></td>
141
- <!--<td class="flex-around">-->
142
- <!--<button type="button" name="button" class="btn btn-link"-->
143
- <!--@click.stop="$parent.$parent.$parent.receiveBatch(row)">领取-->
144
- <!--</button>-->
145
- <!---->
146
- <!--</td>-->
147
- </template>
148
- </data-grid>
149
-
150
- </partial-view>
151
- </div>
152
-
153
-
154
-
155
- </div>
156
-
157
- <modal :show.sync="show" v-ref:modal backdrop="false">
158
- <header slot="modal-header" class="modal-header">
159
- <button type="button" class="close" @click="close"><span>&times;</span></button>
160
- <h4 class="modal-title">配置</h4>
161
- </header>
162
- <article slot="modal-body" class="modal-body">
163
- <!-- <div class="from-group">
164
- <label>材料类型</label>
165
- <input-select class="input-select" :value.sync="selectItem.f_batch_type" v-model="selectItem.f_batch_type"
166
- v-ref:customertype
167
- :options='fmaterialtype'
168
- @change="fmaterialnames"
169
- close-on-select></input-select>
170
- </div>
171
- <div class="from-group">
172
- <label>材料名称</label>
173
- <input-select class="input-select" :value.sync="selectItem.f_batch_name" v-model="selectItem.f_batch_name"
174
- v-ref:customertype
175
- :options='fmaterialname'
176
- @change="fmaterialspecs"
177
- close-on-select></input-select>
178
- </div>
179
- <div class="from-group">
180
- <label>材料规格</label>
181
- <input-select class="input-select" :value.sync="selectItem.f_batch_norms" v-model="selectItem.f_batch_norms"
182
- v-ref:customertype
183
- :options='fmaterialspec'
184
- @change="fprice"
185
- close-on-select></input-select>
186
- </div>
187
- <div class="from-group">
188
- <label>材料单位</label>
189
- <input-select class="input-select" :value.sync="selectItem.f_batch_company" v-model="selectItem.f_batch_company"
190
- v-ref:customertype
191
- :options='fmaterialprice'
192
- close-on-select></input-select>
193
- </div>
194
- <div class="from-group">
195
- <label>材料编码</label>
196
- <input-select class="input-select" :value.sync="selectItem.f_batch_code" v-model="selectItem.f_batch_code"
197
- v-ref:customertype
198
- :options='fmaterialprice'
199
- close-on-select></input-select>
200
- <input type="text" class="form-control" v-model="selectItem.f_price">
201
- </div>
202
- -->
203
- <div class="from-group">
204
- <label>材料类型</label>
205
- <input type="text" class="form-control" v-model="selectItem.f_batch_type">
206
- </div>
207
- <div class="from-group">
208
- <label>材料名称</label>
209
- <input type="text" class="form-control" v-model="selectItem.f_batch_name">
210
- </div>
211
- <div class="from-group">
212
- <label>材料规格</label>
213
- <input type="text" class="form-control" v-model="selectItem.f_batch_norms">
214
- </div><div class="from-group">
215
- <label>材料单位</label>
216
- <input type="text" class="form-control" v-model="selectItem.f_batch_company">
217
- </div>
218
- <div class="from-group">
219
- <label>材料编码</label>
220
- <input type="text" class="form-control" v-model="selectItem.f_batch_code">
221
- </div>
222
-
223
- <div class="from-group">
224
- <label>材料数量</label>
225
- <input type="text" class="form-control" v-model="selectItem.f_budget_num">
226
- </div>
227
- </article>
228
- <footer slot="modal-footer" class="modal-footer">
229
- <button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
230
- <button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
231
- </footer>
232
- </modal>
233
- <modal :show.sync="isShow" v-ref:modal backdrop="false">
234
- <header slot="modal-header" class="modal-header">
235
- <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
236
- <h4 class="modal-title">材料导入</h4>
237
- </header>
238
- <article slot="modal-body" class="modal-body">
239
- <div class="form-group">
240
- <file-upload class="my-file-uploader" name="materialExcel"
241
- action="rs/file/uploadFile" tagname="文件导入" :headers="headers" v-ref:file></file-upload>
242
- </div>
243
- </article>
244
-
245
- <footer slot="modal-footer" class="modal-footer"></footer>
246
- </modal>
247
-
248
- <modal :show.sync="receiptSheetShow" width="800px" title="选择" v-ref:receiptsheet large backdrop="true">
249
- <article slot="modal-body" class="modal-body">
250
- <div style="height: 500px">
251
- <data-grid :model="receiptSheetData" v-ref:grid1 partial='list'>
252
- <template partial='head'>
253
- <tr>
254
- <th><nobr>序号</nobr></th>
255
- <th><nobr>流程编号</nobr></th>
256
- <th><nobr>操作部门</nobr></th>
257
- <th><nobr>领料批次操作人</nobr></th>
258
- <th><nobr>领料时间</nobr></th>
259
- <th><nobr>操作</nobr></th>
260
- </tr>
261
- </template>
262
- <template partial='body'>
263
- <td style="text-align: center;">{{$index + 1}}</td>
264
- <td style="text-align: center;">{{row.processid}}</td>
265
- <td style="text-align: center;">{{row.f_parentname}}</td>
266
- <td style="text-align: center;">{{row.f_sheet_operator}}</td>
267
- <td style="text-align: center;">{{row.f_batch_importdate}}</td>
268
- <td >
269
- <button class="btn btn-link" @click="$parent.$parent.$parent.printReceiptDetail(row)">打印</button>
270
- </td>
271
- </template>
272
- </data-grid>
273
- </div>
274
- </article>
275
- <footer slot="modal-footer" class="modal-footer">
276
- </footer>
277
- </modal>
278
- <!--打印报表html-->
279
- <div v-show="false">
280
- <div class="row" style="display: flex;justify-content: center;" id='bill-fee'>
281
- {{{bill}}}
282
- </div>
283
- <report-print id='bill-fee' top='15mm' left='5mm' width='90%' height='70%' :showbtn="false" preview="true" v-ref:reportprint></report-print>
284
- </div>
285
- </div>
286
- </template>
287
-
288
- <script>
289
- import {HttpResetClass} from 'vue-client'
290
- import co from 'co'
291
- let getInfo = async function (self,isbatchdetail,batchid) {
292
- if (!self.selectdata)
293
- return
294
-
295
-
296
-
297
- /* let reset = new HttpResetClass()*/
298
- if (isbatchdetail==1){
299
- let data = {
300
- tablename: 't_material_list',
301
- condition: `f_apply_num = '${self.selectdata.f_apply_num}' and f_batch_id ='${batchid}' `
302
- }
303
- let reset = new HttpResetClass()
304
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
305
- .then((res) => {
306
- console.log('查询完毕')
307
- self.batchmodel.rows = []
308
- self.batchmodel.rows = res.data
309
- for (var i = 0; i < self.batchmodel.rows.length; i++) {
310
- self.batchmodel.rows[i].f_receive_num = self.batchmodel.rows[i].f_surplus_num
311
-
312
- }
313
- // 备份用于查询
314
- /* self.params = res.data*/
315
- if (self.istoVoidBatch){
316
- console.log('进入istovoidBatch')
317
- let num=0
318
- for (var i = 0; i < self.batchmodel.rows.length; i++) {
319
- num+=self.batchmodel.rows[i].f_add_receive
320
- console.log(i+'f_add_receive'+self.batchmodel.rows[i].f_add_receive)
321
- }
322
- if (num>0){
323
- self.$showMessage('累计领取数量大于0,不能作废!')
324
- }else{
325
- self.$showMessage('作废后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
326
- if (res === 'confirm') {
327
- self.$resetpost('rs/logic/tovoidbatch',{id: row.id}).then((res) => {
328
- getInfo(self,0,0)
329
- })
330
- }
331
- })
332
- }
333
- this.istoVoidBatch=false
334
- }
335
-
336
- })
337
-
338
- } else{
339
-
340
- let data = {
341
- tablename: 't_material_batch',
342
- condition: `f_apply_num = '${self.selectdata.f_apply_num}' `
343
- }
344
- let reset = new HttpResetClass()
345
- await reset.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '获取材料信息失败'})
346
- .then((res) => {
347
- self.model.rows = []
348
- self.model.rows = res.data
349
- self.params = res.data
350
- })
351
-
352
- }
353
-
354
-
355
-
356
-
357
- }
358
-
359
-
360
- let gen = function* (self, val) {
361
- // let falmodel=[{
362
- // f_effective_state:'有效'
363
- // }]
364
- // let data = {
365
- // tablename: 't_apply',
366
- // parameters: falmodel
367
- // }R
368
- // yield self.$resetpost('rs/logic/save', {data: data})
369
- let data = {
370
- model: {
371
- f_processid: self.selectdata.f_process_id,
372
- },
373
- loginUser: {
374
- id: self.$login.f.id,
375
- name: self.$login.f.name,
376
- ename: self.$login.f.ename
377
- },
378
- employeetemplate: self.employeetemplate,// 指派勘察人员
379
- subdep: '提交'
380
- }
381
- console.log('提交前')
382
- self.$resetpost(`rs/logic/grantnext`,
383
- {data: data})
384
- .then(() => {
385
- self.reset()
386
- })
387
- }
388
- export default {
389
- title: '材料信息',
390
- props: ['selectdata','edit','state'],
391
- data() {
392
- return {
393
- fmaterialtype: [],
394
- fmaterialname: [],
395
- fmaterialspec: [],
396
- fmaterialprice: [],
397
- headers: {'username': this.$login.f.name, 'blodid': this.selectdata.f_process_id,'fusetype':'报建execl导入材料'},
398
- params: null,
399
- record: {},
400
- selectItem: {},
401
- model: {
402
- rows: []
403
- },
404
- istoVoidBatch:false,
405
- f_material_operator:'',
406
- f_picking_stated: '',
407
- f_effective_stated:'',
408
- f_picking_state:[
409
- {label: '未领完', value: '未领完'},
410
- {label:'已领完', value: '已领完'},
411
- {label:'全部', value: ''}
412
- ],
413
- f_effective_state:[
414
- {label: '有效', value: '有效'},
415
- {label:'无效', value: '无效'},
416
- {label:'全部', value: ''}
417
- ],
418
- batchmodel:{
419
- rows:[]
420
- },
421
- show: false,
422
- isShow: false,
423
- isShowdetail:false,
424
- batchindex:0,
425
-
426
- receiptSheetShow: false,
427
- receiptSheetData: {
428
- rows: []
429
- },
430
- receiptDetailData: [],
431
- f_apply_num: '', // 打印显示的报建编号
432
- f_material_num: '', // 打印显示的材料编号
433
- f_sheet_operator: '' ,// 打印显示的领料人
434
- pgd:'',
435
- bill: '' // 票数据
436
- }
437
- },
438
- async ready() {
439
- this.load()
440
- getInfo(this,0,0)
441
- },
442
- watch: {
443
- 'pgd'() {
444
- this.$dispatch('get-pgd', this.pgd)
445
- },
446
- 'selectdata.f_process_id'() {
447
- this.headers.blodid = this.selectdata.f_process_id
448
- getInfo(this,0,0)
449
- },
450
- deep:true
451
- },
452
- computed: {
453
- async fprice(){
454
- if(this.selectItem.f_material_type && this.selectItem.f_material_name && this.selectItem.f_material_spec){
455
- this.fmaterialprice = []
456
- let http = new HttpResetClass()
457
- let data = {
458
- columnname: 'f_price',
459
- tablename: 't_material',
460
- 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`
461
- }
462
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
463
- resolveMsg: null,
464
- rejectMsg: "获取f_material_type失败"
465
- }, {silent: true})
466
- res.data.forEach((row) => {
467
- let temp = {
468
- label: row.f_price,
469
- value: row.f_price
470
- }
471
- this.fmaterialprice.push(temp)
472
- })
473
- }
474
- },
475
- async fmaterialnames() {
476
- if (this.selectItem.f_material_type) {
477
- this.fmaterialname = []
478
- let f_material_type = this.selectItem.f_material_type
479
- let http = new HttpResetClass()
480
- let data = {
481
- columnname: 'f_material_name',
482
- tablename: 't_material',
483
- condition: `f_material_type = '${f_material_type}'`
484
- }
485
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
486
- resolveMsg: null,
487
- rejectMsg: "获取f_material_name失败"
488
- }, {silent: true})
489
- res.data.forEach((row) => {
490
- let temp = {
491
- label: row.f_material_name,
492
- value: row.f_material_name
493
- }
494
- this.fmaterialname.push(temp)
495
- })
496
- }
497
- },
498
- async fmaterialspecs() {
499
- if (this.selectItem.f_material_name) {
500
- this.fmaterialspec = []
501
- let f_material_name = this.selectItem.f_material_name
502
- let http = new HttpResetClass()
503
- let data = {
504
- columnname: 'f_material_spec',
505
- tablename: 't_material',
506
- condition: `f_material_name = '${f_material_name}'`
507
- }
508
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
509
- resolveMsg: null,
510
- rejectMsg: "获取f_material_spec失败"
511
- }, {silent: true})
512
- res.data.forEach((row) => {
513
- let temp = {
514
- label: row.f_material_spec,
515
- value: row.f_material_spec
516
- }
517
- this.fmaterialspec.push(temp)
518
- })
519
- }
520
- }
521
- },
522
- methods: {
523
- async showReceiptSheet (id) {
524
- // 显示该材料批次下的领料批次
525
- let data = {
526
- tablename: 't_receipt_sheet',
527
- condition: `f_batch_id = ${id}`
528
- }
529
- let res = await this.$resetpost('rs/sql/singleTable',{data: data}, {resolveMsg: null, rejectMsg: "获取领料记录失败!"})
530
- if (!res.data.length) {
531
- this.$showMessage('该材料批次下无领料明细')
532
- return
533
- }
534
- this.receiptSheetData.rows = res.data
535
- this.receiptSheetShow = true
536
- },
537
- closeReceiptSheet () {
538
- this.receiptSheetData.rows = []
539
- this.receiptSheetShow = false
540
- },
541
- // 打印领料批次下的领料明细
542
- async printReceiptDetail (row) {
543
- /*let data = {
544
- tablename: 't_receipt_detail',
545
- condition: `f_sheet_id = ${row.id}`
546
- }
547
- let res = await this.$resetpost('rs/sql/singleTable',{data: data}, {resolveMsg: null, rejectMsg: "获取领料明细失败!"})
548
- if (!res.data.length) {
549
- this.$showMessage('该领料批次下无领料明细')
550
- return
551
- }
552
- this.f_apply_num = row.f_apply_num
553
- this.f_material_num = `${row.f_apply_num}-C${row.f_batch_id}`
554
- this.f_sheet_operator = row.f_sheet_operator
555
- this.receiptDetailData = res.data
556
- this.$nextTick(()=>{
557
- this.$refs.printreceipt.PrintTable()
558
- })*/
559
- // 将所有null转为空字符串
560
- // let printdata = this.selectdata
561
- let printdata = this.$parent.getmodel()
562
- // this.$parent.$refs.service_show.getmodel()
563
- printdata = Object.assign(this.selectdata,printdata)
564
- for (var k in printdata) {
565
- if (printdata[k] == null){
566
- printdata[k] = ''
567
- }
568
- }
569
- printdata.tablename = 't_receipt_detail'
570
- printdata.condition = `f_sheet_id = ${row.id}`
571
- let res = await this.$resetpost('rs/report/paigongdan',{data: printdata}, {resolveMsg: null, rejectMsg: "提取数据出错,请重试!"})
572
- this.bill = res.data
573
- this.$nextTick(()=>{
574
- this.$refs.reportprint.print()
575
- })
576
- },
577
- // 父组件更新子组件属性
578
- updateData(val) {
579
- this.headers.blodid = val.f_process_id
580
- this.selectdata = val
581
- },
582
- showdetail(val,index,f_effective_state) {
583
-
584
- if (f_effective_state === '无效'){
585
- this.pgd =''
586
- this.isShowdetail=false
587
- }else {
588
- this.pgd = this.selectdata.f_contract_number+'-C'+val
589
- console.log(val)
590
- this.isShowdetail=true
591
- getInfo(this,1,val)
592
- this.batchindex=index
593
- }
594
-
595
- },
596
- async load(){
597
- let http = new HttpResetClass()
598
- let data = {
599
- columnname: 'f_material_type',
600
- tablename: 't_material',
601
- condition: `1=1`
602
- }
603
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
604
- resolveMsg: null,
605
- rejectMsg: null
606
- }, {silent: true})
607
- res.data.forEach((row) => {
608
- let temp = {
609
- label: row.f_material_type,
610
- value: row.f_material_type
611
- }
612
- this.fmaterialtype.push(temp)
613
- })
614
- },
615
-
616
- commit() {
617
- console.log("edit>>>>>",)
618
- //判断当前节点的状态(开始活动/完工)
619
- var entryName = this.model.f_entry_name //项目名称
620
- var ename = this.selectdata.f_entry_name
621
- this.$resetpost('rs/sql/findProcessState', {data: {actid:this.selectdata.actid}}, {
622
- resolveMsg: null,
623
- rejectMsg: '提交错误!'
624
- }).then((res) => {
625
- if (res.data[0].state != '开始活动') {
626
- this.$showMessage("该节点信息已在别处提交,请刷新!")
627
- this.reset()
628
- } else {
629
- //通过数据校验再进行下一步判断
630
- if (this.verification()) {
631
- if(name == null){
632
- //项目名称唯一性判断
633
- this.$resetpost('rs/sql/findByEntryName', {data: {entryName: entryName}}, {
634
- resolveMsg: null,
635
- rejectMsg: '提交错误!'
636
- }).then((res) => {
637
- if (res.data.length > 0) {
638
- console.log('length>0')
639
- this.$showMessage("项目名称不能重复!")
640
- } else {
641
- console.log('length<=0')
642
- let getGen = gen(this, this.model)
643
- console.log('getgen')
644
- co(getGen)
645
- console.log('co(getgen)')
646
- }
647
- })
648
- }else{
649
- let getGen = gen(this, this.model)
650
- co(getGen)
651
- }
652
- }
653
- }
654
- })
655
- },
656
-
657
- lowerhair() {
658
- console.log('领取了')
659
- let greater=true//判断领取数量不能大于剩余数量
660
- let isPicking=true
661
- if (this.batchmodel.rows.length<=0){
662
- this.$showMessage('请选择具体批次进行领料!')
663
- }else{
664
- for (var i = 0; i < this.batchmodel.rows.length; i++) {
665
- // console.log('第'+i+'条的值为:'+this.batchmodel.rows[i].f_receive_num)
666
-
667
- if (this.batchmodel.rows[i].f_surplus_num<this.batchmodel.rows[i].f_receive_num) {
668
- greater=false
669
- this.$showMessage('领取数量不能大于剩余数量')
670
- break
671
- }
672
- this.batchmodel.rows[i].f_receipt_num=Number(this.batchmodel.rows[i].f_receive_num)
673
- this.batchmodel.rows[i].f_detail_operator=this.$login.f.name
674
- this.batchmodel.rows[i].f_add_receive=this.accAdd(Number(this.batchmodel.rows[i].f_add_receive),Number(this.batchmodel.rows[i].f_receive_num))
675
- if (this.batchmodel.rows[i].f_budget_num<this.batchmodel.rows[i].f_add_receive) {
676
- this.batchmodel.rows[i].f_surplus_num=0
677
- }else{
678
- this.batchmodel.rows[i].f_surplus_num=this.accSub(Number(this.batchmodel.rows[i].f_budget_num),Number(this.batchmodel.rows[i].f_add_receive))
679
- }
680
- this.batchmodel.rows[i].f_receive_num= this.batchmodel.rows[i].f_surplus_num
681
-
682
- if ( this.batchmodel.rows[i].f_surplus_num !=0){
683
- isPicking=false
684
- }
685
-
686
- }
687
- if (isPicking) {
688
- this.model.rows[this.batchindex].f_picking_state='已领完'
689
- }
690
-
691
-
692
- if (greater){
693
- let data = {
694
- f_batch_id:this.model.rows[this.batchindex].id,
695
- f_apply_num:this.model.rows[this.batchindex].f_apply_num,
696
- processid:this.model.rows[this.batchindex].processid,
697
- f_filiale:this.model.rows[this.batchindex].f_filiale,
698
- f_parentname:this.model.rows[this.batchindex].f_parentname,
699
- f_sheet_operator:this.$login.f.name,
700
- f_picking_state:this.model.rows[this.batchindex].f_picking_state,
701
- batchmodel:this.batchmodel.rows
702
- }
703
- this.$resetpost('rs/logic/receipt_batch', data,{resolveMsg: '领取成功', rejectMsg: '领取失败'}).then((res) => {
704
- if (!this.state){
705
- this.showReceiptSheet(data.f_batch_id)
706
- }
707
- getInfo(this,0,0)
708
-
709
- })
710
-
711
- }
712
-
713
- }
714
-
715
-
716
- },
717
- accSub(arg1, arg2) {
718
- var r1, r2, m, n;
719
- try { r1 = arg1.toString().split(".")[1].length } catch (e) { r1 = 0 }
720
- try { r2 = arg2.toString().split(".")[1].length } catch (e) { r2 = 0 }
721
- m = Math.pow(10, Math.max(r1, r2));
722
- //last modify by deeka
723
- //动态控制精度长度
724
- n = (r1 >= r2) ? r1 : r2;
725
- return ((arg1 * m - arg2 * m) / m).toFixed(n);
726
- },
727
- reset() {
728
- this.$dispatch('close')
729
- this.$dispatch('selfsearch')
730
- },
731
- accAdd(arg1,arg2){
732
- var r1,r2,m;
733
- try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
734
- try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
735
- m=Math.pow(10,Math.max(r1,r2))
736
- return (arg1*m+arg2*m)/m
737
- },
738
-
739
- //数据校验
740
- verification() {
741
- /* var isNum = /^(([+]?\d*$)|(^[+]?\d+(\.\d+)?$))/ //非负纯数字
742
- var regex = /.*?[\u4e00-\u9fa5].*?[\u4e00-\u9fa5].*!/ //至少两个汉字
743
- var phoneReg = /^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/ //手机号码正则
744
- var telReg = /0\d{2,3}-\d{7,8}/ //座机正则
745
- if (!this.model.f_entry_name) {
746
- this.$showMessage("项目名称不能为空!")
747
- return false
748
- }*/
749
- return true
750
- },
751
- impexcel() {
752
- this.isShow = true
753
- },
754
- closeFile() {
755
- this.isShow = false
756
- // 将选的文件清空
757
- this.$refs.file.$el.querySelector('input').value = ''
758
- },
759
- // deleteItem(row) {
760
- // this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
761
- // if (res === 'confirm') {
762
- // this.$resetpost('rs/logic/deletebatch', { id: row.id}).then((res) => {
763
- // getInfo(this,0,0)
764
- //
765
- // })
766
- // }
767
- // })
768
- // },
769
- tovoid(row) {
770
- console.log('作废')
771
- if (row.f_effective_state==='有效'){
772
- this.istoVoidBatch=true
773
- getInfo(this,1,row.id)
774
-
775
-
776
-
777
-
778
- }else{
779
- this.$showMessage('此批次不是有效状态,不能作废!')
780
- }
781
-
782
- },
783
- filterParams(f_material_operator,f_effective_stated,f_picking_stated) {
784
- if ((f_material_operator && f_material_operator !== "")||
785
- (f_picking_stated && f_picking_stated !== "")&&(f_effective_stated && f_effective_stated !== "")) {
786
- let temp = []
787
- for (var i = 0; i < this.params.length; i++) {
788
- this.model.rows = this.params
789
- if (this.model.rows[i].f_material_operator.includes(f_material_operator)
790
- &&this.model.rows[i].f_effective_state.includes(f_effective_stated)&&
791
- this.model.rows[i].f_picking_state.includes(f_picking_stated)
792
- ) {
793
- temp.push(this.model.rows[i])
794
- }
795
- }
796
-
797
- this.model.rows=[]
798
- this.model.rows = temp
799
- } else {
800
- this.model.rows = this.params
801
- }
802
- },
803
- add() {
804
- this.show = true
805
- },
806
- // 修改按钮
807
- modifyParam(row) {
808
- this.$set('selectItem.id', row.id)
809
- this.$set('selectItem.f_batch_id', row.f_batch_id)
810
- this.$set('selectItem.f_revenue_id', row.f_revenue_id)
811
- this.$set('selectItem.f_budget_num', row.f_budget_num)
812
- this.$set('selectItem.f_surplus_num', row.f_surplus_num)
813
- this.$set('selectItem.f_batch_type', row.f_batch_type)
814
- this.$set('selectItem.f_batch_code', row.f_batch_code)
815
- this.$set('selectItem.f_batch_name', row.f_batch_name)
816
- this.$set('selectItem.f_batch_norms', row.f_batch_norms)
817
- this.$set('selectItem.f_batch_company', row.f_batch_company)
818
- this.$set('selectItem.f_apply_num', row.f_apply_num)
819
- this.$set('selectItem.f_filiale', row.f_filiale)
820
- this.$set('selectItem.f_parentname', row.f_parentname)
821
- this.$set('selectItem.f_material_operator', row.f_material_operator)
822
- this.$set('selectItem.f_batch_importdate', row.f_batch_importdate)
823
-
824
- this.show = true
825
-
826
- },
827
- receiveBatch(row) {
828
- console.log(row.f_receive_num)
829
- },
830
- // 缴费情况修改
831
- paychange(row) {
832
- let http = new HttpResetClass()
833
- row.f_pay=!row.f_pay
834
- http.load('POST','rs/logic/saveentity', {data:{tablename:'t_material',parameters:row}}, {
835
- resolveMsg: null,
836
- rejectMsg: "缴费状态更新失败"
837
- }, {silent: true})
838
- },
839
- confirm() {
840
- /* // 无主键为插入
841
- if (!this.selectItem.f_uuuid) {
842
- this.selectItem.f_type = '报建'
843
- this.selectItem.f_uuuid = this.selectdata.f_process_id
844
- let data = {
845
- tablename: 't_material',
846
- parameters: this.selectItem
847
- }
848
- this.$resetpost('rs/logic/save', {data: data}).then((res) => {
849
- this.show = false
850
- // 如果没有id,需要在数组中添加
851
- getInfo(this,0,0)
852
- this.selectItem = {}
853
- })
854
- } else { // 有主键为更新
855
- let data = {
856
- tablename: 't_material',
857
- parameters: this.selectItem
858
- }
859
- this.$resetpost('rs/logic/saveentity', {data: data}).then((res) => {
860
- this.show = false
861
- // 如果没有id,需要在数组中添加
862
- getInfo(this,0,0)
863
- this.selectItem = {}
864
- })
865
- }*/
866
- let data = {
867
- tablename: 't_material_list',
868
- parameters: this.selectItem
869
- }
870
- let this1=this
871
- this.$resetpost('rs/logic/saveentity', {data: data}).then((res) => {
872
- this.show = false
873
- // 如果没有id,需要在数组中添加
874
- getInfo(this,1,this.selectItem.f_batch_id)
875
- this.selectItem = {}
876
-
877
- })
878
- },
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
- // 关闭模态框
887
- close() {
888
- this.show = false
889
- this.selectItem = {}
890
- }
891
- // modify (row, key) {
892
- // this.value = row
893
- // this.key = key
894
- // },
895
- // clear (row, key) {
896
- // if (this.key) {
897
- // this.model.rows[key] = this.value
898
- // this.value = null
899
- // this.key = null
900
- // }
901
- // }
902
- },
903
- events: {
904
- onFileUpload: function (file, res) {
905
- if (!this.selectdata.f_process_id) {
906
- this.$showMessage("数据异常,导入失败")
907
- return
908
- }
909
- let data = {
910
- tablename: 'f_material',
911
- filepath: res.f_downloadpath,
912
- processid: this.selectdata.f_process_id,
913
- f_apply_num: this.selectdata.f_apply_num,
914
- f_filiale:this.selectdata.f_filiale,
915
- f_parentname:this.$login.f.f_parentname,
916
- f_material_operator:this.$login.f.name
917
- /* processid:this.selectdata.f_processid*/
918
- }
919
-
920
-
921
-
922
- this.$resetpost('rs/logic/materialImport', data, {resolveMsg: '上传成功', rejectMsg: '上传失败'}).then((res) => {
923
- /* this.model.rows = res.data.data
924
- for (var i = 0; i < res.data.data.length; i++) {
925
- res.data.data[i].t_material.f_pay = res.data.data[i].t_material.t_pay?true:false
926
- this.model.rows.push(res.data.data[i].t_material)
927
- }*/
928
- // _this.load()
929
-
930
- getInfo(this,0,0)
931
- console.log('dddddddd', this)
932
- this.closeFile()
933
- })
934
- }
935
- }
936
- }
937
- </script>
938
- <style scoped>
939
- .recordTable table tr th {
940
- font-weight: bold;
941
- }
942
-
943
- .recordTable table tr:hover {
944
- background-color: rgb(230, 230, 230);
945
- }
946
-
947
- td {
948
- text-align: center !important
949
- }
950
-
951
- .input-select {
952
- width: 100%;
953
- height: 34px;
954
- align-content: center;
955
- margin-top: 10px;
956
- }
957
- </style>