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