Commit ebb7c92a by 王志慧

commit

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