修改仓库UI测试bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-11-03 16:20:19
|
||||
* @LastEditTime: 2023-11-23 16:09:04
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -11,7 +11,10 @@
|
||||
:page="listQuery.pageNo"
|
||||
:limit="listQuery.pageSize"
|
||||
:height="300"
|
||||
:table-data="tableData" />
|
||||
:table-data="tableData"
|
||||
v-if="tableData.length" />
|
||||
<!-- 没有数据 -->
|
||||
<div class="no-data-bg" v-else></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -22,37 +25,31 @@ const tableProps = [
|
||||
{
|
||||
prop: 'name',
|
||||
label: '物品名称',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: 'code',
|
||||
label: '物品编码',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: 'spec',
|
||||
label: '物品规格',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: 'batchCode',
|
||||
label: '物品批次',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: 'num',
|
||||
label: '数量',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
prop: 'allowTime',
|
||||
label: '允许留存时长(天)',
|
||||
align: 'center',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
prop: 'remark',
|
||||
label: '备注',
|
||||
align: 'center',
|
||||
},
|
||||
];
|
||||
export default {
|
||||
|
||||
@@ -92,7 +92,7 @@ const tableProps = [
|
||||
prop: 'createTime',
|
||||
label: '操作时间',
|
||||
filter: parseTime,
|
||||
minWidth: 150,
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
prop: 'creator',
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi(`out-material:warehouse-location-his:query`)
|
||||
? {
|
||||
type: 'info',
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
}
|
||||
: undefined,
|
||||
@@ -159,7 +159,7 @@ export default {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
btnName: '搜索',
|
||||
btnName: '查询',
|
||||
name: 'search',
|
||||
color: 'primary',
|
||||
},
|
||||
@@ -205,7 +205,7 @@ export default {
|
||||
}
|
||||
},
|
||||
otherMethods(val) {
|
||||
if (val.type === 'info') {
|
||||
if (val.type === 'detail') {
|
||||
this.addOrUpdateVisible = true;
|
||||
this.addOrEditTitle = val.data.name + ' -产品信息';
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user