Commit 9ba6c027 by 王志慧

bug修复

1 parent 7c5c885f
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<GLTable ref="allocationTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn"> <GLTable ref="allocationTable" :getListApi="getListApi" :pageConf="pageConf" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button> <el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button>
</div> </div>
...@@ -76,6 +76,7 @@ export default { ...@@ -76,6 +76,7 @@ export default {
} }
], ],
getListApi: this.$apis.stockManage.stockRemainPage, getListApi: this.$apis.stockManage.stockRemainPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
...@@ -246,7 +247,10 @@ export default { ...@@ -246,7 +247,10 @@ export default {
this.$refs.editAllocationFormRef.validate(valid => { this.$refs.editAllocationFormRef.validate(valid => {
if (valid) { if (valid) {
if (this.chooseDataList.length == 0) { if (this.chooseDataList.length == 0) {
this.notice.warningTips('请选择调拨商品') this.$notify({
type: 'warning',
title: '请选择调拨商品'
})
return return
} }
var params = {} var params = {}
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:visible.sync="allocationDetailVisible" :visible.sync="allocationDetailVisible"
class="inventoryDetailDailog" class="inventoryDetailDailog"
mode="big" mode="big"
okText="关闭"
@onCancel="handleClose" @onCancel="handleClose"
@onOk="handleClose"> @onOk="handleClose">
<div> <div>
......
...@@ -217,7 +217,6 @@ export default { ...@@ -217,7 +217,6 @@ export default {
dialogClose(chooseData) { dialogClose(chooseData) {
this.inventoryNumVisible = !this.inventoryNumVisible this.inventoryNumVisible = !this.inventoryNumVisible
console.log(chooseData)
if (chooseData) { if (chooseData) {
this.chooseDataList.push(chooseData) this.chooseDataList.push(chooseData)
} }
...@@ -230,7 +229,10 @@ export default { ...@@ -230,7 +229,10 @@ export default {
handleAddConfirm(data) { handleAddConfirm(data) {
if (this.chooseDataList.length == 0) { if (this.chooseDataList.length == 0) {
this.notice.warningTips('请选择盘存商品') this.$notify({
type: 'warning',
title: '请选择盘存商品'
})
return return
} }
var params = {} var params = {}
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
:visible.sync="inventoryDetailVisible" :visible.sync="inventoryDetailVisible"
class="inventoryDetailDailog" class="inventoryDetailDailog"
mode="big" mode="big"
okText="关闭"
@onCancel="handleClose" @onCancel="handleClose"
@onOk="handleClose"> @onOk="handleClose">
<div> <div>
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '入库时间', label: '出库时间',
prop: 'reduceDate', prop: 'reduceDate',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.reduceDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.reduceDate).format('YYYY-MM-DD HH:mm:ss')
......
<template> <template>
<GLDialog v-if="stockMonthVisible" :destroy-on-close="true" bigTitle="月度库存结算单" mode="big" :visible.sync="stockMonthVisible" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose"> <GLDialog class="stock-dialog" v-if="stockMonthVisible" :destroy-on-close="true" bigTitle="月度库存结算单" mode="big" okText="关闭" :visible.sync="stockMonthVisible" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose">
<div class="detail-content" v-if="stockMonthVisible"> <div class="detail-content" v-if="stockMonthVisible">
<el-form :inline="true" :model="searchForm"> <el-form :inline="true" :model="searchForm">
<el-form-item label="年度:"> <el-form-item label="年度:">
...@@ -154,6 +154,12 @@ export default { ...@@ -154,6 +154,12 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.stock-dialog {
/deep/.el-dialog__body {
min-height: 167px;
max-height: 616px;
}
}
.btn-tips { .btn-tips {
display: inline-block; display: inline-block;
font-size: 12px; font-size: 12px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!