Commit 79f76361 by 前端

第二轮测试BUG修复

1 parent d83f5fc3
...@@ -273,4 +273,17 @@ export function merchantShopGoodsStockPage(params) { ...@@ -273,4 +273,17 @@ export function merchantShopGoodsStockPage(params) {
sign: true sign: true
}) })
} }
export default { inventoryWarningList, exportaInventExcel, exportaAllocateExcel, exportCheckExcel, exportReduceExcel, exportMerchantExcel, exportExcel, saveStockAllocate, stockAllocateDetailPage, stockAllocatePage, yqRelatedList, saveStockCheck, stockRemainPage, stockCheckDetailPage, stockCheckPage, getMerchantGoodsStockReduceRecord, getReportByGoods, getyqMerchantList, getGoodsWarehousingList, getMerchantGoodsStockMonthReport, merchantShopGoodsStockPage, getServicemerchantrefList }
// 是否有发货主体
export function checkShipper(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.checkShipper`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { inventoryWarningList, exportaInventExcel, exportaAllocateExcel, exportCheckExcel, exportReduceExcel, exportMerchantExcel, exportExcel, saveStockAllocate, stockAllocateDetailPage, stockAllocatePage, yqRelatedList, saveStockCheck, stockRemainPage, stockCheckDetailPage, stockCheckPage, getMerchantGoodsStockReduceRecord, getReportByGoods, getyqMerchantList, getGoodsWarehousingList, getMerchantGoodsStockMonthReport, merchantShopGoodsStockPage, getServicemerchantrefList, checkShipper }
...@@ -247,8 +247,29 @@ export default { ...@@ -247,8 +247,29 @@ export default {
}) })
}, },
//去补货 //去补货
gotoReplenishment() { // gotoReplenishment() {
this.$history.push(`/purchase/purchaseOrder/add`) // this.$history.push(`/purchase/purchaseOrder/add`)
// },
async gotoReplenishment() {
let result = await this.checkShipper()
console.log(result)
if (result) this.$router.push('/purchase/purchaseOrder/add')
},
checkShipper() {
return new Promise(resolve => {
this.$apis.stockManage.checkShipper({}).then(res => {
console.log(res)
if (res.code == -1) {
this.$message({
type: 'error',
message: res.message
})
resolve(false)
} else {
resolve(true)
}
})
})
}, },
handleSearch() { handleSearch() {
this.$refs.earlyWarningRef.refreshTable() this.$refs.earlyWarningRef.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!