feat(wms): 为BasePage组件添加hideType属性
在多个coil相关视图和基础面板中添加hideType属性,用于控制MaterialSelect组件的类型显示 修复StatisticGroup组件中listMaterialCoil的dataType参数错误
This commit is contained in:
@@ -120,7 +120,7 @@ export default {
|
||||
Promise.all([
|
||||
listProduct({ pageSise: 1, pageNum: 1 }),
|
||||
listRawMaterial({ pageSise: 1, pageNum: 1 }),
|
||||
listMaterialCoil({ pageSise: 1, pageNum: 1, dateType: '1' }),
|
||||
listMaterialCoil({ pageSise: 1, pageNum: 1, dataType: 1 }),
|
||||
listEquipmentManagement({ pageSise: 1, pageNum: 1, status: 'in_service' }),
|
||||
listOrder({ pageSise: 1, pageNum: 1 }),
|
||||
listCustomer({ pageSise: 1, pageNum: 1 }),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" />
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideType="hideType" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -14,9 +14,9 @@ export default {
|
||||
qrcode: true,
|
||||
querys: {
|
||||
dataType: 0,
|
||||
itemType: 'raw_material'
|
||||
},
|
||||
labelType: '2'
|
||||
labelType: '2',
|
||||
hideType: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" />
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideType="hideType" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -16,7 +16,8 @@ export default {
|
||||
dataType: 1,
|
||||
itemType: 'raw_material'
|
||||
},
|
||||
labelType: '2'
|
||||
labelType: '2',
|
||||
hideType: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<MaterialSelect :hideType="true" :itemId.sync="queryParams.itemIds" :itemType.sync="queryParams.itemType" :multiple="true"/>
|
||||
<MaterialSelect :hideType="hideType" :itemId.sync="queryParams.itemIds" :itemType.sync="queryParams.itemType" :multiple="true"/>
|
||||
|
||||
<el-form-item label="班组" prop="team">
|
||||
<el-input v-model="queryParams.team" placeholder="请输入班组" clearable
|
||||
@@ -237,6 +237,10 @@ export default {
|
||||
showStatus: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
hideType: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :showStatus="showStatus" />
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :showStatus="showStatus" :hideType="hideType" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -14,10 +14,11 @@ export default {
|
||||
qrcode: false,
|
||||
querys: {
|
||||
itemType: 'product',
|
||||
// dataType: 0
|
||||
dataType: 1
|
||||
},
|
||||
labelType: '3',
|
||||
showStatus: true,
|
||||
hideType: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideWarehouseQuery="hideWarehouseQuery" />
|
||||
<BasePage :qrcode="qrcode" :querys="querys" :labelType="labelType" :hideWarehouseQuery="hideWarehouseQuery" :hideType="hideType" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -18,7 +18,8 @@ export default {
|
||||
warehouseId: 111,
|
||||
},
|
||||
hideWarehouseQuery: true,
|
||||
labelType: '3'
|
||||
labelType: '3',
|
||||
hideType: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user