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