Commit 81484e37 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 a0c57de3 c3b91238
......@@ -12,7 +12,6 @@
:label="subItem[scope.scope.optionLabel]" :value="subItem[scope.scope.optionId]">
</el-option>
</el-select>
<!-- <el-button type="text" class="add-mer-btn" @click="handleAddMerchant">新建</el-button> -->
</div>
</glsx-combi-form>
</div>
......@@ -41,6 +40,18 @@ export default {
editDataObj: {
type: Object,
default: () => { }
},
serviceList: {
type: Array,
default: () => {
return []
}
},
yqMerchantList: {
type: Array,
default: () => {
return []
}
}
},
......@@ -52,11 +63,24 @@ export default {
deep: true,
immediate: true
},
serviceList: {
handler(newVal, oldVal) {
// this.editData.serviceList = newVal
this.getServiceList()
}
},
yqMerchantList: {
handler(newVal, oldVal) {
// this.editData.serviceList = newVal
this.getyqMerchantList()
}
},
estimatedFlow: {
handler(newVal, oldVal) {
this.editData.estimatedFlow = newVal
}
},
estimatedUpgradeRate: {
handler(newVal, oldVal) {
this.editData.estimatedUpgradeRate = newVal
......@@ -65,7 +89,9 @@ export default {
operationModeAsync: {
handler(newVal, oldVal) {
this.editData.operationMode = newVal
}
this.dealPartnerMer()
},
deep: true
},
firstLineSunshineOnlinePointsFlagAsync: {
handler(newVal, oldVal) {
......@@ -472,11 +498,6 @@ export default {
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.SET_DATA({
......@@ -513,42 +534,39 @@ export default {
this.getServiceList()
},
getyqMerchantList() {
return new Promise((resolve, reject) => {
getyqMerchantList({ currentPage: 1, pageSize: 100000 }).then((res) => {
res?.list?.forEach((val) => {
val.merchantId = val.merchantNo - 0
})
this.baseData.yqMerchantList = res?.list || []
if (
!this.baseData.yqMerchantList.find(
(item) => item.merchantId == this.editData.yqMerchantId
)
) {
this.editData.yqMerchantId = ""
this.editData.yqMerchantName = ""
}
this.getOptionsList("editFormData", false, "yqMerchantId")
resolve()
})
})
// getyqMerchantList({ currentPage: 1, pageSize: 100000 }).then((res) => {
// res?.list?.forEach((val) => {
// val.merchantId = val.merchantNo - 0
// })
this.baseData.yqMerchantList = this.yqMerchantList || []
if (
this.baseData.yqMerchantList.length &&
!this.baseData.yqMerchantList.find(
(item) => item.merchantId == this.editData.yqMerchantId
)
) {
this.editData.yqMerchantId = ""
this.editData.yqMerchantName = ""
}
this.getOptionsList("editFormData", false, "yqMerchantId")
// })
// })
},
// 流量方 - 联动 - 服务商下拉框
getServiceList() {
return new Promise((resolve, reject) => {
const params = {
pageSize: 100000,
currentPage: 1
}
getServiceList(params).then((res) => {
res?.list?.forEach((val) => {
val.merchantId = val.merchantNo - 0
})
this.baseData.partnerMerchantList = res?.list || []
this.dealPartnerMer()
this.getOptionsList("editFormData", false, "partnerMerchantId")
resolve()
})
})
// getServiceList({
// pageSize: 100000,
// currentPage: 1
// }).then((res) => {
// res?.list?.forEach((val) => {
// val.merchantId = val.merchantNo - 0
// })
// })
this.baseData.partnerMerchantList = this.serviceList || []
this.dealPartnerMer()
this.getOptionsList("editFormData", false, "partnerMerchantId")
},
// 集团(上级商户)
......
......@@ -9,7 +9,8 @@
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="item.valiadError == 'Y'" />{{ item.title }}
</span>
<span>
<shop-merchant-info :ref="`shopMerchant${item.tabIndex}`" :key="item.tabIndex"
<shop-merchant-info :yqMerchantList="yqMerchantList" :serviceList="serviceList"
:ref="`shopMerchant${item.tabIndex}`" :key="item.tabIndex"
:edit-data-obj="merchantsList[item.tabIndex]"></shop-merchant-info>
</span>
</el-tab-pane>
......@@ -21,6 +22,13 @@
<script>
import ShopMerchantInfo from "./ShopMerchantInfo"
import { deepClone } from "@/common/util"
import {
// serviceGetMerchantList,
getyqMerchantList,
getServiceList,
// getMerchantLevelApi
} from "@api/merchant"
import { init } from "echarts"
export default {
name: "EditMultilateralContract",
components: {
......@@ -45,11 +53,29 @@ export default {
data() {
return {
tabsValue: 0,
tabsList: []
tabsList: [],
yqMerchantList: [],
serviceList: []
}
},
mounted() { },
mounted() {
this.initList()
},
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 || []
})
},
getAllParams() {
const list = deepClone(this.tabsList)
const merchants = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!