Commit ce310f83 by 张立顺

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

…ife-system into SAAS+V4.50.0-0311
2 parents 50f192b1 f236b37c
...@@ -398,7 +398,7 @@ export default { ...@@ -398,7 +398,7 @@ export default {
var params = deepClone(this.editData) var params = deepClone(this.editData)
params.merchantBrandListJson = JSON.stringify(merchantBrandList) params.merchantBrandListJson = JSON.stringify(merchantBrandList)
params.status = 2 params.status = 2
params.isloginName = 1 params.isloginName = 0
console.log(params, 'params---') console.log(params, 'params---')
saveMerchant(params).then(res => { saveMerchant(params).then(res => {
this.$message.success("操作成功") this.$message.success("操作成功")
......
...@@ -784,6 +784,17 @@ export default { ...@@ -784,6 +784,17 @@ export default {
const flag = array.every((item) => item) const flag = array.every((item) => item)
return obj && flag return obj && flag
}, },
async handleWorking(){
const res = this.getParams()
const goodsTypeGroupRules = await this.getGoodsTypeGroupRules(
this.editableTabs
)
this.submitParams = {
...res,
goodsTypeGroupRules
}
},
async submit() { async submit() {
// const res = await this.handlerConfirm() // const res = await this.handlerConfirm()
// const goodsTypeGroupRules = await this.getGoodsTypeGroupRules( // const goodsTypeGroupRules = await this.getGoodsTypeGroupRules(
...@@ -1093,17 +1104,6 @@ export default { ...@@ -1093,17 +1104,6 @@ export default {
} }
}, },
getAllParams() { getAllParams() {
// const res = await this.handlerConfirm()
// const goodsTypeGroupRules = this.getGoodsTypeGroupRules(this.editableTabs)
// if (!this.checkParamsType(res, goodsTypeGroupRules)) return this.$message.warning('请完善分账规则')
// if (!res || !goodsTypeGroupRules) return false // 没有通过检验
// this.submitParams = {
// ...res,
// goodsTypeGroupRules
// }
// this.verificationCodeVisible = true
// return new Promise(async (resolve, reject) => {
const list = deepClone(this.editableTabs) const list = deepClone(this.editableTabs)
const goodsTypeGroupRules = [] const goodsTypeGroupRules = []
// 需要使用for循环解决异步同步问题 // 需要使用for循环解决异步同步问题
...@@ -1111,13 +1111,8 @@ export default { ...@@ -1111,13 +1111,8 @@ export default {
// const element = array[index]; // const element = array[index];
const node = this.$refs[`classification${list[index].name}`][0] const node = this.$refs[`classification${list[index].name}`][0]
const res = node.getClassificationParams() const res = node.getClassificationParams()
// const tabindex = this.editableTabs.findIndex(item => item.name == list[index].name)
// // 显示错误icon
// res ? this.editableTabs[tabindex].testFlag = "Y" : this.editableTabs[tabindex].testFlag = "N"
goodsTypeGroupRules.push(res) goodsTypeGroupRules.push(res)
} }
console.log(goodsTypeGroupRules, "this.submitParams ")
return goodsTypeGroupRules return goodsTypeGroupRules
// }) // })
}, },
......
...@@ -751,6 +751,43 @@ export default { ...@@ -751,6 +751,43 @@ export default {
this.smsCode = smsCode this.smsCode = smsCode
this.submitFormData() this.submitFormData()
}, },
handleWorking(){
return new Promise(async (resolve, reject) => {
// 校验重置数据 防止重复push
this.goodsTypeGroupRulesAll = []
const goodsTypeGroupRules = []
for (var index = 0; index < this.editableTabs.length; index++) {
const node =
this.$refs[`classification${this.editableTabs[index].name}`][0]
this.errorIndex = index
const res = await node.getBackendFormat()
res
? (this.editableTabs[index].valiadError = "N")
: (this.editableTabs[index].valiadError = "Y")
if (res) {
this.goodsTypeGroupRulesAll.push(res)
}
}
const {
shopMerchantTotalFeeCalculateType,
shopMerchantExpenseCategoryValue,
partnerMerchantTotalFeeCalculateType,
partnerMerchantExpenseCategoryValue
} = this.formObj
const params = {
// merchantId: this.merchantRow.merchantId,
// sceneType: this.merchantRow.scene,
goodsTypeGroupRules: this.goodsTypeGroupRulesAll,
shopMerchantTotalFeeCalculateType,
shopMerchantExpenseCategoryValue,
partnerMerchantTotalFeeCalculateType,
partnerMerchantExpenseCategoryValue
}
this.submitParams = params
})
},
// 提交信息 // 提交信息
async submit() { async submit() {
let res = await this.verifyFormData() let res = await this.verifyFormData()
......
...@@ -880,154 +880,11 @@ export default { ...@@ -880,154 +880,11 @@ export default {
}, },
getRowItem() { getRowItem() {
// const params = this.$route.query?.params const params = this.$route.params
// if (params) { if (params) {
// this.merchantRow = JSON.parse(params) this.merchantRow = params
// }
this.merchantRow = {
scene: 0,
merchantId: 44218105,
yqMerchant: {
id: null,
merchantId: 44218107,
merchantName: "鸿蒙园区店",
shortName: null,
userType: null,
merchantType: 6,
accountName: null,
contactName: null,
phone: null,
address: null,
provinceId: null,
provinceName: null,
cityId: null,
cityName: null,
areaId: null,
areaName: null,
lng: null,
lat: null,
shopPhoto: null,
channelType: null,
ysemRefedFlag: null,
accountStatus: null,
yseMerchantId: null,
yseUserCode: null,
region: null,
stayContactName: null,
stayPhone: null,
divisionTestFlag: null,
openDate: null,
entryDate: null,
sourceType: null,
storeCode: null,
businessType: null,
latestOrderTime: null,
createdBy: null,
createdDate: null,
updatedBy: null,
updatedDate: 1740036558000,
deletedFlag: null,
cardCodeFlag: null,
trafficExpireFlag: null
},
serviceList: [
{
id: null,
merchantId: 44218130,
merchantName: "新华园区店",
shortName: null,
userType: null,
merchantType: 7,
accountName: null,
contactName: null,
phone: null,
address: null,
provinceId: null,
provinceName: null,
cityId: null,
cityName: null,
areaId: null,
areaName: null,
lng: null,
lat: null,
shopPhoto: null,
channelType: null,
ysemRefedFlag: null,
accountStatus: null,
yseMerchantId: null,
yseUserCode: null,
region: null,
stayContactName: null,
stayPhone: null,
divisionTestFlag: null,
openDate: null,
entryDate: null,
sourceType: null,
storeCode: null,
businessType: null,
latestOrderTime: null,
createdBy: null,
createdDate: null,
updatedBy: null,
updatedDate: 1739737537000,
deletedFlag: null,
cardCodeFlag: null,
trafficExpireFlag: null
},
{
id: null,
merchantId: 44218103,
merchantName: "鸿蒙服务商",
shortName: null,
userType: null,
merchantType: 7,
accountName: null,
contactName: null,
phone: null,
address: null,
provinceId: null,
provinceName: null,
cityId: null,
cityName: null,
areaId: null,
areaName: null,
lng: null,
lat: null,
shopPhoto: null,
channelType: null,
ysemRefedFlag: null,
accountStatus: null,
yseMerchantId: null,
yseUserCode: null,
region: null,
stayContactName: null,
stayPhone: null,
divisionTestFlag: null,
openDate: null,
entryDate: null,
sourceType: null,
storeCode: null,
businessType: null,
latestOrderTime: null,
createdBy: null,
createdDate: null,
updatedBy: null,
updatedDate: 1739737514000,
deletedFlag: null,
cardCodeFlag: null,
trafficExpireFlag: null
}
],
autoFlag: "N",
testFlag: "N",
divisionType: "N",
maxUpdatedDate: 1740036558000,
merchantName: "第一个鸿蒙4S店",
userType: 4,
channelType: 1,
updatedDate: 1740036558000,
num: 3
} }
}, },
// 查询服务商列表 // 查询服务商列表
async getListPartnerMerchant() { async getListPartnerMerchant() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!