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,218 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
3
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
4
|
+
<div class="form-horizontal select-overspread container-fluid auto" partial>
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="form-group col-sm-3">
|
|
7
|
+
<label class="font_normal_body">C E A号:</label>
|
|
8
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_cea_number"
|
|
9
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="fl.f_cea_number like '%{}%'" placeholder='CEA'>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-group col-sm-3">
|
|
12
|
+
<label class="font_normal_body">使用工地:</label>
|
|
13
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_use_site"
|
|
14
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="fl.f_use_site like '%{}%'" placeholder='使用工地'>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group col-sm-3">
|
|
17
|
+
<label class="font_normal_body">使用部门:</label>
|
|
18
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_use_department"
|
|
19
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="fl.f_use_department like '%{}%'" placeholder='使用部门'>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="form-group col-sm-3 button-range">
|
|
22
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
23
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
24
|
+
<div
|
|
25
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
26
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
|
|
27
|
+
class="button_spacing"
|
|
28
|
+
style="float: right">
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
33
|
+
<div class="form-group col-sm-3">
|
|
34
|
+
<label class="font_normal_body">使 用 人:</label>
|
|
35
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_use_people"
|
|
36
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="fl.f_use_people like '%{}%'" placeholder='使用人'>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="form-group col-sm-3">
|
|
39
|
+
<label class="font_normal_body">设备编码:</label>
|
|
40
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_facility_number"
|
|
41
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f.f_facility_number like '%{}%'" placeholder='设备编码'>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-group col-sm-3">
|
|
44
|
+
<label class="font_normal_body">设备名称:</label>
|
|
45
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_facility_name"
|
|
46
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f.f_facility_name like '%{}%'" placeholder='设备名称'>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="form-group col-sm-3">
|
|
49
|
+
<label class="font_normal_body">设备型号:</label>
|
|
50
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_facility_model"
|
|
51
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f.f_facility_model like '%{}%'" placeholder='设备型号'>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-group col-sm-3">
|
|
54
|
+
<label class="font_normal_body">设备规格:</label>
|
|
55
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_facility_norm"
|
|
56
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f.f_facility_norm like '%{}%'" placeholder='设备规格'>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-group col-sm-3">
|
|
59
|
+
<label class="font_normal_body">使用状态:</label>
|
|
60
|
+
<v-select
|
|
61
|
+
placeholder='请选择'
|
|
62
|
+
condition="{}"
|
|
63
|
+
v-model="model.f_status"
|
|
64
|
+
:value.sync="model.f_status"
|
|
65
|
+
:options='$parent.$parent.statusList'
|
|
66
|
+
class="select select_list"
|
|
67
|
+
:value-single="true"
|
|
68
|
+
close-on-select ></v-select>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</criteria>
|
|
73
|
+
<data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
|
|
74
|
+
<template partial='head'>
|
|
75
|
+
<tr>
|
|
76
|
+
<th style="white-space: nowrap;">序号</th>
|
|
77
|
+
<th style="white-space: nowrap;">设备编码</th>
|
|
78
|
+
<th style="white-space: nowrap;">设备名称</th>
|
|
79
|
+
<th style="white-space: nowrap;">设备型号</th>
|
|
80
|
+
<th style="white-space: nowrap;">设备规格</th>
|
|
81
|
+
<th style="white-space: nowrap;">CEA</th>
|
|
82
|
+
<th style="white-space: nowrap;">使用工地</th>
|
|
83
|
+
<th style="white-space: nowrap;">使用部门</th>
|
|
84
|
+
<th style="white-space: nowrap;">使用人</th>
|
|
85
|
+
<th style="white-space: nowrap;">借出时间</th>
|
|
86
|
+
<th style="white-space: nowrap;">借出备注</th>
|
|
87
|
+
<th style="white-space: nowrap;">还入时间</th>
|
|
88
|
+
<th style="white-space: nowrap;">还入备注</th>
|
|
89
|
+
<th style="white-space: nowrap;">使用状态</th>
|
|
90
|
+
</tr>
|
|
91
|
+
</template>
|
|
92
|
+
<template partial='body'>
|
|
93
|
+
<tr >
|
|
94
|
+
<td style="text-align: center;">
|
|
95
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align: center;">
|
|
98
|
+
<nobr><font>{{row.f_facility_number}}</font></nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align: center;">
|
|
101
|
+
<nobr><font>{{row.f_facility_name}}</font></nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align: center;">
|
|
104
|
+
<nobr><font>{{row.f_facility_model}}</font></nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align: center;">
|
|
107
|
+
<nobr><font>{{row.f_facility_norm}}</font></nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align: center;">
|
|
110
|
+
<nobr><font>{{row.f_cea_number}}</font></nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;">
|
|
113
|
+
<nobr><font>{{row.f_use_site}}</font></nobr>
|
|
114
|
+
</td>
|
|
115
|
+
<td style="text-align: center;">
|
|
116
|
+
<nobr><font>{{row.f_use_department}}</font></nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;">
|
|
119
|
+
<nobr><font>{{row.f_use_people}}</font></nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;">
|
|
122
|
+
<nobr><font>{{row.f_lend_time}}</font></nobr>
|
|
123
|
+
</td>
|
|
124
|
+
<td style="text-align: center;">
|
|
125
|
+
<nobr><font>{{row.f_lend_remarks}}</font></nobr>
|
|
126
|
+
</td>
|
|
127
|
+
<td style="text-align: center;">
|
|
128
|
+
<nobr><font>{{row.f_return_time}}</font></nobr>
|
|
129
|
+
</td>
|
|
130
|
+
<td style="text-align: center;">
|
|
131
|
+
<nobr><font>{{row.f_return_remarks}}</font></nobr>
|
|
132
|
+
</td>
|
|
133
|
+
<td style="text-align: center;">
|
|
134
|
+
<nobr><font>{{$parent.$parent.$parent.status(row)}}</font></nobr>
|
|
135
|
+
</td>
|
|
136
|
+
</tr>
|
|
137
|
+
</template>
|
|
138
|
+
</data-grid>
|
|
139
|
+
</criteria-paged>
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<script>
|
|
143
|
+
import {PagedList} from 'vue-client'
|
|
144
|
+
import {HttpResetClass} from 'vue-client'
|
|
145
|
+
import {isEmpty} from '../../../../Util'
|
|
146
|
+
// Date格式化
|
|
147
|
+
Date.prototype.Format = function (fmt) {
|
|
148
|
+
var o = {
|
|
149
|
+
'M+': this.getMonth() + 1, // 月份
|
|
150
|
+
'd+': this.getDate(), // 日
|
|
151
|
+
'H+': this.getHours(), // 小时
|
|
152
|
+
'm+': this.getMinutes(), // 分
|
|
153
|
+
's+': this.getSeconds(), // 秒
|
|
154
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
155
|
+
'S': this.getMilliseconds() // 毫秒
|
|
156
|
+
}
|
|
157
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
158
|
+
for (var k in o) {
|
|
159
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
160
|
+
}
|
|
161
|
+
return fmt
|
|
162
|
+
}
|
|
163
|
+
export default {
|
|
164
|
+
title: '报废记录',
|
|
165
|
+
data () {
|
|
166
|
+
return {
|
|
167
|
+
model: new PagedList('rs/sql/getEmployRecord', 30, {
|
|
168
|
+
data: {
|
|
169
|
+
orgid: this.$login.f.orgid
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
criteriaShow: false,
|
|
173
|
+
statusList: [
|
|
174
|
+
{
|
|
175
|
+
'label': '全部',
|
|
176
|
+
'value': ''
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
'label': '已还入',
|
|
180
|
+
'value': 'f_return_time is not null'
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
'label': '已借出',
|
|
184
|
+
'value': 'f_return_time is null'
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
ready () {
|
|
190
|
+
// 调用查询
|
|
191
|
+
this.search()
|
|
192
|
+
},
|
|
193
|
+
methods: {
|
|
194
|
+
clear () {
|
|
195
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
196
|
+
this.$refs.cp.$refs.cri.model[key] = null
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
// 查询
|
|
200
|
+
search () {
|
|
201
|
+
this.$refs.cp.$refs.cri.search()
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
computed: {
|
|
205
|
+
status () {
|
|
206
|
+
return function (row) {
|
|
207
|
+
if (isEmpty(row.f_return_time)) {
|
|
208
|
+
return '已借出'
|
|
209
|
+
}
|
|
210
|
+
return '已还入'
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
</script>
|
|
216
|
+
|
|
217
|
+
<style scoped>
|
|
218
|
+
</style>
|
package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityEmployRecord.vue
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="margin-top: 20px">
|
|
3
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th style="white-space: nowrap;">序号</th>
|
|
7
|
+
<th style="white-space: nowrap;">CEA</th>
|
|
8
|
+
<th style="white-space: nowrap;">使用工地</th>
|
|
9
|
+
<th style="white-space: nowrap;">使用部门</th>
|
|
10
|
+
<th style="white-space: nowrap;">使用人</th>
|
|
11
|
+
<th style="white-space: nowrap;">借出时间</th>
|
|
12
|
+
<th style="white-space: nowrap;">借出备注</th>
|
|
13
|
+
<th style="white-space: nowrap;">还入时间</th>
|
|
14
|
+
<th style="white-space: nowrap;">还入备注</th>
|
|
15
|
+
<th style="white-space: nowrap;">使用状态</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</template>
|
|
18
|
+
<template partial='body'>
|
|
19
|
+
<tr >
|
|
20
|
+
<td style="text-align: center;">
|
|
21
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
22
|
+
</td>
|
|
23
|
+
<td style="text-align: center;">
|
|
24
|
+
<nobr><font>{{row.f_cea_number}}</font></nobr>
|
|
25
|
+
</td>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<nobr><font>{{row.f_use_site}}</font></nobr>
|
|
28
|
+
</td>
|
|
29
|
+
<td style="text-align: center;">
|
|
30
|
+
<nobr><font>{{row.f_use_department}}</font></nobr>
|
|
31
|
+
</td>
|
|
32
|
+
<td style="text-align: center;">
|
|
33
|
+
<nobr><font>{{row.f_use_people}}</font></nobr>
|
|
34
|
+
</td>
|
|
35
|
+
<td style="text-align: center;">
|
|
36
|
+
<nobr><font>{{row.f_lend_time}}</font></nobr>
|
|
37
|
+
</td>
|
|
38
|
+
<td style="text-align: center;">
|
|
39
|
+
<nobr><font>{{row.f_lend_remarks}}</font></nobr>
|
|
40
|
+
</td>
|
|
41
|
+
<td style="text-align: center;">
|
|
42
|
+
<nobr><font>{{row.f_return_time}}</font></nobr>
|
|
43
|
+
</td>
|
|
44
|
+
<td style="text-align: center;">
|
|
45
|
+
<nobr><font>{{row.f_return_remarks}}</font></nobr>
|
|
46
|
+
</td>
|
|
47
|
+
<td style="text-align: center;">
|
|
48
|
+
<nobr><font>{{$parent.$parent.status(row)}}</font></nobr>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</template>
|
|
52
|
+
</data-grid>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
import {PagedList} from 'vue-client'
|
|
58
|
+
import {HttpResetClass} from 'vue-client'
|
|
59
|
+
import {isEmpty} from '../../../../Util'
|
|
60
|
+
// Date格式化
|
|
61
|
+
Date.prototype.Format = function (fmt) {
|
|
62
|
+
var o = {
|
|
63
|
+
'M+': this.getMonth() + 1, // 月份
|
|
64
|
+
'd+': this.getDate(), // 日
|
|
65
|
+
'H+': this.getHours(), // 小时
|
|
66
|
+
'm+': this.getMinutes(), // 分
|
|
67
|
+
's+': this.getSeconds(), // 秒
|
|
68
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
69
|
+
'S': this.getMilliseconds() // 毫秒
|
|
70
|
+
}
|
|
71
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
72
|
+
for (var k in o) {
|
|
73
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
74
|
+
}
|
|
75
|
+
return fmt
|
|
76
|
+
}
|
|
77
|
+
export default {
|
|
78
|
+
title: '设备使用记录',
|
|
79
|
+
props: ['facility', 'type'],
|
|
80
|
+
data () {
|
|
81
|
+
return {
|
|
82
|
+
model: {
|
|
83
|
+
data: []
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
ready () {
|
|
88
|
+
// 调用查询
|
|
89
|
+
if (this.type !== 'add') {
|
|
90
|
+
this.getFacilityEmployRecord()
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
async getFacilityEmployRecord () {
|
|
95
|
+
let http = new HttpResetClass()
|
|
96
|
+
let data = {
|
|
97
|
+
data: {
|
|
98
|
+
orgid: this.$login.f.orgid
|
|
99
|
+
},
|
|
100
|
+
condition: `f.id = ${this.facility.id}`
|
|
101
|
+
}
|
|
102
|
+
let res = await http.load('POST', 'rs/sql/getEmployRecord', {data: data}, {
|
|
103
|
+
resolveMsg: null,
|
|
104
|
+
rejectMsg: null
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
this.model.data = res.data
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
computed: {
|
|
111
|
+
status () {
|
|
112
|
+
return function (row) {
|
|
113
|
+
if (isEmpty(row.f_return_time)) {
|
|
114
|
+
return '已借出'
|
|
115
|
+
}
|
|
116
|
+
return '已还入'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</script>
|
|
122
|
+
|
|
123
|
+
<style scoped>
|
|
124
|
+
</style>
|
package/src/components/product/Ledger/FacilityManagement/FacilityInventory/FacilityInventory.vue
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div :class="showData ? 'top' : 'auto'">
|
|
5
|
+
<facility-inventory-list v-ref:query :show-data="showData"></facility-inventory-list>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="showtotal" style="margin-top: 20px;height: 90%" class="">
|
|
8
|
+
<tabset v-ref:tabs :close="false">
|
|
9
|
+
<tab header='设备信息'>
|
|
10
|
+
<facility-inventory-information :facility="facility" :type="type"></facility-inventory-information>
|
|
11
|
+
</tab>
|
|
12
|
+
<tab header='使用记录'>
|
|
13
|
+
<facility-employ-record :facility="facility" :type="type"></facility-employ-record>
|
|
14
|
+
</tab>
|
|
15
|
+
<tab header='维修记录'>
|
|
16
|
+
<facility-service-record :facility="facility" :type="type"></facility-service-record>
|
|
17
|
+
</tab>
|
|
18
|
+
</tabset>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div v-if="showAdd" style="margin-top: 20px;height: 90%" >
|
|
22
|
+
<tabset v-ref:tabs :close="false">
|
|
23
|
+
<tab header='设备信息'>
|
|
24
|
+
<add-facility-information></add-facility-information>
|
|
25
|
+
</tab>
|
|
26
|
+
</tabset>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-if="showAddold" style="margin-top: 20px;height: 90%" >
|
|
29
|
+
<tabset v-ref:tabs :close="false">
|
|
30
|
+
<tab header='添加老旧设备信息'>
|
|
31
|
+
<add-oldfacility-information></add-oldfacility-information>
|
|
32
|
+
</tab>
|
|
33
|
+
</tabset>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
|
|
42
|
+
import {HttpResetClass} from 'vue-client'
|
|
43
|
+
import Vue from 'vue'
|
|
44
|
+
export default {
|
|
45
|
+
title: '设备库存',
|
|
46
|
+
data () {
|
|
47
|
+
return {
|
|
48
|
+
showData: true,
|
|
49
|
+
showtotal: false,
|
|
50
|
+
showAdd: false,
|
|
51
|
+
showAddold:false,
|
|
52
|
+
facility: {},
|
|
53
|
+
type: null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
ready () {
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
},
|
|
60
|
+
events: {
|
|
61
|
+
// 打开详情
|
|
62
|
+
'openViewFacility' (facility) {
|
|
63
|
+
this.type = 'view'
|
|
64
|
+
this.facility = facility
|
|
65
|
+
this.showData = false
|
|
66
|
+
this.showtotal = false
|
|
67
|
+
this.$refs.query.$refs.cp.pager = false
|
|
68
|
+
|
|
69
|
+
this.$nextTick(() => {
|
|
70
|
+
this.showtotal = true
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
// 报废
|
|
74
|
+
async 'scrappedFacility' (facility) {
|
|
75
|
+
let data = {
|
|
76
|
+
facility: facility,
|
|
77
|
+
user: this.$login.f
|
|
78
|
+
}
|
|
79
|
+
let res = await this.$resetpost(
|
|
80
|
+
'rs/logic/scrappedFacility',
|
|
81
|
+
{data: data}, {
|
|
82
|
+
resolveMsg: null,
|
|
83
|
+
rejectMsg: '设备报废失败!!!'
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
this.$refs.query.search()
|
|
87
|
+
},
|
|
88
|
+
// 打开报废
|
|
89
|
+
'openScrappedFacility' (facility) {
|
|
90
|
+
this.type = 'scrapped'
|
|
91
|
+
this.facility = facility
|
|
92
|
+
this.showData = false
|
|
93
|
+
this.showtotal = false
|
|
94
|
+
this.$refs.query.$refs.cp.pager = false
|
|
95
|
+
|
|
96
|
+
this.$nextTick(() => {
|
|
97
|
+
this.showtotal = true
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
// 维修反馈
|
|
101
|
+
async 'repairFeedback' (facility) {
|
|
102
|
+
let data = {
|
|
103
|
+
facility: facility,
|
|
104
|
+
user: this.$login.f
|
|
105
|
+
}
|
|
106
|
+
let res = await this.$resetpost(
|
|
107
|
+
'rs/logic/repairFeedback',
|
|
108
|
+
{data: data}, {
|
|
109
|
+
resolveMsg: null,
|
|
110
|
+
rejectMsg: '维修反馈提交失败!!!'
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
this.$refs.query.search()
|
|
114
|
+
},
|
|
115
|
+
// 打开维修反馈
|
|
116
|
+
async 'openRepairFeedback' (facility) {
|
|
117
|
+
this.type = 'service'
|
|
118
|
+
this.showData = false
|
|
119
|
+
this.showtotal = false
|
|
120
|
+
this.$refs.query.$refs.cp.pager = false
|
|
121
|
+
this.facility = facility
|
|
122
|
+
|
|
123
|
+
let data = {
|
|
124
|
+
tablename: 't_facility_service',
|
|
125
|
+
condition: `f_facility_id = ${this.facility.id} and f_complete_time is null`
|
|
126
|
+
}
|
|
127
|
+
let res = await this.$resetpost(
|
|
128
|
+
'rs/sql/singleTable',
|
|
129
|
+
{data: data}, {
|
|
130
|
+
resolveMsg: null,
|
|
131
|
+
rejectMsg: '送修记录查询失败!!!'
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
if (res.data.length <= 0) {
|
|
135
|
+
this.$showAlert('暂无维修记录!!!', 'warning', 3000)
|
|
136
|
+
return
|
|
137
|
+
}
|
|
138
|
+
Vue.set(this.facility, 'service', res.data[0])
|
|
139
|
+
|
|
140
|
+
this.$nextTick(() => {
|
|
141
|
+
this.showtotal = true
|
|
142
|
+
})
|
|
143
|
+
},
|
|
144
|
+
// 送修
|
|
145
|
+
async 'sendForRepairFacility' (facility) {
|
|
146
|
+
let data = {
|
|
147
|
+
facility: facility,
|
|
148
|
+
user: this.$login.f
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
let res = await this.$resetpost(
|
|
152
|
+
'rs/logic/sendForRepairFacility',
|
|
153
|
+
{data: data}, {
|
|
154
|
+
resolveMsg: null,
|
|
155
|
+
rejectMsg: '设备送修失败!!!'
|
|
156
|
+
})
|
|
157
|
+
|
|
158
|
+
this.$refs.query.search()
|
|
159
|
+
},
|
|
160
|
+
// 打开送修
|
|
161
|
+
'openSendForRepair' (facility) {
|
|
162
|
+
this.type = 'sendForRepair'
|
|
163
|
+
this.facility = facility
|
|
164
|
+
this.showData = false
|
|
165
|
+
this.showtotal = false
|
|
166
|
+
this.$refs.query.$refs.cp.pager = false
|
|
167
|
+
|
|
168
|
+
this.$nextTick(() => {
|
|
169
|
+
this.showtotal = true
|
|
170
|
+
})
|
|
171
|
+
},
|
|
172
|
+
// 设备还入
|
|
173
|
+
async 'returnFacility' (facility) {
|
|
174
|
+
let http = new HttpResetClass()
|
|
175
|
+
let data = {
|
|
176
|
+
facility: facility,
|
|
177
|
+
user: this.$login.f
|
|
178
|
+
}
|
|
179
|
+
let res = await this.$resetpost(
|
|
180
|
+
'rs/logic/returnFacility',
|
|
181
|
+
{data: data}, {
|
|
182
|
+
resolveMsg: null,
|
|
183
|
+
rejectMsg: '设备还入失败!!!'
|
|
184
|
+
})
|
|
185
|
+
|
|
186
|
+
this.$refs.query.search()
|
|
187
|
+
},
|
|
188
|
+
// 打开还入
|
|
189
|
+
async 'openReturnFacility' (facility) {
|
|
190
|
+
this.type = 'return'
|
|
191
|
+
this.showData = false
|
|
192
|
+
this.showtotal = false
|
|
193
|
+
this.$refs.query.$refs.cp.pager = false
|
|
194
|
+
this.facility = facility
|
|
195
|
+
|
|
196
|
+
let data = {
|
|
197
|
+
tablename: 't_facility_lend',
|
|
198
|
+
condition: `f_facility_id = ${facility.id} and f_return_time is null and f_return_remarks is null`
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
let res = await this.$resetpost(
|
|
202
|
+
`rs/sql/singleTable`,
|
|
203
|
+
{data: data},
|
|
204
|
+
{resolveMsg: null, rejectMsg: '借出记录查询失败!!!'}
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
if (res.data.length <= 0) {
|
|
208
|
+
this.$showAlert('暂无借出记录!!!', 'warning', 3000)
|
|
209
|
+
return
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
Vue.set(this.facility, 'lend', res.data[0])
|
|
213
|
+
|
|
214
|
+
this.$nextTick(() => {
|
|
215
|
+
this.showtotal = true
|
|
216
|
+
})
|
|
217
|
+
},
|
|
218
|
+
// 借出
|
|
219
|
+
async 'lendFacility' (facility) {
|
|
220
|
+
let data = {
|
|
221
|
+
facility: facility,
|
|
222
|
+
user: this.$login.f
|
|
223
|
+
}
|
|
224
|
+
let res = await this.$resetpost('rs/logic/lendFacility', {data: data}, {
|
|
225
|
+
resolveMsg: null,
|
|
226
|
+
rejectMsg: '借出设备失败!!!'
|
|
227
|
+
})
|
|
228
|
+
|
|
229
|
+
this.$refs.query.search()
|
|
230
|
+
},
|
|
231
|
+
// 打开借出
|
|
232
|
+
'openLendFacility' (facility) {
|
|
233
|
+
this.type = 'lend'
|
|
234
|
+
|
|
235
|
+
this.facility = facility
|
|
236
|
+
|
|
237
|
+
this.showData = false
|
|
238
|
+
this.$refs.query.$refs.cp.pager = false
|
|
239
|
+
|
|
240
|
+
this.showtotal = false
|
|
241
|
+
this.$nextTick(() => {
|
|
242
|
+
this.showtotal = true
|
|
243
|
+
})
|
|
244
|
+
},
|
|
245
|
+
// 添加设备
|
|
246
|
+
async 'addFacility' (data) {
|
|
247
|
+
data.user = this.$login.f
|
|
248
|
+
|
|
249
|
+
let res = await this.$resetpost('rs/logic/addFacility', {data: data}, {
|
|
250
|
+
resolveMsg: null,
|
|
251
|
+
rejectMsg: '添加设备失败!!!'
|
|
252
|
+
})
|
|
253
|
+
|
|
254
|
+
this.$refs.query.search()
|
|
255
|
+
},
|
|
256
|
+
// 添加老旧设备
|
|
257
|
+
async 'addoldFacility' (data) {
|
|
258
|
+
data.user = this.$login.f
|
|
259
|
+
|
|
260
|
+
let res = await this.$resetpost('rs/logic/addoldFacility', {data: data}, {
|
|
261
|
+
resolveMsg: null,
|
|
262
|
+
rejectMsg: '添加设备失败!!!'
|
|
263
|
+
})
|
|
264
|
+
|
|
265
|
+
this.$refs.query.search()
|
|
266
|
+
},
|
|
267
|
+
// 打开添加设备
|
|
268
|
+
async 'openAddFacility' () {
|
|
269
|
+
this.showData = false
|
|
270
|
+
this.showtotal = false
|
|
271
|
+
|
|
272
|
+
this.$refs.query.$refs.cp.pager = false
|
|
273
|
+
|
|
274
|
+
this.showAdd = false
|
|
275
|
+
this.$nextTick(() => {
|
|
276
|
+
this.showAdd = true
|
|
277
|
+
})
|
|
278
|
+
},
|
|
279
|
+
// 打开添加老旧设备
|
|
280
|
+
async 'openAddoldFacility' () {
|
|
281
|
+
this.showData = false
|
|
282
|
+
this.showtotal = false
|
|
283
|
+
|
|
284
|
+
this.$refs.query.$refs.cp.pager = false
|
|
285
|
+
|
|
286
|
+
this.showAddold = false
|
|
287
|
+
this.$nextTick(() => {
|
|
288
|
+
this.showAddold = true
|
|
289
|
+
})
|
|
290
|
+
},
|
|
291
|
+
// 查询
|
|
292
|
+
'search' () {
|
|
293
|
+
// 关闭详细
|
|
294
|
+
this.showtotal = false
|
|
295
|
+
// 显示列表数据
|
|
296
|
+
this.showData = true
|
|
297
|
+
// 显示分页
|
|
298
|
+
this.$refs.query.$refs.cp.pager = true
|
|
299
|
+
// 调用查询
|
|
300
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
</script>
|
|
305
|
+
|
|
306
|
+
<style scoped>
|
|
307
|
+
</style>
|