Commit bcf837f0 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 9ddd63c5 16aec418
...@@ -208,8 +208,8 @@ export default { ...@@ -208,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 {
...@@ -217,7 +217,7 @@ export default { ...@@ -217,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) {
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
this.getMerchantSettleDistributeRuleLastRule() this.getMerchantSettleDistributeRuleLastRule()
}, },
mounted() { mounted() {
this.isLoad = true
this.getBasicDetail() this.getBasicDetail()
this.$EventBus.$on("requestData", this.sendData) this.$EventBus.$on("requestData", this.sendData)
// 页面可见性监听 // 页面可见性监听
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
// }) // })
}, },
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----")
...@@ -150,7 +151,9 @@ export default { ...@@ -150,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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!