Commit 34408240 by Jaxon

feat: 嘀加上架 - 对账配置 - 重构-1

1 parent f4bfae91
...@@ -403,3 +403,14 @@ export function paymentChannelList(data = {}) { ...@@ -403,3 +403,14 @@ export function paymentChannelList(data = {}) {
data.method = "dj.api.smartcarlife.paymentChannel.list"; data.method = "dj.api.smartcarlife.paymentChannel.list";
return request(data, RequestMethods.POST); return request(data, RequestMethods.POST);
} }
/**
* 获取对账配置所有品类列表
*/
export function getReconciliationGoodsTypeListApi(data = {}) {
data.method = "dj.api.create.business.approve.listReconciliationGoodsTypeGroup";
return request(data, RequestMethods.POST);
}
...@@ -193,7 +193,7 @@ export function getProfitSharingTypeDetailApi(data) { ...@@ -193,7 +193,7 @@ export function getProfitSharingTypeDetailApi(data) {
data.method = "dj.api.create.business.approve.getSettleGoodsTypeGroupRuleDetail"; data.method = "dj.api.create.business.approve.getSettleGoodsTypeGroupRuleDetail";
return request(data); return request(data);
}; };
// 获取 已经保存的 流量方信息 businessCode
export function getSaveRuleMerchantApi(data) { export function getSaveRuleMerchantApi(data) {
data.method = "dj.api.create.business.approve.getSaveRuleMerchant"; data.method = "dj.api.create.business.approve.getSaveRuleMerchant";
return request(data); return request(data);
...@@ -214,3 +214,9 @@ export function delProfitSharingConfigSpecialItemApi(data) { ...@@ -214,3 +214,9 @@ export function delProfitSharingConfigSpecialItemApi(data) {
data.method = "dj.api.smartcarlife.merchantSettleDistributeRule.deleteGoodsTypeRule"; data.method = "dj.api.smartcarlife.merchantSettleDistributeRule.deleteGoodsTypeRule";
return request(data, "post"); return request(data, "post");
}; };
// 获取对账配置 单个详情
export function getReconciliationGoodsTypeDetailApi(data) {
data.method = "dj.api.create.business.approve.getReconciliationGoodsTypeGroupRuleDetail";
return request(data, "post");
};
...@@ -135,6 +135,7 @@ export default { ...@@ -135,6 +135,7 @@ export default {
}, },
}, },
async mounted() { async mounted() {
console.log("初始化?");
if (this.immediate) { if (this.immediate) {
await this.getApi(false, true); await this.getApi(false, true);
} }
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
:value="item" /> :value="item" />
</el-select> </el-select>
<RemoteSelect v-if="goodsTypeGroupRules.categoryType === 2" <RemoteSelect v-if="goodsTypeGroupRules.categoryType === 2"
:key="goodsTypeGroupRules.categoryType"
ref="upgradeGoods" ref="upgradeGoods"
v-model="goodsTypeGroupRelations" v-model="goodsTypeGroupRelations"
:options.sync="options.upgradeGoods" :options.sync="options.upgradeGoods"
...@@ -60,6 +61,7 @@ ...@@ -60,6 +61,7 @@
</RemoteSelect> </RemoteSelect>
<RemoteSelect v-if="goodsTypeGroupRules.categoryType === 3" <RemoteSelect v-if="goodsTypeGroupRules.categoryType === 3"
ref="packageGoods" ref="packageGoods"
:key="goodsTypeGroupRules.categoryType"
v-model="goodsTypeGroupRelations" v-model="goodsTypeGroupRelations"
style="width:350px" style="width:350px"
:options.sync="options.packageGoods" :options.sync="options.packageGoods"
...@@ -494,13 +496,15 @@ export default { ...@@ -494,13 +496,15 @@ export default {
// 获取商品套餐 // 获取商品套餐
async getPackagesGoodsList({ pageQuery, options }) { async getPackagesGoodsList({ pageQuery, options }) {
console.log("getPackagesGoodsList");
const res = await getMerchantPackageGoodsInfoApi({ const res = await getMerchantPackageGoodsInfoApi({
...pageQuery, ...pageQuery,
matchPackageNameOrCode: pageQuery.searchValue, matchPackageNameOrCode: pageQuery.searchValue,
status: 1, status: 1,
sceneType: 0, sceneType: this.sceneType,
merchantIdList: [this.financialLedgerParty.realityShopMerchantId], merchantIdList: [this.financialLedgerParty.realityShopMerchantId],
}); });
console.log("res", res);
if (!this.options.selectedPackageGoods.length) { if (!this.options.selectedPackageGoods.length) {
const goodsTypeGroupRuleId = String(this.specialCategory.active).startsWith("nano-") ? undefined : this.specialCategory.active; const goodsTypeGroupRuleId = String(this.specialCategory.active).startsWith("nano-") ? undefined : this.specialCategory.active;
...@@ -526,6 +530,7 @@ export default { ...@@ -526,6 +530,7 @@ export default {
}; };
}, },
async getUpgradeGoodsList({ pageQuery, options }) { async getUpgradeGoodsList({ pageQuery, options }) {
console.log("getUpgradeGoodsList");
const res = await getAllGoodsListApi({ const res = await getAllGoodsListApi({
...pageQuery, ...pageQuery,
statusList: [1], statusList: [1],
......
...@@ -282,7 +282,6 @@ export default { ...@@ -282,7 +282,6 @@ export default {
// set的时候不要做任何操作. 自己手动维护 // set的时候不要做任何操作. 自己手动维护
// Don't set here directly, handle in methods // Don't set here directly, handle in methods
}, },
}, },
showAppendBtn() { showAppendBtn() {
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<!-- 对账配置 --> <!-- 对账配置 -->
<ReconciliationConfig ref="reconciliationConfigRef" <ReconciliationConfig ref="reconciliationConfigRef"
:shelve-id="shelveId" :shelve-id="shelveId"
:scene-type="shelvingData.sceneType"
:shelf-type="shelvingData.shelfType" :shelf-type="shelvingData.shelfType"
:business-code="businessCode" /> :business-code="businessCode" />
</div> </div>
......
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!