Commit e0a90479 authored by xiangzj's avatar xiangzj

销售折扣

parent 88d0a5f3
...@@ -25,11 +25,29 @@ ...@@ -25,11 +25,29 @@
</label> </label>
</radio-group> </radio-group>
<view class="total-amount"> <view class="total-amount">
<button class="title-info__status blue" type="default" @click="goActDetail(newsItem.acts)">
<text class="item-block-btn__text">活动明细</text>
</button>
<text class="middle-title__text">总金额:</text> <text class="middle-title__text">总金额:</text>
<text class="middle-title__text red">{{ newsItem.total_amount }}</text> <text class="middle-title__text red">{{ newsItem.total_amount }}</text>
</view> </view>
</view> </view>
</view> </view>
<uni-popup ref="popup" type="center">
<scroll-view scroll-x scroll-y class="popup-content">
<view class="view planout-block-item" v-for="(item,index) in actArr" >
<view class="text-block">
<text class="middle-date middle-date-select">活动名称:</text>
<!-- <text class="middle-date-pro middle-date-des-select">五粮液39度重点城市的终端活动-优化0801</text> -->
<text class="middle-date-pro middle-date-des-select" :class="item.act_name.length>15?'pro-flex': ''">{{ item.act_name }}</text>
</view>
<view class="text-block">
<text class="middle-date middle-date-select">活动金额:</text>
<text class="middle-date-des middle-date-des-select">{{ item.amount }}</text>
</view>
</view>
</scroll-view>
</uni-popup>
</view> </view>
</template> </template>
...@@ -61,7 +79,8 @@ export default { ...@@ -61,7 +79,8 @@ export default {
receiveInfoHeight: '132', receiveInfoHeight: '132',
receiveInfoDetailSize: {}, receiveInfoDetailSize: {},
allFiles: [], allFiles: [],
cb: '' cb: '',
actArr: []
}; };
}, },
computed: { computed: {
...@@ -88,6 +107,14 @@ export default { ...@@ -88,6 +107,14 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
goActDetail(arr){
this.actArr = arr
this.$refs.popup.open()
},
closePopup(){
this.actArr = []
this.$refs.popup.close()
},
handleCheck() { handleCheck() {
this.$emit('handleCheck', this.idx); this.$emit('handleCheck', this.idx);
}, },
...@@ -157,7 +184,10 @@ export default { ...@@ -157,7 +184,10 @@ export default {
padding: 0 10rpx; padding: 0 10rpx;
border: none; border: none;
} }
.blue{
background: #007aff;
margin-right: 20rpx;
}
.item-block-btn__text { .item-block-btn__text {
font-size: 12px; font-size: 12px;
color: #fff; color: #fff;
...@@ -188,9 +218,9 @@ export default { ...@@ -188,9 +218,9 @@ export default {
} }
.text-block { .text-block {
flex: 1; margin-bottom: 10rpx;
flex-direction: column; display: flex;
margin-bottom: 16rpx; overflow: auto;
} }
.text-block-last { .text-block-last {
...@@ -199,13 +229,21 @@ export default { ...@@ -199,13 +229,21 @@ export default {
.middle-date { .middle-date {
font-size: 28rpx; font-size: 28rpx;
color: $text-base-color; color: #333;
margin-top: 8rpx; margin-bottom: 8rpx;
}
.middle-date-pro {
font-size: 28rpx;
color: #888;
overflow: auto;
}
.pro-flex{
flex: 4;
height: 74rpx;
} }
.middle-date-des { .middle-date-des {
font-size: 24rpx; font-size: 28rpx;
color: #999; color: #888;
} }
.text-block-box { .text-block-box {
...@@ -272,10 +310,7 @@ export default { ...@@ -272,10 +310,7 @@ export default {
.block-detal { .block-detal {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #f8f8f8; margin-bottom: 6rpx;
border-radius: 20rpx;
padding: 28rpx 32rpx;
margin-bottom: 16rpx;
} }
.block-detal-last { .block-detal-last {
...@@ -284,7 +319,7 @@ export default { ...@@ -284,7 +319,7 @@ export default {
.block-detal-item { .block-detal-item {
display: flex; display: flex;
margin-bottom: 32rpx; margin-bottom: 20rpx;
justify-content: space-between; justify-content: space-between;
} }
...@@ -294,7 +329,7 @@ export default { ...@@ -294,7 +329,7 @@ export default {
.detal-item-label { .detal-item-label {
color: #999; color: #999;
font-size: 24rpx; font-size: 28rpx;
} }
.detal-item-value { .detal-item-value {
...@@ -410,4 +445,18 @@ export default { ...@@ -410,4 +445,18 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.popup-content{
background: #fff;
padding: 20rpx 20rpx;
width: 600rpx;
max-height: 800rpx;
border-radius: 5px;
overflow: auto;
display: flex;
flex-direction: column;
}
.planout-block-item {
border-bottom: 1px solid #999;
margin-bottom: 10rpx;
}
</style> </style>
\ No newline at end of file
...@@ -49,7 +49,7 @@ import uniCell from '@/components/uni-cell.vue'; ...@@ -49,7 +49,7 @@ import uniCell from '@/components/uni-cell.vue';
import uniRefresh from '@/components/uni-refresh.vue'; import uniRefresh from '@/components/uni-refresh.vue';
import uniLoadMore from '@/components/uni-load-more.vue'; import uniLoadMore from '@/components/uni-load-more.vue';
import noData from '@/components/nodata.nvue'; import noData from '@/components/nodata.nvue';
import { getDhk, getSubmitDhk } from '@/servers/loan.js'; import { getDhkApp, getSubmitDhk } from '@/servers/loan.js';
import orderItem from './order-item.nvue'; import orderItem from './order-item.nvue';
export default { export default {
components: { components: {
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
} }
!params.state[0].low && delete params.state; !params.state[0].low && delete params.state;
let res = null; let res = null;
res = await getDhk(params); res = await getDhkApp(params);
if (res.msgtype == 'S') { if (res.msgtype == 'S') {
this.isLoading = false; this.isLoading = false;
if (refresh) { if (refresh) {
......
...@@ -8,11 +8,15 @@ ...@@ -8,11 +8,15 @@
</template> </template>
<script> <script>
import {
querySysDictionaryDetailsByCode,
} from '@/servers/purchaseList.js'
import { getClientByApp } from '@/servers/address.js' import { getClientByApp } from '@/servers/address.js'
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
data() { data() {
return { return {
token: '',
src: '', src: '',
webview_styles: { webview_styles: {
} }
...@@ -33,9 +37,11 @@ ...@@ -33,9 +37,11 @@
async getClientByApp(){ async getClientByApp(){
const res = await getClientByApp({code: this.userInfo.code}) const res = await getClientByApp({code: this.userInfo.code})
if(res){ if(res){
this.token = res
this.getSelectDictDataOrigin()
// this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin_test.html?'+res //测试环境 // this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin_test.html?'+res //测试环境
// this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res //生产环境 // this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res //生产环境
this.src = 'https://vls.wuliangyegroup.com.cn:8090/webroot/decision?'+res //25.6.23生产环境 // this.src = 'https://vls.wuliangyegroup.com.cn:8090/webroot/decision?'+res //25.6.23生产环境
}else{ }else{
uni.showToast({ uni.showToast({
title: '权限校验不通过', title: '权限校验不通过',
...@@ -46,6 +52,17 @@ ...@@ -46,6 +52,17 @@
} }
}, },
getSelectDictDataOrigin() {
querySysDictionaryDetailsByCode({'code': 'thirdSysUrl'})
.then(res => {
const arr = res.data.Rows
if(arr.length > 0){
const result = arr.find(item => item.name === 'kanban');
this.src = result.value + this.token
}
})
.catch(() => {})
},
message(event) { message(event) {
console.log(JSON.stringify(event.detail)); console.log(JSON.stringify(event.detail));
}, },
......
...@@ -21,3 +21,7 @@ export async function getDhkDbsl(params) { ...@@ -21,3 +21,7 @@ export async function getDhkDbsl(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_dhk_dbsl', params) const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_dhk_dbsl', params)
return res return res
} }
export async function getDhkApp(params) {
const res = await apiHelper.post('/sap/bc/ztpm/to_new_crm/transdata/get_dhk_app', params)
return res
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment