apply-clients 3.2.50 → 3.2.53

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 (282) 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/Process/AppServiceControl.vue +620 -620
  6. package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +1 -1
  7. package/src/components/image/tubiao2.png +0 -0
  8. package/src/components/image//347/247/246/345/215/216.png +0 -0
  9. package/src/components/product/Apply/Supervisory/SupervisoryhCart.vue +1 -1
  10. package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +104 -7
  11. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +7 -3
  12. package/src/components/product/Ledger/Function/InstallInfoSelect.vue +1 -1
  13. package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +11 -4
  14. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +11 -0
  15. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +9 -1
  16. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +56 -14
  17. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +10 -2
  18. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +33 -2
  19. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +149 -2
  20. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +17 -5
  21. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +10 -8
  22. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +13 -6
  23. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +40 -9
  24. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +10 -60
  25. package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +4 -4
  26. package/src/components/product/Ledger/Process/ProcessBusiness.vue +8 -0
  27. package/src/components/product/Ledger/Process/ProcessSelect.vue +39 -14
  28. package/src/components/product/Ledger/Process/Service/ServiceControl.vue +747 -639
  29. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingAddingMaterial.vue +330 -0
  30. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +117 -25
  31. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialDepot.vue +113 -0
  32. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingMaterialList.vue +143 -0
  33. package/src/components/product/Ledger/Supervisory/BatchProcessing.vue +79 -0
  34. package/src/components/product/Ledger/Supervisory/BathProcessinglist.vue +205 -0
  35. package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +8 -0
  36. package/src/components/product/Ledger/Supervisory/Service/PrepareContract.vue +393 -0
  37. package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +2 -7
  38. package/src/components/product/Ledger/Supervisory/SupervisoryCart.vue +1 -1
  39. package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +79 -16
  40. package/src/components/product/ServiceView.vue +1 -3
  41. package/dist-android/index.html +0 -3
  42. package/dist-android/static/.gitkeep +0 -0
  43. package/dist-android/static/0.js +0 -2
  44. package/dist-android/static/0.js.map +0 -1
  45. package/dist-android/static/1.js +0 -2
  46. package/dist-android/static/1.js.map +0 -1
  47. package/dist-android/static/10.js +0 -2
  48. package/dist-android/static/10.js.map +0 -1
  49. package/dist-android/static/100.js +0 -2
  50. package/dist-android/static/100.js.map +0 -1
  51. package/dist-android/static/11.js +0 -2
  52. package/dist-android/static/11.js.map +0 -1
  53. package/dist-android/static/12.js +0 -2
  54. package/dist-android/static/12.js.map +0 -1
  55. package/dist-android/static/13.js +0 -2
  56. package/dist-android/static/13.js.map +0 -1
  57. package/dist-android/static/14.js +0 -2
  58. package/dist-android/static/14.js.map +0 -1
  59. package/dist-android/static/15.js +0 -2
  60. package/dist-android/static/15.js.map +0 -1
  61. package/dist-android/static/16.js +0 -2
  62. package/dist-android/static/16.js.map +0 -1
  63. package/dist-android/static/17.js +0 -2
  64. package/dist-android/static/17.js.map +0 -1
  65. package/dist-android/static/18.js +0 -2
  66. package/dist-android/static/18.js.map +0 -1
  67. package/dist-android/static/19.js +0 -2
  68. package/dist-android/static/19.js.map +0 -1
  69. package/dist-android/static/2.js +0 -2
  70. package/dist-android/static/2.js.map +0 -1
  71. package/dist-android/static/20.js +0 -2
  72. package/dist-android/static/20.js.map +0 -1
  73. package/dist-android/static/21.js +0 -2
  74. package/dist-android/static/21.js.map +0 -1
  75. package/dist-android/static/22.js +0 -2
  76. package/dist-android/static/22.js.map +0 -1
  77. package/dist-android/static/23.js +0 -2
  78. package/dist-android/static/23.js.map +0 -1
  79. package/dist-android/static/24.js +0 -2
  80. package/dist-android/static/24.js.map +0 -1
  81. package/dist-android/static/25.js +0 -2
  82. package/dist-android/static/25.js.map +0 -1
  83. package/dist-android/static/26.js +0 -2
  84. package/dist-android/static/26.js.map +0 -1
  85. package/dist-android/static/27.js +0 -2
  86. package/dist-android/static/27.js.map +0 -1
  87. package/dist-android/static/28.js +0 -2
  88. package/dist-android/static/28.js.map +0 -1
  89. package/dist-android/static/29.js +0 -2
  90. package/dist-android/static/29.js.map +0 -1
  91. package/dist-android/static/3.js +0 -2
  92. package/dist-android/static/3.js.map +0 -1
  93. package/dist-android/static/30.js +0 -2
  94. package/dist-android/static/30.js.map +0 -1
  95. package/dist-android/static/31.js +0 -2
  96. package/dist-android/static/31.js.map +0 -1
  97. package/dist-android/static/32.js +0 -2
  98. package/dist-android/static/32.js.map +0 -1
  99. package/dist-android/static/33.js +0 -2
  100. package/dist-android/static/33.js.map +0 -1
  101. package/dist-android/static/34.js +0 -2
  102. package/dist-android/static/34.js.map +0 -1
  103. package/dist-android/static/35.js +0 -2
  104. package/dist-android/static/35.js.map +0 -1
  105. package/dist-android/static/36.js +0 -2
  106. package/dist-android/static/36.js.map +0 -1
  107. package/dist-android/static/37.js +0 -2
  108. package/dist-android/static/37.js.map +0 -1
  109. package/dist-android/static/38.js +0 -2
  110. package/dist-android/static/38.js.map +0 -1
  111. package/dist-android/static/39.js +0 -2
  112. package/dist-android/static/39.js.map +0 -1
  113. package/dist-android/static/4.js +0 -2
  114. package/dist-android/static/4.js.map +0 -1
  115. package/dist-android/static/40.js +0 -2
  116. package/dist-android/static/40.js.map +0 -1
  117. package/dist-android/static/41.js +0 -2
  118. package/dist-android/static/41.js.map +0 -1
  119. package/dist-android/static/42.js +0 -2
  120. package/dist-android/static/42.js.map +0 -1
  121. package/dist-android/static/43.js +0 -2
  122. package/dist-android/static/43.js.map +0 -1
  123. package/dist-android/static/44.js +0 -2
  124. package/dist-android/static/44.js.map +0 -1
  125. package/dist-android/static/45.js +0 -2
  126. package/dist-android/static/45.js.map +0 -1
  127. package/dist-android/static/46.js +0 -2
  128. package/dist-android/static/46.js.map +0 -1
  129. package/dist-android/static/47.js +0 -2
  130. package/dist-android/static/47.js.map +0 -1
  131. package/dist-android/static/48.js +0 -2
  132. package/dist-android/static/48.js.map +0 -1
  133. package/dist-android/static/49.js +0 -2
  134. package/dist-android/static/49.js.map +0 -1
  135. package/dist-android/static/5.js +0 -2
  136. package/dist-android/static/5.js.map +0 -1
  137. package/dist-android/static/50.js +0 -2
  138. package/dist-android/static/50.js.map +0 -1
  139. package/dist-android/static/51.js +0 -2
  140. package/dist-android/static/51.js.map +0 -1
  141. package/dist-android/static/52.js +0 -2
  142. package/dist-android/static/52.js.map +0 -1
  143. package/dist-android/static/53.js +0 -2
  144. package/dist-android/static/53.js.map +0 -1
  145. package/dist-android/static/54.js +0 -2
  146. package/dist-android/static/54.js.map +0 -1
  147. package/dist-android/static/55.js +0 -2
  148. package/dist-android/static/55.js.map +0 -1
  149. package/dist-android/static/56.js +0 -2
  150. package/dist-android/static/56.js.map +0 -1
  151. package/dist-android/static/57.js +0 -2
  152. package/dist-android/static/57.js.map +0 -1
  153. package/dist-android/static/58.js +0 -2
  154. package/dist-android/static/58.js.map +0 -1
  155. package/dist-android/static/59.js +0 -2
  156. package/dist-android/static/59.js.map +0 -1
  157. package/dist-android/static/6.js +0 -2
  158. package/dist-android/static/6.js.map +0 -1
  159. package/dist-android/static/60.js +0 -2
  160. package/dist-android/static/60.js.map +0 -1
  161. package/dist-android/static/61.js +0 -2
  162. package/dist-android/static/61.js.map +0 -1
  163. package/dist-android/static/62.js +0 -2
  164. package/dist-android/static/62.js.map +0 -1
  165. package/dist-android/static/63.js +0 -2
  166. package/dist-android/static/63.js.map +0 -1
  167. package/dist-android/static/64.js +0 -2
  168. package/dist-android/static/64.js.map +0 -1
  169. package/dist-android/static/65.js +0 -2
  170. package/dist-android/static/65.js.map +0 -1
  171. package/dist-android/static/66.js +0 -2
  172. package/dist-android/static/66.js.map +0 -1
  173. package/dist-android/static/67.js +0 -2
  174. package/dist-android/static/67.js.map +0 -1
  175. package/dist-android/static/68.js +0 -2
  176. package/dist-android/static/68.js.map +0 -1
  177. package/dist-android/static/69.js +0 -2
  178. package/dist-android/static/69.js.map +0 -1
  179. package/dist-android/static/7.js +0 -6
  180. package/dist-android/static/7.js.map +0 -1
  181. package/dist-android/static/70.js +0 -2
  182. package/dist-android/static/70.js.map +0 -1
  183. package/dist-android/static/71.js +0 -2
  184. package/dist-android/static/71.js.map +0 -1
  185. package/dist-android/static/72.js +0 -2
  186. package/dist-android/static/72.js.map +0 -1
  187. package/dist-android/static/73.js +0 -2
  188. package/dist-android/static/73.js.map +0 -1
  189. package/dist-android/static/74.js +0 -2
  190. package/dist-android/static/74.js.map +0 -1
  191. package/dist-android/static/75.js +0 -2
  192. package/dist-android/static/75.js.map +0 -1
  193. package/dist-android/static/76.js +0 -2
  194. package/dist-android/static/76.js.map +0 -1
  195. package/dist-android/static/77.js +0 -2
  196. package/dist-android/static/77.js.map +0 -1
  197. package/dist-android/static/78.js +0 -2
  198. package/dist-android/static/78.js.map +0 -1
  199. package/dist-android/static/79.js +0 -2
  200. package/dist-android/static/79.js.map +0 -1
  201. package/dist-android/static/8.js +0 -2
  202. package/dist-android/static/8.js.map +0 -1
  203. package/dist-android/static/80.js +0 -2
  204. package/dist-android/static/80.js.map +0 -1
  205. package/dist-android/static/81.js +0 -2
  206. package/dist-android/static/81.js.map +0 -1
  207. package/dist-android/static/82.js +0 -2
  208. package/dist-android/static/82.js.map +0 -1
  209. package/dist-android/static/83.js +0 -2
  210. package/dist-android/static/83.js.map +0 -1
  211. package/dist-android/static/84.js +0 -2
  212. package/dist-android/static/84.js.map +0 -1
  213. package/dist-android/static/85.js +0 -2
  214. package/dist-android/static/85.js.map +0 -1
  215. package/dist-android/static/86.js +0 -2
  216. package/dist-android/static/86.js.map +0 -1
  217. package/dist-android/static/87.js +0 -2
  218. package/dist-android/static/87.js.map +0 -1
  219. package/dist-android/static/88.js +0 -2
  220. package/dist-android/static/88.js.map +0 -1
  221. package/dist-android/static/89.js +0 -2
  222. package/dist-android/static/89.js.map +0 -1
  223. package/dist-android/static/9.js +0 -3
  224. package/dist-android/static/9.js.map +0 -1
  225. package/dist-android/static/90.js +0 -2
  226. package/dist-android/static/90.js.map +0 -1
  227. package/dist-android/static/91.js +0 -2
  228. package/dist-android/static/91.js.map +0 -1
  229. package/dist-android/static/92.js +0 -2
  230. package/dist-android/static/92.js.map +0 -1
  231. package/dist-android/static/93.js +0 -2
  232. package/dist-android/static/93.js.map +0 -1
  233. package/dist-android/static/94.js +0 -2
  234. package/dist-android/static/94.js.map +0 -1
  235. package/dist-android/static/95.js +0 -2
  236. package/dist-android/static/95.js.map +0 -1
  237. package/dist-android/static/96.js +0 -2
  238. package/dist-android/static/96.js.map +0 -1
  239. package/dist-android/static/97.js +0 -2
  240. package/dist-android/static/97.js.map +0 -1
  241. package/dist-android/static/98.js +0 -2
  242. package/dist-android/static/98.js.map +0 -1
  243. package/dist-android/static/99.js +0 -2
  244. package/dist-android/static/99.js.map +0 -1
  245. package/dist-android/static/app.css +0 -2
  246. package/dist-android/static/app.css.map +0 -1
  247. package/dist-android/static/app.js +0 -80
  248. package/dist-android/static/app.js.map +0 -1
  249. package/dist-android/static/batchleft.png +0 -0
  250. package/dist-android/static/batchright.png +0 -0
  251. package/dist-android/static/bluemainbg.jpg +0 -0
  252. package/dist-android/static/config.json +0 -7
  253. package/dist-android/static/denglu.png +0 -0
  254. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  255. package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
  256. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  257. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  258. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  259. package/dist-android/static/huangtengbiaozhi.png +0 -0
  260. package/dist-android/static/jingyin.jpg +0 -0
  261. package/dist-android/static/login_bg.jpg +0 -0
  262. package/dist-android/static/login_title.png +0 -0
  263. package/dist-android/static/login_title1.png +0 -0
  264. package/dist-android/static/loginbg.jpg +0 -0
  265. package/dist-android/static/loginlogo.png +0 -0
  266. package/dist-android/static/main_logo.png +0 -0
  267. package/dist-android/static/mainbg.jpg +0 -0
  268. package/dist-android/static/menulogo.png +0 -0
  269. package/dist-android/static/newmainbg.jpg +0 -0
  270. package/dist-android/static/psicon.png +0 -0
  271. package/dist-android/static/singleleft.png +0 -0
  272. package/dist-android/static/singleright.png +0 -0
  273. package/dist-android/static/treeopen.png +0 -0
  274. package/dist-android/static/treeout.png +0 -0
  275. package/dist-android/static/treeset.png +0 -0
  276. package/dist-android/static/usericon.png +0 -0
  277. package/dist-android/static/workflow_apply.json +0 -766
  278. package/dist-android/static/xinxi.png +0 -0
  279. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  280. 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
  281. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  282. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
@@ -88,11 +88,32 @@
88
88
  </div>
89
89
  </div>
90
90
 
91
+ <div class="col-sm-4 form-group item" :class="[$v.f_price_without_tax.required ? 'has-error' : '']">
92
+ <label class="control-label-justify control-label col-sm-6">不含税价款</label>
93
+ <div class="col-sm-6">
94
+ <input class="form-control input_view" style=""
95
+ type="text" v-validate:f_price_without_tax = "['required']"
96
+ v-model="model.f_price_without_tax"
97
+ :value="model.f_price_without_tax"
98
+ />
99
+ </div>
100
+ </div>
101
+ <div class="col-sm-4 form-group item" :class="[$v.f_vat_tax.required ? 'has-error' : '']">
102
+ <label class="control-label-justify control-label col-sm-6">增值税税款</label>
103
+ <div class="col-sm-6">
104
+ <input class="form-control input_view" style=""
105
+ type="text" v-validate:f_vat_tax = "['required']"
106
+ v-model="model.f_vat_tax"
107
+ :value="model.f_vat_tax"
108
+ />
109
+ </div>
110
+ </div>
91
111
  <div class="col-sm-12">
92
112
  <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
93
113
  <template partial='head'>
94
114
  <tr>
95
115
  <th style="white-space: nowrap;">序号</th>
116
+ <th style="white-space: nowrap;">编码</th>
96
117
  <th style="white-space: nowrap;">名称</th>
97
118
  <th style="white-space: nowrap;">型号</th>
98
119
  <th style="white-space: nowrap;">规格</th>
@@ -113,6 +134,7 @@
113
134
  <template partial='body'>
114
135
  <tr>
115
136
  <td style="text-align: center;">{{$index+1}}</td>
137
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
116
138
  <td style="text-align: center;">{{row.f_material_name}}</td>
117
139
  <td style="text-align: center;">{{row.f_material_model}}</td>
118
140
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -158,6 +180,12 @@
158
180
  :valueSingle="true"></input-select>
159
181
  </div>
160
182
  </div>
183
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
184
+ <label class="control-label col-sm-2">材料编码</label>
185
+ <div class="col-sm-9">
186
+ <input class="form-control" type="text" readonly v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
187
+ </div>
188
+ </div>
161
189
  <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
162
190
  <label class="control-label col-sm-2">材料名称</label>
163
191
  <div class="col-sm-9">
@@ -271,7 +299,10 @@ export default {
271
299
  {resolveMsg: null, rejectMsg: '订单编号查询失败!!!'}
272
300
  )
273
301
 
274
- if (res.data.length > 0) {
302
+ /*console.dir(res)*/
303
+
304
+ if (res.data.length > 0 && res.data[0].f_status != '作废') {
305
+ console.log('订单状态:'+res.data[0].f_status)
275
306
  this.$showAlert('订单编号已存在!!!', 'warning', 3000)
276
307
  this.model.f_order_number = null
277
308
  return
@@ -363,7 +394,7 @@ export default {
363
394
 
364
395
  res.data.forEach(item => {
365
396
  this.contractMaterial.push({
366
- 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
397
+ 'label': `${item.f_material_coding}--${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
367
398
  'value': item
368
399
  })
369
400
  })
@@ -12,6 +12,8 @@
12
12
  :value.sync="cea"
13
13
  v-model="cea"
14
14
  :options="ceaList"
15
+ :timeout="500"
16
+ @select-search="select_search"
15
17
  :valueSingle="true"></input-select>
16
18
  </div>
17
19
  </div>
@@ -50,6 +52,7 @@
50
52
  <template partial='head'>
51
53
  <tr>
52
54
  <th style="white-space: nowrap;">序号</th>
55
+ <th style="white-space: nowrap;">材料编码</th>
53
56
  <th style="white-space: nowrap;">材料名称</th>
54
57
  <th style="white-space: nowrap;">材料型号</th>
55
58
  <th style="white-space: nowrap;">材料规格</th>
@@ -62,12 +65,14 @@
62
65
  <button @click="$parent.$parent.showMaterial = !$parent.$parent.showMaterial" type="button" class="btn btn-info">
63
66
  <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
64
67
  </button>
68
+ <button @click="$parent.$parent.showFile = !$parent.$parent.showFile" type="button" class="btn btn-info">批量导入</button>
65
69
  </th>
66
70
  </tr>
67
71
  </template>
68
72
  <template partial='body'>
69
73
  <tr>
70
74
  <td style="text-align: center;">{{$index+1}}</td>
75
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
71
76
  <td style="text-align: center;">{{row.f_material_name}}</td>
72
77
  <td style="text-align: center;">{{row.f_material_model}}</td>
73
78
  <td style="text-align: center;">{{row.f_material_norm}}</td>
@@ -98,6 +103,12 @@
98
103
  <span class="modal-title"><font size="3">添加材料</font></span>
99
104
  </header>
100
105
  <article slot="modal-body" class="form-horizontal modal-body clearfix">
106
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_coding.required ? 'has-error' : '']">
107
+ <label class="control-label col-sm-2">材料编码</label>
108
+ <div class="col-sm-9">
109
+ <input class="form-control" type="text" v-validate:f_material_coding = "['required']" v-model="material.f_material_coding" :value="material.f_material_coding"/>
110
+ </div>
111
+ </div>
101
112
  <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
102
113
  <label class="control-label col-sm-2">材料名称</label>
103
114
  <div class="col-sm-9">
@@ -161,6 +172,18 @@
161
172
  </modal>
162
173
  </validator>
163
174
 
175
+ <modal :show.sync="showFile" v-ref:modal backdrop="true" title="选择文件">
176
+ <header slot="modal-header" class="modal-header">
177
+ <button type="button" class="close" @click="closeFile"><span>&times;</span></button>
178
+ <h4 class="modal-title">选择文件</h4>
179
+ </header>
180
+ <article slot="modal-body" class="modal-body">
181
+ <div class="form-group">
182
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
183
+ </div>
184
+ </article>
185
+ <footer slot="modal-footer" class="modal-footer"></footer>
186
+ </modal>
164
187
  </div>
165
188
  </template>
166
189
 
@@ -178,13 +201,41 @@ export default {
178
201
  ceaList: [],
179
202
  cea: {},
180
203
  showMaterial: false,
181
- index: null
204
+ index: null,
205
+ showFile: false
182
206
  }
183
207
  },
184
208
  ready () {
185
209
  this.getCEAList()
186
210
  },
187
211
  methods: {
212
+ select_search(text){
213
+ debugger
214
+ console.log("----------------"+text)
215
+ debugger
216
+ if(text){
217
+ let pcdText=text=`and f_cea_number like '%${text}%'`
218
+ 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)=>{
219
+ console.log('请求发送完成!!!!!'+JSON.stringify(res))
220
+ if(res.data.length>0){
221
+ res.data.forEach((item)=>{
222
+
223
+ this.ceaList.push({
224
+ 'label': item.f_cea_number,
225
+ 'value': {
226
+ id: item.id,
227
+ f_cea_number: item.f_cea_number,
228
+ f_entry_name: item.f_entry_name,
229
+ f_construction_team:item.f_construction_team
230
+ }
231
+ })
232
+ })
233
+ }
234
+ })
235
+ }else{
236
+ this.getCEAList()
237
+ }
238
+ },
188
239
  addReturnMaterialWarehousing () {
189
240
  this.$dispatch('addReturnMaterialWarehousing', this.model)
190
241
  },
@@ -245,9 +296,105 @@ export default {
245
296
  })
246
297
  })
247
298
 
248
- }
299
+ },
300
+ closeFile () {
301
+ this.showFile = false
302
+ // 将选的文件清空
303
+ this.$refs.file.$el.querySelector('input').value = ''
304
+ },
305
+ saveOrUpdate (i) {
306
+ let flag = this.model.data.some(item => {
307
+ if (
308
+ item.f_material_coding === this.material.f_material_coding &&
309
+ item.f_material_name === this.material.f_material_name &&
310
+ item.f_material_norm === this.material.f_material_norm &&
311
+ item.f_material_model === this.material.f_material_model &&
312
+ item.f_price === this.material.f_price &&
313
+ item.f_noprice === this.material.f_noprice &&
314
+ item.f_unit === this.material.f_unit &&
315
+ item.f_quantity === this.material.f_quantity &&
316
+ item.f_remarks === this.material.f_remarks
317
+ ) {
318
+ return true
319
+ }
320
+ return false
321
+ })
322
+ if (flag) {
323
+ if (isEmpty(i)) {
324
+ this.$showAlert('该物料已经存在!!!', 'warning', 3000)
325
+ } else {
326
+ throw `第${i}行物料已经存在!!!`
327
+ }
328
+ } else {
329
+ if (isEmpty(this.index)) {
330
+ this.model.data.push(this.material)
331
+ } else {
332
+ this.model.data.splice(this.index, 1, this.material)
333
+ }
334
+ }
335
+ },
249
336
  },
250
337
  events: {
338
+ async 'onFileUpload'(file, result) {
339
+ let data = {
340
+ filepath: result.f_downloadpath
341
+ }
342
+ let res = await this.$resetpost(`rs/logic/importRefuelingWarehousingContent`, {data:data}, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0)
343
+ let i = 1
344
+ for (const item of res.data) {
345
+ if (!item.material.f_material_name) {
346
+ this.$showAlert(`第${i}行数据材料名称不存在!!!`, 'warning', 3000)
347
+ this.closeFile()
348
+ return
349
+ }
350
+ if (!item.material.f_material_model) {
351
+ this.$showAlert(`第${i}行数据材料型号不存在!!!`, 'warning', 3000)
352
+ this.closeFile()
353
+ return
354
+ }
355
+ if (!item.material.f_material_norm) {
356
+ this.$showAlert(`第${i}行数据材料规格不存在!!!`, 'warning', 3000)
357
+ this.closeFile()
358
+ return
359
+ }
360
+ if (!item.material.f_price) {
361
+ this.$showAlert(`第${i}行数据含税单价不存在!!!`, 'warning', 3000)
362
+ this.closeFile()
363
+ return
364
+ }
365
+ if (!item.material.f_noprice) {
366
+ this.$showAlert(`第${i}行数据不含税单价不存在!!!`, 'warning', 3000)
367
+ this.closeFile()
368
+ return
369
+ }
370
+ if (!item.material.f_unit) {
371
+ this.$showAlert(`第${i}行数据单位不存在!!!`, 'warning', 3000)
372
+ this.closeFile()
373
+ return
374
+ }
375
+ if (!item.material.f_quantity) {
376
+ this.$showAlert(`第${i}行数据数量不存在!!!`, 'warning', 3000)
377
+ this.closeFile()
378
+ return
379
+ }
380
+ if (!item.material.f_remarks) {
381
+ this.$showAlert(`第${i}行数据备注不存在!!!`, 'warning', 3000)
382
+ this.closeFile()
383
+ return
384
+ }
385
+ this.material = item.material
386
+ try {
387
+ this.saveOrUpdate(i)
388
+ } catch (e) {
389
+ this.$showAlert(e, 'danger', 3000)
390
+ this.closeFile()
391
+ return
392
+ }
393
+ i++
394
+ }
395
+ this.$showAlert(`成功导入${i-1}条数据`, 'success', 3000)
396
+ this.closeFile()
397
+ }
251
398
  }
252
399
  }
253
400
  </script>
@@ -120,10 +120,11 @@
120
120
  </div>
121
121
  </div>
122
122
  <div class="col-sm-12">
123
- <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
123
+ <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
124
124
  <template partial='head'>
125
125
  <tr>
126
126
  <th style="white-space: nowrap;">序号</th>
127
+ <th style="white-space: nowrap;">材料编码</th>
127
128
  <th style="white-space: nowrap;">材料名称</th>
128
129
  <th style="white-space: nowrap;">材料型号</th>
129
130
  <th style="white-space: nowrap;">材料规格</th>
@@ -140,13 +141,14 @@
140
141
  <template partial='body'>
141
142
  <tr>
142
143
  <td style="text-align: center;">{{$index+1}}</td>
144
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
143
145
  <td style="text-align: center;">{{row.f_material_name}}</td>
144
146
  <td style="text-align: center;">{{row.f_material_model}}</td>
145
147
  <td style="text-align: center;">{{row.f_material_norm}}</td>
146
148
  <td style="text-align: center;">{{row.f_unit}}</td>
147
149
  <td style="text-align: center;">{{row.f_price}}</td>
148
150
  <td style="text-align: center;">{{row.f_noprice}}</td>
149
- <td style="text-align: center;">{{row.f_money}}</td>
151
+ <td style="text-align: center;">{{parseFloat(row.f_noprice * row.f_prepare_quantity).toFixed(2)}}</td>
150
152
  <td style="text-align: center;">{{row.f_prepare_remarks}}</td>
151
153
  <td style="text-align: center;">{{row.f_prepare_quantity}}</td>
152
154
  <td style="text-align: center;">{{row.f_actual_quantity}}</td>
@@ -170,7 +172,7 @@
170
172
  <h4 class="modal-title">打印预览</h4>
171
173
  </header>
172
174
  <article slot="modal-body" class="modal-body clearfix">
173
- <print-material-bill :outbound-order="outboundOrder" :material-prepare="model.data" v-ref:print></print-material-bill>
175
+ <print-material-bill :outbound-order="outboundOrder" :material-prepare="model.selectPrint" v-ref:print></print-material-bill>
174
176
  </article>
175
177
  <footer slot="modal-footer" class="modal-footer">
176
178
  <button type="button" class="btn btn-primary" @click="print()">打印</button>
@@ -180,6 +182,7 @@
180
182
  </template>
181
183
 
182
184
  <script>
185
+ import {PagedList} from 'vue-client'
183
186
  import {HttpResetClass} from 'vue-client'
184
187
  import {isEmpty} from '../../../../Util'
185
188
  export default {
@@ -188,7 +191,9 @@ export default {
188
191
  data () {
189
192
  return {
190
193
  model: {
191
- data: []
194
+ rows: [],
195
+ selectPrint:[],
196
+ pageIndex:1
192
197
  },
193
198
  showPrint: false,
194
199
  ceaList: []
@@ -211,6 +216,13 @@ export default {
211
216
  this.showPrint = false
212
217
  },
213
218
  showPrintModal () {
219
+ debugger
220
+ this.model.selectPrint = this.$refs.grid.getRowData()
221
+ this.model.selectPrint.lumpsum= 0
222
+ for (var i=0;i<this.model.selectPrint.length;i++){
223
+ this.model.selectPrint.lumpsum =this.model.selectPrint.lumpsum + this.model.selectPrint[i].f_noprice * this.model.selectPrint[i].f_prepare_quantity
224
+ }
225
+ this.model.selectPrint.lumpsum=this.model.selectPrint.lumpsum.toFixed(2)
214
226
  this.showPrint = true
215
227
  },
216
228
  async getCEAList () {
@@ -248,7 +260,7 @@ export default {
248
260
  {resolveMsg: null, rejectMsg: '出库单查询失败!!!'}
249
261
  )
250
262
 
251
- this.model.data = res.data
263
+ this.model.rows = res.data
252
264
  }
253
265
  },
254
266
  computed: {
@@ -2,7 +2,6 @@
2
2
  <style id="style">
3
3
  td{
4
4
  height: 30px;
5
- width: 60px;
6
5
  padding: 0px;
7
6
  text-align: center;
8
7
  }
@@ -30,14 +29,14 @@
30
29
  <h4 style="margin: 0 0 5px 0">西安市天然气工程有限公司{{outboundOrder.f_entry_type}}项目材料领用单</h4>
31
30
  <p class="top">
32
31
  <span>编号:{{outboundOrder.f_ticket_number}}</span>
33
- <span>此票有限期为三天过期作废</span>
32
+ <span>此票有限期为五天过期作废</span>
34
33
  <span>{{new Date(outboundOrder.f_billing_time).Format('yyyy年MM月dd日')}}</span>
35
34
  </p>
36
35
  <table border="1">
37
36
  <tr>
38
37
  <td>施工单位:</td>
39
38
  <td colspan="4">{{ outboundOrder.f_picking_unit }}</td>
40
- <td colspan="2">CEA:{{ outboundOrder.f_cea_number }}</td>
39
+ <td colspan="3">CEA:{{ outboundOrder.f_cea_number }}</td>
41
40
  <td :rowspan="materialPrepare.length + 13" style="width: 10px">
42
41
  <p>白<br/>联<br/>库<br/>房</p>
43
42
 
@@ -52,9 +51,10 @@
52
51
  <td>工地名称:</td>
53
52
  <td colspan="4">{{ outboundOrder.f_picking_site }}</td>
54
53
  <td>发料仓库:</td>
55
- <td>{{ outboundOrder.f_warehouse }}</td>
54
+ <td colspan="2">{{ outboundOrder.f_warehouse }}</td>
56
55
  </tr>
57
56
  <tr>
57
+ <td>材料编码</td>
58
58
  <td>材料名称</td>
59
59
  <td>材料型号</td>
60
60
  <td>单位</td>
@@ -64,13 +64,14 @@
64
64
  <td>备注</td>
65
65
  </tr>
66
66
  <tr v-for="item in materialPrepare">
67
+ <td>{{ item.f_material_coding }}</td>
67
68
  <td>{{ item.f_material_name }}</td>
68
69
  <td>{{ item.f_material_model }}</td>
69
70
  <td>{{ item.f_unit }}</td>
70
71
  <td>{{ item.f_prepare_quantity }}</td>
71
72
  <td>{{ item.f_noprice }}</td>
72
- <td>{{ item.f_money }}</td>
73
- <td>{{ item.f_remarks }}</td>
73
+ <td>{{ parseFloat(item.f_noprice * item.f_prepare_quantity).toFixed(2) }}</td>
74
+ <td>{{ item.f_prepare_remarks}}</td>
74
75
  </tr>
75
76
  <tr v-for="item in supplement">
76
77
  <td></td>
@@ -80,14 +81,15 @@
80
81
  <td></td>
81
82
  <td></td>
82
83
  <td></td>
84
+ <td></td>
83
85
  </tr>
84
86
  <tr>
85
87
  <td>合计:</td>
86
- <td colspan="6">¥{{ outboundOrder.f_money }}</td>
88
+ <td colspan="7">¥{{ materialPrepare.lumpsum }}</td>
87
89
  </tr>
88
90
  </table>
89
91
  <p class="bottom">
90
- <span>材料员:</span>
92
+ <span>主管:</span>
91
93
  <span>制单:{{ outboundOrder.f_operator }}</span>
92
94
  <span>发料:</span>
93
95
  <span>领料:</span>
@@ -24,7 +24,7 @@
24
24
  </style>
25
25
  <div id="print">
26
26
  <img src="../../../../image/tubiao.png"style="width:150px; height:30px">
27
- <h4 style="margin: 30px 0 5px 0">西安天然气工程有限责任公司材料采购订单</h4>
27
+ <h4 style="margin: 30px 0 5px 0">西安市天然气工程有限责任公司材料采购订单</h4>
28
28
  <p class="space-between">
29
29
  <span>部门:设备材料部</span>
30
30
  <span>申请人:{{ purchaseRecords.f_applicant }}</span>
@@ -37,18 +37,20 @@
37
37
  <table border="1">
38
38
  <tr>
39
39
  <td>序号</td>
40
+ <td>编码</td>
40
41
  <td>名称</td>
41
42
  <td>型号</td>
42
43
  <td>规格</td>
43
44
  <td>单位</td>
44
45
  <td>数量</td>
45
- <td>不含税单价</td>
46
+ <td>含税单价</td>
46
47
  <td>金额</td>
47
48
  <td>库存</td>
48
49
  <td>备注</td>
49
50
  </tr>
50
51
  <tr v-for="item in material">
51
52
  <td>{{ $index+1 }}</td>
53
+ <td>{{ item.f_material_coding }}</td>
52
54
  <td>{{ item.f_material_name }}</td>
53
55
  <td>{{ item.f_material_model }}</td>
54
56
  <td>{{ item.f_material_norm }}</td>
@@ -56,7 +58,7 @@
56
58
  <td>{{ item.f_forecast_quantity }}</td>
57
59
  <td>{{ item.f_price }}</td>
58
60
  <td>{{ item.f_forecast_money }}</td>
59
- <td>{{ item.f_stock }}</td>
61
+ <td>{{ item.totalstock }}</td>
60
62
  <td>{{ item.f_remarks }}</td>
61
63
  </tr>
62
64
  <tr v-for="item in supplement">
@@ -70,16 +72,21 @@
70
72
  <td></td>
71
73
  <td></td>
72
74
  <td></td>
75
+ <td></td>
76
+ </tr>
77
+ <tr>
78
+ <td colspan="11" style="text-align: left;padding-left: 10px">总金额(大写):{{ smalltoBIG(material.lumpsum) }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;总金额(小写): {{material.lumpsum}}元</td>
73
79
  </tr>
74
80
  <tr>
75
- <td colspan="10" style="text-align: left;padding-left: 10px">总金额(大写):{{ smalltoBIG(purchaseRecords.f_lump_sum) }}</td>
81
+ <td colspan="11" style="text-align: right;padding-left: 10px">不含税价款:{{ purchaseRecords.f_price_without_tax }}元 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;增值税税款: {{purchaseRecords.f_vat_tax}}元</td>
76
82
  </tr>
77
83
  </table>
78
- <p class="space-between" style="padding: 10px 250px 10px 40px">
84
+ <p class="space-between">
79
85
  <span>需求日期:{{ purchaseRecords.f_demand_date }}</span>
80
86
  <span>合同状况:{{ purchaseRecords.f_contract_status }}</span>
87
+ <span>合同时间:{{ purchaseRecords.f_contract_time+"——"+purchaseRecords.f_contract_expiration_date }}</span>
81
88
  </p>
82
- <p class="space-between" style="padding: 10px 250px 10px 40px">
89
+ <p class="space-between" style="padding: 10px 160px 10px 40px">
83
90
  <span>部门经理:</span>
84
91
  <span>分管副总:</span>
85
92
  </p>
@@ -83,6 +83,24 @@
83
83
  :value="purchaseRecords.f_actual_money"/>
84
84
  </div>
85
85
  </div>
86
+ <div class="col-sm-4 form-group item">
87
+ <label class="control-label-justify control-label col-sm-6">不含税价款</label>
88
+ <div class="col-sm-6">
89
+ <input class="form-control input_view" style=""
90
+ type="text" readonly
91
+ v-model="purchaseRecords.f_price_without_tax"
92
+ :value="purchaseRecords.f_price_without_tax"/>
93
+ </div>
94
+ </div>
95
+ <div class="col-sm-4 form-group item">
96
+ <label class="control-label-justify control-label col-sm-6">增值税税款</label>
97
+ <div class="col-sm-6">
98
+ <input class="form-control input_view" style=""
99
+ type="text" readonly
100
+ v-model="purchaseRecords.f_vat_tax"
101
+ :value="purchaseRecords.f_vat_tax"/>
102
+ </div>
103
+ </div>
86
104
  <div class="col-sm-4 form-group item">
87
105
  <label class="control-label-justify control-label col-sm-6">订单状态</label>
88
106
  <div class="col-sm-6">
@@ -94,11 +112,12 @@
94
112
  </div>
95
113
 
96
114
  <div class="col-sm-12">
97
- <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
115
+ <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
98
116
  <template partial='head'>
99
117
  <tr>
100
118
  <th style="white-space: nowrap;">序号</th>
101
119
  <th style="white-space: nowrap;">名称</th>
120
+ <th style="white-space: nowrap;">编码</th>
102
121
  <th style="white-space: nowrap;">型号</th>
103
122
  <th style="white-space: nowrap;">规格</th>
104
123
  <th style="white-space: nowrap;">单位</th>
@@ -117,6 +136,7 @@
117
136
  <tr>
118
137
  <td style="text-align: center;">{{$index+1}}</td>
119
138
  <td style="text-align: center;">{{row.f_material_name}}</td>
139
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
120
140
  <td style="text-align: center;">{{row.f_material_model}}</td>
121
141
  <td style="text-align: center;">{{row.f_material_norm}}</td>
122
142
  <td style="text-align: center;">{{row.f_unit}}</td>
@@ -127,7 +147,7 @@
127
147
  <td style="text-align: center;">{{row.f_quantity}}</td>
128
148
  <td style="text-align: center;">{{row.f_forecast_quantity-row.f_quantity}}</td>
129
149
  <td style="text-align: center;">{{row.f_actual_money}}</td>
130
- <td style="text-align: center;">{{row.f_stock}}</td>
150
+ <td style="text-align: center;">{{row.totalstock}}</td>
131
151
  <td style="text-align: center;">{{row.f_remarks}}</td>
132
152
  </tr>
133
153
  </template>
@@ -135,7 +155,7 @@
135
155
  </div>
136
156
 
137
157
  <div class="col-sm-12 form-group" style="text-align: center">
138
- <button class="btn btn-primary" @click.prevent="showPrint = !showPrint">打印预览</button>
158
+ <button class="btn btn-primary" @click.prevent="showPrintModal()">打印预览</button>
139
159
  </div>
140
160
  </div>
141
161
  </form>
@@ -146,7 +166,7 @@
146
166
  <h4 class="modal-title">打印预览</h4>
147
167
  </header>
148
168
  <article slot="modal-body" class="modal-body clearfix">
149
- <print-purchase-order :purchase-records="purchaseRecords" :material="model.data" v-ref:print></print-purchase-order>
169
+ <print-purchase-order :purchase-records="purchaseRecords" :material="model.selectPrint" v-ref:print></print-purchase-order>
150
170
  </article>
151
171
  <footer slot="modal-footer" class="modal-footer">
152
172
  <button type="button" class="btn btn-primary" @click="print()">打印</button>
@@ -165,7 +185,9 @@ export default {
165
185
  data () {
166
186
  return {
167
187
  model: {
168
- data: null
188
+ rows: null,
189
+ selectPrint:[],
190
+ pageIndex:1
169
191
  },
170
192
  showPrint: false
171
193
  }
@@ -174,22 +196,31 @@ export default {
174
196
  this.getPurchaseRecordsMaterial()
175
197
  },
176
198
  methods: {
199
+ async showPrintModal(){
200
+ this.model.selectPrint = this.$refs.grid.getRowData()
201
+ this.model.selectPrint.lumpsum= 0
202
+ this.model.selectPrint.nolumpsum= 0
203
+ this.model.selectPrint.cenglumpsum =0
204
+ for (var i=0;i<this.model.selectPrint.length;i++){
205
+ this.model.selectPrint.lumpsum =this.model.selectPrint.lumpsum + this.model.selectPrint[i].f_forecast_money
206
+ }
207
+ this.model.selectPrint.lumpsum=this.model.selectPrint.lumpsum.toFixed(2)
208
+ this.showPrint = true
209
+ },
177
210
  print () {
178
211
  this.$refs.print.$refs.print.PrintTable()
179
212
  },
180
213
  async getPurchaseRecordsMaterial () {
181
214
  let data = {
182
- tablename: 't_purchase_order_material',
183
215
  condition: `f_purchase_order_id = ${this.purchaseRecords.id}`
184
216
  }
185
-
186
217
  let res = await this.$resetpost(
187
- `rs/sql/singleTable`,
218
+ `rs/sql/purchaseOrder`,
188
219
  {data: data},
189
220
  {resolveMsg: null, rejectMsg: '采购物料查询失败!!!'}
190
221
  )
191
222
 
192
- this.model.data = res.data
223
+ this.model.rows = res.data
193
224
  }
194
225
  },
195
226
  computed: {