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
@@ -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,18 @@
70
72
  <td></td>
71
73
  <td></td>
72
74
  <td></td>
75
+ <td></td>
73
76
  </tr>
74
77
  <tr>
75
- <td colspan="10" style="text-align: left;padding-left: 10px">总金额(大写):{{ smalltoBIG(purchaseRecords.f_lump_sum) }}</td>
78
+ <td colspan="10" 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>
76
79
  </tr>
77
80
  </table>
78
- <p class="space-between" style="padding: 10px 250px 10px 40px">
81
+ <p class="space-between">
79
82
  <span>需求日期:{{ purchaseRecords.f_demand_date }}</span>
80
83
  <span>合同状况:{{ purchaseRecords.f_contract_status }}</span>
84
+ <span>合同时间:{{ purchaseRecords.f_contract_time+"——"+purchaseRecords.f_contract_expiration_date }}</span>
81
85
  </p>
82
- <p class="space-between" style="padding: 10px 250px 10px 40px">
86
+ <p class="space-between" style="padding: 10px 160px 10px 40px">
83
87
  <span>部门经理:</span>
84
88
  <span>分管副总:</span>
85
89
  </p>
@@ -94,11 +94,12 @@
94
94
  </div>
95
95
 
96
96
  <div class="col-sm-12">
97
- <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
97
+ <data-grid :model="model" optional partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
98
98
  <template partial='head'>
99
99
  <tr>
100
100
  <th style="white-space: nowrap;">序号</th>
101
101
  <th style="white-space: nowrap;">名称</th>
102
+ <th style="white-space: nowrap;">编码</th>
102
103
  <th style="white-space: nowrap;">型号</th>
103
104
  <th style="white-space: nowrap;">规格</th>
104
105
  <th style="white-space: nowrap;">单位</th>
@@ -117,6 +118,7 @@
117
118
  <tr>
118
119
  <td style="text-align: center;">{{$index+1}}</td>
119
120
  <td style="text-align: center;">{{row.f_material_name}}</td>
121
+ <td style="text-align: center;">{{row.f_material_coding}}</td>
120
122
  <td style="text-align: center;">{{row.f_material_model}}</td>
121
123
  <td style="text-align: center;">{{row.f_material_norm}}</td>
122
124
  <td style="text-align: center;">{{row.f_unit}}</td>
@@ -127,7 +129,7 @@
127
129
  <td style="text-align: center;">{{row.f_quantity}}</td>
128
130
  <td style="text-align: center;">{{row.f_forecast_quantity-row.f_quantity}}</td>
129
131
  <td style="text-align: center;">{{row.f_actual_money}}</td>
130
- <td style="text-align: center;">{{row.f_stock}}</td>
132
+ <td style="text-align: center;">{{row.totalstock}}</td>
131
133
  <td style="text-align: center;">{{row.f_remarks}}</td>
132
134
  </tr>
133
135
  </template>
@@ -135,7 +137,7 @@
135
137
  </div>
136
138
 
137
139
  <div class="col-sm-12 form-group" style="text-align: center">
138
- <button class="btn btn-primary" @click.prevent="showPrint = !showPrint">打印预览</button>
140
+ <button class="btn btn-primary" @click.prevent="showPrintModal()">打印预览</button>
139
141
  </div>
140
142
  </div>
141
143
  </form>
@@ -146,7 +148,7 @@
146
148
  <h4 class="modal-title">打印预览</h4>
147
149
  </header>
148
150
  <article slot="modal-body" class="modal-body clearfix">
149
- <print-purchase-order :purchase-records="purchaseRecords" :material="model.data" v-ref:print></print-purchase-order>
151
+ <print-purchase-order :purchase-records="purchaseRecords" :material="model.selectPrint" v-ref:print></print-purchase-order>
150
152
  </article>
151
153
  <footer slot="modal-footer" class="modal-footer">
152
154
  <button type="button" class="btn btn-primary" @click="print()">打印</button>
@@ -165,7 +167,9 @@ export default {
165
167
  data () {
166
168
  return {
167
169
  model: {
168
- data: null
170
+ rows: null,
171
+ selectPrint:[],
172
+ pageIndex:1
169
173
  },
170
174
  showPrint: false
171
175
  }
@@ -174,22 +178,29 @@ export default {
174
178
  this.getPurchaseRecordsMaterial()
175
179
  },
176
180
  methods: {
181
+ async showPrintModal(){
182
+ this.model.selectPrint = this.$refs.grid.getRowData()
183
+ this.model.selectPrint.lumpsum= 0
184
+ for (var i=0;i<this.model.selectPrint.length;i++){
185
+ this.model.selectPrint.lumpsum =this.model.selectPrint.lumpsum + this.model.selectPrint[i].f_actual_money
186
+ }
187
+ this.model.selectPrint.lumpsum=this.model.selectPrint.lumpsum.toFixed(2)
188
+ this.showPrint = true
189
+ },
177
190
  print () {
178
191
  this.$refs.print.$refs.print.PrintTable()
179
192
  },
180
193
  async getPurchaseRecordsMaterial () {
181
194
  let data = {
182
- tablename: 't_purchase_order_material',
183
195
  condition: `f_purchase_order_id = ${this.purchaseRecords.id}`
184
196
  }
185
-
186
197
  let res = await this.$resetpost(
187
- `rs/sql/singleTable`,
198
+ `rs/sql/purchaseOrder`,
188
199
  {data: data},
189
200
  {resolveMsg: null, rejectMsg: '采购物料查询失败!!!'}
190
201
  )
191
202
 
192
- this.model.data = res.data
203
+ this.model.rows = res.data
193
204
  }
194
205
  },
195
206
  computed: {
@@ -5,25 +5,13 @@
5
5
  <div class="row">
6
6
  <div class="form-group col-sm-3">
7
7
  <label class="font_normal_body">编&emsp;&emsp;号:</label>
8
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_ticket_number"
9
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_ticket_number like '%{}%'" placeholder='编号'>
8
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_order_number"
9
+ v-on:keyup.enter="$parent.$parent.search()" condition="po.f_order_number like '%{}%'" placeholder='编号'>
10
10
  </div>
11
11
  <div class="form-group col-sm-3">
12
- <label class="font_normal_body">C&ensp;E&ensp;A号:</label>
13
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_cea_number"
14
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_cea_number like '%{}%'" placeholder='CEA号'>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">单据类型:</label>
18
- <v-select
19
- v-model="model.f_type"
20
- placeholder='请选择'
21
- condition="o.f_type like '%{}%'"
22
- :value.sync="model.f_type"
23
- :options='$parent.$parent.orderList'
24
- class="select select_list"
25
- :value-single="true"
26
- close-on-select ></v-select>
12
+ <label class="font_normal_body">合同编号:</label>
13
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_contract_number"
14
+ v-on:keyup.enter="$parent.$parent.search()" condition="c.f_contract_number like '%{}%'" placeholder='合同编号'>
27
15
  </div>
28
16
  <div class="form-group col-sm-3 button-range">
29
17
  <export-excel :data="$parent.$parent.getCondition"
@@ -43,46 +31,6 @@
43
31
  </div>
44
32
  </div>
45
33
  <div class="row" v-show="$parent.$parent.criteriaShow">
46
- <div class="form-group col-sm-3">
47
- <label class="font_normal_body">项目类型:</label>
48
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_entry_type"
49
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_entry_type like '%{}%'" placeholder='项目类型'>
50
- </div>
51
- <div class="form-group col-sm-3">
52
- <label class="font_normal_body">发料仓库:</label>
53
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_warehouse"
54
- v-on:keyup.enter="$parent.$parent.search()" condition="o.f_warehouse like '%{}%'" placeholder='发料仓库'>
55
- </div>
56
- <div class="form-group col-sm-3">
57
- <label class="font_normal_body">施工单位:</label>
58
- <input type="text" style="width: 60%" class="input_search" placeholder='施工单位' v-model="model.f_picking_unit"
59
- v-on:keyup.enter="$parent.$parent.search()"
60
- condition="o.f_picking_unit like '%{}%'">
61
- </div>
62
- <div class="form-group col-sm-3">
63
- <label class="font_normal_body">工地名称:</label>
64
- <input type="text" style="width: 60%" class="input_search" placeholder='工地名称' v-model="model.f_picking_site"
65
- v-on:keyup.enter="$parent.$parent.search()"
66
- condition="o.f_picking_site like '%{}%'">
67
- </div>
68
- <div class="form-group col-sm-3">
69
- <label class="font_normal_body">操作人:</label>
70
- <input type="text" style="width: 60%" class="input_search" placeholder='操作人' v-model="model.f_operator"
71
- v-on:keyup.enter="$parent.$parent.search()"
72
- condition="o.f_operator like '%{}%'">
73
- </div>
74
- <div class="form-group col-sm-3">
75
- <label class="font_normal_body">状&emsp;&emsp;态:</label>
76
- <v-select
77
- v-model="model.f_outbound_status"
78
- placeholder='请选择'
79
- condition="{}"
80
- :value.sync="model.f_outbound_status"
81
- :options='$parent.$parent.OutboundStatus'
82
- class="select select_list"
83
- :value-single="true"
84
- close-on-select ></v-select>
85
- </div>
86
34
  <div class="form-group col-sm-3">
87
35
  <label for="startDate" class="font_normal_body">开始时间:</label>
88
36
  <datepicker id="startDate" placeholder="开始日期"
@@ -91,7 +39,7 @@
91
39
  :value.sync="model.startDate"
92
40
  :format="'yyyy-MM-dd HH:mm:ss'"
93
41
  :show-reset-button="true"
94
- condition="o.f_billing_time >= '{}'">
42
+ condition="op.f_invoicing_date >= '{}'">
95
43
  </datepicker>
96
44
  </div>
97
45
  <div class="form-group col-sm-3">
@@ -102,7 +50,7 @@
102
50
  :value.sync="model.endDate"
103
51
  :format="'yyyy-MM-dd HH:mm:ss'"
104
52
  :show-reset-button="true"
105
- condition="o.f_billing_time <= '{}'">
53
+ condition="op.f_invoicing_date <= '{}'">
106
54
  </datepicker>
107
55
  </div>
108
56
  </div>
@@ -219,7 +167,9 @@ export default {
219
167
  'f_demand_date': '需求日期',
220
168
  'f_lump_sum': '开票金额',
221
169
  'f_actual_money': '实际金额',
222
- 'f_status': '状态'
170
+ 'f_status': '状态',
171
+ 'f_contract_time': '签订时间',
172
+ 'f_contract_expiration_date': '到期时间'
223
173
  }
224
174
  }
225
175
  },
@@ -112,7 +112,7 @@
112
112
  <template partial='head'>
113
113
  <tr>
114
114
  <th style="white-space: nowrap;">序号</th>
115
- <!-- <th style="white-space: nowrap;">物料编码</th>-->
115
+ <th style="white-space: nowrap;">物料编码</th>
116
116
  <th style="white-space: nowrap;">材料名称</th>
117
117
  <th style="white-space: nowrap;">材料型号</th>
118
118
  <th style="white-space: nowrap;">材料规格</th>
@@ -136,9 +136,9 @@
136
136
  <td style="text-align: center;">
137
137
  <nobr><font>{{$index+1}}</font></nobr>
138
138
  </td>
139
- <!-- <td style="text-align: center;">-->
140
- <!-- <nobr><font>{{row.f_material_coding}}</font></nobr>-->
141
- <!-- </td>-->
139
+ <td style="text-align: center;">
140
+ <nobr><font>{{row.f_material_coding}}</font></nobr>
141
+ </td>
142
142
  <td style="text-align: center;">
143
143
  <nobr><font>{{row.f_material_name}}</font></nobr>
144
144
  </td>
@@ -147,6 +147,14 @@
147
147
  this.$refs.query.$refs.cp.pager = true
148
148
  // 调用查询
149
149
  this.$refs.query.$refs.cp.$refs.cri.search()
150
+ },
151
+ 'comeback' () {
152
+ // 关闭详细
153
+ this.showtotal = false
154
+ // 显示列表数据
155
+ this.showData = true
156
+ // 显示分页
157
+ this.$refs.query.$refs.cp.pager = true
150
158
  }
151
159
  },
152
160
  watch: {