|
@@ -130,7 +130,13 @@
|
|
|
<el-table v-loading="loading" :data="inventoryList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="资产盘点记录编号" align="center" prop="id" />
|
|
|
- <el-table-column label="单据编号" align="center" prop="orderNumber" />
|
|
|
+ <el-table-column label="单据编号" align="center" prop="orderNumber" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip class="item" effect="dark" content="查看明细" placement="left">
|
|
|
+ <div class="clickNumber" @click="onOpenDetail(scope.row.orderNumber)">{{scope.row.orderNumber}}</div>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="任务名称" align="center" prop="name" />
|
|
|
<el-table-column label="盘点部门" align="center" prop="deptName" >
|
|
|
<!-- <template slot-scope="scope">
|
|
@@ -244,6 +250,10 @@
|
|
|
<el-dialog :visible.sync="openUserSearch">
|
|
|
<UserSearch @submit="onSelectUser" @cancel="() => {openUserSearch = false}" v-if="openUserSearch"></UserSearch>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :visible.sync="openDetail" width="900px">
|
|
|
+ <InventoryDetaile :orderNumber="inventoryNumber" v-if="openDetail"></InventoryDetaile>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -253,6 +263,7 @@ import { listInventory, getInventory, delInventory, addInventory, updateInventor
|
|
|
import { treeSelect } from "@/api/asset/location";
|
|
|
import { listDept } from "@/api/system/dept";
|
|
|
import UserSearch from '@/components/SysUserSearch/index.vue'
|
|
|
+import InventoryDetaile from '@/views/inventory/detail/index.vue'
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
export default {
|
|
@@ -260,11 +271,16 @@ export default {
|
|
|
dicts: ['inventory_result', 'asset_record_status', 'inventory_status'],
|
|
|
components : {
|
|
|
UserSearch,
|
|
|
+ InventoryDetaile,
|
|
|
Treeselect
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
openUserSearch: false,
|
|
|
+ // 是否显示明细
|
|
|
+ openDetail: false,
|
|
|
+ // 盘点单号
|
|
|
+ inventoryNumber: '',
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
@@ -331,6 +347,11 @@ export default {
|
|
|
this.getDeptTree()
|
|
|
},
|
|
|
methods: {
|
|
|
+ onOpenDetail(number) {
|
|
|
+ this.inventoryNumber = number
|
|
|
+ console.log('inventoryNumber', this.inventoryNumber)
|
|
|
+ this.openDetail = true
|
|
|
+ },
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getDeptTree() {
|
|
|
deptTreeSelect().then((response) => {
|
|
@@ -482,4 +503,12 @@ export default {
|
|
|
height: 32px;
|
|
|
}
|
|
|
}
|
|
|
+.clickNumber{
|
|
|
+ color: #409EFF;
|
|
|
+
|
|
|
+ &:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ text-decoration: underline;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|