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
@@ -82,8 +82,8 @@
82
82
 
83
83
  <!--radio-->
84
84
  <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
85
- v-if="item.type==='radio' && !item.hidden && (item.device === 'pc' || !item.device)"
86
- :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
85
+ v-if="item.type==='radio' && !item.hidden && (item.device === 'pc' || !item.device)"
86
+ :class="[item.required && !(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
87
87
  <label v-if="item.label"
88
88
  :class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label-justify control-label col-sm-2'">{{item.label}}</label>
89
89
  <div
@@ -129,8 +129,8 @@
129
129
 
130
130
  <!--checkbox-->
131
131
  <div :style="item.style ? item.style+';height: 40px;margin-bottom: 20px':'height: 40px;margin-bottom: 20px'"
132
- v-if="item.type==='checkbox' && !item.hidden && (item.device === 'pc' || !item.device)"
133
- :class="[item.required&&!(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
132
+ v-if="item.type==='checkbox' && !item.hidden && (item.device === 'pc' || !item.device)"
133
+ :class="[item.required&&!(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped+' form-group':'col-sm-12 form-group']">
134
134
  <label v-if="item.label"
135
135
  :class="item.label_bootstraped?item.label_bootstraped+' control-label ':'control-label col-sm-2'">{{item.label}}</label>
136
136
  <div style="margin-top: 6px"
@@ -145,7 +145,7 @@
145
145
  </div>
146
146
  <!-- onetomany -->
147
147
  <div class="" v-for="(i,item) in data.onetomany" style="overflow:auto;width:100%">
148
- <table v-show="!item.hidden" class="table table-bordered table-striped table-hover" style="white-space:nowrap">
148
+ <table v-if="!item.hidden" class="table table-bordered table-striped table-hover" style="white-space:nowrap">
149
149
  <tr>
150
150
  <th>序号</th>
151
151
  <th v-for="field in item.fields" v-if="!field.displayPosition || field.displayPosition === '*' || field.displayPosition === 'list'">
@@ -239,7 +239,7 @@
239
239
  </header>
240
240
  <article slot="modal-body" class="modal-body clearfix">
241
241
  <div
242
- :class="[item.required&&!(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped:'col-sm-12']"
242
+ :class="[item.required&&!(item.value) ? 'has-error' : '',item.bootstraped?item.bootstraped:'col-sm-12 form-group']"
243
243
  v-for="(index,item) in data.onetomany[onetomany_index].fields" v-if="!item.displayPosition || item.displayPosition === '*' || item.displayPosition === 'from'">
244
244
  <label v-show="!item.hidden" :class="item.label_bootstraped ? item.label_bootstraped + ' control-label' : 'control-label col-sm-3'" style="margin-top: 10px">{{item.label}}:</label>
245
245
  <div :class="item.value_bootstraped ? item.value_bootstraped : 'col-sm-7'" v-show="!item.hidden">
@@ -332,428 +332,430 @@
332
332
  </div>
333
333
  </template>
334
334
  <script>
335
- import Vue from 'vue'
336
- // Date格式化
337
- Date.prototype.Format = function (fmt) {
338
- var o = {
339
- 'M+': this.getMonth() + 1, // 月份
340
- 'd+': this.getDate(), // 日
341
- 'H+': this.getHours(), // 小时
342
- 'm+': this.getMinutes(), // 分
343
- 's+': this.getSeconds(), // 秒
344
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
345
- 'S': this.getMilliseconds() // 毫秒
346
- }
347
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
348
- for (var k in o) {
349
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
335
+ import Vue from 'vue'
336
+ // Date格式化
337
+ Date.prototype.Format = function (fmt) {
338
+ var o = {
339
+ 'M+': this.getMonth() + 1, // 月份
340
+ 'd+': this.getDate(), // 日
341
+ 'H+': this.getHours(), // 小时
342
+ 'm+': this.getMinutes(), // 分
343
+ 's+': this.getSeconds(), // 秒
344
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
345
+ 'S': this.getMilliseconds() // 毫秒
346
+ }
347
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
348
+ for (var k in o) {
349
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
350
+ }
351
+ return fmt
350
352
  }
351
- return fmt
352
- }
353
353
 
354
- export default {
355
- title: '报建业务通用组件',
356
- props: {
357
- data: {
358
- type: Object
354
+ export default {
355
+ title: '报建业务通用组件',
356
+ props: {
357
+ data: {
358
+ type: Object
359
+ },
360
+ showprint: {
361
+ type: Boolean,
362
+ default: true
363
+ }
359
364
  },
360
- showprint: {
361
- type: Boolean,
362
- default: true
363
- }
364
- },
365
- data () {
366
- return {
367
- model: {}, // 公司等属性
368
- disable_button: true, // 控制按钮禁用
369
- show: false, // 控制onetomany模态框
370
- disable_button_onetomany: true, // 控制onetomany模态框按钮
371
- onetomany_index: null, // 当前选择的下标
372
- update_onetomany_index: null, // 当前需要修改的下标
373
- modeltitle: null, // 模态框标题
374
- modalSize: null, // 模态框大小
375
- showbutmodal: false,
376
- }
377
- },
378
- watch: {
379
- deep: true
380
- },
381
- computed: {
382
-
383
- },
384
- created () {
385
- // 初始化数据
386
- this.initializtion()
387
- this.$dispatch('initializtionView')
388
- },
389
- methods: {
390
- // 按钮模态框确定
391
- confirm_but_modal() {
392
- for (const item of this.data.buttons[this.model.button.button_index].button_fields) {
393
- this.model.button.button_fields[item.field] = item.value
365
+ data () {
366
+ return {
367
+ model: {}, // 公司等属性
368
+ disable_button: true, // 控制按钮禁用
369
+ show: false, // 控制onetomany模态框
370
+ disable_button_onetomany: true, // 控制onetomany模态框按钮
371
+ onetomany_index: null, // 当前选择的下标
372
+ update_onetomany_index: null, // 当前需要修改的下标
373
+ modeltitle: null, // 模态框标题
374
+ modalSize: null, // 模态框大小
375
+ showbutmodal: false,
376
+
394
377
  }
395
- this.showbutmodal = false
396
- this.disable_button_but = true
397
- this.$dispatch('button', this.model)
398
378
  },
399
- // 点击按钮组按钮
400
- async clicked(index, button) {
401
- this.disable_button = true
402
- // 组织model.fields数据
403
- for (const item of this.data.fields) {
404
- // checkbox特殊处理
405
- if (item.type === 'checkbox') {
406
- for (let j = 0; j < item.items.length; j++) {
407
- this.model[item.items[j].field] = item.items[j].value
379
+ watch: {
380
+ deep: true
381
+ },
382
+ computed: {
383
+
384
+ },
385
+ created () {
386
+ // 初始化数据
387
+ this.initializtion()
388
+ this.$dispatch('initializtionView')
389
+ },
390
+ methods: {
391
+ // 按钮模态框确定
392
+ confirm_but_modal() {
393
+ for (const item of this.data.buttons[this.model.button.button_index].button_fields) {
394
+ this.model.button.button_fields[item.field] = item.value
395
+ }
396
+ this.showbutmodal = false
397
+ this.disable_button_but = true
398
+ this.$dispatch('button', this.model)
399
+ },
400
+
401
+ // 点击按钮组按钮
402
+ async clicked(index, button) {
403
+ this.disable_button = true
404
+ // 组织model.fields数据
405
+ for (const item of this.data.fields) {
406
+ // checkbox特殊处理
407
+ if (item.type === 'checkbox') {
408
+ for (let j = 0; j < item.items.length; j++) {
409
+ this.model[item.items[j].field] = item.items[j].value
410
+ }
411
+ } else {
412
+ this.model[item.field] = item.value
408
413
  }
409
- } else {
410
- this.model[item.field] = item.value
411
414
  }
412
- }
413
- this.model.f_process_id = this.data.f_process_id
415
+ this.model.f_process_id = this.data.f_process_id
414
416
 
415
- // 初始化model.button数据
416
- let buttondatas = {
417
- button_fields: {}
418
- }
419
- buttondatas.button_name = button.button_name
420
- buttondatas.button_index = index
421
- if (button.button_fields) {
422
- for (const item of button.button_fields) {
423
- buttondatas.button_fields[item.field] = item.value
417
+ // 初始化model.button数据
418
+ let buttondatas = {
419
+ button_fields: {}
424
420
  }
425
- }
426
- this.model.button = buttondatas
427
- this.model.title = this.data.title
428
- this.model.fields = this.data.fields
429
- this.model.onetomany = this.data.onetomany
421
+ buttondatas.button_name = button.button_name
422
+ buttondatas.button_index = index
423
+ if (button.button_fields) {
424
+ for (const item of button.button_fields) {
425
+ buttondatas.button_fields[item.field] = item.value
426
+ }
427
+ }
428
+ this.model.button = buttondatas
429
+ this.model.title = this.data.title
430
+ this.model.fields = this.data.fields
431
+ this.model.onetomany = this.data.onetomany
430
432
 
431
433
 
432
- if (button.button_name === '退回') {
433
- this.showbutmodal = true
434
- } else if (button.button_name === '下发') {
435
- this.showbutmodal = true
436
- } else {
437
- this.$dispatch('button', this.model)
438
- }
439
- },
440
- // 初始化数据
441
- initializtion () {
442
- // 是否禁用按钮
443
- this.disableButton()
434
+ if (button.button_name === '退回') {
435
+ this.showbutmodal = true
436
+ } else if (button.button_name === '下发') {
437
+ this.showbutmodal = true
438
+ } else {
439
+ this.$dispatch('button', this.model)
440
+ }
441
+ },
442
+ // 初始化数据
443
+ initializtion () {
444
+ // 是否禁用按钮
445
+ this.disableButton()
444
446
 
445
- // 公司等属性初始化
446
- if (this.data.filiale) {
447
- this.model.f_filiale = this.data.filiale
448
- } else {
449
- this.model.f_filiale = this.$login.f.orgs
450
- }
451
- if (this.data.f_parentname) {
452
- this.model.f_parentname = this.data.f_parentname
453
- } else {
454
- this.model.f_parentname = this.$login.f.f_department_name
455
- }
456
- if (this.data.operate_date) {
457
- this.model.f_operate_date = this.data.operate_date
458
- } else {
459
- this.model.f_operate_date = new Date().Format('yyyy-MM-dd')
460
- }
461
- if (this.data.operator) {
462
- this.model.f_operator = this.data.operator
463
- } else {
464
- this.model.f_operator = this.$login.f.name
465
- }
466
- },
467
- // 是否禁用按钮
468
- disableButton () {
469
- let fields = this.data.fields
470
-
471
- let flag = false
472
- for (const item of fields) {
473
- if (item.type !== 'checkbox' && item.required && !item.value) {
474
- if (item.value === 0) {
475
- flag = false
476
- } else {
447
+ // 公司等属性初始化
448
+ if (this.data.filiale) {
449
+ this.model.f_filiale = this.data.filiale
450
+ } else {
451
+ this.model.f_filiale = this.$login.f.orgs
452
+ }
453
+ if (this.data.f_parentname) {
454
+ this.model.f_parentname = this.data.f_parentname
455
+ } else {
456
+ this.model.f_parentname = this.$login.f.f_department_name
457
+ }
458
+ if (this.data.operate_date) {
459
+ this.model.f_operate_date = this.data.operate_date
460
+ } else {
461
+ this.model.f_operate_date = new Date().Format('yyyy-MM-dd')
462
+ }
463
+ if (this.data.operator) {
464
+ this.model.f_operator = this.data.operator
465
+ } else {
466
+ this.model.f_operator = this.$login.f.name
467
+ }
468
+ },
469
+ // 是否禁用按钮
470
+ disableButton () {
471
+ let fields = this.data.fields
472
+
473
+ let flag = false
474
+ for (const item of fields) {
475
+ if (item.type !== 'checkbox' && item.required && !item.value) {
476
+ if (item.value === 0) {
477
+ flag = false
478
+ } else {
479
+ flag = true
480
+ }
481
+ }
482
+ // 任何选择框只要是否都不能提交
483
+ if (item.type === 'select' && item.value === '否' && item.disabledButton) {
477
484
  flag = true
478
485
  }
479
486
  }
480
- // 任何选择框只要是否都不能提交
481
- if (item.type === 'select' && item.value === '否' && item.disabledButton) {
482
- flag = true
483
- }
484
- }
485
487
 
486
- let count = 0
487
- for (const item of fields) {
488
- if (item.type !== 'checkbox' && item.required) {
489
- count++
488
+ let count = 0
489
+ for (const item of fields) {
490
+ if (item.type !== 'checkbox' && item.required) {
491
+ count++
492
+ }
493
+ }
494
+ if (count === 0) {
495
+ flag = false
490
496
  }
491
- }
492
- if (count === 0) {
493
- flag = false
494
- }
495
497
 
496
- this.disable_button = flag
497
- },
498
- // 失去焦点触发,无论值是否发生变化
499
- onblur (index) {
500
- // 是否禁用按钮
501
- this.disableButton()
498
+ this.disable_button = flag
499
+ },
500
+ // 失去焦点触发,无论值是否发生变化
501
+ onblur (index) {
502
+ // 是否禁用按钮
503
+ this.disableButton()
502
504
 
503
- this.$dispatch('onblur', index)
504
- // 如果有错误信息提示走错误信息判断处理
505
+ this.$dispatch('onblur', index)
506
+ // 如果有错误信息提示走错误信息判断处理
505
507
 
506
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
507
- this.$dispatch('error_check', index)
508
- }
509
- },
510
- // 失去焦点且值最终发生变化触发
511
- async onchange (index) {
512
- // 是否禁用按钮
513
- this.disableButton()
508
+ if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
509
+ this.$dispatch('error_check', index)
510
+ }
511
+ },
512
+ // 失去焦点且值最终发生变化触发
513
+ async onchange (index) {
514
+ // 是否禁用按钮
515
+ this.disableButton()
514
516
 
515
- this.data.fields[index].value = this.data.fields[index].value.trim()
517
+ this.data.fields[index].value = this.data.fields[index].value.trim()
516
518
 
517
- if (this.data.fields[index].prefix && this.data.fields[index].value !== '') {
518
- this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
519
- }
519
+ if (this.data.fields[index].prefix && this.data.fields[index].value !== '') {
520
+ this.data.fields[index].value = this.data.fields[index].prefix + this.data.fields[index].value
521
+ }
520
522
 
521
- this.data[this.data.fields[index].field] = this.data.fields[index].value
523
+ this.data[this.data.fields[index].field] = this.data.fields[index].value
522
524
 
523
- await this.$dispatch('onchange', index)
525
+ await this.$dispatch('onchange', index)
524
526
 
525
- // 如果有错误信息提示走错误信息判断处理
526
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
527
- this.$dispatch('error_check', index)
528
- }
529
- },
530
- oninput (index) {
531
- // 是否禁用按钮
532
- this.disableButton()
527
+ // 如果有错误信息提示走错误信息判断处理
528
+ if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
529
+ this.$dispatch('error_check', index)
530
+ }
531
+ },
532
+ oninput (index) {
533
+ // 是否禁用按钮
534
+ this.disableButton()
533
535
 
534
- this.$dispatch('oninput', index)
536
+ this.$dispatch('oninput', index)
535
537
 
536
- // 如果有错误信息提示走错误信息判断处理
537
- if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
538
- this.$dispatch('error_check', index)
539
- }
540
- },
541
- // 模态框确认按钮
542
- confirm_modal (title) {
543
- if (title === '新增') {
544
- if (this.data.onetomany[this.onetomany_index].addEvent === 'default' || !this.data.onetomany[this.onetomany_index].addEvent) {
545
- this.$dispatch('onetomanyadd', this.onetomany_index)
546
- } else {
547
- this.$dispatch(this.data.onetomany[this.onetomany_index].addEvent, this.onetomany_index)
538
+ // 如果有错误信息提示走错误信息判断处理
539
+ if (this.data.fields[index].error || this.data.fields[index].type === 'datepicker') {
540
+ this.$dispatch('error_check', index)
548
541
  }
549
- } else {
550
- if (this.data.onetomany[this.onetomany_index].updateEvent === 'default' || !this.data.onetomany[this.onetomany_index].updateEvent) {
551
- this.$dispatch('onetomanyupdate', this.onetomany_index, this.update_onetomany_index)
542
+ },
543
+ // 模态框确认按钮
544
+ confirm_modal (title) {
545
+ if (title === '新增') {
546
+ if (this.data.onetomany[this.onetomany_index].addEvent === 'default' || !this.data.onetomany[this.onetomany_index].addEvent) {
547
+ this.$dispatch('onetomanyadd', this.onetomany_index)
548
+ } else {
549
+ this.$dispatch(this.data.onetomany[this.onetomany_index].addEvent, this.onetomany_index)
550
+ }
552
551
  } else {
553
- this.$dispatch(this.data.onetomany[this.onetomany_index].updateEvent, this.onetomany_index, this.update_onetomany_index)
552
+ if (this.data.onetomany[this.onetomany_index].updateEvent === 'default' || !this.data.onetomany[this.onetomany_index].updateEvent) {
553
+ this.$dispatch('onetomanyupdate', this.onetomany_index, this.update_onetomany_index)
554
+ } else {
555
+ this.$dispatch(this.data.onetomany[this.onetomany_index].updateEvent, this.onetomany_index, this.update_onetomany_index)
556
+ }
554
557
  }
555
- }
556
558
 
557
- this.closemodal()
558
- },
559
- // 删除
560
- delete (i, j) {
561
- this.$showMessage((this.data.onetomany[i].deleteMessage === 'default' || !this.data.onetomany[i].deleteMessage) ? '您确定要删除这条记录吗?' : this.data.onetomany[i].deleteMessage, ['confirm']).then((res) => {
562
- if (res === 'confirm') {
563
- if (this.data.onetomany[i].deleteEvent === 'default' || !this.data.onetomany[i].deleteEvent) {
564
- this.$dispatch('onetomanydelete', i, j)
565
- } else {
566
- this.$dispatch(this.data.onetomany[i].deleteEvent, i, j)
559
+ this.closemodal()
560
+ },
561
+ // 删除
562
+ delete (i, j) {
563
+ this.$showMessage((this.data.onetomany[i].deleteMessage === 'default' || !this.data.onetomany[i].deleteMessage) ? '您确定要删除这条记录吗?' : this.data.onetomany[i].deleteMessage, ['confirm']).then((res) => {
564
+ if (res === 'confirm') {
565
+ if (this.data.onetomany[i].deleteEvent === 'default' || !this.data.onetomany[i].deleteEvent) {
566
+ this.$dispatch('onetomanydelete', i, j)
567
+ } else {
568
+ this.$dispatch(this.data.onetomany[i].deleteEvent, i, j)
569
+ }
570
+ }
571
+ })
572
+ },
573
+ // 修改
574
+ update (i, j) {
575
+ let onetomany = this.data.onetomany[i]
576
+ let item = this.data.onetomany[i].rows[j]
577
+ let count = 0
578
+ for (let k = 0; k < onetomany.fields.length; k++) {
579
+ // 防止初始化的时候没有value
580
+ Vue.set(this.data.onetomany[i].fields[k], 'value', item[this.data.onetomany[i].fields[k].field])
581
+
582
+ if (onetomany.fields[j].required) {
583
+ count++
567
584
  }
568
585
  }
569
- })
570
- },
571
- // 修改
572
- update (i, j) {
573
- let onetomany = this.data.onetomany[i]
574
- let item = this.data.onetomany[i].rows[j]
575
- let count = 0
576
- for (let k = 0; k < onetomany.fields.length; k++) {
577
- // 防止初始化的时候没有value
578
- Vue.set(this.data.onetomany[i].fields[k], 'value', item[this.data.onetomany[i].fields[k].field])
579
-
580
- if (onetomany.fields[j].required) {
581
- count++
586
+ if (count === 0) {
587
+ this.disable_button_onetomany = false
588
+ }
589
+ this.modeltitle = '修改'
590
+ this.modalSize = this.data.onetomany[i].modalSize
591
+ this.onetomany_index = i
592
+ this.update_onetomany_index = j
593
+
594
+ this.$dispatch('openUpdateModel',i,j)
595
+
596
+ this.show = true
597
+ },
598
+ // 添加
599
+ add (index) {
600
+ let count = 0
601
+ for (const item of this.data.onetomany[index].fields) {
602
+ if (item.type === 'datepicker' && !item.value && item.default) {
603
+ item.value = new Date().Format('yyyy-MM-dd')
604
+ }
605
+ if (item.required) {
606
+ count++
607
+ }
582
608
  }
583
- }
584
- if (count === 0) {
585
- this.disable_button_onetomany = false
586
- }
587
- this.modeltitle = '修改'
588
- this.modalSize = this.data.onetomany[i].modalSize
589
- this.onetomany_index = i
590
- this.update_onetomany_index = j
591
-
592
- this.$dispatch('openUpdateModel',i,j)
593
609
 
594
- this.show = true
595
- },
596
- // 添加
597
- add (index) {
598
- let count = 0
599
- for (const item of this.data.onetomany[index].fields) {
600
- if (item.type === 'datepicker' && !item.value && item.default) {
601
- item.value = new Date().Format('yyyy-MM-dd')
610
+ if (count === 0) {
611
+ this.disable_button_onetomany = false
602
612
  }
603
- if (item.required) {
604
- count++
613
+ this.modeltitle = '新增'
614
+ this.modalSize = this.data.onetomany[index].modalSize
615
+ this.onetomany_index = index
616
+
617
+ this.$dispatch('openAddModel',index)
618
+
619
+ this.show = true
620
+ },
621
+ // 关闭模态框
622
+ closemodal (val) {
623
+ if (val === 'but'){
624
+ this.disableButton()
625
+ this.showbutmodal = false
626
+ return
605
627
  }
606
- }
607
-
608
- if (count === 0) {
609
- this.disable_button_onetomany = false
610
- }
611
- this.modeltitle = '新增'
612
- this.modalSize = this.data.onetomany[index].modalSize
613
- this.onetomany_index = index
614
-
615
- this.$dispatch('openAddModel',index)
616
-
617
- this.show = true
618
- },
619
- // 关闭模态框
620
- closemodal (val) {
621
- if (val === 'but'){
622
- this.disableButton()
623
- this.showbutmodal = false
624
- return
625
- }
626
- for (const item of this.data.onetomany[this.onetomany_index].fields) {
627
- item.value = ''
628
- }
629
- this.show = false
630
- this.disable_button_onetomany = true
631
- this.onetomany_index = null
632
- this.update_onetomany_index = null
633
- this.modeltitle = null
634
- this.modalSize = null
635
- },
636
- // 是否禁用模态框按钮
637
- disableModalButton () {
638
- let fields = this.data.onetomany[this.onetomany_index].fields
639
-
640
- let flag = false
641
- for (const item of fields) {
642
- if (item.type !== 'checkbox' && item.required && !item.value) {
643
- if (item.value === 0) {
644
- flag = false
645
- } else {
646
- flag = true
628
+ for (const item of this.data.onetomany[this.onetomany_index].fields) {
629
+ item.value = ''
630
+ }
631
+ this.show = false
632
+ this.disable_button_onetomany = true
633
+ this.onetomany_index = null
634
+ this.update_onetomany_index = null
635
+ this.modeltitle = null
636
+ this.modalSize = null
637
+ },
638
+ // 是否禁用模态框按钮
639
+ disableModalButton () {
640
+ let fields = this.data.onetomany[this.onetomany_index].fields
641
+
642
+ let flag = false
643
+ for (const item of fields) {
644
+ if (item.type !== 'checkbox' && item.required && !item.value) {
645
+ if (item.value === 0) {
646
+ flag = false
647
+ } else {
648
+ flag = true
649
+ }
647
650
  }
648
651
  }
649
- }
650
652
 
651
- let count = 0
652
- for (const item of fields) {
653
- if (item.type !== 'checkbox' && item.required) {
654
- count++
653
+ let count = 0
654
+ for (const item of fields) {
655
+ if (item.type !== 'checkbox' && item.required) {
656
+ count++
657
+ }
655
658
  }
659
+ if (count === 0) {
660
+ flag = false
661
+ }
662
+ this.disable_button_onetomany = flag
663
+ },
664
+ // 监听模态框属性失去焦点
665
+ onchange_modal (index) {
666
+ this.disableModalButton()
667
+ this.$dispatch('onchange_modal', this.onetomany_index, index)
668
+ },
669
+ // 监听模态框属性失去焦点
670
+ onblur_modal (index) {
671
+ this.disableModalButton()
672
+ this.$dispatch('onblur_modal', this.onetomany_index, index)
673
+ },
674
+ // input输入属性值发生变化监听
675
+ oninput_modal (index) {
676
+ this.disableModalButton()
677
+ this.$dispatch('oninput_modal', this.onetomany_index, index)
656
678
  }
657
- if (count === 0) {
658
- flag = false
659
- }
660
- this.disable_button_onetomany = flag
661
- },
662
- // 监听模态框属性失去焦点
663
- onchange_modal (index) {
664
- this.disableModalButton()
665
- this.$dispatch('onchange_modal', this.onetomany_index, index)
666
679
  },
667
- // 监听模态框属性失去焦点
668
- onblur_modal (index) {
669
- this.disableModalButton()
670
- this.$dispatch('onblur_modal', this.onetomany_index, index)
671
- },
672
- // input输入属性值发生变化监听
673
- oninput_modal (index) {
674
- this.disableModalButton()
675
- this.$dispatch('oninput_modal', this.onetomany_index, index)
676
- }
677
- },
678
- events: {
680
+ events: {
679
681
 
680
- }
682
+ },
681
683
  }
682
684
  </script>
683
685
  <style>
684
- .datepicker{
685
- width: 100%!important;
686
- }
687
- .datepicker-input{
688
- background-color: #ffffff!important;
689
- width: 100%!important;
690
- }
691
- .datepicker-input:disabled{
692
- border: 1px solid #DDD!important;
693
- color: #ACA899!important;
694
- width: 100%!important;
695
- }
686
+ .datepicker{
687
+ width: 100%!important;
688
+ }
689
+ .datepicker-input{
690
+ background-color: #ffffff!important;
691
+ width: 100%!important;
692
+ }
693
+ .datepicker-input:disabled{
694
+ border: 1px solid #DDD!important;
695
+ color: #ACA899!important;
696
+ width: 100%!important;
697
+ }
696
698
  </style>
697
699
  <style scoped>
698
- th{
699
- font-size: 15px !important;
700
- text-align: center !important;
701
- background-color: #dfedfb!important;
702
- color: #666666 !important;
703
- font-family: PINGFANG-BOLD !important;
704
- font-weight: normal!important;
705
- }
706
- /*清除model中的浮动*/
707
- .clearfix:after,.clearfix:before{
708
- display: table;
709
- }
710
- .clearfix:after{
711
- clear: both;
712
- }
700
+ th{
701
+ font-size: 15px !important;
702
+ text-align: center !important;
703
+ background-color: #dfedfb!important;
704
+ color: #666666 !important;
705
+ font-family: PINGFANG-BOLD !important;
706
+ font-weight: normal!important;
707
+ }
708
+ /*清除model中的浮动*/
709
+ .clearfix:after,.clearfix:before{
710
+ display: table;
711
+ }
712
+ .clearfix:after{
713
+ clear: both;
714
+ }
713
715
 
714
- .input_view{
715
- padding: 8px;
716
- background-color: #ffffff;
717
- border-radius: 2px;
718
- border: solid 1px #c7c7c7!important;
719
- color: #333333!important;
720
- font-size: 15px!important;
721
- }
716
+ .input_view{
717
+ padding: 8px;
718
+ background-color: #ffffff;
719
+ border-radius: 2px;
720
+ border: solid 1px #c7c7c7!important;
721
+ color: #333333!important;
722
+ font-size: 15px!important;
723
+ }
722
724
 
723
- .input_view[readonly]{
724
- border: 1px solid #DDD!important;
725
- /*background-color: #F5F5F5;*/
726
- color:#ACA899!important;
727
- }
728
- .input_view:disabled{
729
- border: 1px solid #DDD!important;
730
- /*background-color: #F5F5F5;*/
731
- color:#ACA899!important;
732
- }
725
+ .input_view[readonly]{
726
+ border: 1px solid #DDD!important;
727
+ /*background-color: #F5F5F5;*/
728
+ color:#ACA899!important;
729
+ }
730
+ .input_view:disabled{
731
+ border: 1px solid #DDD!important;
732
+ /*background-color: #F5F5F5;*/
733
+ color:#ACA899!important;
734
+ }
733
735
 
734
- .control-label-justify {
735
- display: inline-block;
736
- vertical-align: top;
737
- width: 110px;
738
- text-align: justify;
739
- font-family: PingFang-SC-Bold;
740
- }
736
+ .control-label-justify {
737
+ display: inline-block;
738
+ vertical-align: top;
739
+ width: 110px;
740
+ text-align: justify;
741
+ font-family: PingFang-SC-Bold;
742
+ }
741
743
 
742
- .control-label-justify::after {
743
- content: "";
744
- display: inline-block;
745
- width: 70px;
746
- overflow: hidden;
747
- height: 0;
748
- }
744
+ .control-label-justify::after {
745
+ content: "";
746
+ display: inline-block;
747
+ width: 70px;
748
+ overflow: hidden;
749
+ height: 0;
750
+ }
749
751
 
750
- input::-webkit-outer-spin-button,
751
- input::-webkit-inner-spin-button {
752
- -webkit-appearance: none;
753
- }
752
+ input::-webkit-outer-spin-button,
753
+ input::-webkit-inner-spin-button {
754
+ -webkit-appearance: none;
755
+ }
754
756
 
755
- input[type="number"] {
756
- -moz-appearance: textfield;
757
- }
757
+ input[type="number"] {
758
+ -moz-appearance: textfield;
759
+ }
758
760
 
759
761
  </style>