apply-clients 3.2.48 → 3.2.51

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 (276) hide show
  1. package/package.json +4 -3
  2. package/src/AndroidApp.vue +2 -2
  3. package/src/apply.js +7 -0
  4. package/src/components/app_apply/Process/AppExplorationUser.vue +200 -200
  5. package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +1 -1
  6. package/src/components/image/tubiao2.png +0 -0
  7. package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +103 -7
  8. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +7 -3
  9. package/src/components/product/Ledger/Function/InstallInfoSelect.vue +1 -1
  10. package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +11 -4
  11. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +11 -0
  12. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +9 -1
  13. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +56 -14
  14. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +9 -1
  15. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +9 -1
  16. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +149 -2
  17. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +17 -5
  18. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +10 -8
  19. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +10 -6
  20. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +20 -9
  21. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +10 -60
  22. package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +4 -4
  23. package/src/components/product/Ledger/Process/ProcessBusiness.vue +8 -0
  24. package/src/components/product/Ledger/Process/ProcessSelect.vue +39 -14
  25. package/src/components/product/Ledger/Process/Service/ServiceControl.vue +33 -7
  26. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingAddingMaterial.vue +330 -0
  27. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +117 -25
  28. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialDepot.vue +113 -0
  29. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialList.vue +143 -0
  30. package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +8 -0
  31. package/src/components/product/Ledger/Supervisory/Service/PrepareContract.vue +233 -0
  32. package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +2 -7
  33. package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +37 -4
  34. package/src/components/product/ServiceView.vue +1 -3
  35. package/dist-android/index.html +0 -3
  36. package/dist-android/static/.gitkeep +0 -0
  37. package/dist-android/static/0.js +0 -2
  38. package/dist-android/static/0.js.map +0 -1
  39. package/dist-android/static/1.js +0 -2
  40. package/dist-android/static/1.js.map +0 -1
  41. package/dist-android/static/10.js +0 -2
  42. package/dist-android/static/10.js.map +0 -1
  43. package/dist-android/static/100.js +0 -2
  44. package/dist-android/static/100.js.map +0 -1
  45. package/dist-android/static/11.js +0 -2
  46. package/dist-android/static/11.js.map +0 -1
  47. package/dist-android/static/12.js +0 -2
  48. package/dist-android/static/12.js.map +0 -1
  49. package/dist-android/static/13.js +0 -2
  50. package/dist-android/static/13.js.map +0 -1
  51. package/dist-android/static/14.js +0 -2
  52. package/dist-android/static/14.js.map +0 -1
  53. package/dist-android/static/15.js +0 -2
  54. package/dist-android/static/15.js.map +0 -1
  55. package/dist-android/static/16.js +0 -2
  56. package/dist-android/static/16.js.map +0 -1
  57. package/dist-android/static/17.js +0 -2
  58. package/dist-android/static/17.js.map +0 -1
  59. package/dist-android/static/18.js +0 -2
  60. package/dist-android/static/18.js.map +0 -1
  61. package/dist-android/static/19.js +0 -2
  62. package/dist-android/static/19.js.map +0 -1
  63. package/dist-android/static/2.js +0 -2
  64. package/dist-android/static/2.js.map +0 -1
  65. package/dist-android/static/20.js +0 -2
  66. package/dist-android/static/20.js.map +0 -1
  67. package/dist-android/static/21.js +0 -2
  68. package/dist-android/static/21.js.map +0 -1
  69. package/dist-android/static/22.js +0 -2
  70. package/dist-android/static/22.js.map +0 -1
  71. package/dist-android/static/23.js +0 -2
  72. package/dist-android/static/23.js.map +0 -1
  73. package/dist-android/static/24.js +0 -2
  74. package/dist-android/static/24.js.map +0 -1
  75. package/dist-android/static/25.js +0 -2
  76. package/dist-android/static/25.js.map +0 -1
  77. package/dist-android/static/26.js +0 -2
  78. package/dist-android/static/26.js.map +0 -1
  79. package/dist-android/static/27.js +0 -2
  80. package/dist-android/static/27.js.map +0 -1
  81. package/dist-android/static/28.js +0 -2
  82. package/dist-android/static/28.js.map +0 -1
  83. package/dist-android/static/29.js +0 -2
  84. package/dist-android/static/29.js.map +0 -1
  85. package/dist-android/static/3.js +0 -2
  86. package/dist-android/static/3.js.map +0 -1
  87. package/dist-android/static/30.js +0 -2
  88. package/dist-android/static/30.js.map +0 -1
  89. package/dist-android/static/31.js +0 -2
  90. package/dist-android/static/31.js.map +0 -1
  91. package/dist-android/static/32.js +0 -2
  92. package/dist-android/static/32.js.map +0 -1
  93. package/dist-android/static/33.js +0 -2
  94. package/dist-android/static/33.js.map +0 -1
  95. package/dist-android/static/34.js +0 -2
  96. package/dist-android/static/34.js.map +0 -1
  97. package/dist-android/static/35.js +0 -2
  98. package/dist-android/static/35.js.map +0 -1
  99. package/dist-android/static/36.js +0 -2
  100. package/dist-android/static/36.js.map +0 -1
  101. package/dist-android/static/37.js +0 -2
  102. package/dist-android/static/37.js.map +0 -1
  103. package/dist-android/static/38.js +0 -2
  104. package/dist-android/static/38.js.map +0 -1
  105. package/dist-android/static/39.js +0 -2
  106. package/dist-android/static/39.js.map +0 -1
  107. package/dist-android/static/4.js +0 -2
  108. package/dist-android/static/4.js.map +0 -1
  109. package/dist-android/static/40.js +0 -2
  110. package/dist-android/static/40.js.map +0 -1
  111. package/dist-android/static/41.js +0 -2
  112. package/dist-android/static/41.js.map +0 -1
  113. package/dist-android/static/42.js +0 -2
  114. package/dist-android/static/42.js.map +0 -1
  115. package/dist-android/static/43.js +0 -2
  116. package/dist-android/static/43.js.map +0 -1
  117. package/dist-android/static/44.js +0 -2
  118. package/dist-android/static/44.js.map +0 -1
  119. package/dist-android/static/45.js +0 -2
  120. package/dist-android/static/45.js.map +0 -1
  121. package/dist-android/static/46.js +0 -2
  122. package/dist-android/static/46.js.map +0 -1
  123. package/dist-android/static/47.js +0 -2
  124. package/dist-android/static/47.js.map +0 -1
  125. package/dist-android/static/48.js +0 -2
  126. package/dist-android/static/48.js.map +0 -1
  127. package/dist-android/static/49.js +0 -2
  128. package/dist-android/static/49.js.map +0 -1
  129. package/dist-android/static/5.js +0 -2
  130. package/dist-android/static/5.js.map +0 -1
  131. package/dist-android/static/50.js +0 -2
  132. package/dist-android/static/50.js.map +0 -1
  133. package/dist-android/static/51.js +0 -2
  134. package/dist-android/static/51.js.map +0 -1
  135. package/dist-android/static/52.js +0 -2
  136. package/dist-android/static/52.js.map +0 -1
  137. package/dist-android/static/53.js +0 -2
  138. package/dist-android/static/53.js.map +0 -1
  139. package/dist-android/static/54.js +0 -2
  140. package/dist-android/static/54.js.map +0 -1
  141. package/dist-android/static/55.js +0 -2
  142. package/dist-android/static/55.js.map +0 -1
  143. package/dist-android/static/56.js +0 -2
  144. package/dist-android/static/56.js.map +0 -1
  145. package/dist-android/static/57.js +0 -2
  146. package/dist-android/static/57.js.map +0 -1
  147. package/dist-android/static/58.js +0 -2
  148. package/dist-android/static/58.js.map +0 -1
  149. package/dist-android/static/59.js +0 -2
  150. package/dist-android/static/59.js.map +0 -1
  151. package/dist-android/static/6.js +0 -2
  152. package/dist-android/static/6.js.map +0 -1
  153. package/dist-android/static/60.js +0 -2
  154. package/dist-android/static/60.js.map +0 -1
  155. package/dist-android/static/61.js +0 -2
  156. package/dist-android/static/61.js.map +0 -1
  157. package/dist-android/static/62.js +0 -2
  158. package/dist-android/static/62.js.map +0 -1
  159. package/dist-android/static/63.js +0 -2
  160. package/dist-android/static/63.js.map +0 -1
  161. package/dist-android/static/64.js +0 -2
  162. package/dist-android/static/64.js.map +0 -1
  163. package/dist-android/static/65.js +0 -2
  164. package/dist-android/static/65.js.map +0 -1
  165. package/dist-android/static/66.js +0 -2
  166. package/dist-android/static/66.js.map +0 -1
  167. package/dist-android/static/67.js +0 -2
  168. package/dist-android/static/67.js.map +0 -1
  169. package/dist-android/static/68.js +0 -2
  170. package/dist-android/static/68.js.map +0 -1
  171. package/dist-android/static/69.js +0 -2
  172. package/dist-android/static/69.js.map +0 -1
  173. package/dist-android/static/7.js +0 -6
  174. package/dist-android/static/7.js.map +0 -1
  175. package/dist-android/static/70.js +0 -2
  176. package/dist-android/static/70.js.map +0 -1
  177. package/dist-android/static/71.js +0 -2
  178. package/dist-android/static/71.js.map +0 -1
  179. package/dist-android/static/72.js +0 -2
  180. package/dist-android/static/72.js.map +0 -1
  181. package/dist-android/static/73.js +0 -2
  182. package/dist-android/static/73.js.map +0 -1
  183. package/dist-android/static/74.js +0 -2
  184. package/dist-android/static/74.js.map +0 -1
  185. package/dist-android/static/75.js +0 -2
  186. package/dist-android/static/75.js.map +0 -1
  187. package/dist-android/static/76.js +0 -2
  188. package/dist-android/static/76.js.map +0 -1
  189. package/dist-android/static/77.js +0 -2
  190. package/dist-android/static/77.js.map +0 -1
  191. package/dist-android/static/78.js +0 -2
  192. package/dist-android/static/78.js.map +0 -1
  193. package/dist-android/static/79.js +0 -2
  194. package/dist-android/static/79.js.map +0 -1
  195. package/dist-android/static/8.js +0 -2
  196. package/dist-android/static/8.js.map +0 -1
  197. package/dist-android/static/80.js +0 -2
  198. package/dist-android/static/80.js.map +0 -1
  199. package/dist-android/static/81.js +0 -2
  200. package/dist-android/static/81.js.map +0 -1
  201. package/dist-android/static/82.js +0 -2
  202. package/dist-android/static/82.js.map +0 -1
  203. package/dist-android/static/83.js +0 -2
  204. package/dist-android/static/83.js.map +0 -1
  205. package/dist-android/static/84.js +0 -2
  206. package/dist-android/static/84.js.map +0 -1
  207. package/dist-android/static/85.js +0 -2
  208. package/dist-android/static/85.js.map +0 -1
  209. package/dist-android/static/86.js +0 -2
  210. package/dist-android/static/86.js.map +0 -1
  211. package/dist-android/static/87.js +0 -2
  212. package/dist-android/static/87.js.map +0 -1
  213. package/dist-android/static/88.js +0 -2
  214. package/dist-android/static/88.js.map +0 -1
  215. package/dist-android/static/89.js +0 -2
  216. package/dist-android/static/89.js.map +0 -1
  217. package/dist-android/static/9.js +0 -3
  218. package/dist-android/static/9.js.map +0 -1
  219. package/dist-android/static/90.js +0 -2
  220. package/dist-android/static/90.js.map +0 -1
  221. package/dist-android/static/91.js +0 -2
  222. package/dist-android/static/91.js.map +0 -1
  223. package/dist-android/static/92.js +0 -2
  224. package/dist-android/static/92.js.map +0 -1
  225. package/dist-android/static/93.js +0 -2
  226. package/dist-android/static/93.js.map +0 -1
  227. package/dist-android/static/94.js +0 -2
  228. package/dist-android/static/94.js.map +0 -1
  229. package/dist-android/static/95.js +0 -2
  230. package/dist-android/static/95.js.map +0 -1
  231. package/dist-android/static/96.js +0 -2
  232. package/dist-android/static/96.js.map +0 -1
  233. package/dist-android/static/97.js +0 -2
  234. package/dist-android/static/97.js.map +0 -1
  235. package/dist-android/static/98.js +0 -2
  236. package/dist-android/static/98.js.map +0 -1
  237. package/dist-android/static/99.js +0 -2
  238. package/dist-android/static/99.js.map +0 -1
  239. package/dist-android/static/app.css +0 -2
  240. package/dist-android/static/app.css.map +0 -1
  241. package/dist-android/static/app.js +0 -80
  242. package/dist-android/static/app.js.map +0 -1
  243. package/dist-android/static/batchleft.png +0 -0
  244. package/dist-android/static/batchright.png +0 -0
  245. package/dist-android/static/bluemainbg.jpg +0 -0
  246. package/dist-android/static/config.json +0 -7
  247. package/dist-android/static/denglu.png +0 -0
  248. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  249. package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
  250. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  251. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  252. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  253. package/dist-android/static/huangtengbiaozhi.png +0 -0
  254. package/dist-android/static/jingyin.jpg +0 -0
  255. package/dist-android/static/login_bg.jpg +0 -0
  256. package/dist-android/static/login_title.png +0 -0
  257. package/dist-android/static/login_title1.png +0 -0
  258. package/dist-android/static/loginbg.jpg +0 -0
  259. package/dist-android/static/loginlogo.png +0 -0
  260. package/dist-android/static/main_logo.png +0 -0
  261. package/dist-android/static/mainbg.jpg +0 -0
  262. package/dist-android/static/menulogo.png +0 -0
  263. package/dist-android/static/newmainbg.jpg +0 -0
  264. package/dist-android/static/psicon.png +0 -0
  265. package/dist-android/static/singleleft.png +0 -0
  266. package/dist-android/static/singleright.png +0 -0
  267. package/dist-android/static/treeopen.png +0 -0
  268. package/dist-android/static/treeout.png +0 -0
  269. package/dist-android/static/treeset.png +0 -0
  270. package/dist-android/static/usericon.png +0 -0
  271. package/dist-android/static/workflow_apply.json +0 -766
  272. package/dist-android/static/xinxi.png +0 -0
  273. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  274. package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
  275. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  276. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
@@ -171,6 +171,7 @@
171
171
  <template partial='head'>
172
172
  <tr>
173
173
  <th style="white-space: nowrap;">序号</th>
174
+ <th style="white-space: nowrap;">材料编码</th>
174
175
  <th style="white-space: nowrap;">材料名称</th>
175
176
  <th style="white-space: nowrap;">材料型号</th>
176
177
  <th style="white-space: nowrap;">材料规格</th>
@@ -179,7 +180,7 @@
179
180
  <th style="white-space: nowrap;">不含税单价</th>
180
181
  <th style="white-space: nowrap;" v-if="type !== 'add'">累计数量</th>
181
182
  <th style="white-space: nowrap;" v-if="$parent.$parent.type !== 'view'">
182
- <button @click="$parent.$parent.showModal = !$parent.$parent.showModal" type="button" class="btn btn-info">
183
+ <button @click="$parent.$parent.isshow()" type="button" class="btn btn-info">
183
184
  <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
184
185
  </button>
185
186
  <a href="/download/材料批量导入模板.xlsx" type="button" class="btn btn-info">模板下载</a>
@@ -198,6 +199,7 @@
198
199
  <template partial='body'>
199
200
  <tr>
200
201
  <td style="text-align: center;">{{$index+1}}</td>
202
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
201
203
  <td style="text-align: center;">{{row.f_material_name}}</td>
202
204
  <td style="text-align: center;">{{row.f_material_model}}</td>
203
205
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -240,9 +242,13 @@
240
242
  <td style="text-align: center;">{{row.f_facility_money}}</td>
241
243
  <td style="text-align: center;" v-if="type !== 'add'">{{row.f_total}}</td>
242
244
  <td style="text-align: center;" v-if="$parent.$parent.type !== 'view'">
245
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.openUpdate($index,row)">修改</button>
246
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.delete($index)">删除</button>
247
+ </td>
248
+ <!--td style="text-align: center;" v-if="$parent.$parent.type !== 'view'">
243
249
  <button type="button" v-if="!row.id" name="button" class="btn btn-link" @click="$parent.$parent.openUpdate($index,row)">修改</button>
244
250
  <button type="button" v-if="!row.id" name="button" class="btn btn-link" @click="$parent.$parent.delete($index)">删除</button>
245
- </td>
251
+ </td>-->
246
252
  </tr>
247
253
  </template>
248
254
  </data-grid>
@@ -263,28 +269,48 @@
263
269
  <span class="modal-title"><font size="3">添加材料</font></span>
264
270
  </header>
265
271
  <article slot="modal-body" class="form-horizontal modal-body clearfix" v-if="contract.f_contract_category === '物料'">
272
+ <div class="col-sm-12 form-group" :class="[$mv.material.required ? 'has-error' : '']">
273
+ <label class="control-label col-sm-2">选择材料</label>
274
+ <div class="col-sm-9">
275
+ <input type="text" v-show="false" v-model="material.id" v-validate:material = "['required']" >
276
+ <input-select
277
+ class="select select_list"
278
+ :value.sync="material"
279
+ v-model="material"
280
+ :timeout="500"
281
+ @select-search="select_search"
282
+ :options="contractMaterial"
283
+ :valueSingle="true"></input-select>
284
+ </div>
285
+ </div>
286
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
287
+ <label class="control-label col-sm-2">材料编码</label>
288
+ <div class="col-sm-9">
289
+ <input class="form-control" type="text" v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_qhmaterial_coding"/>
290
+ </div>
291
+ </div>
266
292
  <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
267
293
  <label class="control-label col-sm-2">材料名称</label>
268
294
  <div class="col-sm-9">
269
- <input class="form-control" type="text" v-validate:f_material_name = "['required']" v-model="material.f_material_name" :value="material.f_material_name"/>
295
+ <input class="form-control" type="text" v-validate:f_material_name = "['required']" v-model="material.f_material_name" :value="material.f_qhmaterial_name"/>
270
296
  </div>
271
297
  </div>
272
298
  <div class="col-sm-12 form-group" :class="[$mv.f_material_model.required ? 'has-error' : '']">
273
299
  <label class="control-label col-sm-2">材料型号</label>
274
300
  <div class="col-sm-9">
275
- <input class="form-control" type="text" v-validate:f_material_model = "['required']" v-model="material.f_material_model" :value="material.f_material_model"/>
301
+ <input class="form-control" type="text" v-validate:f_material_model = "['required']" v-model="material.f_material_model" :value="material.f_qhmaterial_model"/>
276
302
  </div>
277
303
  </div>
278
304
  <div class="col-sm-12 form-group" :class="[$mv.f_material_norm.required ? 'has-error' : '']">
279
305
  <label class="control-label col-sm-2">材料规格</label>
280
306
  <div class="col-sm-9">
281
- <input class="form-control" type="text" v-validate:f_material_norm = "['required']" v-model="material.f_material_norm" :value="material.f_material_norm"/>
307
+ <input class="form-control" type="text" v-validate:f_material_norm = "['required']" v-model="material.f_material_norm" :value="material.f_qhmaterial_norm"/>
282
308
  </div>
283
309
  </div>
284
310
  <div class="col-sm-12 form-group" :class="[$mv.f_unit.required ? 'has-error' : '']">
285
311
  <label class="control-label col-sm-2">单&emsp;&emsp;位</label>
286
312
  <div class="col-sm-9">
287
- <input class="form-control" type="text" v-validate:f_unit = "['required']" v-model="material.f_unit" :value="material.f_unit"/>
313
+ <input class="form-control" type="text" v-validate:f_unit = "['required']" v-model="material.f_unit" :value="material.f_qhunit"/>
288
314
  </div>
289
315
  </div>
290
316
  <div class="col-sm-12 form-group" :class="[$mv.f_price.required ? 'has-error' : '']">
@@ -348,7 +374,7 @@
348
374
  </template>
349
375
 
350
376
  <script>
351
- import {PagedList} from 'vue-client'
377
+ import {HttpResetClass, PagedList} from 'vue-client'
352
378
  import {getNowDate,isEmpty} from '../../../../Util'
353
379
  // Date格式化
354
380
  Date.prototype.Format = function (fmt) {
@@ -392,6 +418,7 @@ export default {
392
418
  },
393
419
  facility: {},
394
420
  index: null,
421
+ contractMaterial: [],
395
422
  showFile: false
396
423
  }
397
424
  },
@@ -402,6 +429,71 @@ export default {
402
429
 
403
430
  },
404
431
  methods: {
432
+ select_search(text){
433
+ debugger
434
+ console.log("----------------"+text)
435
+ debugger
436
+ if(text){
437
+ let pcdText=text=`and f_qhmaterial_coding like '${text}%'`
438
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data:{items:"*",tablename:"t_qinhua_material",condition:`f_qhmaterial_coding is not null ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
439
+ console.log('请求发送完成!!!!!'+JSON.stringify(res))
440
+ this.contractMaterial=[]
441
+ if(res.data.length>0){
442
+ console.log("查出的值",res.data)
443
+
444
+ res.data.forEach((item)=>{
445
+ console.log("打印没存值前的内容",this.contractMaterial)
446
+ debugger
447
+ this.contractMaterial.push({
448
+ 'label': `${item.f_qhmaterial_coding}--${item.f_qhmaterial_name}--${item.f_qhmaterial_model}--${item.f_qhmaterial_norm}--${item.f_qhunit}`,
449
+ 'value': item
450
+ })
451
+ })
452
+ }
453
+ })
454
+ }else{
455
+ this.getContractMaterial()
456
+ }
457
+ },
458
+ changeMaterial () {
459
+ if (!isEmpty(this.material.id)) {
460
+ let flag = this.model.data.some(item => {
461
+ if (item.id === this.material.id) {
462
+ return true
463
+ }
464
+ return false
465
+ })
466
+ if (flag) {
467
+ this.$showAlert('该物料已经存在,如需再次添加,请进行修改操作!!!', 'warning', 3000)
468
+ this.closeModal()
469
+ }
470
+ }
471
+ },
472
+ async isshow(){
473
+ this.showModal=!this.showModal
474
+ await this.getContractMaterial()
475
+
476
+ this.showMaterial = true
477
+ },
478
+ async getContractMaterial () {
479
+ debugger
480
+ let data = {
481
+ condition: `1=1`
482
+ }
483
+
484
+ let res = await this.$resetpost(
485
+ `rs/sql/getQhMaterial`,
486
+ {data: data},
487
+ {resolveMsg: null, rejectMsg: '秦华物料查询失败!!!'}
488
+ )
489
+ debugger
490
+ res.data.forEach(item => {
491
+ this.contractMaterial.push({
492
+ 'label': `${item.f_qhmaterial_coding}--${item.f_qhmaterial_name}--${item.f_qhmaterial_model}--${item.f_qhmaterial_norm}--${item.f_qhunit}`,
493
+ 'value': item
494
+ })
495
+ })
496
+ },
405
497
  closeFile () {
406
498
  this.showFile = false
407
499
  // 将选的文件清空
@@ -452,6 +544,7 @@ export default {
452
544
  if (this.contract.f_contract_category === '物料') {
453
545
  let flag = this.model.data.some(item => {
454
546
  if (
547
+ item.f_material_coding === this.material.f_material_coding &&
455
548
  item.f_material_name === this.material.f_material_name &&
456
549
  item.f_material_norm === this.material.f_material_norm &&
457
550
  item.f_material_model === this.material.f_material_model &&
@@ -510,6 +603,7 @@ export default {
510
603
  this.material = {}
511
604
  this.facility = {}
512
605
  this.index = null
606
+ this.contractMaterial=[]
513
607
  },
514
608
  // 合同类别
515
609
  changeContractCategory () {
@@ -594,6 +688,8 @@ export default {
594
688
  this.closeFile()
595
689
  return
596
690
  }
691
+ item.material.f_price=parseFloat(item.material.f_price).toFixed(2)
692
+ item.material.f_noprice=parseFloat(item.material.f_noprice).toFixed(2)
597
693
  this.material = item.material
598
694
  }
599
695
  if (this.contract.f_contract_category === '设备') {
@@ -97,7 +97,7 @@
97
97
  <div class="col-sm-4 form-group item" v-if="type === 'lend' || type === 'return'" :class="[$v2.f_cea_number.required ? 'has-error' : '']">
98
98
  <label class="control-label-justify control-label col-sm-6">CEA号</label>
99
99
  <div class="col-sm-6">
100
- <input-select
100
+ <!-- <input-select
101
101
  class="select select_list"
102
102
  v-show="type === 'lend'"
103
103
  :value.sync="cea"
@@ -108,6 +108,10 @@
108
108
  readonly
109
109
  v-show="type === 'return'" v-validate:f_cea_number = "['required']"
110
110
  v-model="facility.lend.f_cea_number"
111
+ :value.sync="cea.f_cea_number"/>-->
112
+ <input class="form-control input_view" type="text"
113
+ :readonly="type === 'return'"
114
+ v-model="facility.lend.f_cea_number"
111
115
  :value.sync="cea.f_cea_number"/>
112
116
  </div>
113
117
  </div>
@@ -478,7 +482,7 @@ export default {
478
482
  return
479
483
  }
480
484
 
481
- res.data.forEach(item => {
485
+ /* res.data.forEach(item => {
482
486
  this.ceaList.push({
483
487
  'label': item.f_cea_number,
484
488
  'value': {
@@ -487,7 +491,7 @@ export default {
487
491
  f_entry_name: item.f_entry_name
488
492
  }
489
493
  })
490
- })
494
+ })*/
491
495
 
492
496
  },
493
497
  // 获取合同
@@ -7,7 +7,7 @@
7
7
  <div class="form-group col-sm-3">
8
8
  <label class="font_normal_body">项目名称:</label>
9
9
  <input type="text" class="input_search" style="width: 60%" v-model="model.f_entry_name"
10
- v-on:keyup.enter="$parent.$parent.search()" condition="u.f_entry_name like '%{}%'" placeholder='项目名称'>
10
+ v-on:keyup.enter="$parent.$parent.search()" condition="CHARINDEX('{}',u.f_entry_name)>0" placeholder='项目名称'>
11
11
  </div>
12
12
  <div class="form-group col-sm-3">
13
13
  <label class="font_normal_body">工程编号:</label>
@@ -111,6 +111,12 @@
111
111
  condition="md.f_delivery_date <= '{}'">
112
112
  </datepicker>
113
113
  </div>
114
+ <div class="form-group col-sm-3">
115
+ <label class="font_normal_body">材料编码:</label>
116
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料编码' v-model="model.f_material_coding"
117
+ v-on:keyup.enter="$parent.$parent.search()"
118
+ condition="m.f_material_coding like '%{}%'">
119
+ </div>
114
120
  </div>
115
121
  </div>
116
122
  </criteria>
@@ -118,7 +124,7 @@
118
124
  <template partial='head'>
119
125
  <tr>
120
126
  <th style="white-space: nowrap;">序号</th>
121
- <!-- <th style="white-space: nowrap;">材料编码</th>-->
127
+ <th style="white-space: nowrap;">材料编码</th>
122
128
  <th style="white-space: nowrap;">材料名称</th>
123
129
  <th style="white-space: nowrap;">材料型号</th>
124
130
  <th style="white-space: nowrap;">材料规格</th>
@@ -142,9 +148,9 @@
142
148
  <td style="text-align: center;">
143
149
  <nobr><font>{{$index+1}}</font></nobr>
144
150
  </td>
145
- <!-- <td style="text-align: center;">-->
146
- <!-- <nobr><font>{{row.f_material_coding}}</font></nobr>-->
147
- <!-- </td>-->
151
+ <td style="text-align: center;">
152
+ <nobr><font>{{row.f_material_coding}}</font></nobr>
153
+ </td>
148
154
  <td style="text-align: center;">
149
155
  <nobr><font>{{row.f_material_name}}</font></nobr>
150
156
  </td>
@@ -230,6 +236,7 @@ export default {
230
236
  }),
231
237
  criteriaShow: false,
232
238
  getfield: {
239
+ 'f_material_coding': '材料编码',
233
240
  'f_material_name': '材料名称',
234
241
  'f_material_model': '材料型号',
235
242
  'f_material_norm': '材料规格',
@@ -67,6 +67,12 @@
67
67
  v-on:keyup.enter="$parent.$parent.search()"
68
68
  condition="c.f_supplier like '%{}%'">
69
69
  </div>
70
+ <div class="form-group col-sm-3">
71
+ <label class="font_normal_body">材料编码:</label>
72
+ <input type="text" style="width: 60%" class="input_search" placeholder='材料编码' v-model="model.f_material_coding"
73
+ v-on:keyup.enter="$parent.$parent.search()"
74
+ condition="m.f_material_coding like '%{}%'">
75
+ </div>
70
76
  </div>
71
77
  </div>
72
78
  </criteria>
@@ -74,6 +80,7 @@
74
80
  <template partial='head'>
75
81
  <tr>
76
82
  <th style="white-space: nowrap;">序号</th>
83
+ <th style="white-space: nowrap;">材料编码</th>
77
84
  <th style="white-space: nowrap;">材料名称</th>
78
85
  <th style="white-space: nowrap;">材料型号</th>
79
86
  <th style="white-space: nowrap;">材料规格</th>
@@ -92,6 +99,9 @@
92
99
  <td :class="row.f_stock > 0 ? (row.iswarning === 'true' ? 'warning' : '') : 'danger'" style="text-align: center;" @click="$parent.$parent.$parent.view(row)">
93
100
  <nobr><font>{{$index+1}}</font></nobr>
94
101
  </td>
102
+ <td :class="row.f_stock > 0 ? (row.iswarning === 'true' ? 'warning' : '') : 'danger'" style="text-align: center;" @click="$parent.$parent.$parent.view(row)">
103
+ <nobr><font>{{row.f_material_coding}}</font></nobr>
104
+ </td>
95
105
  <td :class="row.f_stock > 0 ? (row.iswarning === 'true' ? 'warning' : '') : 'danger'" style="text-align: center;" @click="$parent.$parent.$parent.view(row)">
96
106
  <nobr><font>{{row.f_material_name}}</font></nobr>
97
107
  </td>
@@ -172,6 +182,7 @@ export default {
172
182
  }),
173
183
  criteriaShow: false,
174
184
  getfield: {
185
+ 'f_material_coding': '材料编码',
175
186
  'f_material_name': '材料名称',
176
187
  'f_material_model': '材料型号',
177
188
  'f_material_norm': '材料规格',
@@ -69,6 +69,7 @@
69
69
  <template partial='head'>
70
70
  <tr>
71
71
  <th style="white-space: nowrap;">序号</th>
72
+ <th style="white-space: nowrap;">材料编码</th>
72
73
  <th style="white-space: nowrap;">材料名称</th>
73
74
  <th style="white-space: nowrap;">材料型号</th>
74
75
  <th style="white-space: nowrap;">材料规格</th>
@@ -87,6 +88,7 @@
87
88
  <template partial='body'>
88
89
  <tr>
89
90
  <td style="text-align: center;">{{$index+1}}</td>
91
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
90
92
  <td style="text-align: center;">{{row.f_material_name}}</td>
91
93
  <td style="text-align: center;">{{row.f_material_model}}</td>
92
94
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -130,6 +132,12 @@
130
132
  :valueSingle="true"></input-select>
131
133
  </div>
132
134
  </div>
135
+ <div class="col-sm-12 form-group">
136
+ <label class="control-label col-sm-2">材料编码</label>
137
+ <div class="col-sm-9">
138
+ <input class="form-control" type="text" :value="material.f_material_coding" readonly />
139
+ </div>
140
+ </div>
133
141
  <div class="col-sm-12 form-group">
134
142
  <label class="control-label col-sm-2">材料名称</label>
135
143
  <div class="col-sm-9">
@@ -323,7 +331,7 @@
323
331
  )
324
332
  res.data.forEach(item => {
325
333
  this.materialList.push({
326
- 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
334
+ 'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
327
335
  'value': item
328
336
  })
329
337
  })
@@ -28,22 +28,25 @@
28
28
  <div class="col-sm-4 form-group item" :class="[$v.f_warehouse.required ? 'has-error' : '']">
29
29
  <label class="control-label-justify control-label col-sm-6">发料仓库</label>
30
30
  <div class="col-sm-6">
31
- <input class="form-control input_view" style=""
32
- type="text"
33
- v-validate:f_warehouse = "['required']"
34
- v-model="model.f_warehouse"
35
- :value="model.f_warehouse"/>
31
+ <input-select
32
+ class="select select_list"
33
+ :value.sync="model.f_warehouse"
34
+ v-model="model.f_warehouse"
35
+ :options="issueWarehouse"
36
+ :valueSingle="true"
37
+ ></input-select>
36
38
  </div>
37
39
  </div>
38
40
  <div class="col-sm-4 form-group item" :class="[$v.f_picking_unit.required ? 'has-error' : '']">
39
41
  <label class="control-label-justify control-label col-sm-6">施工单位</label>
40
42
  <div class="col-sm-6">
41
- <input-select class="select select_list"
42
- :value.sync="model.outboundOrder"
43
- v-model="model.outboundOrder"
44
- :options="shigongdanwei"
43
+ <input class="form-control input_view" style=""
44
+ type="text"
45
+ v-validate:f_picking_unit = "['required']"
46
+ v-model="model.f_picking_unit"
47
+ :value="cea.f_construction_team"
45
48
  :valueSingle="true">
46
- </input-select>
49
+ </input>
47
50
  </div>
48
51
  </div>
49
52
  <div class="col-sm-4 form-group item">
@@ -53,8 +56,10 @@
53
56
  class="select select_list"
54
57
  :value.sync="cea"
55
58
  v-model="cea"
59
+ :timeout="500"
60
+ @select-search="select_search"
56
61
  :options="ceaList"
57
- :valueSingle="true"></input-select>
62
+ :valueSingle="true" ></input-select>
58
63
  <input class="form-control input_view" type="text"
59
64
  v-show="false"
60
65
  v-model="model.f_cea_number"
@@ -76,6 +81,7 @@
76
81
  <template partial='head'>
77
82
  <tr>
78
83
  <th style="white-space: nowrap;">序号</th>
84
+ <th style="white-space: nowrap;">材料编码</th>
79
85
  <th style="white-space: nowrap;">材料名称</th>
80
86
  <th style="white-space: nowrap;">材料型号</th>
81
87
  <th style="white-space: nowrap;">材料规格</th>
@@ -95,6 +101,7 @@
95
101
  <template partial='body'>
96
102
  <tr>
97
103
  <td style="text-align: center;">{{$index+1}}</td>
104
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
98
105
  <td style="text-align: center;">{{row.f_material_name}}</td>
99
106
  <td style="text-align: center;">{{row.f_material_model}}</td>
100
107
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -102,7 +109,7 @@
102
109
  <td style="text-align: center;">{{row.f_price}}</td>
103
110
  <td style="text-align: center;">{{row.f_noprice}}</td>
104
111
  <td style="text-align: center;">{{row.f_prepare_quantity}}</td>
105
- <td style="text-align: center;">{{row.f_price * row.f_prepare_quantity}}</td>
112
+ <td style="text-align: center;">{{parseFloat(row.f_noprice * row.f_prepare_quantity).toFixed(2)}}</td>
106
113
  <td style="text-align: center;">{{row.f_remarks}}</td>
107
114
  <td style="text-align: center;">
108
115
  <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.openUpdateMaterial($index,row)">修改</button>
@@ -139,6 +146,12 @@
139
146
  :valueSingle="true"></input-select>
140
147
  </div>
141
148
  </div>
149
+ <div class="col-sm-12 form-group" :class="[$mv.material.required ? 'has-error' : '']">
150
+ <label class="control-label col-sm-2">材料编码</label>
151
+ <div class="col-sm-9">
152
+ <input class="form-control" type="text" :value="material.f_material_coding" readonly />
153
+ </div>
154
+ </div>
142
155
  <div class="col-sm-12 form-group" :class="[$mv.material.required ? 'has-error' : '']">
143
156
  <label class="control-label col-sm-2">材料名称</label>
144
157
  <div class="col-sm-9">
@@ -225,6 +238,7 @@ export default {
225
238
  title: '材料出库单',
226
239
  data () {
227
240
  return {
241
+ issueWarehouse:[{label: '全部', value: ''}, ...this.$appdata.getParam('材料发料仓库')],
228
242
  cailiaotype: [{label: '全部', value: ''}, ...this.$appdata.getParam('材料项目类型')],
229
243
  shigongdanwei:[{label:'全部',value:''},...this.$appdata.getParam('施工单位')],
230
244
  model: {
@@ -242,6 +256,33 @@ export default {
242
256
  this.getCEAList()
243
257
  },
244
258
  methods: {
259
+ select_search(text){
260
+ debugger
261
+ console.log("----------------"+text)
262
+ debugger
263
+ if(text){
264
+ let pcdText=text=`and f_cea_number like '%${text}%'`
265
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data:{items:"*",tablename:"t_apply",condition:`f_cea_number is not null and f_sub_state != '完工' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
266
+ console.log('请求发送完成!!!!!'+JSON.stringify(res))
267
+ if(res.data.length>0){
268
+ res.data.forEach((item)=>{
269
+
270
+ this.ceaList.push({
271
+ 'label': item.f_cea_number,
272
+ 'value': {
273
+ id: item.id,
274
+ f_cea_number: item.f_cea_number,
275
+ f_entry_name: item.f_entry_name,
276
+ f_construction_team:item.f_construction_team
277
+ }
278
+ })
279
+ })
280
+ }
281
+ })
282
+ }else{
283
+ this.getCEAList()
284
+ }
285
+ },
245
286
  addOutboundOrder () {
246
287
  this.$dispatch('addOutboundOrder', this.model)
247
288
  },
@@ -321,7 +362,7 @@ export default {
321
362
 
322
363
  res.data.forEach(item => {
323
364
  this.materialList.push({
324
- 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
365
+ 'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
325
366
  'value': item
326
367
  })
327
368
  })
@@ -377,7 +418,8 @@ export default {
377
418
  'value': {
378
419
  id: item.id,
379
420
  f_cea_number: item.f_cea_number,
380
- f_entry_name: item.f_entry_name
421
+ f_entry_name: item.f_entry_name,
422
+ f_construction_team:item.f_construction_team
381
423
  }
382
424
  })
383
425
  })
@@ -49,6 +49,7 @@
49
49
  <template partial='head'>
50
50
  <tr>
51
51
  <th style="white-space: nowrap;">序号</th>
52
+ <th style="white-space: nowrap;">材料编码</th>
52
53
  <th style="white-space: nowrap;">材料名称</th>
53
54
  <th style="white-space: nowrap;">材料型号</th>
54
55
  <th style="white-space: nowrap;">材料规格</th>
@@ -67,6 +68,7 @@
67
68
  <template partial='body'>
68
69
  <tr>
69
70
  <td style="text-align: center;">{{$index+1}}</td>
71
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
70
72
  <td style="text-align: center;">{{row.f_material_name}}</td>
71
73
  <td style="text-align: center;">{{row.f_material_model}}</td>
72
74
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -110,6 +112,12 @@
110
112
  :valueSingle="true"></input-select>
111
113
  </div>
112
114
  </div>
115
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
116
+ <label class="control-label col-sm-2">材料编码</label>
117
+ <div class="col-sm-9">
118
+ <input class="form-control" type="text" readonly v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
119
+ </div>
120
+ </div>
113
121
  <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
114
122
  <label class="control-label col-sm-2">材料名称</label>
115
123
  <div class="col-sm-9">
@@ -308,7 +316,7 @@ export default {
308
316
 
309
317
  res.data.forEach(item => {
310
318
  this.purchaseRecordsMaterial.push({
311
- 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
319
+ 'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
312
320
  'value': item
313
321
  })
314
322
  })
@@ -93,6 +93,7 @@
93
93
  <template partial='head'>
94
94
  <tr>
95
95
  <th style="white-space: nowrap;">序号</th>
96
+ <th style="white-space: nowrap;">编码</th>
96
97
  <th style="white-space: nowrap;">名称</th>
97
98
  <th style="white-space: nowrap;">型号</th>
98
99
  <th style="white-space: nowrap;">规格</th>
@@ -113,6 +114,7 @@
113
114
  <template partial='body'>
114
115
  <tr>
115
116
  <td style="text-align: center;">{{$index+1}}</td>
117
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
116
118
  <td style="text-align: center;">{{row.f_material_name}}</td>
117
119
  <td style="text-align: center;">{{row.f_material_model}}</td>
118
120
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -158,6 +160,12 @@
158
160
  :valueSingle="true"></input-select>
159
161
  </div>
160
162
  </div>
163
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
164
+ <label class="control-label col-sm-2">材料编码</label>
165
+ <div class="col-sm-9">
166
+ <input class="form-control" type="text" readonly v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
167
+ </div>
168
+ </div>
161
169
  <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
162
170
  <label class="control-label col-sm-2">材料名称</label>
163
171
  <div class="col-sm-9">
@@ -363,7 +371,7 @@ export default {
363
371
 
364
372
  res.data.forEach(item => {
365
373
  this.contractMaterial.push({
366
- 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
374
+ 'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
367
375
  'value': item
368
376
  })
369
377
  })