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
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<div class="auto clearfix">
|
|
4
|
+
<show-back-reason :selectdata="show_data"></show-back-reason>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
|
|
8
|
+
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
import Vue from 'vue'
|
|
12
|
+
import {HttpResetClass} from 'vue-client'
|
|
13
|
+
import {getNowDate,isEmpty} from '../../../../Util'
|
|
14
|
+
// Date格式化
|
|
15
|
+
Date.prototype.Format = function (fmt) {
|
|
16
|
+
var o = {
|
|
17
|
+
'M+': this.getMonth() + 1, // 月份
|
|
18
|
+
'd+': this.getDate(), // 日
|
|
19
|
+
'H+': this.getHours(), // 小时
|
|
20
|
+
'm+': this.getMinutes(), // 分
|
|
21
|
+
's+': this.getSeconds(), // 秒
|
|
22
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
23
|
+
'S': this.getMilliseconds() // 毫秒
|
|
24
|
+
}
|
|
25
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
26
|
+
for (var k in o) {
|
|
27
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
28
|
+
}
|
|
29
|
+
return fmt
|
|
30
|
+
}
|
|
31
|
+
export default {
|
|
32
|
+
title: '报建流程业务控制层',
|
|
33
|
+
props: ['selectdata'],
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
data: null, // 数据库数据,json配置文件数据的数据集合
|
|
37
|
+
json_datas: null, // Json配置文件集合
|
|
38
|
+
showview: false, // 控制显示service-view组件
|
|
39
|
+
show_data: null // 给view层显示的数据
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
created () {
|
|
43
|
+
this.refurbish()
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
// 组件初始化操作
|
|
47
|
+
refurbish() {
|
|
48
|
+
this.json_datas = this.$workflow_vue
|
|
49
|
+
let sum = 0
|
|
50
|
+
let jsonData = {}
|
|
51
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
52
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
this.json_datas.activitys.forEach(item => {
|
|
56
|
+
if (this.selectdata.defname === item.title) {
|
|
57
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
58
|
+
sum++ // 节点名一样的个数
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
if (sum === 0) {
|
|
63
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
64
|
+
return
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (sum === 1) {
|
|
68
|
+
this.data = null
|
|
69
|
+
this.data = jsonData
|
|
70
|
+
this.data = Object.assign({}, this.data, this.selectdata)
|
|
71
|
+
|
|
72
|
+
this.initializeJSON()
|
|
73
|
+
return
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
77
|
+
},
|
|
78
|
+
// json配置数据处理
|
|
79
|
+
async initializeJSON() {
|
|
80
|
+
// 有默认值,value就给默认值,没有就是null
|
|
81
|
+
this.data.fields.forEach(item => {
|
|
82
|
+
if (!item.value) {
|
|
83
|
+
if (item.value === 0) {
|
|
84
|
+
item.value = 0
|
|
85
|
+
} else {
|
|
86
|
+
item.value = null
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if ((item.default || item.default == 0) && item.type !== 'datepicker' ) {
|
|
90
|
+
item.value = item.default
|
|
91
|
+
}
|
|
92
|
+
if (this.selectdata[item.field]) {
|
|
93
|
+
// 将json字符串格式化赋值给value
|
|
94
|
+
if (String(this.selectdata[item.field]).startsWith("{")) {
|
|
95
|
+
item.value = JSON.parse(this.selectdata[item.field])
|
|
96
|
+
this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
|
|
97
|
+
} else {
|
|
98
|
+
item.value = this.selectdata[item.field]
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
if (this.selectdata[item.field] === 0) {
|
|
102
|
+
item.value = 0
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// datepicker 没有值给当时值
|
|
106
|
+
if (item.type === 'datepicker' && !item.value && item.default) {
|
|
107
|
+
|
|
108
|
+
item.value = new Date().Format(item.format || 'yyyy-MM-dd HH:mm:ss')
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
112
|
+
if (item.type === 'select') {
|
|
113
|
+
let temp = null
|
|
114
|
+
|
|
115
|
+
temp = this.$appdata.getParam(item.label)
|
|
116
|
+
|
|
117
|
+
if (temp && temp.length > 0 && item.label) {
|
|
118
|
+
item.options = temp
|
|
119
|
+
} else {
|
|
120
|
+
if (item.paramLabel) {
|
|
121
|
+
temp = this.$appdata.getParam(item.paramLabel)
|
|
122
|
+
if (temp && temp.length > 0) {
|
|
123
|
+
item.options = temp
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
// 控制组件
|
|
131
|
+
if (this.data.components) {
|
|
132
|
+
this.data.components.forEach(item => {
|
|
133
|
+
item.mark = 0
|
|
134
|
+
})
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// 初始化 fields 可对数据进行特殊处理
|
|
138
|
+
this.initializeFields()
|
|
139
|
+
|
|
140
|
+
// 初始化 buttons_fields
|
|
141
|
+
for (let i = 0; i < this.data.buttons.length; i++) {
|
|
142
|
+
// 下发按钮相关配置
|
|
143
|
+
if (this.data.buttons[i].button_name === '下发') {
|
|
144
|
+
if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
|
|
145
|
+
if (this.data.buttons[i].source){
|
|
146
|
+
let http = new HttpResetClass()
|
|
147
|
+
let res = await http.load('POST', 'rs/search', {
|
|
148
|
+
source: this.data.buttons[i].source,
|
|
149
|
+
userid: this.$login.f.id
|
|
150
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
151
|
+
|
|
152
|
+
let options = []
|
|
153
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
154
|
+
options.push(
|
|
155
|
+
{
|
|
156
|
+
"label": res.data[i].name,
|
|
157
|
+
"value": res.data[i].id
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
this.data.buttons[i].button_fields[0]['options'] = options
|
|
162
|
+
} else {
|
|
163
|
+
this.$showMessage("请配置获取人员表达式")
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
this.$showMessage("下发按钮必须满足 当且仅当一个字段")
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (this.data.buttons[i].button_fields) {
|
|
170
|
+
this.data.buttons[i].button_fields.forEach(x => {
|
|
171
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
172
|
+
if (x.type === 'select' && this.$appdata.getParam(x.label)) {
|
|
173
|
+
x.options = this.$appdata.getParam(x.label).trim()
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// onetomany 数据获取
|
|
180
|
+
if (this.data.onetomany) {
|
|
181
|
+
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
182
|
+
let res = null
|
|
183
|
+
if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
|
|
184
|
+
let http = new HttpResetClass()
|
|
185
|
+
let data = {
|
|
186
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
187
|
+
condition: `${this.data.onetomany[index].condition ? this.data.onetomany[index].condition : '1=1'} and f_process_id = '${this.selectdata.f_process_id}'`
|
|
188
|
+
}
|
|
189
|
+
res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
190
|
+
resolveMsg: null,
|
|
191
|
+
rejectMsg: 'onetomany查询失败'
|
|
192
|
+
})
|
|
193
|
+
} else {
|
|
194
|
+
res = await this[this.data.onetomany[index].queryEvent]()
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 初始化 onetomany
|
|
198
|
+
this.data.onetomany[index].rows = res.data
|
|
199
|
+
|
|
200
|
+
// 初始化onetomany中的fields
|
|
201
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
202
|
+
if (!this.data.onetomany[index].fields[j].value) {
|
|
203
|
+
if (this.data.onetomany[index].fields[j].value === 0) {
|
|
204
|
+
this.data.onetomany[index].fields[j].value = 0
|
|
205
|
+
} else {
|
|
206
|
+
this.data.onetomany[index].fields[j].value = null
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default === 0) {
|
|
210
|
+
this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
|
|
211
|
+
}
|
|
212
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
213
|
+
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
214
|
+
if (this.data.onetomany[index].fields[j].paramLabel) {
|
|
215
|
+
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].paramLabel)
|
|
216
|
+
} else {
|
|
217
|
+
this.data.onetomany[index].fields[j].options = this.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
225
|
+
let temp = JSON.parse(JSON.stringify(this.data))
|
|
226
|
+
|
|
227
|
+
this.show_data = temp
|
|
228
|
+
this.$nextTick(() => {
|
|
229
|
+
this.showview = true
|
|
230
|
+
})
|
|
231
|
+
},
|
|
232
|
+
// 初始化fields值
|
|
233
|
+
initializeFields() {
|
|
234
|
+
|
|
235
|
+
},
|
|
236
|
+
// 金额转大写
|
|
237
|
+
smalltoBIG(n) {
|
|
238
|
+
let fraction = ['角', '分'];
|
|
239
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
240
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
241
|
+
let head = n < 0 ? '欠' : '';
|
|
242
|
+
n = Math.abs(n);
|
|
243
|
+
|
|
244
|
+
let s = '';
|
|
245
|
+
|
|
246
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
247
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
248
|
+
}
|
|
249
|
+
s = s || '整';
|
|
250
|
+
n = Math.floor(n);
|
|
251
|
+
|
|
252
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
253
|
+
let p = '';
|
|
254
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
255
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
256
|
+
n = Math.floor(n / 10);
|
|
257
|
+
}
|
|
258
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
259
|
+
}
|
|
260
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
261
|
+
},
|
|
262
|
+
getLableValue(label) {
|
|
263
|
+
for (const item of this.show_data.fields) {
|
|
264
|
+
if (item.label === label && item.type !== 'number') {
|
|
265
|
+
return item.value || ''
|
|
266
|
+
}
|
|
267
|
+
if (item.label === label && item.type === 'number') {
|
|
268
|
+
return item.value || 0
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
setLabelValue(label, value) {
|
|
273
|
+
for (const item of this.show_data.fields) {
|
|
274
|
+
if (item.label === label) {
|
|
275
|
+
item.value = value
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
async buttonBefore(model) {
|
|
280
|
+
return model
|
|
281
|
+
},
|
|
282
|
+
async checkDuplicate(index) {
|
|
283
|
+
let http = new HttpResetClass()
|
|
284
|
+
let data = {
|
|
285
|
+
tablename: 't_apply',
|
|
286
|
+
condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
|
|
287
|
+
}
|
|
288
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
289
|
+
resolveMsg: null,
|
|
290
|
+
rejectMsg: `${this.show_data.fields[index].label}查询失败`
|
|
291
|
+
})
|
|
292
|
+
if (res.data.length > 0) {
|
|
293
|
+
this.show_data.fields[index].value = null
|
|
294
|
+
throw `${this.show_data.fields[index].label}已存在!!!`
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
events: {
|
|
299
|
+
async 'addPEWelding'(index) {
|
|
300
|
+
let data = {
|
|
301
|
+
f_process_id : this.show_data.f_process_id,
|
|
302
|
+
f_type: 'PE焊接',
|
|
303
|
+
f_operator: this.$login.f.name,
|
|
304
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
305
|
+
f_filiale: this.$login.f.orgs,
|
|
306
|
+
f_filialeid: this.$login.f.orgid,
|
|
307
|
+
f_orgid: this.$login.f.orgid,
|
|
308
|
+
f_orgname: this.$login.f.orgs
|
|
309
|
+
}
|
|
310
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
311
|
+
data[item.field] = item.value
|
|
312
|
+
})
|
|
313
|
+
let res = await this.$resetpost(
|
|
314
|
+
`rs/entity/t_acceptance`,
|
|
315
|
+
data
|
|
316
|
+
)
|
|
317
|
+
this.$dispatch('breakControl', this.show_data)
|
|
318
|
+
},
|
|
319
|
+
async 'addIndoorCheckpoint'(index) {
|
|
320
|
+
let data = {
|
|
321
|
+
f_process_id : this.show_data.f_process_id,
|
|
322
|
+
f_type: '户内验点',
|
|
323
|
+
f_operator: this.$login.f.name,
|
|
324
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
325
|
+
f_filiale: this.$login.f.orgs,
|
|
326
|
+
f_filialeid: this.$login.f.orgid,
|
|
327
|
+
f_orgid: this.$login.f.orgid,
|
|
328
|
+
f_orgname: this.$login.f.orgs
|
|
329
|
+
}
|
|
330
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
331
|
+
data[item.field] = item.value
|
|
332
|
+
})
|
|
333
|
+
let res = await this.$resetpost(
|
|
334
|
+
`rs/entity/t_acceptance`,
|
|
335
|
+
data
|
|
336
|
+
)
|
|
337
|
+
this.$dispatch('breakControl', this.show_data)
|
|
338
|
+
},
|
|
339
|
+
async 'addCourtyardAcceptance'(index) {
|
|
340
|
+
let data = {
|
|
341
|
+
f_process_id : this.show_data.f_process_id,
|
|
342
|
+
f_type: '庭院验收',
|
|
343
|
+
f_operator: this.$login.f.name,
|
|
344
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
345
|
+
f_filiale: this.$login.f.orgs,
|
|
346
|
+
f_filialeid: this.$login.f.orgid,
|
|
347
|
+
f_orgid: this.$login.f.orgid,
|
|
348
|
+
f_orgname: this.$login.f.orgs
|
|
349
|
+
}
|
|
350
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
351
|
+
data[item.field] = item.value
|
|
352
|
+
})
|
|
353
|
+
let res = await this.$resetpost(
|
|
354
|
+
`rs/entity/t_acceptance`,
|
|
355
|
+
data
|
|
356
|
+
)
|
|
357
|
+
this.$dispatch('breakControl', this.show_data)
|
|
358
|
+
},
|
|
359
|
+
async 'addPipeFittings'(index) {
|
|
360
|
+
|
|
361
|
+
let data = {
|
|
362
|
+
f_process_id : this.show_data.f_process_id,
|
|
363
|
+
defname: this.show_data.defname,
|
|
364
|
+
f_operator: this.$login.f.name,
|
|
365
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
366
|
+
f_filiale: this.$login.f.orgs,
|
|
367
|
+
f_filialeid: this.$login.f.orgid,
|
|
368
|
+
f_orgid: this.$login.f.orgid,
|
|
369
|
+
f_orgname: this.$login.f.orgs
|
|
370
|
+
}
|
|
371
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
372
|
+
data[item.field] = item.value
|
|
373
|
+
})
|
|
374
|
+
let res = await this.$resetpost(
|
|
375
|
+
`rs/entity/t_pipe_fittings`,
|
|
376
|
+
data
|
|
377
|
+
)
|
|
378
|
+
this.$dispatch('breakControl', this.show_data)
|
|
379
|
+
},
|
|
380
|
+
'openAddModel'(index) {
|
|
381
|
+
},
|
|
382
|
+
// 获取view层button事件
|
|
383
|
+
async 'button'(model) {
|
|
384
|
+
// 修改提交数据
|
|
385
|
+
model = Object.assign({}, this.selectdata, model)
|
|
386
|
+
// 点击重置按钮就重置数据
|
|
387
|
+
if (model.button.button_name === '重置') {
|
|
388
|
+
this.$dispatch('breakControl', this.data)
|
|
389
|
+
return
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// 提交前置
|
|
393
|
+
try {
|
|
394
|
+
model = await this.buttonBefore(model)
|
|
395
|
+
} catch (e) {
|
|
396
|
+
this.$showAlert(e, 'warning', 3000)
|
|
397
|
+
return
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
let http = new HttpResetClass()
|
|
401
|
+
let requestData = {
|
|
402
|
+
tables: this.data.tables,
|
|
403
|
+
start_activity: this.$workflow_vue.start_activity,
|
|
404
|
+
model: model,
|
|
405
|
+
loginUser: this.$login.f,
|
|
406
|
+
workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
|
|
407
|
+
}
|
|
408
|
+
// 下发,提交,保存,退回通用业务后台处理logic
|
|
409
|
+
let url = 'rs/logic/ApplyProductService'
|
|
410
|
+
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
411
|
+
|
|
412
|
+
if (res.data.code == 200) {
|
|
413
|
+
this.$dispatch('search')
|
|
414
|
+
} else {
|
|
415
|
+
if (res.data.msg) {
|
|
416
|
+
this.$showMessage(res.data.msg)
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
async 'initializtionView'() {
|
|
421
|
+
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '工程前期') {
|
|
422
|
+
if (this.show_data.f_project_type === '支线') {
|
|
423
|
+
for (const item of this.show_data.fields) {
|
|
424
|
+
if (
|
|
425
|
+
item.label === '会签完毕时间'
|
|
426
|
+
) {
|
|
427
|
+
item.hidden = true
|
|
428
|
+
item.required = false
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
} else {
|
|
432
|
+
for (const item of this.show_data.fields) {
|
|
433
|
+
if (
|
|
434
|
+
item.label === '领开挖证时间'
|
|
435
|
+
) {
|
|
436
|
+
item.hidden = true
|
|
437
|
+
item.required = false
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (this.show_data.f_apply_type === '主体项目' && this.show_data.defname === '结算') {
|
|
444
|
+
if (this.show_data.f_project_type === '支线') {
|
|
445
|
+
for (const item of this.show_data.fields) {
|
|
446
|
+
if (
|
|
447
|
+
item.label === '预付款' ||
|
|
448
|
+
item.label === '预付款占比' ||
|
|
449
|
+
item.label === '预付款时间'
|
|
450
|
+
) {
|
|
451
|
+
item.hidden = true
|
|
452
|
+
item.required = false
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
// 失去焦点出触发事件
|
|
459
|
+
async 'onchange'(index) {
|
|
460
|
+
|
|
461
|
+
if (this.show_data.defname === '编制合同') {
|
|
462
|
+
if (this.show_data.fields[index].label==='室外安装费'|| this.show_data.fields[index].label==='室外甲供材'|| this.show_data.fields[index].label==='室外设备费'||this.show_data.fields[index].label==='室内安装费'|| this.show_data.fields[index].label==='室内甲供材'|| this.show_data.fields[index].label==='室内设备费') {
|
|
463
|
+
|
|
464
|
+
let a1 = this.getLableValue('室外安装费')
|
|
465
|
+
let b1 = this.getLableValue('室外甲供材')
|
|
466
|
+
let c1=this.getLableValue('室外设备费')
|
|
467
|
+
let a2 = this.getLableValue('室内安装费')
|
|
468
|
+
let b2 = this.getLableValue('室内甲供材')
|
|
469
|
+
let c2=this.getLableValue('室内设备费')
|
|
470
|
+
if(this.show_data.f_project_type!='支线'&&this.show_data.f_project_type!='主体'){
|
|
471
|
+
this.setLabelValue('合同总造价', parseFloat(parseFloat(a1) + parseFloat(b1) + parseFloat(c1)+ parseFloat(a2)+ parseFloat(b2)+ parseFloat(c2)).toFixed(2))
|
|
472
|
+
this.setLabelValue('安装费总和',parseFloat(parseFloat(a1)+ parseFloat(a2)).toFixed(2))
|
|
473
|
+
}
|
|
474
|
+
console.log('----------------------------------------')
|
|
475
|
+
}
|
|
476
|
+
if(this.show_data.fields[index].label==='室外安装费'|| this.show_data.fields[index].label==='室外甲供材'|| this.show_data.fields[index].label==='室外设备费'){
|
|
477
|
+
let a1 = this.getLableValue('室外安装费')
|
|
478
|
+
let b1 = this.getLableValue('室外甲供材')
|
|
479
|
+
let c1=this.getLableValue('室外设备费')
|
|
480
|
+
if(this.show_data.f_project_type==='支线'||this.show_data.f_project_type==='主体') {
|
|
481
|
+
this.setLabelValue('室外税金', parseFloat(parseFloat(a1) * 0.03).toFixed(2))
|
|
482
|
+
this.setLabelValue('室外造价', parseFloat(parseFloat(a1) + parseFloat(b1) + parseFloat(c1) + parseFloat(a1) * 0.03).toFixed(2))
|
|
483
|
+
}else{
|
|
484
|
+
this.setLabelValue('室外税金', parseFloat(parseFloat(parseFloat(a1) + parseFloat(b1) + parseFloat(c1)) * 0.03).toFixed(2))
|
|
485
|
+
this.setLabelValue('室外造价', parseFloat(parseFloat(a1) + parseFloat(b1) + parseFloat(c1)).toFixed(2))
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
if(this.show_data.fields[index].label==='室内安装费'|| this.show_data.fields[index].label==='室内甲供材'|| this.show_data.fields[index].label==='室内设备费'){
|
|
489
|
+
let a2 = this.getLableValue('室内安装费')
|
|
490
|
+
let b2 = this.getLableValue('室内甲供材')
|
|
491
|
+
let c2=this.getLableValue('室内设备费')
|
|
492
|
+
this.setLabelValue('室内税金', parseFloat(parseFloat(parseFloat(a2) + parseFloat(b2) + parseFloat(c2)) * 0.03).toFixed(2))
|
|
493
|
+
this.setLabelValue('室内造价',parseFloat(parseFloat(a2) + parseFloat(b2) + parseFloat(c2)).toFixed(2))
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
console.log('失去焦点')
|
|
499
|
+
if (
|
|
500
|
+
this.show_data.fields[index].label === '合同编号' ||
|
|
501
|
+
this.show_data.fields[index].label === '工程编号'
|
|
502
|
+
) {
|
|
503
|
+
try {
|
|
504
|
+
await this.checkDuplicate(index)
|
|
505
|
+
} catch (e) {
|
|
506
|
+
this.$showAlert(e, 'warning', 3000)
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// 号码检测
|
|
511
|
+
if (this.show_data.fields[index].label === '电话号码') {
|
|
512
|
+
let phone = this.show_data.fields[index].value
|
|
513
|
+
// 电话号码效验
|
|
514
|
+
if (!(/^1[3456789]\d{9}$/.test(phone))) {
|
|
515
|
+
this.show_data.fields[index].value = ""
|
|
516
|
+
this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
//时间提醒
|
|
520
|
+
// if (this.show_data.fields[index].label.includes("时间") || this.show_data.fields[index].type === 'datepicker') {
|
|
521
|
+
// let setTime = this.show_data.fields[index].value
|
|
522
|
+
// let nowTime = new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
523
|
+
// if (nowTime >= setTime) {
|
|
524
|
+
// this.$showMessage("请注意,当前节点时间/工期已过期!")
|
|
525
|
+
// }
|
|
526
|
+
// }
|
|
527
|
+
},
|
|
528
|
+
// input值发生变化
|
|
529
|
+
async 'oninput'(index) {
|
|
530
|
+
|
|
531
|
+
},
|
|
532
|
+
// 错误事件
|
|
533
|
+
error_check(index) {
|
|
534
|
+
// 时间格式检测
|
|
535
|
+
if (this.show_data.fields[index].type === 'datepicker' && !isEmpty(this.show_data.fields[index].value)) {
|
|
536
|
+
|
|
537
|
+
let dateReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/
|
|
538
|
+
let timeReg = /^(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
539
|
+
let datetimeReg = /^[1-9]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\s+(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d$/
|
|
540
|
+
if (this.show_data.fields[index].format) {
|
|
541
|
+
if (this.show_data.fields[index].format === 'yyyy-MM-dd') {
|
|
542
|
+
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
543
|
+
this.show_data.fields[index].value = ''
|
|
544
|
+
this.$showAlert(this.show_data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
if (this.show_data.fields[index].format === 'HH:mm:ss') {
|
|
548
|
+
if (!timeReg.test(this.show_data.fields[index].value)) {
|
|
549
|
+
this.show_data.fields[index].value = ''
|
|
550
|
+
this.$showAlert(this.show_data.fields[index].label + '格式错误如:00:00:00', 'warning', 2000)
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
if (this.show_data.fields[index].format === 'yyyy-MM-dd HH:mm:ss') {
|
|
554
|
+
if (!datetimeReg.test(this.show_data.fields[index].value)) {
|
|
555
|
+
this.show_data.fields[index].value = ''
|
|
556
|
+
this.$showAlert(this.show_data.fields[index].label + '格式错误如:2021-01-01 00:00:00', 'warning', 2000)
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
} else {
|
|
560
|
+
if (!dateReg.test(this.show_data.fields[index].value)) {
|
|
561
|
+
this.show_data.fields[index].value = ''
|
|
562
|
+
this.$showAlert(this.show_data.fields[index].label + '格式错误如:2021-01-01', 'warning', 2000)
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
// onetomany模态框默认监听监听事件
|
|
568
|
+
async 'onetomanydelete'(i, j) {
|
|
569
|
+
console.log('默认删除')
|
|
570
|
+
let http = new HttpResetClass()
|
|
571
|
+
let data = {
|
|
572
|
+
table: this.show_data.onetomany[i].tables[0],
|
|
573
|
+
row: this.show_data.onetomany[i].rows[j]
|
|
574
|
+
}
|
|
575
|
+
let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
|
|
576
|
+
resolveMsg: null,
|
|
577
|
+
rejectMsg: '删除失败'
|
|
578
|
+
})
|
|
579
|
+
|
|
580
|
+
if (res.data <= 0){
|
|
581
|
+
this.$showMessage('删除失败')
|
|
582
|
+
return
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
this.$dispatch('breakControl', this.show_data)
|
|
586
|
+
},
|
|
587
|
+
async 'onetomanyadd'(index) {
|
|
588
|
+
|
|
589
|
+
let data = {
|
|
590
|
+
f_process_id : this.show_data.f_process_id,
|
|
591
|
+
f_operator: this.$login.f.name,
|
|
592
|
+
f_operation_date: new Date().Format('yyyy-MM-dd'),
|
|
593
|
+
f_filiale: this.$login.f.orgs,
|
|
594
|
+
f_filialeid: this.$login.f.orgid,
|
|
595
|
+
f_orgid: this.$login.f.orgid,
|
|
596
|
+
f_orgname: this.$login.f.orgs
|
|
597
|
+
}
|
|
598
|
+
this.show_data.onetomany[index].fields.forEach(item => {
|
|
599
|
+
data[item.field] = item.value
|
|
600
|
+
})
|
|
601
|
+
let res = await this.$resetpost(
|
|
602
|
+
`rs/entity/${this.show_data.onetomany[index].tables[0]}`,
|
|
603
|
+
data
|
|
604
|
+
)
|
|
605
|
+
this.$dispatch('breakControl', this.show_data)
|
|
606
|
+
},
|
|
607
|
+
async 'onetomanyupdate'(i, j) {
|
|
608
|
+
let onetomany = this.show_data.onetomany[i]
|
|
609
|
+
let data = onetomany.rows[j]
|
|
610
|
+
|
|
611
|
+
onetomany.fields.forEach(item => {
|
|
612
|
+
data[item.field] = item.value
|
|
613
|
+
})
|
|
614
|
+
let res = await this.$resetpost(
|
|
615
|
+
`rs/entity/${this.show_data.onetomany[i].tables[0]}`,
|
|
616
|
+
data
|
|
617
|
+
)
|
|
618
|
+
|
|
619
|
+
this.$dispatch('breakControl', this.show_data)
|
|
620
|
+
},
|
|
621
|
+
// onetomany模态框监听事件
|
|
622
|
+
async 'onchange_modal'(index, i) {
|
|
623
|
+
},
|
|
624
|
+
async 'oninput_modal'(index, i) {
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
watch: {
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
</script>
|
|
631
|
+
<style scoped>
|
|
632
|
+
/*清除model中的浮动*/
|
|
633
|
+
.clearfix:after,.clearfix:before{
|
|
634
|
+
display: table;
|
|
635
|
+
}
|
|
636
|
+
.clearfix:after{
|
|
637
|
+
clear: both;
|
|
638
|
+
}
|
|
639
|
+
</style>
|