Commit ebb7c92a by 王志慧

commit

1 parent 7db1b766
...@@ -149,7 +149,7 @@ const stockAllocateDetailPage = (params) => { ...@@ -149,7 +149,7 @@ const stockAllocateDetailPage = (params) => {
//导出 //导出
const exportExcel = (params) => { const exportExcel = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.life.GoodsWarehousingInfo.exportExcel` params.routerMethod = `dj.api.goodsWarehousing.exportExcel`
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
...@@ -194,7 +194,7 @@ const exportCheckExcel = (params) => { ...@@ -194,7 +194,7 @@ const exportCheckExcel = (params) => {
//导出 //导出
const exportaAllocateExcel = (params) => { const exportaAllocateExcel = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.smartcarlife.api.stock.allocate.export.async` params.routerMethod = `dj.smartcarlife.api.stock.allocate.export`
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
...@@ -204,7 +204,7 @@ const exportaAllocateExcel = (params) => { ...@@ -204,7 +204,7 @@ const exportaAllocateExcel = (params) => {
} }
const exportaInventExcel = (params) => { const exportaInventExcel = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.life.InventoryWarningInfo.exportExcel` params.routerMethod = `dj.api.smartcarlife.MerchantGoodsStockMonthReport.export`
return http({ return http({
url: 'rop-scrm-boutiquecoupon/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<div class="addWrap"> <div class="addWrap">
<div class="d2-container-content" style="padding: 10px 20px"> <div class="d2-container-content" style="padding: 10px 20px">
<el-form :inline="true" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules" class="demo-form-inline"> <el-form :inline="true" size="small" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules" class="demo-form-inline">
<el-form-item label="调出门店:" prop="callOutYqMerchantId"> <el-form-item label="调出门店:" prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px"> <el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px">
<el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName" :value="item.merchantNo" /> <el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName" :value="item.merchantNo" />
...@@ -142,7 +142,6 @@ export default { ...@@ -142,7 +142,6 @@ export default {
} }
] ]
}, },
editData: { editData: {
// thumbUrlList: [], // thumbUrlList: [],
...@@ -186,18 +185,25 @@ export default { ...@@ -186,18 +185,25 @@ export default {
} }
} }
}, },
created() {
if (window.__POWERED_BY_QIANKUN__) {
this.callOutYqMerchantList = [
{ merchantNo: this.$globalState.session.merchantId+'',
merchantName: this.$globalState.session.merchantName }]
}
},
mounted() { mounted() {
// this.editAllocationForm.callOutYqMerchantId = this.editAllocationForm.callOutYqMerchantId =
// this.callOutYqMerchantList[0].merchantNo this.callOutYqMerchantList[0].merchantNo
//调入门店 //调入门店
this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then((res) => { this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
this.callInYqMerchantList = res this.callInYqMerchantList = res
}) })
}, },
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise(resolve => {
this.searchFormSearch = this.$common.utils.deepClone(this.searchForm) this.searchFormSearch = this.$common.utils.deepClone(this.searchForm)
resolve() resolve()
}) })
...@@ -214,7 +220,7 @@ export default { ...@@ -214,7 +220,7 @@ export default {
//设置禁选 //设置禁选
setDisabled(row) { setDisabled(row) {
const index = this.chooseDataList.findIndex((item) => item.id == row.id) const index = this.chooseDataList.findIndex(item => item.id == row.id)
if (index == -1) { if (index == -1) {
return false return false
} else { } else {
...@@ -236,10 +242,10 @@ export default { ...@@ -236,10 +242,10 @@ export default {
}, },
handleAddConfirm(data) { handleAddConfirm(data) {
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.notice.warningTips('请选择调拨商品')
return return
} }
var params = {} var params = {}
...@@ -251,22 +257,21 @@ export default { ...@@ -251,22 +257,21 @@ export default {
...params, ...params,
...this.editAllocationForm ...this.editAllocationForm
} }
this.$confirm( this.$confirm('调拨单保存后,系统自动按照调拨数量对调出和调入门店进行库存更新;是否确定保存?', '提示', {
"调拨单保存后,系统自动按照调拨数量对调出和调入门店进行库存更新;是否确定保存?", confirmButtonText: '确定',
"提示", cancelButtonText: '取消',
{ type: 'warning'
confirmButtonText: "确定", })
cancelButtonText: "取消",
type: "warning"
}
)
.then(() => { .then(() => {
this.$apis.stockManage.saveStockAllocate(params).then((res) => { this.$apis.stockManage.saveStockAllocate(params).then(res => {
this.notice.okTips() this.$notify({
type: 'success',
title: res.message || '操作成功'
})
this.handleAddClose() this.handleAddClose()
}) })
}) })
.catch((err) => { .catch(err => {
console.log(err) console.log(err)
}) })
} }
...@@ -274,8 +279,7 @@ export default { ...@@ -274,8 +279,7 @@ export default {
}, },
handleAddClose(isRefresh = false) { handleAddClose(isRefresh = false) {
// this.close({ tagName: "/addAllocation" }) this.$router.go(-1)
// this.$router.push({ name: "allocationList" })
} }
} }
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<!-- <el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button> --> <el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button>
<h2>调拨列表</h2> <!-- <h2>调拨列表</h2> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button> <el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div> </div>
...@@ -188,10 +188,8 @@ export default { ...@@ -188,10 +188,8 @@ export default {
this.$refs.allocationRef.data.length ? (this.$refs.allocationRef.tableHeightValues = '') : this.$refs.allocationRef.setTableHeightFun() this.$refs.allocationRef.data.length ? (this.$refs.allocationRef.tableHeightValues = '') : this.$refs.allocationRef.setTableHeightFun()
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
this.$apis.stockManage.exportaAllocateExcel(params).then(res => { this.$apis.stockManage.exportaAllocateExcel(params).then(res => {
this.exportLoading = false
window.location.href = res window.location.href = res
}) })
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable /> <el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
</el-form-item> </el-form-item>
<el-button @click="handleSearch" size="small" type="primary" >查询</el-button> <el-button @click="handleSearch" size="small" type="primary">查询</el-button>
</el-form> </el-form>
</div> </div>
</div> </div>
...@@ -249,7 +249,10 @@ export default { ...@@ -249,7 +249,10 @@ export default {
}) })
.then(() => { .then(() => {
this.$apis.stockManage.saveStockCheck(params).then(res => { this.$apis.stockManage.saveStockCheck(params).then(res => {
this.notice.okTips() this.$notify({
type: 'success',
title: res.message || '操作成功'
})
this.handleAddClose() this.handleAddClose()
}) })
}) })
...@@ -259,8 +262,7 @@ export default { ...@@ -259,8 +262,7 @@ export default {
}, },
handleAddClose(isRefresh = false) { handleAddClose(isRefresh = false) {
this.close({ tagName: '/addInventory' }) this.$router.go(-1)
this.$router.push({ name: 'inventoryList' })
} }
} }
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<!-- <el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button> --> <el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button>
<h2>盘点列表</h2> <!-- <h2>盘点列表</h2> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button> <el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div> </div>
...@@ -185,11 +185,9 @@ export default { ...@@ -185,11 +185,9 @@ export default {
this.$refs.checkRef.data.length ? (this.$refs.checkRef.tableHeightValues = '') : this.$refs.checkRef.setTableHeightFun() this.$refs.checkRef.data.length ? (this.$refs.checkRef.tableHeightValues = '') : this.$refs.checkRef.setTableHeightFun()
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
this.$apis.stockManage.exportCheckExcel(params).then(res => { this.$apis.stockManage.exportCheckExcel(params).then(res => {
// this.exportLoading = false window.location.href = res
// window.location.href = res
}) })
}, },
handleSearch() { handleSearch() {
......
...@@ -181,10 +181,8 @@ export default { ...@@ -181,10 +181,8 @@ export default {
this.$refs.earlyWarningRef.data.length ? (this.$refs.earlyWarningRef.tableHeightValues = '') : this.$refs.earlyWarningRef.setTableHeightFun() this.$refs.earlyWarningRef.data.length ? (this.$refs.earlyWarningRef.tableHeightValues = '') : this.$refs.earlyWarningRef.setTableHeightFun()
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
this.$apis.stockManage.exportaInventExcel(params).then(res => { this.$apis.stockManage.exportaInventExcel(params).then(res => {
this.exportLoading = false
window.location.href = res window.location.href = res
}) })
}, },
......
...@@ -240,11 +240,9 @@ export default { ...@@ -240,11 +240,9 @@ export default {
this.$refs.outboundRef.data.length ? (this.$refs.outboundRef.tableHeightValues = '') : this.$refs.outboundRef.setTableHeightFun() this.$refs.outboundRef.data.length ? (this.$refs.outboundRef.tableHeightValues = '') : this.$refs.outboundRef.setTableHeightFun()
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
this.$apis.stockManage.exportReduceExcel(params).then(res => { this.$apis.stockManage.exportReduceExcel(params).then(res => {
// this.exportLoading = false window.location.href = res
// window.location.href = res
}) })
}, },
handleSearch() { handleSearch() {
......
...@@ -282,11 +282,10 @@ export default { ...@@ -282,11 +282,10 @@ export default {
this.$router.push('/purchaseOrder/add') this.$router.push('/purchaseOrder/add')
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
this.$apis.stockManage.exportExcel(params).then(res => { this.$apis.stockManage.exportExcel(params).then(res => {
// window.location.href = res window.location.href = res
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!