Commit e5dae33a by 胡悦

Merge branch 'SAAS+V4.53.0-0528' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.53.0-0528
2 parents b3883cf6 10c5be9d
......@@ -95,6 +95,18 @@ export default {
data: null,
name: "goods"
})
commit("SET_DATA", {
data: null,
name: "operationModeAsync"
})
commit("SET_DATA", {
data: null,
name: "firstLineSunshineOnlinePointsFlag"
})
commit("SET_DATA", {
data: null,
name: "firstLineSunshine2OnlinePointsFlag"
})
dispatch("getGoods") // 重新请求
},
async getGoodsCategoryConfiguration({ commit, state }) {
......@@ -147,8 +159,8 @@ export default {
name: "isLoadingGoods"
})
const promise = getAllGoodsList({
currentPage: 20,
pageSize: 1,
currentPage: 1,
pageSize: 20,
statusList: [1],
sceneTypeList: [0]
}) // 替换为你的API调用
......
......@@ -93,7 +93,11 @@ export default {
divisiObj: {
type: Object,
default: () => { }
}
},
basicInfo: {
type: Object,
default: () => { }
},
},
data() {
// 这里存放数据
......@@ -141,7 +145,8 @@ export default {
// 流量方 判断是多流量方还是单个,做不同的值处理
let merchantSideobj = {}
let serviceObj = {}
if (!info.multiPlatformMerchantFlag) {
// 单商户
if (this.basicInfo.shelfType == 1) {
merchantSideobj = {
merchantId: info.realityShopMerchantId, // 实际分账商户方商户id(嘀加智慧云为-1)
merchantName: info.realityShopMerchantName,
......
......@@ -84,7 +84,7 @@ export default {
4: "平台方"
}
const type = val.targetMerchantType
return tableSelectOptionsId ? val.merchantName : `${name[type]}: ${val.merchantName}`
return `${name[type]}: ${val.merchantName}`
}
},
data() {
......
......@@ -443,6 +443,7 @@ export default {
// id
// }).then((result) => {
let result = deepClone(this.merchantSettleDistributeRuleLastRuleInfo)
console.log(result, 'result')
this.firstEmit = false
const goodsTypeGroupRules =
result?.merchantSettleDistributeRule.goodsTypeGroupRules
......@@ -464,6 +465,7 @@ export default {
const autoFlag = result?.autoFlag == "Y"
// 隐藏固定周期分账 处理历史数据
if (result?.settleTimeType == 2) result.settleTimeType = 1
console.log(this.financialObj, 'financialObj')
result && (this.financialObj = result)
const upgradeArr = []
......
......@@ -775,6 +775,7 @@ export default {
},
// 获取更多商品
interestsLoadmore() {
console.log('interestsLoadmore')
setTimeout(() => {
this.currentPage = this.currentPage + 1
if (this.allPages < this.currentPage) {
......
......@@ -474,7 +474,7 @@ export default {
?.join(","), // 服务项目
// positionNames: _positionNamesArr.length ? _positionNamesArr.map(subItem => { return subItem?.confName }).join('/') : '',
specificationData: this.filterSpecsStr(_valueObj),
djCost: _valueObj?.djCost,
djCost: _valueObj?.djCost || 0,
carTypeConfigName: _valueObj?.carTypeConfigList
?.map((item) => item.seriesName)
.join("/"),
......@@ -488,8 +488,8 @@ export default {
_formData.upgradeSupplyMode = "" // 切换上架商品 将升级/产品供货模式清空
_formData.supplierCode = _valueObj?.goodsInfo?.supplierCode // 供应方 判断是否需要走审核流程
console.log("_formData", _formData)
if (!this.filterEmpty(_valueObj?.djCost)) {
_formData.djCost = _valueObj?.djCost
if (!this.filterEmpty(_valueObj?.djCost || 0)) {
_formData.djCost = _valueObj?.djCost || 0
} // 嘀加成本 商品信息自带数据
this.handleSelectGoodsClose()
},
......
......@@ -189,24 +189,23 @@ export default {
const findObj = this.merchantDistributionRules.find((el) => {
return el.expenseCategoryId == item.expenseCategoryId
})
if (findObj.targetMerchantType == 3 && tableSelectOptionsId) {
this.copyMerchantInfo = findObj
}
// 还要跟存在现在的选项里面
// console.log('findObj', findObj)
// if (findObj?.targetMerchantType == 3 && tableSelectOptionsId) {
// this.copyMerchantInfo = findObj
// }
// 还要跟存在现在的选项里面
// console.log(name)
// const optIndex = this.tableSelectOptions.findIndex((opt) => { return opt.merchantId == findObj?.merchantId })
// console.log(optIndex, 'optIndex')
// form[name] = parseInt(findObj?.merchantId) || ""
// console.log(findObj, tableSelectOptionsId)
// console.log(findObj.targetMerchantType == 3 && tableSelectOptionsId)
form[name] = parseInt(findObj.targetMerchantType == 3 && tableSelectOptionsId ? findObj?.targetMerchantLevel : findObj?.merchantId) || ""
form[name] = findObj?.merchantId || ""
})
}
// 判断id是否有在选项里面 没有就去掉
this.form = form
// console.log(this.form,'this.form')
console.log(this.form, 'this.form')
},
changFormList() {
// console.log(this.form,'this.form')
......
......@@ -1141,9 +1141,9 @@ export default {
// realityPlatformMerchantName: realityPlatform.merchantName,
// realityPlatformUserType: realityPlatform.userType || 2,
// // 导流方
realityShopMerchantId: realityMerchant?.merchantId,
realityShopMerchantName: realityMerchant?.merchantName,
realityShopUserType: realityMerchant?.userType
// realityShopMerchantId: realityMerchant?.merchantId,
// realityShopMerchantName: realityMerchant?.merchantName,
// realityShopUserType: realityMerchant?.userType
}
},
initPlatformLevelList() {
......
......@@ -99,6 +99,7 @@ export default {
},
operationModeAsync: {
handler(newVal, oldVal) {
console.log("operationModeAsync", newVal)
this.editData.operationMode = newVal
this.dealPartnerMer()
},
......
......@@ -11,7 +11,7 @@
<!-- 上架商品及测算 -->
<goods-info></goods-info>
<!-- 分账配置 -->
<division-config :divisiObj="divisiObj"></division-config>
<division-config :divisiObj="divisiObj" :basicInfo="basicInfo"></division-config>
<!-- 对账配置 -->
<finance-config :financeObj="financialObj"></finance-config>
<!-- 操作记录 -->
......@@ -64,6 +64,9 @@ export default {
return this.$route.params ? this.$route.params : ""
}
},
created() {
this.refreshCategoryList()
},
mounted() {
this.getDetail()
this.getBasicDetail()
......@@ -71,6 +74,7 @@ export default {
},
// 方法集合
methods: {
...mapActions("goodsInfoData", ["refreshCategoryList"]),
...mapActions({
close: "d2admin/page/close"
}),
......
......@@ -372,6 +372,7 @@ export default {
item.uploadFileList = []
item.files = []
// 清空附件信息
item.value = ''
item.fileNames = ''
} else {
this.infoForm[item.controlId] = item.value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!