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.
- package/dist-android/static/15.js +2 -2
- package/dist-android/static/23.js +2 -2
- package/index.html +1 -1
- package/package.json +5 -5
- package/src/AndroidApp.vue +10 -9
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/android-bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/android-bootstrap/less/.csscomb.json +304 -0
- package/src/android-bootstrap/less/.csslintrc +19 -0
- package/src/android-bootstrap/less/alerts.less +73 -0
- package/src/android-bootstrap/less/badges.less +66 -0
- package/src/android-bootstrap/less/bootstrap.less +56 -0
- package/src/android-bootstrap/less/breadcrumbs.less +26 -0
- package/src/android-bootstrap/less/button-groups.less +247 -0
- package/src/android-bootstrap/less/buttons.less +173 -0
- package/src/android-bootstrap/less/carousel.less +269 -0
- package/src/android-bootstrap/less/close.less +34 -0
- package/src/android-bootstrap/less/code.less +69 -0
- package/src/android-bootstrap/less/component-animations.less +33 -0
- package/src/android-bootstrap/less/dropdowns.less +216 -0
- package/src/android-bootstrap/less/forms.less +626 -0
- package/src/android-bootstrap/less/glyphicons.less +305 -0
- package/src/android-bootstrap/less/grid.less +84 -0
- package/src/android-bootstrap/less/input-groups.less +167 -0
- package/src/android-bootstrap/less/jumbotron.less +52 -0
- package/src/android-bootstrap/less/labels.less +64 -0
- package/src/android-bootstrap/less/list-group.less +141 -0
- package/src/android-bootstrap/less/media.less +66 -0
- package/src/android-bootstrap/less/mixins/alerts.less +14 -0
- package/src/android-bootstrap/less/mixins/background-variant.less +9 -0
- package/src/android-bootstrap/less/mixins/border-radius.less +18 -0
- package/src/android-bootstrap/less/mixins/buttons.less +69 -0
- package/src/android-bootstrap/less/mixins/center-block.less +7 -0
- package/src/android-bootstrap/less/mixins/clearfix.less +22 -0
- package/src/android-bootstrap/less/mixins/forms.less +90 -0
- package/src/android-bootstrap/less/mixins/gradients.less +59 -0
- package/src/android-bootstrap/less/mixins/grid-framework.less +92 -0
- package/src/android-bootstrap/less/mixins/grid.less +122 -0
- package/src/android-bootstrap/less/mixins/hide-text.less +21 -0
- package/src/android-bootstrap/less/mixins/image.less +33 -0
- package/src/android-bootstrap/less/mixins/labels.less +12 -0
- package/src/android-bootstrap/less/mixins/list-group.less +30 -0
- package/src/android-bootstrap/less/mixins/nav-divider.less +10 -0
- package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -0
- package/src/android-bootstrap/less/mixins/opacity.less +8 -0
- package/src/android-bootstrap/less/mixins/pagination.less +24 -0
- package/src/android-bootstrap/less/mixins/panels.less +24 -0
- package/src/android-bootstrap/less/mixins/progress-bar.less +10 -0
- package/src/android-bootstrap/less/mixins/reset-filter.less +8 -0
- package/src/android-bootstrap/less/mixins/reset-text.less +18 -0
- package/src/android-bootstrap/less/mixins/resize.less +6 -0
- package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -0
- package/src/android-bootstrap/less/mixins/size.less +10 -0
- package/src/android-bootstrap/less/mixins/tab-focus.less +9 -0
- package/src/android-bootstrap/less/mixins/table-row.less +44 -0
- package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -0
- package/src/android-bootstrap/less/mixins/text-overflow.less +8 -0
- package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -0
- package/src/android-bootstrap/less/mixins.less +40 -0
- package/src/android-bootstrap/less/modals.less +151 -0
- package/src/android-bootstrap/less/navbar.less +660 -0
- package/src/android-bootstrap/less/navs.less +302 -0
- package/src/android-bootstrap/less/normalize.less +424 -0
- package/src/android-bootstrap/less/pager.less +76 -0
- package/src/android-bootstrap/less/pagination.less +89 -0
- package/src/android-bootstrap/less/panels.less +274 -0
- package/src/android-bootstrap/less/popovers.less +131 -0
- package/src/android-bootstrap/less/print.less +101 -0
- package/src/android-bootstrap/less/progress-bars.less +87 -0
- package/src/android-bootstrap/less/responsive-embed.less +35 -0
- package/src/android-bootstrap/less/responsive-utilities.less +194 -0
- package/src/android-bootstrap/less/scaffolding.less +161 -0
- package/src/android-bootstrap/less/tables.less +262 -0
- package/src/android-bootstrap/less/theme.less +291 -0
- package/src/android-bootstrap/less/thumbnails.less +36 -0
- package/src/android-bootstrap/less/tooltip.less +102 -0
- package/src/android-bootstrap/less/type.less +303 -0
- package/src/android-bootstrap/less/utilities.less +55 -0
- package/src/android-bootstrap/less/variables.less +896 -0
- package/src/android-bootstrap/less/wells.less +29 -0
- package/src/apply.js +143 -25
- package/src/applyAndroid.js +5 -3
- package/src/components/Util.js +5 -5
- package/src/components/app_apply/AppServiceView.vue +2 -2
- package/src/components/app_apply/Process/AppExplorationUser.vue +200 -310
- package/src/components/app_apply/Process/AppProgressReport.vue +84 -0
- package/src/components/app_apply/Process/AppServiceControl.vue +215 -4
- package/src/components/app_apply/ProgressReport/ProgressReportDetail.vue +64 -0
- package/src/components/app_apply/ProgressReport/ProgressReportList.vue +209 -0
- package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +12 -129
- package/src/components/image/tubiao.png +0 -0
- package/src/components/product/{ApplyCharge → Apply/ApplyCharge}/ApplyChargeList.vue +4 -8
- package/src/components/product/{ApplyCharge → Apply/ApplyCharge}/ApplyChargeSearch.vue +2 -4
- package/src/components/product/{Function → Apply/Function}/InstallFunction.vue +4 -4
- package/src/components/product/{Function → Apply/Function}/InstallInfoSelect.vue +12 -16
- package/src/components/product/{Function → Apply/Function}/Service/FunctionServiceControl.vue +0 -1
- package/src/components/product/{Function → Apply/Function}/StopApplyCrrdList.vue +0 -0
- package/src/components/product/{Function → Apply/Function}/functions/ApplyRecordCancel.vue +1 -1
- package/src/components/product/{Function → Apply/Function}/functions/StopInstall.vue +11 -25
- package/src/components/product/{Process → Apply/Process}/ExplorationSelect.vue +5 -8
- package/src/components/product/{Process → Apply/Process}/ExplorationUser.vue +3 -4
- package/src/components/product/Apply/Process/Processes/InstallationDetails.vue +478 -0
- package/src/components/product/{Process → Apply/Process}/Processes/addressAndUserinfoManagement.vue +3 -8
- package/src/components/product/{Process → Apply/Process}/Processes/chargeManagement.vue +11 -51
- package/src/components/product/{Process → Apply/Process}/Processes/supplementalAgreement.vue +1 -1
- package/src/components/product/{Process → Apply/Process}/Service/ServiceControl.vue +11 -75
- package/src/components/product/{Process → Apply/Process}/ShowBackReason.vue +0 -0
- package/src/components/product/{Supervisory → Apply/Supervisory}/Service/SupervisoryServiceControl.vue +0 -5
- package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryControl.vue +43 -22
- package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryList.vue +15 -13
- package/src/components/product/{Supervisory → Apply/Supervisory}/SupervisoryhCart.vue +1 -1
- package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContract.vue +156 -0
- package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractInformation.vue +429 -0
- package/src/components/product/Ledger/ContractManagement/OtherContract/OtherContractList.vue +267 -0
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContract.vue +138 -0
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractInformation.vue +715 -0
- package/src/components/product/Ledger/ContractManagement/PurchaseContract/PurchaseContractList.vue +304 -0
- package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContract.vue +119 -0
- package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractInformation.vue +286 -0
- package/src/components/product/Ledger/ContractManagement/RepairContract/RepairContractList.vue +258 -0
- package/src/components/product/Ledger/FacilityManagement/EmployRecord/EmployRecord.vue +24 -0
- package/src/components/product/Ledger/FacilityManagement/EmployRecord/EmployRecordList.vue +218 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityEmployRecord.vue +124 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventory.vue +307 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryInformation.vue +583 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventoryList.vue +285 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityServiceRecord.vue +113 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/addFacilityInformation.vue +406 -0
- package/src/components/product/Ledger/FacilityManagement/FacilityInventory/addoldFacilityInformation.vue +326 -0
- package/src/components/product/Ledger/FacilityManagement/ScrapRecord/ScrapRecord.vue +24 -0
- package/src/components/product/Ledger/FacilityManagement/ScrapRecord/ScrapRecordList.vue +157 -0
- package/src/components/product/Ledger/FacilityManagement/ServiceRecord/ServiceRecord.vue +24 -0
- package/src/components/product/Ledger/FacilityManagement/ServiceRecord/ServiceRecordList.vue +168 -0
- package/src/components/product/Ledger/FileDownload/FileDownload.vue +42 -0
- package/src/components/product/Ledger/Function/InstallFunction.vue +118 -0
- package/src/components/product/Ledger/Function/InstallInfoSelect.vue +299 -0
- package/src/components/product/Ledger/Function/Service/FunctionServiceControl.vue +220 -0
- package/src/components/product/Ledger/Function/functions/PauseInstall.vue +92 -0
- package/src/components/product/Ledger/ImportApply/ImportApply.vue +68 -0
- package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecord.vue +24 -0
- package/src/components/product/Ledger/MaterialManagement/DeliveryRecord/DeliveryRecordList.vue +281 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformation.vue +313 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/InventoryInformationList.vue +250 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialDeliveryRecord.vue +110 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialEarlyWarning.vue +194 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialInformation.vue +186 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutStock.vue +438 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialOutboundOrder.vue +457 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/MaterialWarehousingRecord.vue +110 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseMaterial.vue +425 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/PurchaseOrder.vue +481 -0
- package/src/components/product/Ledger/MaterialManagement/InventoryInformation/ReturnMaterial.vue +321 -0
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrder.vue +86 -0
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderInformation.vue +327 -0
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/OutboundOrderList.vue +304 -0
- package/src/components/product/Ledger/MaterialManagement/OutboundOrder/PrintMaterialBill.vue +139 -0
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PrintPurchaseOrder.vue +157 -0
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecords.vue +73 -0
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsInformation.vue +268 -0
- package/src/components/product/Ledger/MaterialManagement/PurchaseRecords/PurchaseRecordsList.vue +261 -0
- package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecord.vue +24 -0
- package/src/components/product/Ledger/MaterialManagement/WarehousingRecord/WarehousingRecordList.vue +275 -0
- package/src/components/product/Ledger/Process/ProcessBusiness.vue +155 -0
- package/src/components/product/Ledger/Process/ProcessSelect.vue +340 -0
- package/src/components/product/Ledger/Process/Processes/ExhibitionPicture.vue +27 -0
- package/src/components/product/Ledger/Process/Processes/ProgressReport.vue +236 -0
- package/src/components/product/Ledger/Process/Processes/ProjectMaterialList.vue +77 -0
- package/src/components/product/Ledger/Process/Processes/QinhuaMaterialList.vue +72 -0
- package/src/components/product/Ledger/Process/Service/ServiceControl.vue +639 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingInformation.vue +316 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingRecord.vue +67 -0
- package/src/components/product/Ledger/QinhuaMaterial/PickingRecord/PickingRecordList.vue +194 -0
- package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningInformation.vue +385 -0
- package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningRecord.vue +70 -0
- package/src/components/product/Ledger/QinhuaMaterial/SeasoningRecord/SeasoningRecordList.vue +208 -0
- package/src/components/product/Ledger/Stop/StopApply.vue +103 -0
- package/src/components/product/Ledger/Stop/StopApplyList.vue +241 -0
- package/src/components/product/Ledger/Supervisory/ProcessSupervisory.vue +163 -0
- package/src/components/product/Ledger/Supervisory/Service/RenWuDan.vue +78 -0
- package/src/components/product/Ledger/Supervisory/Service/SupervisoryServiceControl.vue +606 -0
- package/src/components/product/Ledger/Supervisory/SupervisoryCart.vue +102 -0
- package/src/components/product/Ledger/Supervisory/SupervisoryList.vue +387 -0
- package/src/components/product/ServiceView.vue +376 -374
- package/src/components/product/VueUtils/ApplyUpload.vue +1 -3
- package/src/expandcssAndroid.less +534 -0
- package/src/main.js +2 -0
- package/static/Functions.js +91 -0
- package/static/Jsons.js +784 -0
- package/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
- package/static/ManagementControl/echarts10.png +0 -0
- package/static/ManagementControl/echarts11.png +0 -0
- package/static/ManagementControl/echarts12.png +0 -0
- package/static/ManagementControl/echarts13.png +0 -0
- package/static/ManagementControl/echarts14.png +0 -0
- package/static/ManagementControl/echarts15.png +0 -0
- package/static/ManagementControl/echarts16.png +0 -0
- package/static/ManagementControl/echarts17.png +0 -0
- package/static/ManagementControl/echarts18.png +0 -0
- package/static/ManagementControl/echarts4.png +0 -0
- package/static/ManagementControl/echarts5.png +0 -0
- package/static/ManagementControl/echarts51.png +0 -0
- package/static/ManagementControl/echarts6.png +0 -0
- package/static/ManagementControl/echarts7.png +0 -0
- package/static/ManagementControl/echarts71.png +0 -0
- package/static/ManagementControl/echarts8.png +0 -0
- package/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
- package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
- package/static/class.js +97 -0
- package/static/images/lefticon//346/226/207/344/273/266/346/250/241/345/235/227.png +0 -0
- package/static/init.js +135 -0
- package/static/jcwx.jpg +0 -0
- package/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/lefticon//347/237/251/345/275/2421183.png +0 -0
- package/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/loginbg1.jpg +0 -0
- package/static/loginbg_jincheng.jpg +0 -0
- package/static/loginbgmain.jpg +0 -0
- package/static/mainicon/adddevice.png +0 -0
- package/static/mainicon/addmeter.png +0 -0
- package/static/mainicon/bank.png +0 -0
- package/static/mainicon/biaopan.png +0 -0
- package/static/mainicon/cad.jpg +0 -0
- package/static/mainicon/chaobiaoyuan.png +0 -0
- package/static/mainicon/danganguanli.png +0 -0
- package/static/mainicon/deletedevice.png +0 -0
- package/static/mainicon/excel.jpg +0 -0
- package/static/mainicon/huizong.png +0 -0
- package/static/mainicon/jibiaoguanli.png +0 -0
- package/static/mainicon/jibiaoguanli2.png +0 -0
- package/static/mainicon/jiezhang.png +0 -0
- package/static/mainicon/loginbg.jpg +0 -0
- package/static/mainicon/shouqishoufei.png +0 -0
- package/static/mainicon/treeopen.png +0 -0
- package/static/mainicon/treeout.png +0 -0
- package/static/mainicon/treeset.png +0 -0
- package/static/mainicon/word.jpg +0 -0
- package/static/mainicon/wulianwang.png +0 -0
- package/static/mainicon/yingyechaxun.png +0 -0
- package/static/mainicon/zongheyewu.png +0 -0
- package/static/newStyle/loginbg-liaoyuan.gif +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
- package/static/newStyle.7z +0 -0
- package/static/newStyle.zip +0 -0
- package/static/refresh.png +0 -0
- package/static/static.zip +0 -0
- package/static/tools.js +246 -0
- package/static/treeclose.png +0 -0
- package/static/wasm_exec.js +591 -0
- package/src/components/app_apply/Process/Processes/AppInstallationDetails.vue +0 -456
- package/src/components/product/ApplyCharge/ApplyChargeReport.vue +0 -107
- package/src/components/product/Process/Processes/InstallationDetails.vue +0 -515
- package/src/components/product/Process/Processes/printCharge.vue +0 -133
- package/src/components/product/Test.vue +0 -36
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- 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
|
-
|
|
86
|
-
|
|
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
|
-
|
|
133
|
-
|
|
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-
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
498
|
+
this.disable_button = flag
|
|
499
|
+
},
|
|
500
|
+
// 失去焦点触发,无论值是否发生变化
|
|
501
|
+
onblur (index) {
|
|
502
|
+
// 是否禁用按钮
|
|
503
|
+
this.disableButton()
|
|
502
504
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
+
this.$dispatch('onblur', index)
|
|
506
|
+
// 如果有错误信息提示走错误信息判断处理
|
|
505
507
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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
|
-
|
|
517
|
+
this.data.fields[index].value = this.data.fields[index].value.trim()
|
|
516
518
|
|
|
517
|
-
|
|
518
|
-
|
|
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
|
-
|
|
523
|
+
this.data[this.data.fields[index].field] = this.data.fields[index].value
|
|
522
524
|
|
|
523
|
-
|
|
525
|
+
await this.$dispatch('onchange', index)
|
|
524
526
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
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
|
-
|
|
536
|
+
this.$dispatch('oninput', index)
|
|
535
537
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
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
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
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
|
-
|
|
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
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
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
|
-
|
|
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
|
-
|
|
604
|
-
|
|
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
|
-
|
|
609
|
-
this.
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
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
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
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
|
-
|
|
686
|
-
}
|
|
687
|
-
.datepicker-input{
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
.datepicker-input:disabled{
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
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
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
706
|
-
/*清除model中的浮动*/
|
|
707
|
-
.clearfix:after,.clearfix:before{
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
.clearfix:after{
|
|
711
|
-
|
|
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
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
.input_view:disabled{
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
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
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
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
|
-
|
|
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
|
-
|
|
757
|
-
}
|
|
757
|
+
input[type="number"] {
|
|
758
|
+
-moz-appearance: textfield;
|
|
759
|
+
}
|
|
758
760
|
|
|
759
761
|
</style>
|