Commit dd3a6b16 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 81484e37 2b96ca8c
......@@ -115,7 +115,7 @@
<template v-else>
<el-form-item
label-width="120px"
label="员工对象:"
label="选择话术:"
prop="empContent"
>
<el-button class="radio-box" size="small" @click="selectScript"
......
......@@ -148,7 +148,7 @@
<a @click="handleClear" class="clear-btn"> 清空 </a>
</div>
<div class="tableBody">
<el-table class="table" :data="selectedData" border height="264px">
<el-table class="table" :data="selectedData" border height="404px">
<el-table-column type="index" label="序号" width="50">
</el-table-column>
<el-table-column
......
......@@ -82,7 +82,7 @@ export default {
},
{
label: "门店",
name: "merchant",
name: "merchantId",
type: "select",
isClear: true,
optionList: [],
......
......@@ -103,7 +103,7 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button type="text" size="mini" @click="editSeries(scope.row, scope.$index)">
<el-button type="text" size="mini" @click="editSeries(scope.row, scope.$index, item.id)">
编辑
</el-button>
<el-button type="text" size="mini" @click="delSeries(item.id, scope.$index)">
......@@ -405,7 +405,7 @@ export default {
// 删除门店
delMerchant(row) {
console.log(row)
const filterArr = this.storeData.filter(i => i.id !== row.id)
const filterArr = this.storeData.filter(i => i.merchantNo !== row.merchantNo)
this.$set(this, 'storeData', filterArr)
},
switchChange(val, id) {
......@@ -414,6 +414,7 @@ export default {
},
// 选择车系
selectCarSeries(levelId) {
console.log(levelId, 'levelId')
if (this.brandData.length == 0) {
this.$message.error("请选择关联品牌")
return
......@@ -426,7 +427,7 @@ export default {
this.carSeriesVisible = false
},
dialogConfirm(val) {
console.log(val)
console.log(val, this.form)
if (val.index || val.index == 0) {
let _val = deepClone(val)
delete _val.index
......@@ -436,7 +437,9 @@ export default {
}
this.carSeriesVisible = false
},
editSeries(row, index) {
editSeries(row, index, id) {
console.log(row, row)
this.levelId = id
this.carSeriesVisible = true
this.formInfo = { ...row, index }
},
......@@ -594,6 +597,7 @@ export default {
.then(() => {
this.config.splice(index, 1)
delete this.form[`subForm${id}`]
this.entranceTypeChange(id)
})
.catch((err) => {
console.log(err)
......
......@@ -93,6 +93,7 @@ export default {
this.selectOptions = res
},
handleConfirm() {
console.log(this.levelId)
this.$refs.seriesForm.validate((valid) => {
if (valid) {
const {contentPicUrl, carSeries, index} = this.formData
......
......@@ -15,7 +15,7 @@
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
:closable="idx != 0">
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title
}}
}}
</span>
<div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
......@@ -153,6 +153,17 @@ export default {
this.ruleInfo.createBusinessApproveMerchant.merchantName =
obj.merchantName
this.getSelectingListPackage()
// this.getEffectRule() // 获取对账规则
}
}
},
merchantSettleDistributeRuleLastRuleInfo: {
handler(val) {
if (val) {
this.getGoodsCategoryConfigurationData()
setTimeout(() => {
this.getEffectRule() // 获取对账规则
}, 1000)
}
}
}
......@@ -162,11 +173,6 @@ export default {
this.getQueryFeeCategoryByType() // 获取费用类别
},
mounted() {
this.getGoodsCategoryConfigurationData()
setTimeout(() => {
this.getEffectRule() // 获取对账规则
}, 1000)
},
methods: {
......@@ -202,8 +208,8 @@ export default {
},
async getGoodsCategoryConfigurationData() {
const result = await this.getGoodsCategoryConfiguration()
const list = result.list
console.log(list, "getGoodsCategoryConfigurationData")
const list = result
// console.log(result, list, "getGoodsCategoryConfigurationData")
if (list.length) {
this.productType = list.map(({ categoryType, categoryName }) => {
return {
......@@ -211,7 +217,7 @@ export default {
goodsTypeName: categoryName
}
})
console.log(this.productType, "getGoodsCategoryConfigurationData2")
// console.log(this.productType, "getGoodsCategoryConfigurationData2")
}
this.initBaseData()
},
......
......@@ -99,10 +99,13 @@ export default {
}
},
watch: {
recordId(newVal, oldVal) {
if (newVal) {
recordId: {
handler(val) {
this.getDetail()
}
},
immediate: true,
deep: true
}
},
mounted() { },
......@@ -148,8 +151,9 @@ export default {
return goodTabs_flag && packageTabs_flag
},
getDetail() {
getGoodsDetail({ id: this.recordId })
this.recordId && getGoodsDetail({ id: this.recordId })
.then((res) => {
console.log(res, "getGoodsDetail")
this.goodsInfo = res
const goodsList = deepClone(res.goodsList) || []
const packageGoodsList = deepClone(res.packageGoodsList) || []
......
......@@ -223,7 +223,7 @@ export default {
return length1 - length3 - 2 > 0 && length1 > length2
},
financialLedgerParty() {
console.log(this.financialObj, "wangzhh ")
// console.log(this.financialObj, "wangzhh ")
const {
realityPlatformMerchantId,
realityPlatformMerchantName,
......@@ -329,7 +329,7 @@ export default {
shelfUpdateParMer: {
handler(obj) {
// 服务商
console.log(obj, "shelfUpdateParMer")
// console.log(obj, "shelfUpdateParMer")
this.$set(this.financialObj, "partnerMerchantId", obj.merchantId)
this.$set(this.financialObj, "partnerMerchantName", obj.merchantName)
this.financialObj = deepClone(this.financialObj)
......@@ -396,7 +396,7 @@ export default {
goodsTypeName: categoryName
}
})
console.log(this.productType, "getGoodsCategoryConfigurationData1")
// console.log(this.productType, "getGoodsCategoryConfigurationData1")
}
},
initFeeCategoryByType(scene) {
......
......@@ -33,7 +33,7 @@ import {
getServiceList,
getMerchantLevelApi
} from "@api/merchant"
import { getPlatformMerchantList } from "@api/index"
export default {
name: "ShopMerchantInfo",
props: {
......@@ -52,6 +52,12 @@ export default {
default: () => {
return []
}
},
platformLevelList: {
type: Array,
default: () => {
return []
}
}
},
......@@ -75,6 +81,11 @@ export default {
this.getyqMerchantList()
}
},
platformLevelList: {
handler(newVal, oldVal) {
this.initPlatformLevelList()
}
},
estimatedFlow: {
handler(newVal, oldVal) {
this.editData.estimatedFlow = newVal
......@@ -295,10 +306,10 @@ export default {
optionLabel: "confName",
optionsName: "operationModeList",
changeAttr: (value, targetItem) => {
const loading = this.$loading()
setTimeout(() => {
loading.close()
}, 1000)
// const loading = this.$loading()
// setTimeout(() => {
// loading.close()
// }, 1000)
this.dealPartnerMer()
this.SET_DATA({
name: "operationModeAsync",
......@@ -400,20 +411,20 @@ export default {
// console.log(this.busiModeList, 'busiModeList---')
this.getOptionsList("editFormData", false)
// 园区店
this.getyqMerchantList()
// this.getyqMerchantList()
// 服务商
this.$EventBus.$on("updateMerchant", (obj) => {
this.storeCurrentPage = 1
this.storeAllPages = 0
this.baseData.parentMerchantList = []
this.getOptionsList("editFormData", false, "merchantId")
// 流量方信息下拉框
this.get4SStoreList()
// 园区店下拉框
this.getyqMerchantList()
// 服务商下拉框
this.getServiceList()
})
// this.$EventBus.$on("updateMerchant", (obj) => {
// this.storeCurrentPage = 1
// this.storeAllPages = 0
// this.baseData.parentMerchantList = []
// this.getOptionsList("editFormData", false, "merchantId")
// // 流量方信息下拉框
// // this.get4SStoreList()
// // 园区店下拉框
// this.getyqMerchantList()
// // 服务商下拉框
// this.getServiceList()
// })
},
directives: {
"el-select-loadmore": {
......@@ -527,9 +538,9 @@ export default {
})
}
// 流量方信息下拉框
this.get4SStoreList()
// this.get4SStoreList() // 固定死的不需要请求
// 集团(上级商户)下拉框
this.getMerchantLevel()
// this.getMerchantLevel() // 固定死的不需要请求
// 服务商下拉框
this.getServiceList()
},
......@@ -571,6 +582,7 @@ export default {
// 集团(上级商户)
getMerchantLevel() {
// return;
if (!this.editData.merchantId && !this.editData.sceneType) {
this.$message({
message: "请先选择流量方信息和业务场景",
......@@ -613,22 +625,23 @@ export default {
},
// 签约主体
initPlatformLevelList() {
getPlatformMerchantList({}).then((res) => {
res.unshift({
merchantId: -1,
merchantName: "嘀加智慧云"
})
this.baseData.contractMerList = res
if (
!res.find(
(item) => item.merchantId == this.editData.contractingMerchantId
)
) {
this.editData.contractingMerchantId = ""
this.editData.contractingMerchantName = ""
}
this.getOptionsList("editFormData", false, "contractingMerchantId")
})
// getPlatformMerchantList({}).then((res) => {
// res.unshift({
// merchantId: -1,
// merchantName: "嘀加智慧云"
// })
this.baseData.contractMerList = this.platformLevelList
if (
this.platformLevelList.length &&
!this.platformLevelList.find(
(item) => item.merchantId == this.editData.contractingMerchantId
)
) {
this.editData.contractingMerchantId = ""
this.editData.contractingMerchantName = ""
}
this.getOptionsList("editFormData", false, "contractingMerchantId")
// })
},
// 获取上架数据
remoteMethod(query, searchKey, index) {
......
......@@ -10,7 +10,7 @@
</span>
<span>
<shop-merchant-info :yqMerchantList="yqMerchantList" :serviceList="serviceList"
:ref="`shopMerchant${item.tabIndex}`" :key="item.tabIndex"
:platformLevelList="platformLevelList" :ref="`shopMerchant${item.tabIndex}`" :key="item.tabIndex"
:edit-data-obj="merchantsList[item.tabIndex]"></shop-merchant-info>
</span>
</el-tab-pane>
......@@ -28,7 +28,7 @@ import {
getServiceList,
// getMerchantLevelApi
} from "@api/merchant"
import { init } from "echarts"
import { getPlatformMerchantList } from "@api/index"
export default {
name: "EditMultilateralContract",
components: {
......@@ -55,7 +55,8 @@ export default {
tabsValue: 0,
tabsList: [],
yqMerchantList: [],
serviceList: []
serviceList: [],
platformLevelList: []
}
},
mounted() {
......@@ -75,6 +76,14 @@ export default {
})
this.serviceList = res?.list || []
})
// initPlatformLevelList() {
getPlatformMerchantList({}).then((res) => {
res.unshift({
merchantId: -1,
merchantName: "嘀加智慧云"
})
this.platformLevelList = res
})
},
getAllParams() {
const list = deepClone(this.tabsList)
......
......@@ -87,17 +87,17 @@ export default {
multilateralShopMerchant
},
created() {
this.routeObj = this.$route.query
this.refreshCategoryList()
this.getMerchantSettleDistributeRuleLastRule()
},
mounted() {
this.routeObj = this.$route.query
this.isLoad = true
this.getBasicDetail()
this.$EventBus.$on("requestData", this.sendData)
// 页面可见性监听
document.addEventListener("visibilitychange", this.handleVisibilityChange)
// this.$store.dispatch('goodsCategory/refreshCategoryList');
this.getMerchantSettleDistributeRuleLastRule()
},
// 方法集合
methods: {
......@@ -106,22 +106,25 @@ export default {
}),
...mapActions("goodsInfoData", ["refreshCategoryList"]),
...mapMutations("goodsInfoData", ["SET_DATA"]),
getMerchantSettleDistributeRuleLastRule() {
merchantSettleDistributeRuleLastRule({
async getMerchantSettleDistributeRuleLastRule() {
const res = await merchantSettleDistributeRuleLastRule({
id: this.routeObj.id
})
.then((res) => {
console.log(res, "merchantSettleDistributeRuleLastRule")
this.SET_DATA({
name: "merchantSettleDistributeRuleLastRule",
data: res
})
})
.catch((err) => {
console.log(err)
})
// merchantSettleDistributeRuleLastRule({
// id: this.routeObj.id
// }).then((res) => {
console.log(res, "merchantSettleDistributeRuleLastRule")
this.SET_DATA({
name: "merchantSettleDistributeRuleLastRule",
data: res
})
// })
// .catch((err) => {
// console.log(err)
// })
},
async getBasicDetail() {
this.isLoad = true
const res = await getBusisDetailBasic({ id: this.routeObj.id })
// .then((res) => {
console.log(res, "res----")
......@@ -148,7 +151,9 @@ export default {
// })
// .finally(() => {
// })
this.isLoad = false
this.$nextTick(() => {
this.isLoad = false
}, 3000)
},
async sendData() {
// 返回测算数据
......
......@@ -27,13 +27,12 @@
:before-search-fn="beforeSearchFn">
<div slot="merchantName" slot-scope="scope">
<el-tooltip class="item" :content="scope.scope.merchantName" placement="right">
<span>
{{
scope.scope.merchantName.length > 10
<!-- scope.scope.merchantName.length > 10
? scope.scope.merchantName.substring(0, 10) + "..."
: scope.scope.merchantName
}}
</span>
: -->
<div class="merchant-item one-line-ellipsis">
{{ scope.scope.merchantName }}
</div>
</el-tooltip>
</div>
<div slot="auth-button" slot-scope="scope">
......@@ -382,4 +381,8 @@ export default {
}
}
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.merchant-item {
width: 150px;
}
</style>
......@@ -247,7 +247,7 @@ export default {
}
}, {
label: '操作人',
prop: 'createdBy'
prop: 'operatorName'
}]
},
baseData: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!