|
@@ -3,7 +3,7 @@
|
|
|
<pageHead pageTitle="议价审批" :showBack="true" style="margin-bottom: 10px;"></pageHead>
|
|
|
<view class="list-card">
|
|
|
<u--form ref="form" :model="bargainInfo" labelPosition="left" labelWidth="80" :labelStyle="{'color': '#6B7688','fontSize':'16px'}" >
|
|
|
-
|
|
|
+
|
|
|
<u-form-item label="项目名称" prop="projectName">
|
|
|
<view class="val-posi">{{bargainInfo.projectName}}</view>
|
|
|
</u-form-item>
|
|
@@ -22,11 +22,11 @@
|
|
|
<u-form-item label="代理商" prop="agentName" >
|
|
|
<view class="val-posi">{{bargainInfo.agentName}}</view>
|
|
|
</u-form-item>
|
|
|
-
|
|
|
+
|
|
|
</u--form>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<view class="list-card" >
|
|
|
<view class="card-title">电梯列表</view>
|
|
|
<view v-for="(item, index) in bargainInfo.elevatorList">
|
|
@@ -50,9 +50,9 @@
|
|
|
<view class="val-posi">{{stateFormatLow(item.price,0)}}</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="基价折率" prop="discountRate">
|
|
|
- <u-input v-model="item.discountRate" placeholder="请输入基价折率" type="digit" inputAlign="right"
|
|
|
- style="font-size: 16px;" :maxlength="30" border="none" @blur="changeRate(item)"></u-input>
|
|
|
- %
|
|
|
+ <u-input v-model="item.discountRate" placeholder="请输入基价折率" type="digit" inputAlign="right" border="surround"
|
|
|
+ style="font-size: 16px;" :maxlength="30" @blur="changeRate(item)" :customStyle="{width:'150px'}"></u-input>
|
|
|
+ <span style="margin-left: 5px;">%</span>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="折后价格" prop="price" >
|
|
|
<view class="val-posi">{{stateFormatLow(item.discountPrice,0)}}</view>
|
|
@@ -61,12 +61,12 @@
|
|
|
<u-divider class="divider"></u-divider>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<view class="list-card" style="padding: 16px 10px;">
|
|
|
<view class="card-title">价格信息</view>
|
|
|
<u-row gutter="4" style="margin-bottom: 8px;">
|
|
|
-
|
|
|
+
|
|
|
<u-col span="4" >
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">价格合计</view>
|
|
@@ -76,41 +76,41 @@
|
|
|
<u-col span="4">
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">基价合计</view>
|
|
|
- <view class="txt-value">¥{{stateFormatLow(bargainInfo.basicPriceTotal,0)}}</view>
|
|
|
+ <view class="txt-value">¥{{stateFormatLow(bargainInfo.basicPriceTotal,0)}}</view>
|
|
|
</view>
|
|
|
</u-col>
|
|
|
<u-col span="4">
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">选配合计</view>
|
|
|
- <view class="txt-value">¥{{stateFormatLow(bargainInfo.optionalPriceTotal,0)}}</view>
|
|
|
+ <view class="txt-value">¥{{stateFormatLow(bargainInfo.optionalPriceTotal,0)}}</view>
|
|
|
</view>
|
|
|
</u-col>
|
|
|
-
|
|
|
+
|
|
|
</u-row>
|
|
|
<u-row gutter="4">
|
|
|
<u-col span="4">
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">希望价格</view>
|
|
|
- <view class="txt-value2">¥{{stateFormatLow(bargainInfo.expectedPrice,0)}}</view>
|
|
|
- </view>
|
|
|
+ <view class="txt-value2">¥{{stateFormatLow(bargainInfo.expectedPrice,0)}}</view>
|
|
|
+ </view>
|
|
|
</u-col>
|
|
|
<u-col span="4">
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">希望基价折率</view>
|
|
|
- <view class="txt-value2">{{bargainInfo.basicPriceRate}}%</view>
|
|
|
- </view>
|
|
|
- </u-col>
|
|
|
+ <view class="txt-value2">{{bargainInfo.basicPriceRate}}%</view>
|
|
|
+ </view>
|
|
|
+ </u-col>
|
|
|
<u-col span="4">
|
|
|
<view class="card__price">
|
|
|
<view class="txt-label">实际基价折率</view>
|
|
|
- <view class="txt-value2">{{bargainInfo.discountRate}}%</view>
|
|
|
- </view>
|
|
|
- </u-col>
|
|
|
+ <view class="txt-value2">{{bargainInfo.discountRate}}%</view>
|
|
|
+ </view>
|
|
|
+ </u-col>
|
|
|
</u-row>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view style="height: 75px;"></view>
|
|
|
-
|
|
|
+
|
|
|
<view class="card_bottom ">
|
|
|
<view class="flex-center" style="width: 100%;">
|
|
|
<view class="list-card__price" >
|
|
@@ -129,8 +129,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<!-- 弹窗 -->
|
|
|
<view>
|
|
|
<!-- 驳回弹窗 -->
|
|
@@ -154,7 +154,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
-
|
|
|
+
|
|
|
<!-- 通过弹窗 -->
|
|
|
<uni-popup ref="popupPass" background-color="#fff" borderRadius="10px 10px 10px 10px" style="width: 90%;">
|
|
|
<view class="popup-content" style="padding: 20rpx 40rpx" >
|
|
@@ -178,7 +178,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
-
|
|
|
+
|
|
|
<!-- 确认弹窗 -->
|
|
|
<uni-popup ref="popupConfirm" background-color="#fff" borderRadius="10px 10px 10px 10px" style="width: 90%;">
|
|
|
<view class="popup-content" style="padding: 20rpx 40rpx" >
|
|
@@ -189,7 +189,7 @@
|
|
|
<view style="text-align: center;margin: 30rpx 0">
|
|
|
<text style="color: rgba(0, 0, 0, 0.85);">是否确认?</text>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="flex-center mt32" style="margin-bottom: 30rpx;">
|
|
|
<view class="button-left-one flex-center-middle" @click="closePup()">
|
|
|
<img class="button-icon" src="@/static/img/approve/reject.png" alt="" />
|
|
@@ -219,7 +219,7 @@
|
|
|
pageNum: 1,
|
|
|
pageSize: 5
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
bargainInfo:{},
|
|
|
bargainLoadAll: false,
|
|
|
bargainId:'',
|
|
@@ -258,7 +258,7 @@
|
|
|
//设置实体
|
|
|
let bargainObj = {}
|
|
|
let auditForm = {}
|
|
|
-
|
|
|
+
|
|
|
if (status == '02') {
|
|
|
//驳回
|
|
|
bargainObj = {
|
|
@@ -297,7 +297,7 @@
|
|
|
businessObj: bargainObj
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (status == '02') {
|
|
|
auditForm.remark += ',驳回原因:'+ this.returnMsg
|
|
|
}
|
|
@@ -309,14 +309,14 @@
|
|
|
mask: true,
|
|
|
title: '操作成功',
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}, 500)
|
|
|
//调回上一页
|
|
|
this.goBack()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
changeRate(item){
|
|
|
if(item.discountRate < 1){
|
|
|
item.discountRate = 1
|
|
@@ -346,7 +346,7 @@
|
|
|
//折扣率格式化
|
|
|
this.bargainInfo.discountRate = Number(discountRate).toFixed(4)
|
|
|
},
|
|
|
- stateFormat,
|
|
|
+ stateFormat,
|
|
|
stateFormatLow,
|
|
|
getBargainInfo() {
|
|
|
ApproveApi.bargainById(this.quotationId).then(res => {
|
|
@@ -364,7 +364,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
async doSP(status){
|
|
|
const that = this
|
|
|
let res = await ApproveApi.getSalesDiscount(this.quotationId);
|
|
@@ -388,14 +388,14 @@
|
|
|
}else{
|
|
|
this.handleApprove(status)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 审批
|
|
|
handleApproveOld(status) {
|
|
|
let bargainObj = {}
|
|
|
let auditForm = {}
|
|
|
-
|
|
|
+
|
|
|
if (status == '02') {
|
|
|
//驳回
|
|
|
bargainObj = {
|
|
@@ -434,8 +434,8 @@
|
|
|
businessObj: bargainObj
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
const that = this
|
|
|
uni.showModal({
|
|
|
title: status == '02' ? '是否确认驳回' : '是否确认通过',
|
|
@@ -456,7 +456,7 @@
|
|
|
mask: true,
|
|
|
title: '操作成功',
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}, 500)
|
|
|
//调回上一页
|
|
|
that.goBack()
|
|
@@ -471,7 +471,7 @@
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/work/approve/list'
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -508,21 +508,21 @@
|
|
|
line-height: 44rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.button-right {
|
|
|
width: 48%;
|
|
|
height: 84rpx;
|
|
|
background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
|
|
|
box-shadow: 0px 5px 6px 0px #EADEDF;
|
|
|
border-radius: 0rpx 200rpx 200rpx 0rpx;
|
|
|
-
|
|
|
+
|
|
|
.pass-text {
|
|
|
font-size: 32rpx;
|
|
|
color: #FFFFFF;
|
|
|
line-height: 44rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
.card-title{
|
|
|
font-weight: 600;
|
|
@@ -560,7 +560,7 @@
|
|
|
text-align: right;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
::v-deep .u-badge--error {
|
|
|
background-color: #E60114;
|
|
|
}
|
|
@@ -676,10 +676,10 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.popup-content {
|
|
|
padding: 20rpx 20rpx;
|
|
|
-
|
|
|
+
|
|
|
.return_content{
|
|
|
width: 92%;
|
|
|
padding: 20rpx 28rpx;
|
|
@@ -698,7 +698,7 @@
|
|
|
height: 28rpx;
|
|
|
margin-right: 8rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.button-left {
|
|
|
width: 350rpx;
|
|
|
height: 84rpx;
|
|
@@ -711,14 +711,14 @@
|
|
|
line-height: 44rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.button-right {
|
|
|
width: 350rpx;
|
|
|
height: 84rpx;
|
|
|
background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
|
|
|
border-radius: 0rpx 200rpx 200rpx 0rpx;
|
|
|
box-shadow: 0px 2px 8px 0px #DFDFDF;
|
|
|
-
|
|
|
+
|
|
|
.pass-text {
|
|
|
font-size: 32rpx;
|
|
|
color: #FFFFFF;
|
|
@@ -737,14 +737,14 @@
|
|
|
line-height: 44rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.button-right-one {
|
|
|
width: 220rpx;
|
|
|
height: 84rpx;
|
|
|
background: linear-gradient(90deg, #DC0736 0%, #E60114 100%);
|
|
|
border-radius: 200rpx;
|
|
|
box-shadow: 0px 2px 8px 0px #DFDFDF;
|
|
|
-
|
|
|
+
|
|
|
.pass-text {
|
|
|
font-size: 32rpx;
|
|
|
color: #FFFFFF;
|
|
@@ -753,4 +753,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|