|
|
@@ -24,14 +24,25 @@
|
|
|
<button @click="copy(detailInfo.orderSn)" class="admin-button-com default" > 复制 </button>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
<view class="order-info_box" v-if="detailInfo.status == 2">
|
|
|
<view>支付方式:</view>
|
|
|
<view>
|
|
|
- {{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':'--' }}
|
|
|
- <text v-if="detailInfo.onlinePay == 1">(线下)</text>
|
|
|
+ {{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':detailInfo.payWay==11?'抵扣':'--' }}
|
|
|
+ <text v-if="detailInfo.onlinePay == 1">
|
|
|
+ <text v-if="detailInfo.payWay==0 || detailInfo.payWay==1">(线下)</text>
|
|
|
+ </text>
|
|
|
<text v-else style="font-weight:bold;color:#3385ff;">(线上)</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="order-info_box" v-if="detailInfo.status == 2 && detailInfo.payRemark!=''">
|
|
|
+ <view>支付说明:</view>
|
|
|
+ <view>
|
|
|
+ {{ detailInfo.payRemark }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="order-info_box">
|
|
|
<view>操作人员:</view>
|
|
|
<view>{{ detailInfo.operator }}</view>
|
|
|
@@ -123,6 +134,18 @@
|
|
|
<button class="admin-button-com default" v-if="detailInfo.status == 1" @click="inviteClear()">邀客户结账</button>
|
|
|
<!-- #endif -->
|
|
|
</view>
|
|
|
+
|
|
|
+ <uni-popup ref="clearConfirmRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
+ <view style="padding:30upx;">
|
|
|
+ <textarea v-model="payRemark" style="border:1upx solid #cccccc;height:100upx;font-size:28upx;margin-bottom:40upx;" placeholder="这里写备注说明..."></textarea>
|
|
|
+ <view style="font-size:34upx;font-weight:bold;margin-bottom:15upx;text-align: center;">确认客户通过<text style="color:blue;margin-left:15upx;margin-right:15upx;">{{ payName }}</text>付款?</view>
|
|
|
+ <view style="text-align:center;">
|
|
|
+ <button class="admin-button-com big default" style="margin:30upx auto 10upx auto;width:45%;" @click="cancelAdd()">取消</button>
|
|
|
+ <button class="admin-button-com big blue" style="margin:30upx auto 10upx 20upx;width:45%;" @click="confirmAdd()">确认</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -145,12 +168,23 @@ export default {
|
|
|
form: { name: "" },
|
|
|
detailInfo: {},
|
|
|
loading: false,
|
|
|
- title:'点击查账和结账'
|
|
|
+ title:'点击查账和结账',
|
|
|
+ payRemark:'',
|
|
|
+ payWay:0,
|
|
|
+ payName:''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({ dictInfo:"getDictionariesInfo" })
|
|
|
},
|
|
|
+ onLoad() {
|
|
|
+
|
|
|
+ //返回上一页到客户详情页时,需要刷新
|
|
|
+ let pages = getCurrentPages();
|
|
|
+ let prevPage = pages[ pages.length - 2 ];
|
|
|
+ prevPage.$vm.needRefresh = 1
|
|
|
+
|
|
|
+ },
|
|
|
onShareAppMessage(res) {
|
|
|
return {
|
|
|
title: this.title,
|
|
|
@@ -195,27 +229,38 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- customHasClear(info){
|
|
|
+ cancelAdd(){
|
|
|
+ this.$refs.clearConfirmRef.close()
|
|
|
+ this.payRemark = ''
|
|
|
+ },
|
|
|
+ confirmAdd(){
|
|
|
let that = this
|
|
|
- that.$util.confirmModal({content:'确认客户已转账?'},() => {
|
|
|
- uni.showActionSheet({
|
|
|
- itemList: ['请选择收款方式:', '线下微信', '线下支付宝','现金','银行卡'],
|
|
|
- success: function (respond) {
|
|
|
- let currentIndex = respond.tapIndex
|
|
|
- let inWay = [{name:"未选择",id:-1},{name:"微信",id:0},{name:"支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5}]
|
|
|
- if(currentIndex > 0){
|
|
|
- let payWay = inWay[currentIndex].id
|
|
|
- confirmClear({id:info.id,payWay:payWay}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.$msg('操作成功')
|
|
|
- that.init()
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
- that.$msg("请选择收款方式");
|
|
|
- }
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ confirmClear({id:this.detailInfo.id,payWay:this.payWay,payRemark:this.payRemark}).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$refs.clearConfirmRef.close()
|
|
|
+ that.$msg('操作成功')
|
|
|
+ that.init()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ customHasClear(){
|
|
|
+ let that = this
|
|
|
+ uni.showActionSheet({
|
|
|
+ itemList: ['请选择收款方式:', '线下微信', '线下支付宝','现金','银行卡','抵扣'],
|
|
|
+ success: function (respond) {
|
|
|
+ let currentIndex = respond.tapIndex
|
|
|
+ let inWay = [{name:"未选择",id:-1},{name:"线下微信",id:0},{name:"线下支付宝",id:1},{name:"现金",id:4},{name:"银行卡",id:5},{name:"抵扣",id:11}]
|
|
|
+ if(currentIndex > 0){
|
|
|
+ let payWay = inWay[currentIndex].id
|
|
|
+ that.payWay = payWay
|
|
|
+ that.payName = inWay[currentIndex].name
|
|
|
+ that.$refs.clearConfirmRef.open('center')
|
|
|
+ }else{
|
|
|
+ that.$msg("请选择收款方式");
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
copy(val) {
|