Commit 34408240 by Jaxon

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

1 parent f4bfae91
......@@ -403,3 +403,14 @@ export function paymentChannelList(data = {}) {
data.method = "dj.api.smartcarlife.paymentChannel.list";
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) {
data.method = "dj.api.create.business.approve.getSettleGoodsTypeGroupRuleDetail";
return request(data);
};
// 获取 已经保存的 流量方信息 businessCode
export function getSaveRuleMerchantApi(data) {
data.method = "dj.api.create.business.approve.getSaveRuleMerchant";
return request(data);
......@@ -214,3 +214,9 @@ export function delProfitSharingConfigSpecialItemApi(data) {
data.method = "dj.api.smartcarlife.merchantSettleDistributeRule.deleteGoodsTypeRule";
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 {
},
},
async mounted() {
console.log("初始化?");
if (this.immediate) {
await this.getApi(false, true);
}
......
......@@ -39,6 +39,7 @@
:value="item" />
</el-select>
<RemoteSelect v-if="goodsTypeGroupRules.categoryType === 2"
:key="goodsTypeGroupRules.categoryType"
ref="upgradeGoods"
v-model="goodsTypeGroupRelations"
:options.sync="options.upgradeGoods"
......@@ -60,6 +61,7 @@
</RemoteSelect>
<RemoteSelect v-if="goodsTypeGroupRules.categoryType === 3"
ref="packageGoods"
:key="goodsTypeGroupRules.categoryType"
v-model="goodsTypeGroupRelations"
style="width:350px"
:options.sync="options.packageGoods"
......@@ -494,13 +496,15 @@ export default {
// 获取商品套餐
async getPackagesGoodsList({ pageQuery, options }) {
console.log("getPackagesGoodsList");
const res = await getMerchantPackageGoodsInfoApi({
...pageQuery,
matchPackageNameOrCode: pageQuery.searchValue,
status: 1,
sceneType: 0,
sceneType: this.sceneType,
merchantIdList: [this.financialLedgerParty.realityShopMerchantId],
});
console.log("res", res);
if (!this.options.selectedPackageGoods.length) {
const goodsTypeGroupRuleId = String(this.specialCategory.active).startsWith("nano-") ? undefined : this.specialCategory.active;
......@@ -526,6 +530,7 @@ export default {
};
},
async getUpgradeGoodsList({ pageQuery, options }) {
console.log("getUpgradeGoodsList");
const res = await getAllGoodsListApi({
...pageQuery,
statusList: [1],
......
......@@ -282,7 +282,6 @@ export default {
// set的时候不要做任何操作. 自己手动维护
// Don't set here directly, handle in methods
},
},
showAppendBtn() {
......
......@@ -39,6 +39,7 @@
<!-- 对账配置 -->
<ReconciliationConfig ref="reconciliationConfigRef"
:shelve-id="shelveId"
:scene-type="shelvingData.sceneType"
:shelf-type="shelvingData.shelfType"
:business-code="businessCode" />
</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!