apply-clients 3.2.36 → 3.2.49

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 (286) hide show
  1. package/dist-android/static/15.js +2 -2
  2. package/dist-android/static/23.js +2 -2
  3. package/index.html +1 -1
  4. package/package.json +5 -5
  5. package/src/AndroidApp.vue +10 -9
  6. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  7. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  8. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  10. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  11. package/src/android-bootstrap/less/.csscomb.json +304 -0
  12. package/src/android-bootstrap/less/.csslintrc +19 -0
  13. package/src/android-bootstrap/less/alerts.less +73 -0
  14. package/src/android-bootstrap/less/badges.less +66 -0
  15. package/src/android-bootstrap/less/bootstrap.less +56 -0
  16. package/src/android-bootstrap/less/breadcrumbs.less +26 -0
  17. package/src/android-bootstrap/less/button-groups.less +247 -0
  18. package/src/android-bootstrap/less/buttons.less +173 -0
  19. package/src/android-bootstrap/less/carousel.less +269 -0
  20. package/src/android-bootstrap/less/close.less +34 -0
  21. package/src/android-bootstrap/less/code.less +69 -0
  22. package/src/android-bootstrap/less/component-animations.less +33 -0
  23. package/src/android-bootstrap/less/dropdowns.less +216 -0
  24. package/src/android-bootstrap/less/forms.less +626 -0
  25. package/src/android-bootstrap/less/glyphicons.less +305 -0
  26. package/src/android-bootstrap/less/grid.less +84 -0
  27. package/src/android-bootstrap/less/input-groups.less +167 -0
  28. package/src/android-bootstrap/less/jumbotron.less +52 -0
  29. package/src/android-bootstrap/less/labels.less +64 -0
  30. package/src/android-bootstrap/less/list-group.less +141 -0
  31. package/src/android-bootstrap/less/media.less +66 -0
  32. package/src/android-bootstrap/less/mixins/alerts.less +14 -0
  33. package/src/android-bootstrap/less/mixins/background-variant.less +9 -0
  34. package/src/android-bootstrap/less/mixins/border-radius.less +18 -0
  35. package/src/android-bootstrap/less/mixins/buttons.less +69 -0
  36. package/src/android-bootstrap/less/mixins/center-block.less +7 -0
  37. package/src/android-bootstrap/less/mixins/clearfix.less +22 -0
  38. package/src/android-bootstrap/less/mixins/forms.less +90 -0
  39. package/src/android-bootstrap/less/mixins/gradients.less +59 -0
  40. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -0
  41. package/src/android-bootstrap/less/mixins/grid.less +122 -0
  42. package/src/android-bootstrap/less/mixins/hide-text.less +21 -0
  43. package/src/android-bootstrap/less/mixins/image.less +33 -0
  44. package/src/android-bootstrap/less/mixins/labels.less +12 -0
  45. package/src/android-bootstrap/less/mixins/list-group.less +30 -0
  46. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -0
  47. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -0
  48. package/src/android-bootstrap/less/mixins/opacity.less +8 -0
  49. package/src/android-bootstrap/less/mixins/pagination.less +24 -0
  50. package/src/android-bootstrap/less/mixins/panels.less +24 -0
  51. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -0
  52. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -0
  53. package/src/android-bootstrap/less/mixins/reset-text.less +18 -0
  54. package/src/android-bootstrap/less/mixins/resize.less +6 -0
  55. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -0
  56. package/src/android-bootstrap/less/mixins/size.less +10 -0
  57. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -0
  58. package/src/android-bootstrap/less/mixins/table-row.less +44 -0
  59. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -0
  60. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -0
  61. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -0
  62. package/src/android-bootstrap/less/mixins.less +40 -0
  63. package/src/android-bootstrap/less/modals.less +151 -0
  64. package/src/android-bootstrap/less/navbar.less +660 -0
  65. package/src/android-bootstrap/less/navs.less +302 -0
  66. package/src/android-bootstrap/less/normalize.less +424 -0
  67. package/src/android-bootstrap/less/pager.less +76 -0
  68. package/src/android-bootstrap/less/pagination.less +89 -0
  69. package/src/android-bootstrap/less/panels.less +274 -0
  70. package/src/android-bootstrap/less/popovers.less +131 -0
  71. package/src/android-bootstrap/less/print.less +101 -0
  72. package/src/android-bootstrap/less/progress-bars.less +87 -0
  73. package/src/android-bootstrap/less/responsive-embed.less +35 -0
  74. package/src/android-bootstrap/less/responsive-utilities.less +194 -0
  75. package/src/android-bootstrap/less/scaffolding.less +161 -0
  76. package/src/android-bootstrap/less/tables.less +262 -0
  77. package/src/android-bootstrap/less/theme.less +291 -0
  78. package/src/android-bootstrap/less/thumbnails.less +36 -0
  79. package/src/android-bootstrap/less/tooltip.less +102 -0
  80. package/src/android-bootstrap/less/type.less +303 -0
  81. package/src/android-bootstrap/less/utilities.less +55 -0
  82. package/src/android-bootstrap/less/variables.less +896 -0
  83. package/src/android-bootstrap/less/wells.less +29 -0
  84. package/src/apply.js +143 -25
  85. package/src/applyAndroid.js +5 -3
  86. package/src/components/Util.js +5 -5
  87. package/src/components/app_apply/AppServiceView.vue +2 -2
  88. package/src/components/app_apply/Process/AppExplorationUser.vue +200 -310
  89. package/src/components/app_apply/Process/AppProgressReport.vue +84 -0
  90. package/src/components/app_apply/Process/AppServiceControl.vue +215 -4
  91. package/src/components/app_apply/ProgressReport/ProgressReportDetail.vue +64 -0
  92. package/src/components/app_apply/ProgressReport/ProgressReportList.vue +209 -0
  93. package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +12 -129
  94. package/src/components/image/tubiao.png +0 -0
  95. package/src/components/product/{ApplyCharge → Apply/ApplyCharge}/ApplyChargeList.vue +4 -8
  96. package/src/components/product/{ApplyCharge → Apply/ApplyCharge}/ApplyChargeSearch.vue +2 -4
  97. package/src/components/product/{Function → Apply/Function}/InstallFunction.vue +4 -4
  98. package/src/components/product/{Function → Apply/Function}/InstallInfoSelect.vue +12 -16
  99. package/src/components/product/{Function → Apply/Function}/Service/FunctionServiceControl.vue +0 -1
  100. package/src/components/product/{Function → Apply/Function}/StopApplyCrrdList.vue +0 -0
  101. package/src/components/product/{Function → Apply/Function}/functions/ApplyRecordCancel.vue +1 -1
  102. package/src/components/product/{Function → Apply/Function}/functions/StopInstall.vue +11 -25
  103. package/src/components/product/{Process → Apply/Process}/ExplorationSelect.vue +5 -8
  104. package/src/components/product/{Process → Apply/Process}/ExplorationUser.vue +3 -4
  105. package/src/components/product/Apply/Process/Processes/InstallationDetails.vue +478 -0
  106. package/src/components/product/{Process → Apply/Process}/Processes/addressAndUserinfoManagement.vue +3 -8
  107. package/src/components/product/{Process → Apply/Process}/Processes/chargeManagement.vue +11 -51
  108. package/src/components/product/{Process → Apply/Process}/Processes/supplementalAgreement.vue +1 -1
  109. package/src/components/product/{Process → Apply/Process}/Service/ServiceControl.vue +11 -75
  110. package/src/components/product/{Process → Apply/Process}/ShowBackReason.vue +0 -0
  111. package/src/components/product/{Supervisory → Apply/Supervisory}/Service/SupervisoryServiceControl.vue +0 -5
  112. package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryControl.vue +43 -22
  113. package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryList.vue +15 -13
  114. package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryhCart.vue +1 -1
  115. package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContract.vue +156 -0
  116. package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractInformation.vue +429 -0
  117. package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractList.vue +267 -0
  118. package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContract.vue +138 -0
  119. package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +715 -0
  120. package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractList.vue +304 -0
  121. package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContract.vue +119 -0
  122. package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractInformation.vue +286 -0
  123. package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractList.vue +258 -0
  124. package/src/components/product/Ledger/FacilityManagement/EmployRecord/EmployRecord.vue +24 -0
  125. package/src/components/product/Ledger/FacilityManagement/EmployRecord/EmployRecordList.vue +218 -0
  126. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityEmployRecord.vue +124 -0
  127. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventory.vue +307 -0
  128. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +583 -0
  129. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryList.vue +285 -0
  130. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityServiceRecord.vue +113 -0
  131. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/addFacilityInformation.vue +406 -0
  132. package/src/components/product/Ledger/FacilityManagement/FacilityInventory/addoldFacilityInformation.vue +326 -0
  133. package/src/components/product/Ledger/FacilityManagement/ScrapRecord/ScrapRecord.vue +24 -0
  134. package/src/components/product/Ledger/FacilityManagement/ScrapRecord/ScrapRecordList.vue +157 -0
  135. package/src/components/product/Ledger/FacilityManagement/ServiceRecord/ServiceRecord.vue +24 -0
  136. package/src/components/product/Ledger/FacilityManagement/ServiceRecord/ServiceRecordList.vue +168 -0
  137. package/src/components/product/Ledger/FileDownload/FileDownload.vue +42 -0
  138. package/src/components/product/Ledger/Function/InstallFunction.vue +118 -0
  139. package/src/components/product/Ledger/Function/InstallInfoSelect.vue +299 -0
  140. package/src/components/product/Ledger/Function/Service/FunctionServiceControl.vue +220 -0
  141. package/src/components/product/Ledger/Function/functions/PauseInstall.vue +92 -0
  142. package/src/components/product/Ledger/ImportApply/ImportApply.vue +68 -0
  143. package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecord.vue +24 -0
  144. package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +281 -0
  145. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformation.vue +313 -0
  146. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +250 -0
  147. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialDeliveryRecord.vue +110 -0
  148. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialEarlyWarning.vue +194 -0
  149. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialInformation.vue +186 -0
  150. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +438 -0
  151. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +457 -0
  152. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialWarehousingRecord.vue +110 -0
  153. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +425 -0
  154. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +481 -0
  155. package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +321 -0
  156. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrder.vue +86 -0
  157. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +327 -0
  158. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderList.vue +304 -0
  159. package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +139 -0
  160. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +157 -0
  161. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecords.vue +73 -0
  162. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +268 -0
  163. package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +261 -0
  164. package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecord.vue +24 -0
  165. package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +275 -0
  166. package/src/components/product/Ledger/Process/ProcessBusiness.vue +155 -0
  167. package/src/components/product/Ledger/Process/ProcessSelect.vue +340 -0
  168. package/src/components/product/Ledger/Process/Processes/ExhibitionPicture.vue +27 -0
  169. package/src/components/product/Ledger/Process/Processes/ProgressReport.vue +236 -0
  170. package/src/components/product/Ledger/Process/Processes/ProjectMaterialList.vue +77 -0
  171. package/src/components/product/Ledger/Process/Processes/QinhuaMaterialList.vue +72 -0
  172. package/src/components/product/Ledger/Process/Service/ServiceControl.vue +639 -0
  173. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +316 -0
  174. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingRecord.vue +67 -0
  175. package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingRecordList.vue +194 -0
  176. package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningInformation.vue +385 -0
  177. package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningRecord.vue +70 -0
  178. package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningRecordList.vue +208 -0
  179. package/src/components/product/Ledger/Stop/StopApply.vue +103 -0
  180. package/src/components/product/Ledger/Stop/StopApplyList.vue +241 -0
  181. package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +163 -0
  182. package/src/components/product/Ledger/Supervisory/Service/RenWuDan.vue +78 -0
  183. package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +606 -0
  184. package/src/components/product/Ledger/Supervisory/SupervisoryCart.vue +102 -0
  185. package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +387 -0
  186. package/src/components/product/ServiceView.vue +376 -374
  187. package/src/components/product/VueUtils/ApplyUpload.vue +1 -3
  188. package/src/expandcssAndroid.less +534 -0
  189. package/src/main.js +2 -0
  190. package/static/Functions.js +91 -0
  191. package/static/Jsons.js +784 -0
  192. package/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
  193. package/static/ManagementControl/echarts10.png +0 -0
  194. package/static/ManagementControl/echarts11.png +0 -0
  195. package/static/ManagementControl/echarts12.png +0 -0
  196. package/static/ManagementControl/echarts13.png +0 -0
  197. package/static/ManagementControl/echarts14.png +0 -0
  198. package/static/ManagementControl/echarts15.png +0 -0
  199. package/static/ManagementControl/echarts16.png +0 -0
  200. package/static/ManagementControl/echarts17.png +0 -0
  201. package/static/ManagementControl/echarts18.png +0 -0
  202. package/static/ManagementControl/echarts4.png +0 -0
  203. package/static/ManagementControl/echarts5.png +0 -0
  204. package/static/ManagementControl/echarts51.png +0 -0
  205. package/static/ManagementControl/echarts6.png +0 -0
  206. package/static/ManagementControl/echarts7.png +0 -0
  207. package/static/ManagementControl/echarts71.png +0 -0
  208. package/static/ManagementControl/echarts8.png +0 -0
  209. package/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
  210. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
  211. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
  212. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
  213. package/static/class.js +97 -0
  214. package/static/images/lefticon//346/226/207/344/273/266/346/250/241/345/235/227.png +0 -0
  215. package/static/init.js +135 -0
  216. package/static/jcwx.jpg +0 -0
  217. package/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  218. package/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  219. package/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  220. package/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  221. package/static/lefticon//345/233/276/345/261/202577.png +0 -0
  222. package/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  223. package/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  224. package/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  225. package/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  226. package/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  227. package/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  228. package/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  229. package/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  230. package/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  231. package/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  232. package/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  233. package/static/lefticon//347/237/251/345/275/2421183.png +0 -0
  234. package/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  235. package/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  236. package/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  237. package/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  238. package/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  239. package/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  240. package/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  241. package/static/loginbg1.jpg +0 -0
  242. package/static/loginbg_jincheng.jpg +0 -0
  243. package/static/loginbgmain.jpg +0 -0
  244. package/static/mainicon/adddevice.png +0 -0
  245. package/static/mainicon/addmeter.png +0 -0
  246. package/static/mainicon/bank.png +0 -0
  247. package/static/mainicon/biaopan.png +0 -0
  248. package/static/mainicon/cad.jpg +0 -0
  249. package/static/mainicon/chaobiaoyuan.png +0 -0
  250. package/static/mainicon/danganguanli.png +0 -0
  251. package/static/mainicon/deletedevice.png +0 -0
  252. package/static/mainicon/excel.jpg +0 -0
  253. package/static/mainicon/huizong.png +0 -0
  254. package/static/mainicon/jibiaoguanli.png +0 -0
  255. package/static/mainicon/jibiaoguanli2.png +0 -0
  256. package/static/mainicon/jiezhang.png +0 -0
  257. package/static/mainicon/loginbg.jpg +0 -0
  258. package/static/mainicon/shouqishoufei.png +0 -0
  259. package/static/mainicon/treeopen.png +0 -0
  260. package/static/mainicon/treeout.png +0 -0
  261. package/static/mainicon/treeset.png +0 -0
  262. package/static/mainicon/word.jpg +0 -0
  263. package/static/mainicon/wulianwang.png +0 -0
  264. package/static/mainicon/yingyechaxun.png +0 -0
  265. package/static/mainicon/zongheyewu.png +0 -0
  266. package/static/newStyle/loginbg-liaoyuan.gif +0 -0
  267. package/static/newStyle/loginbg.gif +0 -0
  268. package/static/newStyle/loginbg1366.gif +0 -0
  269. package/static/newStyle/loginbg_1.gif +0 -0
  270. package/static/newStyle/searchin.png +0 -0
  271. package/static/newStyle/searchout.png +0 -0
  272. package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
  273. package/static/newStyle.7z +0 -0
  274. package/static/newStyle.zip +0 -0
  275. package/static/refresh.png +0 -0
  276. package/static/static.zip +0 -0
  277. package/static/tools.js +246 -0
  278. package/static/treeclose.png +0 -0
  279. package/static/wasm_exec.js +591 -0
  280. package/src/components/app_apply/Process/Processes/AppInstallationDetails.vue +0 -456
  281. package/src/components/product/ApplyCharge/ApplyChargeReport.vue +0 -107
  282. package/src/components/product/Process/Processes/InstallationDetails.vue +0 -515
  283. package/src/components/product/Process/Processes/printCharge.vue +0 -133
  284. package/src/components/product/Test.vue +0 -36
  285. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  286. package/src/components/product/VueUtils/Tree.vue +0 -330
@@ -0,0 +1,481 @@
1
+ <template>
2
+ <div class="select-overspread" style="background-color: #ffffff;padding: 20px;overflow: scroll">
3
+ <validator name="v">
4
+ <form class="form-horizontal">
5
+ <div class="form-group">
6
+ <div class="col-sm-4 form-group item" :class="[$v.f_order_number.required ? 'has-error' : '']">
7
+ <label class="control-label-justify control-label col-sm-6">订单编号</label>
8
+ <div class="col-sm-6">
9
+ <input class="form-control input_view" style=""
10
+ type="text"
11
+ @change="orderNumberChange()"
12
+ v-validate:f_order_number = "['required']"
13
+ v-model="model.f_order_number"
14
+ :value="model.f_order_number"/>
15
+ </div>
16
+ </div>
17
+ <div class="col-sm-4 form-group item" :class="[$v.contract.required ? 'has-error' : '']">
18
+ <label class="control-label-justify control-label col-sm-6">合同编号</label>
19
+ <div class="col-sm-6">
20
+ <input type="text" v-model="model.contract" v-show="false" v-validate:contract = "['required']" >
21
+ <input-select
22
+ class="select select_list"
23
+ :value.sync="model.contract"
24
+ v-model="model.contract"
25
+ :options="contractList"
26
+ :valueSingle="true"></input-select>
27
+ </div>
28
+ </div>
29
+ <div class="col-sm-4 form-group item">
30
+ <label class="control-label-justify control-label col-sm-6">供货商</label>
31
+ <div class="col-sm-6">
32
+ <input class="form-control input_view" style=""
33
+ type="text"
34
+ readonly
35
+ :value="model.contract.f_supplier"/>
36
+ </div>
37
+ </div>
38
+ <div class="col-sm-4 form-group item">
39
+ <label class="control-label-justify control-label col-sm-6">合同状态</label>
40
+ <div class="col-sm-6">
41
+ <input class="form-control input_view" style=""
42
+ type="text"
43
+ v-model="model.f_contract_status"
44
+ :value="model.contract.f_contract_nature === '年度' ? (new Date() > new Date(model.contract.f_contract_expiration_date) ? '无效': '有效') : model.contract.f_contract_status"
45
+ />
46
+ </div>
47
+ </div>
48
+ <div class="col-sm-4 form-group item" :class="[$v.f_applicant.required ? 'has-error' : '']">
49
+ <label class="control-label-justify control-label col-sm-6">申请人</label>
50
+ <div class="col-sm-6">
51
+ <input class="form-control input_view" style=""
52
+ type="text" v-validate:f_applicant = "['required']"
53
+ v-model="model.f_applicant"
54
+ :value="model.f_applicant"
55
+ />
56
+ </div>
57
+ </div>
58
+ <div class="col-sm-4 form-group item">
59
+ <label class="control-label-justify control-label col-sm-6">时间</label>
60
+ <div class="col-sm-6">
61
+ <datepicker
62
+ :value.sync="model.f_invoicing_date"
63
+ v-model="model.f_invoicing_date"
64
+ format="yyyy-MM-dd"
65
+ :show-reset-button="true">
66
+ </datepicker>
67
+ </div>
68
+ </div>
69
+ <div class="col-sm-4 form-group item">
70
+ <label class="control-label-justify control-label col-sm-6">需求日期</label>
71
+ <div class="col-sm-6">
72
+ <datepicker
73
+ :value.sync="model.f_demand_date"
74
+ v-model="model.f_demand_date"
75
+ format="yyyy-MM-dd"
76
+ :show-reset-button="true">
77
+ </datepicker>
78
+ </div>
79
+ </div>
80
+ <div class="col-sm-4 form-group item">
81
+ <label class="control-label-justify control-label col-sm-6">总金额</label>
82
+ <div class="col-sm-6">
83
+ <input class="form-control input_view" style=""
84
+ type="number" readonly
85
+ v-model="model.f_lump_sum"
86
+ :value="0"
87
+ />
88
+ </div>
89
+ </div>
90
+
91
+ <div class="col-sm-12">
92
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
93
+ <template partial='head'>
94
+ <tr>
95
+ <th style="white-space: nowrap;">序号</th>
96
+ <th style="white-space: nowrap;">名称</th>
97
+ <th style="white-space: nowrap;">型号</th>
98
+ <th style="white-space: nowrap;">规格</th>
99
+ <th style="white-space: nowrap;">单位</th>
100
+ <th style="white-space: nowrap;">数量</th>
101
+ <th style="white-space: nowrap;">含税单价</th>
102
+ <th style="white-space: nowrap;">不含税单价</th>
103
+ <th style="white-space: nowrap;">金额</th>
104
+ <th style="white-space: nowrap;">库存</th>
105
+ <th style="white-space: nowrap;">备注</th>
106
+ <th style="white-space: nowrap;">
107
+ <button @click="$parent.$parent.openModal()" :disabled="!model.contract.id" type="button" class="btn btn-info">
108
+ <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
109
+ </button>
110
+ </th>
111
+ </tr>
112
+ </template>
113
+ <template partial='body'>
114
+ <tr>
115
+ <td style="text-align: center;">{{$index+1}}</td>
116
+ <td style="text-align: center;">{{row.f_material_name}}</td>
117
+ <td style="text-align: center;">{{row.f_material_model}}</td>
118
+ <td style="text-align: center;">{{row.f_material_norm}}</td>
119
+ <td style="text-align: center;">{{row.f_unit}}</td>
120
+ <td style="text-align: center;">{{row.f_forecast_quantity}}</td>
121
+ <td style="text-align: center;">{{row.f_price}}</td>
122
+ <td style="text-align: center;">{{row.f_noprice}}</td>
123
+ <td style="text-align: center;">{{row.f_forecast_money}}</td>
124
+ <td style="text-align: center;">{{row.f_stock}}</td>
125
+ <td style="text-align: center;">{{row.f_remarks}}</td>
126
+ <td style="text-align: center;">
127
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.openUpdateMaterial($index,row)">修改</button>
128
+ <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.deleteMaterial($index)">删除</button>
129
+ </td>
130
+ </tr>
131
+ </template>
132
+ </data-grid>
133
+ </div>
134
+
135
+ <div class="col-sm-12 form-group" style="text-align: center">
136
+ <button class="btn btn-primary" @click.prevent="addPurchaseOrder()" :disabled="!($v.valid && model.data.length > 0)">保存</button>
137
+ </div>
138
+ </div>
139
+ </form>
140
+ </validator>
141
+ <validator name="mv">
142
+ <modal v-if="showMaterial" :show.sync="showMaterial" backdrop="false" large>
143
+ <header slot="modal-header" class="modal-header">
144
+ <button type="button" class="close" @click="closeModal()"><span>&times;</span></button>
145
+ <span class="modal-title"><font size="3">添加材料</font></span>
146
+ </header>
147
+ <article slot="modal-body" class="form-horizontal modal-body clearfix">
148
+ <div class="col-sm-12 form-group" :class="[$mv.material.required ? 'has-error' : '']">
149
+ <label class="control-label col-sm-2">选择材料</label>
150
+ <div class="col-sm-9">
151
+ <input type="text" v-show="false" v-model="material.id" v-validate:material = "['required']" >
152
+ <input-select
153
+ class="select select_list"
154
+ :value.sync="material"
155
+ v-model="material"
156
+ :options="contractMaterial"
157
+ @change="changeMaterial()"
158
+ :valueSingle="true"></input-select>
159
+ </div>
160
+ </div>
161
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_name.required ? 'has-error' : '']">
162
+ <label class="control-label col-sm-2">材料名称</label>
163
+ <div class="col-sm-9">
164
+ <input class="form-control" type="text" readonly v-validate:f_material_name = "['required']" v-model="material.f_material_name" :value="material.f_material_name"/>
165
+ </div>
166
+ </div>
167
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_model.required ? 'has-error' : '']">
168
+ <label class="control-label col-sm-2">材料型号</label>
169
+ <div class="col-sm-9">
170
+ <input class="form-control" type="text" readonly v-validate:f_material_model = "['required']" v-model="material.f_material_model" :value="material.f_material_model"/>
171
+ </div>
172
+ </div>
173
+ <div class="col-sm-12 form-group" :class="[$mv.f_material_norm.required ? 'has-error' : '']">
174
+ <label class="control-label col-sm-2">材料规格</label>
175
+ <div class="col-sm-9">
176
+ <input class="form-control" type="text" readonly v-validate:f_material_norm = "['required']" v-model="material.f_material_norm" :value="material.f_material_norm"/>
177
+ </div>
178
+ </div>
179
+ <div class="col-sm-12 form-group" :class="[$mv.f_price.required ? 'has-error' : '']">
180
+ <label class="control-label col-sm-2">含税单价</label>
181
+ <div class="col-sm-9">
182
+ <input class="form-control" type="number" readonly v-validate:f_price = "['required']" v-model="material.f_price" :value="material.f_price"/>
183
+ </div>
184
+ </div>
185
+ <div class="col-sm-12 form-group" :class="[$mv.f_noprice.required ? 'has-error' : '']">
186
+ <label class="control-label col-sm-2">不含税单价</label>
187
+ <div class="col-sm-9">
188
+ <input class="form-control" type="number" readonly v-validate:f_noprice = "['required']" v-model="material.f_noprice" :value="material.f_noprice"/>
189
+ </div>
190
+ </div>
191
+ <div class="col-sm-12 form-group" :class="[$mv.f_unit.required ? 'has-error' : '']">
192
+ <label class="control-label col-sm-2">单&emsp;&emsp;位</label>
193
+ <div class="col-sm-9">
194
+ <input class="form-control" type="text" readonly v-validate:f_unit = "['required']" v-model="material.f_unit" :value="material.f_unit"/>
195
+ </div>
196
+ </div>
197
+ <div class="col-sm-12 form-group" :class="[$mv.f_unit.required ? 'has-error' : '']">
198
+ <label class="control-label col-sm-2">库&emsp;&emsp;存</label>
199
+ <div class="col-sm-9">
200
+ <input class="form-control" type="text" readonly v-validate:f_unit = "['required']" v-model="material.f_stock" :value="material.f_stock"/>
201
+ </div>
202
+ </div>
203
+ <div class="col-sm-12 form-group" :class="[$mv.f_forecast_quantity.required ? 'has-error' : '']">
204
+ <label class="control-label col-sm-2">数&emsp;&emsp;量</label>
205
+ <div class="col-sm-9">
206
+ <input class="form-control" type="number" @change="onChange(),calculateTheAmount()" v-validate:f_forecast_quantity = "['required']" v-model="material.f_forecast_quantity" :value="material.f_forecast_quantity"/>
207
+ </div>
208
+ </div>
209
+ <div class="col-sm-12 form-group" :class="[$mv.f_forecast_money.required ? 'has-error' : '']">
210
+ <label class="control-label col-sm-2">金&emsp;&emsp;额</label>
211
+ <div class="col-sm-9">
212
+ <input class="form-control" type="number" readonly v-validate:f_forecast_money = "['required']" v-model="material.f_forecast_money" :value="material.f_forecast_money"/>
213
+ </div>
214
+ </div>
215
+ <div class="col-sm-12 form-group">
216
+ <label class="control-label col-sm-2">备&emsp;&emsp;注</label>
217
+ <div class="col-sm-9">
218
+ <textarea
219
+ class="form-control input_view"
220
+ style="width: 100%;height: 100%"
221
+ rows="2"
222
+ @change="onChange()"
223
+ v-model="material.f_remarks"
224
+ :value="material.f_remarks"
225
+ >
226
+ </textarea>
227
+ </div>
228
+ </div>
229
+
230
+ </article>
231
+ <footer slot="modal-footer" class="modal-footer">
232
+ <button class="btn btn-primary" type="button" @click.prevent="saveOrUpdateMaterial()" :disabled='!$mv.valid'>确认</button>
233
+ </footer>
234
+ </modal>
235
+ </validator>
236
+
237
+ </div>
238
+ </template>
239
+
240
+ <script>
241
+ import Vue from 'vue'
242
+ import {HttpResetClass} from 'vue-client'
243
+ import {isEmpty} from '../../../../Util'
244
+ export default {
245
+ title: '采购入库',
246
+ data () {
247
+ return {
248
+ model: {
249
+ data: []
250
+ },
251
+ material: {},
252
+ contractList: [],
253
+ contractMaterial: [],
254
+ showMaterial: false,
255
+ index: null
256
+ }
257
+ },
258
+ ready () {
259
+ this.getContractList()
260
+ },
261
+ methods: {
262
+ async orderNumberChange () {
263
+ let data = {
264
+ tablename: 't_purchase_order',
265
+ condition: `f_order_number = '${this.model.f_order_number}'`
266
+ }
267
+
268
+ let res = await this.$resetpost(
269
+ `rs/sql/singleTable`,
270
+ {data: data},
271
+ {resolveMsg: null, rejectMsg: '订单编号查询失败!!!'}
272
+ )
273
+
274
+ if (res.data.length > 0) {
275
+ this.$showAlert('订单编号已存在!!!', 'warning', 3000)
276
+ this.model.f_order_number = null
277
+ return
278
+ }
279
+ },
280
+ calculateTheAmount () {
281
+ let f_forecast_money = this.material.f_price * this.material.f_forecast_quantity
282
+ Vue.set(this.material, 'f_forecast_money', f_forecast_money)
283
+ },
284
+ addPurchaseOrder () {
285
+ this.$dispatch('addPurchaseOrder', this.model)
286
+ },
287
+ // 选择物料
288
+ changeMaterial () {
289
+ if (!isEmpty(this.material.id)) {
290
+ let flag = this.model.data.some(item => {
291
+ if (item.id === this.material.id) {
292
+ return true
293
+ }
294
+ return false
295
+ })
296
+ if (flag) {
297
+ this.$showAlert('该物料已经存在,如需再次添加,请进行修改操作!!!', 'warning', 3000)
298
+ this.closeModal()
299
+ }
300
+ }
301
+ },
302
+ // 打开修改
303
+ async openUpdateMaterial (index, material) {
304
+ await this.getContractMaterial()
305
+
306
+ this.index = index
307
+ this.material = JSON.parse(JSON.stringify(material))
308
+
309
+ this.showMaterial = true
310
+ },
311
+ // 删除
312
+ async deleteMaterial (index) {
313
+ this.index = index
314
+ await this.$showMessage('您确定要删除这条记录吗?').then((res) => {
315
+ if (res === 'confirm') {
316
+ this.model.data.splice(this.index, 1)
317
+ }
318
+ })
319
+ this.closeModal()
320
+ },
321
+ // 添加或修改
322
+ saveOrUpdateMaterial () {
323
+ if (isEmpty(this.index)) {
324
+ this.model.data.push(this.material)
325
+ } else {
326
+ this.model.data.splice(this.index, 1, this.material)
327
+ }
328
+
329
+ this.closeModal()
330
+ },
331
+ // 物料选择
332
+ onChange () {
333
+ if (!this.material.id || isEmpty(this.material.id)) {
334
+ this.$showAlert('请先选择物料!!!', 'warning', 3000)
335
+ this.material = null
336
+ return
337
+ }
338
+ },
339
+ // 关闭
340
+ closeModal () {
341
+ this.showMaterial = false
342
+ this.index = null
343
+ this.material = null
344
+ this.contractMaterial = []
345
+ },
346
+ // 打开Model
347
+ async openModal () {
348
+ await this.getContractMaterial()
349
+
350
+ this.showMaterial = true
351
+ },
352
+ // 获取合同物料
353
+ async getContractMaterial () {
354
+ let data = {
355
+ condition: `cm.f_contract_id = ${this.model.contract.id}`
356
+ }
357
+
358
+ let res = await this.$resetpost(
359
+ `rs/sql/getContractMaterial`,
360
+ {data: data},
361
+ {resolveMsg: null, rejectMsg: '合同采购物料查询失败!!!'}
362
+ )
363
+
364
+ res.data.forEach(item => {
365
+ this.contractMaterial.push({
366
+ 'label': `${item.f_material_name}--${item.f_material_model}--${item.f_material_norm}--${item.f_unit}--${item.f_price}`,
367
+ 'value': item
368
+ })
369
+ })
370
+ },
371
+ // 获取合同
372
+ async getContractList () {
373
+ let data = {
374
+ tablename: 't_contract',
375
+ condition: `(f_contract_type = '采购合同' and f_contract_nature = '年度' and f_contract_category = '物料') or (f_contract_type = '采购合同' and f_contract_category = '物料' and f_contract_nature = '单次' and f_contract_status = '有效' )`
376
+ }
377
+
378
+ let res = await this.$resetpost(
379
+ `rs/sql/singleTable`,
380
+ {data: data},
381
+ {resolveMsg: null, rejectMsg: '合同编号查询失败!!!'}
382
+ )
383
+
384
+ if (res.data.length <= 0) {
385
+ this.$showAlert('暂无采购合同!!!', 'warning', 3000)
386
+ return
387
+ }
388
+
389
+ res.data.forEach(item => {
390
+ this.contractList.push({
391
+ 'label': item.f_contract_number,
392
+ 'value': item
393
+ })
394
+ })
395
+
396
+ }
397
+ },
398
+ computed: {
399
+ },
400
+ watch: {
401
+ 'model.data': {
402
+ deep: true,
403
+ handler: function () {
404
+ let f_lump_sum = 0
405
+ this.model.data.forEach(item => {
406
+ f_lump_sum += Number(item.f_forecast_money)
407
+ })
408
+ this.model.f_lump_sum = f_lump_sum
409
+ }
410
+ }
411
+ }
412
+ }
413
+ </script>
414
+
415
+ <style scoped>
416
+ .item{
417
+ height: 40px;
418
+ margin-bottom: 20px;
419
+ }
420
+
421
+ th{
422
+ font-size: 15px !important;
423
+ text-align: center !important;
424
+ background-color: #dfedfb!important;
425
+ color: #666666 !important;
426
+ font-family: PINGFANG-BOLD !important;
427
+ font-weight: normal!important;
428
+ }
429
+ /*清除model中的浮动*/
430
+ .clearfix:after,.clearfix:before{
431
+ display: table;
432
+ }
433
+ .clearfix:after{
434
+ clear: both;
435
+ }
436
+
437
+ .input_view{
438
+ padding: 8px;
439
+ background-color: #ffffff;
440
+ border-radius: 2px;
441
+ border: solid 1px #c7c7c7!important;
442
+ color: #333333!important;
443
+ font-size: 15px!important;
444
+ }
445
+
446
+ .input_view[readonly]{
447
+ border: 1px solid #DDD!important;
448
+ /*background-color: #F5F5F5;*/
449
+ color:#ACA899!important;
450
+ }
451
+ .input_view:disabled{
452
+ border: 1px solid #DDD!important;
453
+ /*background-color: #F5F5F5;*/
454
+ color:#ACA899!important;
455
+ }
456
+
457
+ .control-label-justify {
458
+ display: inline-block;
459
+ vertical-align: top;
460
+ width: 110px;
461
+ text-align: justify;
462
+ font-family: PingFang-SC-Bold;
463
+ }
464
+
465
+ .control-label-justify::after {
466
+ content: "";
467
+ display: inline-block;
468
+ width: 70px;
469
+ overflow: hidden;
470
+ height: 0;
471
+ }
472
+
473
+ input::-webkit-outer-spin-button,
474
+ input::-webkit-inner-spin-button {
475
+ -webkit-appearance: none;
476
+ }
477
+
478
+ input[type="number"] {
479
+ -moz-appearance: textfield;
480
+ }
481
+ </style>