|
|
@@ -16,14 +16,18 @@
|
|
|
<button @click="copy(detailInfo.orderSn)" class="admin-button-com default" > 复制 </button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="order-info_box">
|
|
|
+ <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?'银行卡':'' }}</view>
|
|
|
+ <view>{{ detailInfo.payWay==0?'微信':detailInfo.payWay==1?'支付宝':detailInfo.payWay==4?'现金':detailInfo.payWay==5?'银行卡':'其它' }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>操作人员:</view>
|
|
|
<view>{{ detailInfo.operator }}</view>
|
|
|
</view>
|
|
|
+ <view class="order-info_box" v-if="detailInfo.status == 1">
|
|
|
+ <view>过期时间:</view>
|
|
|
+ <view>{{ detailInfo.deadline.substr(5,11) }}</view>
|
|
|
+ </view>
|
|
|
<view class="order-info_box">
|
|
|
<view>订单状态:</view>
|
|
|
<view style="color:red;font-weight:bold;">{{detailInfo.status == 1 ?'待结账':detailInfo.status==2?'已结账':detailInfo.status==3?'已取消':'待结账'}}</view>
|
|
|
@@ -89,10 +93,14 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+ <view class="app-footer">
|
|
|
+ <button class="admin-button-com default" v-if="detailInfo.status == 1">取消</button>
|
|
|
+ <button class="admin-button-com default" v-if="detailInfo.status == 1" @click="toClear(detailInfo)">付款结清</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getDetail } from "@/api/clear/index";
|
|
|
+import { getDetail,detail } from "@/api/clear/index";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
export default {
|
|
|
@@ -113,10 +121,15 @@ export default {
|
|
|
loading: false
|
|
|
};
|
|
|
},
|
|
|
- onShow() {
|
|
|
- console.log('aabbcc')
|
|
|
- },
|
|
|
methods: {
|
|
|
+ toClear(info){
|
|
|
+ let that = this
|
|
|
+ detail({ id:info.id }).then(res => {
|
|
|
+ if(res.code == 1) {
|
|
|
+ that.pageTo({ url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice+'&remainSecond='+res.data.remainSecond})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
copy(val) {
|
|
|
const self = this;
|
|
|
uni.setClipboardData({
|