Commit 38a0b4b2 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 21e6bc44 10f35dc6
...@@ -481,7 +481,7 @@ export const routerName = { ...@@ -481,7 +481,7 @@ export const routerName = {
parentId: "90313" parentId: "90313"
}, },
{ {
authId: "9031308", authId: "9031310",
name: "运营确认", name: "运营确认",
parentId: "90313" parentId: "90313"
} }
...@@ -545,7 +545,7 @@ export const routerName = { ...@@ -545,7 +545,7 @@ export const routerName = {
}, },
component: _import("goods/shelfManage/editContract") component: _import("goods/shelfManage/editContract")
}, },
9031308: { 9031310: {
path: "/editMultilateralContract", path: "/editMultilateralContract",
name: "editMultilateralContract", name: "editMultilateralContract",
meta: { meta: {
......
...@@ -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
......
...@@ -5,40 +5,31 @@ ...@@ -5,40 +5,31 @@
<span>上架商品</span> <span>上架商品</span>
</div> </div>
<div class="check-tab"> <div class="check-tab">
<el-tabs v-model="tabsValue" type="card" class="my-tab-pane"> <el-tabs v-model="tabsValue"
<el-tab-pane type="card"
v-for="(item, idx) in goodTabs" class="my-tab-pane">
:key="item.name" <el-tab-pane v-for="(item, idx) in goodTabs"
:name="item.name" :key="item.name"
> :name="item.name">
<span slot="label" <span slot="label"><i class="el-icon-warning car-error-txt"
><i v-if="item.valiadError == 'Y'" />{{ item.title ? item.title + (idx + 1) : item.goodsName }}
class="el-icon-warning car-error-txt"
v-if="item.valiadError == 'Y'"
/>{{ item.title ? item.title + (idx + 1) : item.goodsName }}
</span> </span>
<span> <span>
<good-tab :info="item.info" :tab-idx="item.tabIndex" /> <good-tab :info="item.info"
:tab-idx="item.tabIndex" />
</span> </span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane v-for="(item, idx) in packageTabs"
v-for="(item, idx) in packageTabs" :key="item.name"
:key="item.name" :label="item.title"
:label="item.title" :name="item.name">
:name="item.name" <span slot="label"><i class="el-icon-warning car-error-txt"
> v-if="item.valiadError == 'Y'" />{{ item.title ? item.title + (idx + 1) : item.goodsName }}
<span slot="label"
><i
class="el-icon-warning car-error-txt"
v-if="item.valiadError == 'Y'"
/>{{ item.title ? item.title + (idx + 1) : item.goodsName }}
</span> </span>
<span> <span>
<package-tab <package-tab :info="item.info"
:info="item.info" :tab-idx="item.tabIndex"
:tab-idx="item.tabIndex" @packageEditInfo="getPackageEditInfo_notice" />
@packageEditInfo="getPackageEditInfo_notice"
/>
</span> </span>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -100,7 +91,7 @@ export default { ...@@ -100,7 +91,7 @@ export default {
const tabIndex = const tabIndex =
length == 0 ? length : this.goodTabs[length - 1].tabIndex + 1 length == 0 ? length : this.goodTabs[length - 1].tabIndex + 1
this.goodTabs.push({ this.goodTabs.push({
goodsName: item.goodsName, goodsName: item.upgradeGoodsName,
name: "good_" + tabIndex, name: "good_" + tabIndex,
tabIndex: tabIndex, tabIndex: tabIndex,
// goodId: item.id, // goodId: item.id,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name" <el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
:closable="idx != 0"> :closable="idx != 0">
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title <span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title
}} }}
</span> </span>
<div class="classificationCptContainer"> <div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`" <classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
...@@ -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: {
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
:label="subItem[scope.scope.optionLabel]" :value="subItem[scope.scope.optionId]"> :label="subItem[scope.scope.optionLabel]" :value="subItem[scope.scope.optionId]">
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-button type="text" class="add-mer-btn" @click="handleAddMerchant">新建</el-button> -->
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -34,13 +33,31 @@ import { ...@@ -34,13 +33,31 @@ 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: {
editDataObj: { editDataObj: {
type: Object, type: Object,
default: () => { } default: () => { }
},
serviceList: {
type: Array,
default: () => {
return []
}
},
yqMerchantList: {
type: Array,
default: () => {
return []
}
},
platformLevelList: {
type: Array,
default: () => {
return []
}
} }
}, },
...@@ -52,11 +69,29 @@ export default { ...@@ -52,11 +69,29 @@ export default {
deep: true, deep: true,
immediate: true immediate: true
}, },
serviceList: {
handler(newVal, oldVal) {
// this.editData.serviceList = newVal
this.getServiceList()
}
},
yqMerchantList: {
handler(newVal, oldVal) {
// this.editData.serviceList = newVal
this.getyqMerchantList()
}
},
platformLevelList: {
handler(newVal, oldVal) {
this.initPlatformLevelList()
}
},
estimatedFlow: { estimatedFlow: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.editData.estimatedFlow = newVal this.editData.estimatedFlow = newVal
} }
}, },
estimatedUpgradeRate: { estimatedUpgradeRate: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.editData.estimatedUpgradeRate = newVal this.editData.estimatedUpgradeRate = newVal
...@@ -65,7 +100,9 @@ export default { ...@@ -65,7 +100,9 @@ export default {
operationModeAsync: { operationModeAsync: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.editData.operationMode = newVal this.editData.operationMode = newVal
} this.dealPartnerMer()
},
deep: true
}, },
firstLineSunshineOnlinePointsFlagAsync: { firstLineSunshineOnlinePointsFlagAsync: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
...@@ -269,10 +306,10 @@ export default { ...@@ -269,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",
...@@ -374,20 +411,20 @@ export default { ...@@ -374,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": {
...@@ -472,11 +509,6 @@ export default { ...@@ -472,11 +509,6 @@ export default {
scene: this.editData.sceneType scene: this.editData.sceneType
} }
}) })
// this.$EventBus.$emit("shelfUpdateParMer", {
// merchantId: obj?.merchantId,
// merchantName: obj?.merchantName,
// scene: this.editData.sceneType
// })
} }
// this.$EventBus.$emit("operationMode", this.editData.operationMode) // this.$EventBus.$emit("operationMode", this.editData.operationMode)
this.SET_DATA({ this.SET_DATA({
...@@ -506,53 +538,51 @@ export default { ...@@ -506,53 +538,51 @@ export default {
}) })
} }
// 流量方信息下拉框 // 流量方信息下拉框
this.get4SStoreList() // this.get4SStoreList() // 固定死的不需要请求
// 集团(上级商户)下拉框 // 集团(上级商户)下拉框
this.getMerchantLevel() // this.getMerchantLevel() // 固定死的不需要请求
// 服务商下拉框 // 服务商下拉框
this.getServiceList() this.getServiceList()
}, },
getyqMerchantList() { getyqMerchantList() {
return new Promise((resolve, reject) => { // getyqMerchantList({ currentPage: 1, pageSize: 100000 }).then((res) => {
getyqMerchantList({ currentPage: 1, pageSize: 100000 }).then((res) => { // res?.list?.forEach((val) => {
res?.list?.forEach((val) => { // val.merchantId = val.merchantNo - 0
val.merchantId = val.merchantNo - 0 // })
})
this.baseData.yqMerchantList = res?.list || [] this.baseData.yqMerchantList = this.yqMerchantList || []
if ( if (
!this.baseData.yqMerchantList.find( this.baseData.yqMerchantList.length &&
(item) => item.merchantId == this.editData.yqMerchantId !this.baseData.yqMerchantList.find(
) (item) => item.merchantId == this.editData.yqMerchantId
) { )
this.editData.yqMerchantId = "" ) {
this.editData.yqMerchantName = "" this.editData.yqMerchantId = ""
} this.editData.yqMerchantName = ""
this.getOptionsList("editFormData", false, "yqMerchantId") }
resolve() this.getOptionsList("editFormData", false, "yqMerchantId")
}) // })
}) // })
}, },
// 流量方 - 联动 - 服务商下拉框 // 流量方 - 联动 - 服务商下拉框
getServiceList() { getServiceList() {
return new Promise((resolve, reject) => { // getServiceList({
const params = { // pageSize: 100000,
pageSize: 100000, // currentPage: 1
currentPage: 1 // }).then((res) => {
} // res?.list?.forEach((val) => {
getServiceList(params).then((res) => { // val.merchantId = val.merchantNo - 0
res?.list?.forEach((val) => { // })
val.merchantId = val.merchantNo - 0
}) // })
this.baseData.partnerMerchantList = res?.list || [] this.baseData.partnerMerchantList = this.serviceList || []
this.dealPartnerMer() this.dealPartnerMer()
this.getOptionsList("editFormData", false, "partnerMerchantId") this.getOptionsList("editFormData", false, "partnerMerchantId")
resolve()
})
})
}, },
// 集团(上级商户) // 集团(上级商户)
getMerchantLevel() { getMerchantLevel() {
// return;
if (!this.editData.merchantId && !this.editData.sceneType) { if (!this.editData.merchantId && !this.editData.sceneType) {
this.$message({ this.$message({
message: "请先选择流量方信息和业务场景", message: "请先选择流量方信息和业务场景",
...@@ -595,22 +625,23 @@ export default { ...@@ -595,22 +625,23 @@ 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 &&
(item) => item.merchantId == this.editData.contractingMerchantId !this.platformLevelList.find(
) (item) => item.merchantId == this.editData.contractingMerchantId
) { )
this.editData.contractingMerchantId = "" ) {
this.editData.contractingMerchantName = "" this.editData.contractingMerchantId = ""
} this.editData.contractingMerchantName = ""
this.getOptionsList("editFormData", false, "contractingMerchantId") }
}) this.getOptionsList("editFormData", false, "contractingMerchantId")
// })
}, },
// 获取上架数据 // 获取上架数据
remoteMethod(query, searchKey, index) { remoteMethod(query, searchKey, index) {
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title }} <span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title }}
</span> </span>
<span> <span>
<shop-merchant-info :ref="`shopMerchant${item.tabIndex}`" :key="item.tabIndex" <shop-merchant-info :yqMerchantList="yqMerchantList" :serviceList="serviceList"
: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>
...@@ -21,6 +22,13 @@ ...@@ -21,6 +22,13 @@
<script> <script>
import ShopMerchantInfo from "./ShopMerchantInfo" import ShopMerchantInfo from "./ShopMerchantInfo"
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
import {
// serviceGetMerchantList,
getyqMerchantList,
getServiceList,
// getMerchantLevelApi
} from "@api/merchant"
import { getPlatformMerchantList } from "@api/index"
export default { export default {
name: "EditMultilateralContract", name: "EditMultilateralContract",
components: { components: {
...@@ -45,11 +53,38 @@ export default { ...@@ -45,11 +53,38 @@ export default {
data() { data() {
return { return {
tabsValue: 0, tabsValue: 0,
tabsList: [] tabsList: [],
yqMerchantList: [],
serviceList: [],
platformLevelList: []
} }
}, },
mounted() { }, mounted() {
this.initList()
},
methods: { methods: {
initList() {
getyqMerchantList({ currentPage: 1, pageSize: 100000 }).then((res) => {
res?.list?.forEach((val) => {
val.merchantId = val.merchantNo - 0
})
this.yqMerchantList = res?.list || []
})
getServiceList({ currentPage: 1, pageSize: 100000 }).then((res) => {
res?.list?.forEach((val) => {
val.merchantId = val.merchantNo - 0
})
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)
const merchants = [] const merchants = []
......
...@@ -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.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,20 +106,22 @@ export default { ...@@ -106,20 +106,22 @@ 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({
console.log(res, "merchantSettleDistributeRuleLastRule") // id: this.routeObj.id
this.SET_DATA({ // }).then((res) => {
name: "merchantSettleDistributeRuleLastRule", console.log(res, "merchantSettleDistributeRuleLastRule")
data: res this.SET_DATA({
}) name: "merchantSettleDistributeRuleLastRule",
}) data: res
.catch((err) => { })
console.log(err) // })
}) // .catch((err) => {
// console.log(err)
// })
}, },
async getBasicDetail() { async getBasicDetail() {
const res = await getBusisDetailBasic({ id: this.routeObj.id }) const res = await getBusisDetailBasic({ id: this.routeObj.id })
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="驻店员工:" :prop="operationType =='add'?'staffUuid':''"> <el-form-item label="驻店员工:" :prop="operationType =='add'?'staffUuid':''">
<div v-if="operationType =='add'"> <div v-if="operationType =='add'">
<el-select v-model="formData.staffUuid" class="sortInput" placeholder="请先选择业务类型"> <el-select v-model="formData.staffUuid" filterable class="sortInput" placeholder="请先选择业务类型">
<el-option v-for="(subItem, subIndex) in baseData.staffList" <el-option v-for="(subItem, subIndex) in baseData.staffList"
:key="subIndex" :key="subIndex"
:label="subItem.staffName" :label="subItem.staffName"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!