Commit 9ba6c027 by 王志慧

bug修复

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