|
|
@@ -28,32 +28,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- <div class="grid-item-3">
|
|
|
- <div class="m-row">
|
|
|
- <div class="col-md-12 col-sm-12 col-xs-12">
|
|
|
- <div class="table-header-left">
|
|
|
- <span>{{ $t("lang.AssetDetailList.the")
|
|
|
- }}{{
|
|
|
- (pagination.current_page - 1) * pagination.per_page + 1
|
|
|
- }}-{{ pagination.current_page * pagination.per_page
|
|
|
- }}{{ $t("lang.AssetDetailList.strip") }},{{
|
|
|
- $t("lang.AssetDetailList.total")
|
|
|
- }}{{ pagination.total
|
|
|
- }}{{ $t("lang.AssetDetailList.strip") }},{{
|
|
|
- $t("lang.AssetDetailList.displayOnEachPage")
|
|
|
- }}</span>
|
|
|
- <PageSizeSelect @page-size-changed="gridSizeSelect" />
|
|
|
- <span>{{ $t("lang.AssetDetailList.strip") }}</span>
|
|
|
- </div>
|
|
|
- <div class="table-header-right">
|
|
|
- <VueBootstrapPagination
|
|
|
- :pagination="pagination"
|
|
|
- :callback="checkDataChangedQueryGridData"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
|
|
|
<div class="grid-item-4">
|
|
|
<div class="panel panel-default m-panel">
|
|
|
@@ -289,8 +263,10 @@
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
|
:data-source="assets"
|
|
|
+ size="small"
|
|
|
+ :resizable="true"
|
|
|
bordered
|
|
|
- :scroll="{ y: 300 }"
|
|
|
+ :scroll="tableHeight"
|
|
|
:pagination="pagination"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -333,13 +309,13 @@ import Common from '../../common/Common.js';
|
|
|
|
|
|
import { DownloadService } from 'pc-component-v3';
|
|
|
import { UserStorageResource } from 'pc-component-v3';
|
|
|
-import { Notify, Uuid } from 'pc-component-v3';
|
|
|
+import { Notify, Uuid, Modal } from 'pc-component-v3';
|
|
|
|
|
|
import ClientOrganizationTree from '../../widget/ClientOrganizationTree.vue';
|
|
|
import ProjectItemTree from '../../widget/ProjectItemTree.vue';
|
|
|
import AssetCategoryTree from '../../widget/AssetCategoryTree.vue';
|
|
|
|
|
|
-
|
|
|
+import {ref} from 'vue';
|
|
|
|
|
|
|
|
|
|
|
|
@@ -353,7 +329,7 @@ export default {
|
|
|
|
|
|
|
|
|
Date,
|
|
|
-
|
|
|
+ Modal,
|
|
|
|
|
|
|
|
|
|
|
|
@@ -361,6 +337,15 @@ export default {
|
|
|
ClientOrganizationTree,
|
|
|
AssetCategoryTree,
|
|
|
},
|
|
|
+
|
|
|
+ setup(){
|
|
|
+ // 设置表格高度
|
|
|
+ const tableHeight = ref({ y: document.body.clientHeight - 300});
|
|
|
+ return {
|
|
|
+ tableHeight,
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
data: function () {
|
|
|
return {
|
|
|
responseClientOrganizations: [], // 所属部门
|
|
|
@@ -395,6 +380,7 @@ export default {
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
fixed: 'left',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'organizationName',
|
|
|
@@ -402,6 +388,7 @@ export default {
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
fixed: 'left',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'responseClientName',
|
|
|
@@ -409,294 +396,343 @@ export default {
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
fixed: 'left',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'responseOrganizationName',
|
|
|
title: this.$t('lang.AssetDetailList.useDepartment'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
title: this.$t('lang.AssetDetailList.assetName'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'assetNo',
|
|
|
title: this.$t('lang.AssetDetailList.assetNumber'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'cardName',
|
|
|
title: this.$t('lang.AssetDetailList.cardName'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'no',
|
|
|
title: this.$t('lang.AssetDetailList.cardNo'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'barCode',
|
|
|
title: this.$t('lang.AssetDetailList.qrCode'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'epc',
|
|
|
title: this.$t('lang.AssetDetailList.electronicCoding'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'categoryName',
|
|
|
title: this.$t('lang.AssetDetailList.assetClassification'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'type',
|
|
|
title: this.$t('lang.AssetDetailList.specificationAndType'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'quantity',
|
|
|
title: this.$t('lang.AssetDetailList.quantity'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'computationUnitName',
|
|
|
title: this.$t('lang.AssetDetailList.unitOfMeasurement'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'orginalValue',
|
|
|
title: this.$t('lang.AssetDetailList.originalValue'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'projectItemNo',
|
|
|
title: this.$t('lang.AssetDetailList.itemNo'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'projectItemName',
|
|
|
title: this.$t('lang.AssetDetailList.objectName'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'increaseMethodName',
|
|
|
title: this.$t('lang.AssetDetailList.increaseMethod'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'estimateUsedMonth',
|
|
|
title: this.$t('lang.AssetDetailList.serviceLife'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'depreciationMethodName',
|
|
|
title: this.$t('lang.AssetDetailList.methodOfDepreciation'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'depreciationStartDate',
|
|
|
title: this.$t('lang.AssetDetailList.startDate'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'depreciationMonths',
|
|
|
title: this.$t('lang.AssetDetailList.accruedMonth'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'reservedRate',
|
|
|
title: this.$t('lang.AssetDetailList.netResidualValueRate'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'netSalvage',
|
|
|
title: this.$t('lang.AssetDetailList.netResidualValue'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'totalDepreciationValue',
|
|
|
title: this.$t('lang.AssetDetailList.accumulatedDepreciation'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'monthDepreciationRate',
|
|
|
title: this.$t('lang.AssetDetailList.monthlyDepreciationRate'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'depreciationValueForCurrentMonth',
|
|
|
title: this.$t('lang.AssetDetailList.theAMountOfDepreciationIsWithdrawnThisMonth'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'description',
|
|
|
title: this.$t('lang.AssetDetailList.remarks'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'isNeedAppointment',
|
|
|
title: this.$t('lang.AssetDetailList.necessaryToMakeAnAppointment'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'isNeedMaintain',
|
|
|
title: this.$t('lang.AssetDetailList.needToMaintain'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'supplierStr',
|
|
|
title: this.$t('lang.AssetDetailList.supplier'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'manufacturer',
|
|
|
title: this.$t('lang.AssetDetailList.manufacturer'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'leaveFactoryNo',
|
|
|
title: this.$t('lang.AssetDetailList.factoryNumber'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'detailParameter',
|
|
|
title: this.$t('lang.AssetDetailList.detailedParameters'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'operationRules',
|
|
|
title: this.$t('lang.AssetDetailList.operatingProcedures'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'contractNo',
|
|
|
title: this.$t('lang.AssetDetailList.contractNo'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'billNo',
|
|
|
title: this.$t('lang.AssetDetailList.invoiceNumber'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'buyDate',
|
|
|
title: this.$t('lang.AssetDetailList.purchaseDate'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'warrantyDeadline',
|
|
|
title: this.$t('lang.AssetDetailList.warrantyDeadline'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'applyPurchaseUserName',
|
|
|
title: this.$t('lang.AssetDetailList.subscriber'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'applyOrderUserName',
|
|
|
title: this.$t('lang.AssetDetailList.purchaser'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'custodianName',
|
|
|
title: this.$t('lang.AssetDetailList.personliable'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'useUserName',
|
|
|
title: this.$t('lang.AssetDetailList.user'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'useUserNameInput',
|
|
|
title: this.$t('lang.AssetDetailList.userInput'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'locationName',
|
|
|
title: this.$t('lang.AssetDetailList.placementLocation'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'savePosition',
|
|
|
title: this.$t('lang.AssetDetailList.placeOfPlacement'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'useStatusName',
|
|
|
title: this.$t('lang.AssetDetailList.usageStatus'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'vehicleNo',
|
|
|
title: this.$t('lang.AssetDetailList.vehicleNo'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'selfNo',
|
|
|
title: this.$t('lang.AssetDetailList.selfNumbering'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'accountingSubjects',
|
|
|
title: this.$t('lang.AssetDetailList.accuntingSubject'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'hasImage',
|
|
|
title: this.$t('lang.AssetDetailList.thereArePictures'),
|
|
|
width: 200,
|
|
|
align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
},
|
|
|
],
|
|
|
// pagination: {
|
|
|
@@ -1091,19 +1127,7 @@ export default {
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
|
|
|
-.table-box {
|
|
|
- width: 100%;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.table-header-left {
|
|
|
- float: left;
|
|
|
- /* margin: 20px 0;*/
|
|
|
-}
|
|
|
|
|
|
-.table-header-right {
|
|
|
- float: right;
|
|
|
-}
|
|
|
|
|
|
.m-label {
|
|
|
font-size: 16px;
|