|
@@ -115,7 +115,7 @@
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="goWarehouseDetail(record)"
|
|
@click="goWarehouseDetail(record)"
|
|
id="inventoryQueryList-warehouseDetail-btn">出入库明细</a-button>
|
|
id="inventoryQueryList-warehouseDetail-btn">出入库明细</a-button>
|
|
- <span v-if="!$hasPermissions('B_inventoryQuery_detail')&&!$hasPermissions('B_inventoryQuery_rkDetail')">--</span>
|
|
|
|
|
|
+ <span v-if="!$hasPermissions('B_inventoryQuery_detail')&&!$hasPermissions('B_inventoryQuery_rkDetail')">--</span>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -137,7 +137,6 @@ export default {
|
|
return {
|
|
return {
|
|
spinning: false,
|
|
spinning: false,
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
- tableHeight: 0,
|
|
|
|
queryParam: { // 查询条件
|
|
queryParam: { // 查询条件
|
|
productCode: '', // 产品编码
|
|
productCode: '', // 产品编码
|
|
productName: '', // 产品名称
|
|
productName: '', // 产品名称
|
|
@@ -171,9 +170,6 @@ export default {
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
- if (this.tableHeight == 0) {
|
|
|
|
- this.tableHeight = window.innerHeight - 370
|
|
|
|
- }
|
|
|
|
// 排序
|
|
// 排序
|
|
if (parameter.sortField == 'currentStockQty') {
|
|
if (parameter.sortField == 'currentStockQty') {
|
|
parameter.sortField = 'qty'
|
|
parameter.sortField = 'qty'
|
|
@@ -209,6 +205,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ tableHeight () {
|
|
|
|
+ return window.innerHeight - (this.advanced ? 425 : 370)
|
|
|
|
+ },
|
|
stockQty () { // 库存总数量 合计
|
|
stockQty () { // 库存总数量 合计
|
|
const currentStockQty = this.currentStock && this.currentStock.currentStockQty ? Number(this.currentStock.currentStockQty) : 0
|
|
const currentStockQty = this.currentStock && this.currentStock.currentStockQty ? Number(this.currentStock.currentStockQty) : 0
|
|
const freezeQty = this.currentStock && this.currentStock.freezeQty ? Number(this.currentStock.freezeQty) : 0
|
|
const freezeQty = this.currentStock && this.currentStock.freezeQty ? Number(this.currentStock.freezeQty) : 0
|