Commit 8fbb396b by 王志慧

commit

1 parent 9ba6c027
......@@ -28,7 +28,7 @@
</div>
<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>
<el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">选择</el-button>
</div>
</GLTable>
</div>
......@@ -84,18 +84,15 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName',
width: '160px'
prop: 'goodsName'
},
{
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
prop: 'sourceMaterialName'
},
{
label: '所属分类',
prop: 'goodsTypeName',
width: '250px'
prop: 'goodsTypeName'
},
{
label: '库存',
......@@ -106,8 +103,7 @@ export default {
},
{
label: '所属门店',
prop: 'yqMerchantName',
width: '200px'
prop: 'yqMerchantName'
}
]
},
......@@ -118,18 +114,15 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName',
width: '160px'
prop: 'goodsName'
},
{
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
prop: 'sourceMaterialName'
},
{
label: '所属分类',
prop: 'goodsTypeName',
width: '250px'
prop: 'goodsTypeName'
},
{
label: '库存',
......
......@@ -4,9 +4,9 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<GLButton type="primary" size="small" @click="handleAdd" fn="创建调拨">创建调拨</GLButton>
<GLButton type="primary" size="small" @click="handleAdd" fn="创建调拨">创建调拨</GLButton>
<!-- <el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button> -->
<!-- <h2>调拨列表</h2> -->
<!-- <h2>调拨列表</h2> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......@@ -111,7 +111,9 @@ export default {
},
{
label: '备注',
prop: 'remark'
prop: 'remark',
width: 200,
line: 1
}
]
},
......@@ -151,10 +153,9 @@ export default {
},
// 查看详情
handleDetail(row) {
this.allocationInfo = row
this.allocationDetailVisible = true
console.log(this.allocationDetailVisible)
console.log(this.allocationDetailVisible)
},
handleAdd() {
this.$router.push({ path: '/allocation/add' })
......
......@@ -66,18 +66,15 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName',
width: '160px'
prop: 'goodsName'
},
{
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
prop: 'sourceMaterialName'
},
{
label: '所属分类',
prop: 'goodsTypeName',
width: '250px'
prop: 'goodsTypeName'
},
{
label: '库存',
......@@ -88,8 +85,7 @@ export default {
},
{
label: '所属门店',
prop: 'yqMerchantName',
width: '200px'
prop: 'yqMerchantName'
}
]
},
......
......@@ -105,7 +105,9 @@ export default {
},
{
label: '备注',
prop: 'remark'
prop: 'remark',
width: 200,
line: 1
},
{
label: '凭证',
......
......@@ -4,7 +4,7 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>库存预警列表</h2>
<h2>预警列表</h2>
<div>
<el-button type="primary" size="small" @click="gotoReplenishment">去补货</el-button>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
......
......@@ -113,7 +113,8 @@ export default {
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: 160
width: 180,
line: 1
},
{
label: '系列',
......
......@@ -89,7 +89,8 @@ export default {
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: 160
width: 180,
line: 1
},
{
label: '系列',
......@@ -154,7 +155,7 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.$common.utils.deepClone(this.searchForm)
this.tableSearchForm.dataMonth = dayjs(new Date()).format('YYYY-MM')
this.tableSearchForm.dataMonth = dayjs(new Date()).format('YYYY-MM')
resolve()
})
},
......@@ -192,14 +193,12 @@ export default {
//接收到的数据为空
this.$refs.stockRef.data.length ? (this.$refs.stockRef.tableHeightValues = '') : this.$refs.stockRef.setTableHeightFun()
},
exportExcel() {
exportExcel() {
this.exportLoading = true
var params = this.searchForm
this.$apis.stockManage.exportMerchantExcel(params).then(res => {
window.location.href = res
})
},
handleSearch() {
this.$refs.stockRef.refreshTable()
......@@ -214,7 +213,7 @@ export default {
}
this.handleSearch()
},
dialogClose() {
dialogClose() {
this.stockMonthVisible = !this.stockMonthVisible
}
}
......
<template>
<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 :inline="true" :model="searchForm" size="small">
<el-form-item label="年度:">
<el-date-picker v-model="searchForm.year" type="year" placeholder="选择年" value-format="yyyy" format="yyyy" :clearable="false" :picker-options="pickerOption" @change="chooseYear"></el-date-picker>
</el-form-item>
......
......@@ -113,11 +113,14 @@ export default {
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: 160
width: 180,
line: 1
},
{
label: '系列',
prop: 'goodsSeries'
prop: 'goodsSeries',
width: 150,
line: 1
},
{
label: '所属分类',
......@@ -144,7 +147,7 @@ export default {
{
label: '入库类型',
prop: 'increaseStockType',
width: '100px',
width: 100,
formatter: cellValue => {
return this.baseData.storageTypeList.find(item => item.confId === cellValue.increaseStockType?.toString())?.confLabel
}
......@@ -282,13 +285,10 @@ export default {
this.$router.push('/purchaseOrder/add')
},
exportExcel() {
// this.$messenger.send('ssssssssssssssss')
var params = this.getParams()
this.$apis.stockManage.exportExcel(params).then(res => {
window.location.href = res
})
},
handleSearch() {
this.$refs.warehousingRef.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!