|
@@ -8,7 +8,7 @@
|
|
|
class="btn btn-success"
|
|
class="btn btn-success"
|
|
|
@click="getAssetInstance(false)"
|
|
@click="getAssetInstance(false)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.query") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.query') }}
|
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
<!-- <button type="button" class="btn btn-info" @click="generateAssetInventoryLine">
|
|
<!-- <button type="button" class="btn btn-info" @click="generateAssetInventoryLine">
|
|
@@ -22,17 +22,19 @@
|
|
|
查看盘点清单(已选择:{{ assetInstancesTempory.length }})
|
|
查看盘点清单(已选择:{{ assetInstancesTempory.length }})
|
|
|
</button>
|
|
</button>
|
|
|
<button type="button" class="btn btn-danger" @click="clearFilter">
|
|
<button type="button" class="btn btn-danger" @click="clearFilter">
|
|
|
- {{ $t("lang.AssetInventorySearch.empty") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.empty') }}
|
|
|
</button>
|
|
</button>
|
|
|
- <a-button style="height: 33.5px" type="primary" @click="downloadFile">下载</a-button>
|
|
|
|
|
- <a-upload
|
|
|
|
|
- v-model:file-list="fileList"
|
|
|
|
|
- :show-upload-list="false"
|
|
|
|
|
- :before-upload="beforeUpload"
|
|
|
|
|
- @change="uploadFileChange"
|
|
|
|
|
- >
|
|
|
|
|
- <a-button type="dashed" style="height: 33.5px"> 上传 </a-button>
|
|
|
|
|
- </a-upload>
|
|
|
|
|
|
|
+ <!-- <a-button style="height: 33.5px" type="primary" @click="downloadFile">-->
|
|
|
|
|
+ <!-- 下载-->
|
|
|
|
|
+ <!-- </a-button>-->
|
|
|
|
|
+ <!-- <a-upload-->
|
|
|
|
|
+ <!-- v-model:file-list="fileList"-->
|
|
|
|
|
+ <!-- :show-upload-list="false"-->
|
|
|
|
|
+ <!-- :before-upload="beforeUpload"-->
|
|
|
|
|
+ <!-- @change="uploadFileChange"-->
|
|
|
|
|
+ <!-- >-->
|
|
|
|
|
+ <!-- <a-button type="dashed" style="height: 33.5px"> 上传</a-button>-->
|
|
|
|
|
+ <!-- </a-upload>-->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="grid-item-row2-column1">
|
|
<!-- <div class="grid-item-row2-column1">
|
|
@@ -46,11 +48,31 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
|
|
|
|
|
- <div class="grid-item-row1-column2" style="margin-left: 100px">
|
|
|
|
|
|
|
+ <div class="grid-item-row1-column2">
|
|
|
<a-form-item label="盘点单名称">
|
|
<a-form-item label="盘点单名称">
|
|
|
- <a-input v-model:value="inventorySheetName" size="default" />
|
|
|
|
|
|
|
+ <a-input v-model:value="inventorySheetName" size="default" style="width: 70%" />
|
|
|
|
|
+ <a-button type="primary" style="height: 33.5px; margin-left: 30px" @click="showModal">上传</a-button>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <a-modal
|
|
|
|
|
+ v-model:visible="visible" title="上传盘点资产数据" ok-text="确认" cancel-text="取消"
|
|
|
|
|
+ @ok="handleOk"
|
|
|
|
|
+ >
|
|
|
|
|
+ <p>1、请点击【下载】按钮,下载所有的资产数据。</p>
|
|
|
|
|
+ <a-button style="height: 33.5px" type="primary" @click="downloadFile">
|
|
|
|
|
+ 下载
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ <p>2、使用Excel打开下载的数据,删除不要盘点的数据,保存Excel。</p>
|
|
|
|
|
+ <p>3、点击上传按钮,上传数据。</p>
|
|
|
|
|
+ <a-upload
|
|
|
|
|
+ v-model:file-list="fileList"
|
|
|
|
|
+ :show-upload-list="false"
|
|
|
|
|
+ :before-upload="beforeUpload"
|
|
|
|
|
+ @change="uploadFileChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-button type="primary" style="height: 33.5px"> 上传</a-button>
|
|
|
|
|
+ </a-upload>
|
|
|
|
|
+ </a-modal>
|
|
|
<div class="grid-item-row3-column1">
|
|
<div class="grid-item-row3-column1">
|
|
|
<div>
|
|
<div>
|
|
|
<div class="panel panel-default m-panel">
|
|
<div class="panel panel-default m-panel">
|
|
@@ -58,7 +80,7 @@
|
|
|
class="panel-heading"
|
|
class="panel-heading"
|
|
|
@click="type == 1 ? (type = 0) : (type = 1)"
|
|
@click="type == 1 ? (type = 0) : (type = 1)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.ownerDepartment") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.ownerDepartment') }}
|
|
|
</div>
|
|
</div>
|
|
|
<div v-show="type == 1" class="panel-body">
|
|
<div v-show="type == 1" class="panel-body">
|
|
|
<ClientOrganizationTree
|
|
<ClientOrganizationTree
|
|
@@ -74,7 +96,7 @@
|
|
|
class="panel-heading"
|
|
class="panel-heading"
|
|
|
@click="type == 3 ? (type = 0) : (type = 3)"
|
|
@click="type == 3 ? (type = 0) : (type = 3)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.useDepartment") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.useDepartment') }}
|
|
|
</div>
|
|
</div>
|
|
|
<div v-show="type == 3" class="panel-body">
|
|
<div v-show="type == 3" class="panel-body">
|
|
|
<ClientOrganizationTree
|
|
<ClientOrganizationTree
|
|
@@ -90,7 +112,7 @@
|
|
|
class="panel-heading"
|
|
class="panel-heading"
|
|
|
@click="type == 2 ? (type = 0) : (type = 2)"
|
|
@click="type == 2 ? (type = 0) : (type = 2)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.category") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.category') }}
|
|
|
</div>
|
|
</div>
|
|
|
<div v-show="type == 2" class="panel-body">
|
|
<div v-show="type == 2" class="panel-body">
|
|
|
<div>
|
|
<div>
|
|
@@ -108,7 +130,7 @@
|
|
|
class="panel-heading"
|
|
class="panel-heading"
|
|
|
@click="type == 4 ? (type = 0) : (type = 4)"
|
|
@click="type == 4 ? (type = 0) : (type = 4)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.project") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.project') }}
|
|
|
</div>
|
|
</div>
|
|
|
<div v-show="type == 4" class="panel-body">
|
|
<div v-show="type == 4" class="panel-body">
|
|
|
<div>
|
|
<div>
|
|
@@ -226,8 +248,8 @@
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<!-- <th style="width: 100px">
|
|
<!-- <th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.serialNumber") }}
|
|
|
|
|
- </th>-->
|
|
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.serialNumber") }}
|
|
|
|
|
+ </th>-->
|
|
|
<th style="width: 50px">
|
|
<th style="width: 50px">
|
|
|
<input
|
|
<input
|
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
@@ -237,73 +259,73 @@
|
|
|
/>
|
|
/>
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.ownerClient") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.ownerClient') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.ownerDepartment") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.ownerDepartment') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.useClient") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.useClient') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.useDepartment") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.useDepartment') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetName") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetName') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetNumber") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetNumber') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.cardNumber") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.cardNumber') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.type") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.type') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetClassification") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetClassification') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.subordinateToTheProject") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.subordinateToTheProject') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 90px">
|
|
<th style="width: 90px">
|
|
|
- {{ $t("lang.AssetInventorySearch.originalValue") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.originalValue') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.placeOfPlacement") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.placeOfPlacement') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.placementLocation") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.placementLocation') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.unitOfMeasurement") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.unitOfMeasurement') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.user") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.user') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.custodianName") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.custodianName') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.depositoryUserName") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.depositoryUserName') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.usageStatus") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.usageStatus') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 100px">
|
|
<th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.userInput") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.userInput') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.licensePlate") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.licensePlate') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.selfNumbering") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.selfNumbering') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.startUseDate") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.startUseDate') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 130px">
|
|
<th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.remarks") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.remarks') }}
|
|
|
</th>
|
|
</th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
@@ -314,20 +336,21 @@
|
|
|
@dblclick="openCurdWindow(assetInstance)"
|
|
@dblclick="openCurdWindow(assetInstance)"
|
|
|
>
|
|
>
|
|
|
<!-- <td>
|
|
<!-- <td>
|
|
|
- {{
|
|
|
|
|
- index +
|
|
|
|
|
- 1 +
|
|
|
|
|
- (_self.pagination.current_page - 1) *
|
|
|
|
|
- _self.pagination.per_page
|
|
|
|
|
- }}
|
|
|
|
|
- </td>-->
|
|
|
|
|
|
|
+ {{
|
|
|
|
|
+ index +
|
|
|
|
|
+ 1 +
|
|
|
|
|
+ (_self.pagination.current_page - 1) *
|
|
|
|
|
+ _self.pagination.per_page
|
|
|
|
|
+ }}
|
|
|
|
|
+ </td>-->
|
|
|
<td>
|
|
<td>
|
|
|
<input
|
|
<input
|
|
|
id="assetInstance.id"
|
|
id="assetInstance.id"
|
|
|
- v-model="assetInstancesTempory"
|
|
|
|
|
|
|
+ v-model="assetInstance.checked"
|
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
|
type="checkbox"
|
|
type="checkbox"
|
|
|
:value="assetInstance"
|
|
:value="assetInstance"
|
|
|
|
|
+ @change="checkedChange(assetInstance)"
|
|
|
/>
|
|
/>
|
|
|
</td>
|
|
</td>
|
|
|
<td>{{ assetInstance.clientName }}</td>
|
|
<td>{{ assetInstance.clientName }}</td>
|
|
@@ -360,7 +383,7 @@
|
|
|
<div class="grid-item-row3-column2">
|
|
<div class="grid-item-row3-column2">
|
|
|
<div>
|
|
<div>
|
|
|
<p class="bg-success m-grid-footer">
|
|
<p class="bg-success m-grid-footer">
|
|
|
- {{ $t("lang.AssetInventorySearch.totalOfOriginalValue") }}:{{
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.totalOfOriginalValue') }}:{{
|
|
|
orginalValueTotal
|
|
orginalValueTotal
|
|
|
}}
|
|
}}
|
|
|
</p>
|
|
</p>
|
|
@@ -369,17 +392,19 @@
|
|
|
<div class="grid-item-row4-column2">
|
|
<div class="grid-item-row4-column2">
|
|
|
<div>
|
|
<div>
|
|
|
<div class="pull-left">
|
|
<div class="pull-left">
|
|
|
- <span>{{ $t("lang.AssetInventorySearch.the")
|
|
|
|
|
|
|
+ <span>{{
|
|
|
|
|
+ $t('lang.AssetInventorySearch.the')
|
|
|
}}{{ (pagination.current_page - 1) * pagination.per_page + 1 }}-{{
|
|
}}{{ (pagination.current_page - 1) * pagination.per_page + 1 }}-{{
|
|
|
pagination.current_page * pagination.per_page
|
|
pagination.current_page * pagination.per_page
|
|
|
- }}{{ $t("lang.AssetInventorySearch.strip") }},{{
|
|
|
|
|
- $t("lang.AssetInventorySearch.inTotal")
|
|
|
|
|
- }}{{ pagination.total
|
|
|
|
|
- }}{{ $t("lang.AssetInventorySearch.strip") }},{{
|
|
|
|
|
- $t("lang.AssetInventorySearch.eachPage")
|
|
|
|
|
|
|
+ }}{{ $t('lang.AssetInventorySearch.strip') }},{{
|
|
|
|
|
+ $t('lang.AssetInventorySearch.inTotal')
|
|
|
|
|
+ }}{{
|
|
|
|
|
+ pagination.total
|
|
|
|
|
+ }}{{ $t('lang.AssetInventorySearch.strip') }},{{
|
|
|
|
|
+ $t('lang.AssetInventorySearch.eachPage')
|
|
|
}}</span>
|
|
}}</span>
|
|
|
<PageSizeSelect @page-size-changed="pageSizeChanged" />
|
|
<PageSizeSelect @page-size-changed="pageSizeChanged" />
|
|
|
- <span>{{ $t("lang.AssetInventorySearch.strip") }}</span>
|
|
|
|
|
|
|
+ <span>{{ $t('lang.AssetInventorySearch.strip') }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="pull-right">
|
|
<div class="pull-right">
|
|
|
<VueBootstrapPagination
|
|
<VueBootstrapPagination
|
|
@@ -416,82 +441,82 @@
|
|
|
</div> -->
|
|
</div> -->
|
|
|
<Loading v-if="loading" />
|
|
<Loading v-if="loading" />
|
|
|
<Modal v-model:show="modal1" title="盘点清单" small="true">
|
|
<Modal v-model:show="modal1" title="盘点清单" small="true">
|
|
|
- <div>
|
|
|
|
|
|
|
+ <div style="height: 500px; overflow: auto">
|
|
|
<table class="fixed-table table-striped table-bordered">
|
|
<table class="fixed-table table-striped table-bordered">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<!-- <th style="width: 100px">
|
|
<!-- <th style="width: 100px">
|
|
|
- {{ $t("lang.AssetInventorySearch.serialNumber") }}
|
|
|
|
|
- </th>-->
|
|
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.serialNumber") }}
|
|
|
|
|
+ </th>-->
|
|
|
<!-- <th style="width: 50px">
|
|
<!-- <th style="width: 50px">
|
|
|
- <input autocomplete="off" type="checkbox" :checked="allChecked" @click="isAllChecked()" />
|
|
|
|
|
- </th> -->
|
|
|
|
|
|
|
+ <input autocomplete="off" type="checkbox" :checked="allChecked" @click="isAllChecked()" />
|
|
|
|
|
+ </th> -->
|
|
|
<!-- <th style="width: 130px">
|
|
<!-- <th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.ownerClient") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.ownerDepartment") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.useClient") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.useDepartment") }}
|
|
|
|
|
- </th> -->
|
|
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.ownerClient") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.ownerDepartment") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.useClient") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.useDepartment") }}
|
|
|
|
|
+ </th> -->
|
|
|
<th style="width: 60px">
|
|
<th style="width: 60px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetName") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetName') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 60px">
|
|
<th style="width: 60px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetNumber") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetNumber') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 60px">
|
|
<th style="width: 60px">
|
|
|
- {{ $t("lang.AssetInventorySearch.cardNumber") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.cardNumber') }}
|
|
|
</th>
|
|
</th>
|
|
|
<!-- <th style="width: 130px">
|
|
<!-- <th style="width: 130px">
|
|
|
- {{ $t("lang.AssetInventorySearch.type") }}
|
|
|
|
|
- </th> -->
|
|
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.type") }}
|
|
|
|
|
+ </th> -->
|
|
|
<th style="width: 60px">
|
|
<th style="width: 60px">
|
|
|
- {{ $t("lang.AssetInventorySearch.assetClassification") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.assetClassification') }}
|
|
|
</th>
|
|
</th>
|
|
|
<th style="width: 60px">
|
|
<th style="width: 60px">
|
|
|
- {{ $t("lang.AssetInventorySearch.operation") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <!-- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.subordinateToTheProject") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 90px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.originalValue") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.placeOfPlacement") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.placementLocation") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.unitOfMeasurement") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.user") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.usageStatus") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 100px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.userInput") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.licensePlate") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.selfNumbering") }}
|
|
|
|
|
- </th>
|
|
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.startUseDate") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.operation') }}
|
|
|
</th>
|
|
</th>
|
|
|
- <th style="width: 130px">
|
|
|
|
|
- {{ $t("lang.AssetInventorySearch.remarks") }}
|
|
|
|
|
- </th> -->
|
|
|
|
|
|
|
+ <!-- <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.subordinateToTheProject") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 90px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.originalValue") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.placeOfPlacement") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.placementLocation") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.unitOfMeasurement") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.user") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.usageStatus") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 100px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.userInput") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.licensePlate") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.selfNumbering") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.startUseDate") }}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ <th style="width: 130px">
|
|
|
|
|
+ {{ $t("lang.AssetInventorySearch.remarks") }}
|
|
|
|
|
+ </th> -->
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
@@ -500,20 +525,20 @@
|
|
|
:key="assetInstance.id"
|
|
:key="assetInstance.id"
|
|
|
>
|
|
>
|
|
|
<!-- <td>
|
|
<!-- <td>
|
|
|
- {{
|
|
|
|
|
- index +
|
|
|
|
|
- 1 +
|
|
|
|
|
- (_self.pagination.current_page - 1) *
|
|
|
|
|
- _self.pagination.per_page
|
|
|
|
|
- }}
|
|
|
|
|
- </td>-->
|
|
|
|
|
|
|
+ {{
|
|
|
|
|
+ index +
|
|
|
|
|
+ 1 +
|
|
|
|
|
+ (_self.pagination.current_page - 1) *
|
|
|
|
|
+ _self.pagination.per_page
|
|
|
|
|
+ }}
|
|
|
|
|
+ </td>-->
|
|
|
<!-- <td>
|
|
<!-- <td>
|
|
|
- <input autocomplete="off" id="assetInstance.id" v-model="checkedIds" type="checkbox" :value="assetInstance.id" />
|
|
|
|
|
- </td> -->
|
|
|
|
|
|
|
+ <input autocomplete="off" id="assetInstance.id" v-model="checkedIds" type="checkbox" :value="assetInstance.id" />
|
|
|
|
|
+ </td> -->
|
|
|
<!-- <td>{{ assetInstance.clientName }}</td>
|
|
<!-- <td>{{ assetInstance.clientName }}</td>
|
|
|
- <td>{{ assetInstance.organizationName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.responseClientName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.responseOrganizationName }}</td> -->
|
|
|
|
|
|
|
+ <td>{{ assetInstance.organizationName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.responseClientName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.responseOrganizationName }}</td> -->
|
|
|
<td>{{ assetInstance.name }}</td>
|
|
<td>{{ assetInstance.name }}</td>
|
|
|
<td>{{ assetInstance.assetNo }}</td>
|
|
<td>{{ assetInstance.assetNo }}</td>
|
|
|
<td>{{ assetInstance.no }}</td>
|
|
<td>{{ assetInstance.no }}</td>
|
|
@@ -525,21 +550,21 @@
|
|
|
class="btn btn-danger"
|
|
class="btn btn-danger"
|
|
|
@click="deleteCountList(assetInstance.id)"
|
|
@click="deleteCountList(assetInstance.id)"
|
|
|
>
|
|
>
|
|
|
- {{ $t("lang.AssetInventorySearch.delete") }}
|
|
|
|
|
|
|
+ {{ $t('lang.AssetInventorySearch.delete') }}
|
|
|
</button>
|
|
</button>
|
|
|
</td>
|
|
</td>
|
|
|
- <!-- <td>{{ assetInstance.projectItemName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.orginalValue }}</td>
|
|
|
|
|
- <td>{{ assetInstance.savePosition }}</td>
|
|
|
|
|
- <td>{{ assetInstance.locationName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.computationUnitName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.useUserName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.useStatusName }}</td>
|
|
|
|
|
- <td>{{ assetInstance.useUserNameInput }}</td>
|
|
|
|
|
- <td>{{ assetInstance.vehicleNo }}</td>
|
|
|
|
|
- <td>{{ assetInstance.selfNo }}</td>
|
|
|
|
|
- <td>{{ assetInstance.depreciationStartDate }}</td>
|
|
|
|
|
- <td>{{ assetInstance.description }}</td> -->
|
|
|
|
|
|
|
+ <!-- <td>{{ assetInstance.projectItemName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.orginalValue }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.savePosition }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.locationName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.computationUnitName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.useUserName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.useStatusName }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.useUserNameInput }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.vehicleNo }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.selfNo }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.depreciationStartDate }}</td>
|
|
|
|
|
+ <td>{{ assetInstance.description }}</td> -->
|
|
|
</tr>
|
|
</tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
@@ -558,11 +583,12 @@ import AssetInventoryLineResource from '../../api/asset/AssetInventoryLineResour
|
|
|
import ClientOrganizationTree from '../../widget/ClientOrganizationTree.vue';
|
|
import ClientOrganizationTree from '../../widget/ClientOrganizationTree.vue';
|
|
|
import ProjectItemTree from '../../widget/ProjectItemTree.vue';
|
|
import ProjectItemTree from '../../widget/ProjectItemTree.vue';
|
|
|
import AssetCategoryTree from '../../widget/AssetCategoryTree.vue';
|
|
import AssetCategoryTree from '../../widget/AssetCategoryTree.vue';
|
|
|
|
|
+import {Notify, Uuid} from 'pc-component-v3';
|
|
|
|
|
+import {message} from 'ant-design-vue';
|
|
|
|
|
|
|
|
-import { Notify, Uuid } from 'pc-component-v3';
|
|
|
|
|
-import { message } from 'ant-design-vue';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+
|
|
|
components: {
|
|
components: {
|
|
|
Date,
|
|
Date,
|
|
|
|
|
|
|
@@ -572,8 +598,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 定义抛出的事件名称
|
|
// 定义抛出的事件名称
|
|
|
emits: ['previous', 'next'],
|
|
emits: ['previous', 'next'],
|
|
|
|
|
+
|
|
|
data: function () {
|
|
data: function () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ visible: false, //模态框状态
|
|
|
clientOrganizations: [], // 所属部门
|
|
clientOrganizations: [], // 所属部门
|
|
|
responseClientOrganizations: [], // 使用部门
|
|
responseClientOrganizations: [], // 使用部门
|
|
|
categories: [], // 资产类别
|
|
categories: [], // 资产类别
|
|
@@ -731,7 +759,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 上传文件事件
|
|
// 上传文件事件
|
|
|
- uploadFileChange: function ({ file }) {
|
|
|
|
|
|
|
+ uploadFileChange: function ({file}) {
|
|
|
const _self = this;
|
|
const _self = this;
|
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
|
formData.append('file', file);
|
|
formData.append('file', file);
|
|
@@ -746,10 +774,10 @@ export default {
|
|
|
data: formData,
|
|
data: formData,
|
|
|
contentType: false,
|
|
contentType: false,
|
|
|
processData: false,
|
|
processData: false,
|
|
|
- success: function ({ errorCode,datas }) {
|
|
|
|
|
|
|
+ success: function ({errorCode, datas,errorMessage}) {
|
|
|
if (errorCode === 0) {
|
|
if (errorCode === 0) {
|
|
|
- if(datas){
|
|
|
|
|
- datas.forEach(item =>{
|
|
|
|
|
|
|
+ if (datas) {
|
|
|
|
|
+ datas.forEach(item => {
|
|
|
item.name = item.assetName;
|
|
item.name = item.assetName;
|
|
|
item.no = item.assetCardNo;
|
|
item.no = item.assetCardNo;
|
|
|
item.categoryName = item.assetCategory;
|
|
item.categoryName = item.assetCategory;
|
|
@@ -757,8 +785,9 @@ export default {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
message.success('上传成功,已加入至盘点清单', 5);
|
|
message.success('上传成功,已加入至盘点清单', 5);
|
|
|
|
|
+ _self.visible = false; // 关闭模态框
|
|
|
} else {
|
|
} else {
|
|
|
- message.error('上传失败');
|
|
|
|
|
|
|
+ message.error(errorMessage);
|
|
|
}
|
|
}
|
|
|
_self.loading = false;
|
|
_self.loading = false;
|
|
|
},
|
|
},
|
|
@@ -768,6 +797,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ //开启上传资产数据模态框
|
|
|
|
|
+ showModal: function () {
|
|
|
|
|
+ const _self = this;
|
|
|
|
|
+ _self.visible = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ //关闭上传资产数据模态框
|
|
|
|
|
+ handleOk: function () {
|
|
|
|
|
+ const _self = this;
|
|
|
|
|
+ _self.visible = false;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 取消默认上传
|
|
// 取消默认上传
|
|
|
beforeUpload: function () {
|
|
beforeUpload: function () {
|
|
|
return false;
|
|
return false;
|
|
@@ -827,15 +868,15 @@ export default {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
if (
|
|
if (
|
|
|
_self.inventorySheetName == null ||
|
|
_self.inventorySheetName == null ||
|
|
|
- _self.inventorySheetName == undefined ||
|
|
|
|
|
- _self.inventorySheetName == ''
|
|
|
|
|
|
|
+ _self.inventorySheetName == undefined ||
|
|
|
|
|
+ _self.inventorySheetName == ''
|
|
|
) {
|
|
) {
|
|
|
Notify.error('错误', '请填写盘点单名称', 1000);
|
|
Notify.error('错误', '请填写盘点单名称', 1000);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (
|
|
if (
|
|
|
_self.assetInstancesTempory == null ||
|
|
_self.assetInstancesTempory == null ||
|
|
|
- _self.assetInstancesTempory.length < 1
|
|
|
|
|
|
|
+ _self.assetInstancesTempory.length < 1
|
|
|
) {
|
|
) {
|
|
|
Notify.error('错误', '请至少选择一条盘点明细', 1000);
|
|
Notify.error('错误', '请至少选择一条盘点明细', 1000);
|
|
|
return;
|
|
return;
|
|
@@ -878,7 +919,7 @@ export default {
|
|
|
_self.assetInventoryOrganizationIds = data.organizationIds;
|
|
_self.assetInventoryOrganizationIds = data.organizationIds;
|
|
|
|
|
|
|
|
_self.assetInventoryResponseOrganizationIds =
|
|
_self.assetInventoryResponseOrganizationIds =
|
|
|
- data.responseOrganizationIds;
|
|
|
|
|
|
|
+ data.responseOrganizationIds;
|
|
|
|
|
|
|
|
_self.assetInventoryCategoryIds = data.categoryIds;
|
|
_self.assetInventoryCategoryIds = data.categoryIds;
|
|
|
|
|
|
|
@@ -925,8 +966,12 @@ export default {
|
|
|
item.checked = false;
|
|
item.checked = false;
|
|
|
let index = _self.checkedIds.indexOf(item.id);
|
|
let index = _self.checkedIds.indexOf(item.id);
|
|
|
_self.checkedIds.splice(index, 1);
|
|
_self.checkedIds.splice(index, 1);
|
|
|
- let index2 = _self.assetInstancesTempory.indexOf(item);
|
|
|
|
|
- _self.assetInstancesTempory.splice(index2, 1);
|
|
|
|
|
|
|
+ const data = _self.assetInstancesTempory;
|
|
|
|
|
+ data.forEach((obj, index) => {
|
|
|
|
|
+ if (obj.id == item.id) {
|
|
|
|
|
+ _self.assetInstancesTempory.splice(index, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
const checkedIds = new Set(_self.checkedIds);
|
|
const checkedIds = new Set(_self.checkedIds);
|
|
@@ -935,6 +980,28 @@ export default {
|
|
|
_self.assetInstancesTempory = Array.from(assetInstancesTempory);
|
|
_self.assetInstancesTempory = Array.from(assetInstancesTempory);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ // 单条checked改变更新清单和选择的id
|
|
|
|
|
+ checkedChange: function (data) {
|
|
|
|
|
+ var _self = this;
|
|
|
|
|
+ if (data.checked) {
|
|
|
|
|
+ _self.assetInstancesTempory.push(data);
|
|
|
|
|
+ _self.checkedIds.push(data.id);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (var i = 0; i < _self.checkedIds.length; i++) {
|
|
|
|
|
+ if (_self.checkedIds[i] == data.id) {
|
|
|
|
|
+ _self.checkedIds.splice(i, 1);
|
|
|
|
|
+ i--;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ for (var j = 0; j < _self.assetInstancesTempory.length; j++) {
|
|
|
|
|
+ if (_self.assetInstancesTempory[j].id == data.id) {
|
|
|
|
|
+ _self.assetInstancesTempory.splice(j, 1);
|
|
|
|
|
+ j--;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 选择的房间发生了改变
|
|
* 选择的房间发生了改变
|
|
|
*/
|
|
*/
|
|
@@ -967,7 +1034,7 @@ export default {
|
|
|
var projectItemIds = _self.$refs.projectItem.getSelectedIds();
|
|
var projectItemIds = _self.$refs.projectItem.getSelectedIds();
|
|
|
var organizationIds = _self.$refs.organization.getSelectedIds();
|
|
var organizationIds = _self.$refs.organization.getSelectedIds();
|
|
|
var responseOrganizationIds =
|
|
var responseOrganizationIds =
|
|
|
- _self.$refs.responseOrganization.getSelectedIds();
|
|
|
|
|
|
|
+ _self.$refs.responseOrganization.getSelectedIds();
|
|
|
var categoryIds = _self.$refs.assetCategory.getSelectedIds();
|
|
var categoryIds = _self.$refs.assetCategory.getSelectedIds();
|
|
|
|
|
|
|
|
//_self.clearPageData();
|
|
//_self.clearPageData();
|
|
@@ -991,7 +1058,7 @@ export default {
|
|
|
filter: _self.filter,
|
|
filter: _self.filter,
|
|
|
range: {
|
|
range: {
|
|
|
start:
|
|
start:
|
|
|
- (_self.pagination.current_page - 1) * _self.pagination.per_page,
|
|
|
|
|
|
|
+ (_self.pagination.current_page - 1) * _self.pagination.per_page,
|
|
|
length: _self.pagination.per_page,
|
|
length: _self.pagination.per_page,
|
|
|
},
|
|
},
|
|
|
inventoryStatus: 'RANDOM_STOCKTAKING',
|
|
inventoryStatus: 'RANDOM_STOCKTAKING',
|
|
@@ -1012,27 +1079,6 @@ export default {
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- changeAassetInstanceId: function (data) {
|
|
|
|
|
- var _self = this;
|
|
|
|
|
- if (data.checked) {
|
|
|
|
|
- _self.assetInstancesTempory.push(data);
|
|
|
|
|
- _self.checkedIds.push(data.id);
|
|
|
|
|
- } else {
|
|
|
|
|
- for (var i = 0; i < _self.checkedIds.length; i++) {
|
|
|
|
|
- if (_self.checkedIds[i] == data.id) {
|
|
|
|
|
- _self.checkedIds.splice(i, 1);
|
|
|
|
|
- i--;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- for (var j = 0; j < _self.assetInstancesTempory.length; j++) {
|
|
|
|
|
- if (_self.assetInstancesTempory[j].id == data.id) {
|
|
|
|
|
- _self.assetInstancesTempory.splice(j, 1);
|
|
|
|
|
- j--;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 重新绘制资产卡片
|
|
* 重新绘制资产卡片
|
|
|
* @author YangZhiJie 20200806
|
|
* @author YangZhiJie 20200806
|
|
@@ -1275,4 +1321,7 @@ table.fixed-table td {
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
}
|
|
|
|
|
+:deep(.ant-form-item-control-input-content){
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|