Commit 688d448e by crushh

update: 修复

parent 49aa44d0
......@@ -448,6 +448,7 @@ export default {
// let currentTime1 = new Date(new Date(new Date().getTime() + 1000 * 60).valueOf());
// this.form.timeRangeList[0].timeRange = [currentTime, currentTime1];
// }
this.getErpGoodsFlag();
},
methods: {
// 添加时间段
......@@ -815,6 +816,18 @@ export default {
name: 'deliverSet',
});
},
// 检测是否开启 erp商品兑换接口
getErpGoodsFlag () {
request.get('/api-integral-mall/get-config').then(res => {
if (res.data.errorCode === 0) {
const result = res.data.result || {};
this.$store.commit('mutations_erpGoodsFlag', result.goodsStockSync || 0);
} else {
this.$message.error(res.data.message);
}
});
},
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment