|
@@ -20,7 +20,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 列表数据 -->
|
|
<!-- 列表数据 -->
|
|
- <view class="nbox-1">
|
|
|
|
|
|
+ <view class="nbox-1" v-if="list.length">
|
|
<view class="nbox-2" v-for="(item,index) in list" :key="index">
|
|
<view class="nbox-2" v-for="(item,index) in list" :key="index">
|
|
<view class="container" @click='goOrderDetails(item)'>
|
|
<view class="container" @click='goOrderDetails(item)'>
|
|
<text class="left-text">{{item.merName}}</text>
|
|
<text class="left-text">{{item.merName}}</text>
|
|
@@ -57,8 +57,11 @@
|
|
|
|
|
|
<!-- 留言字段 -->
|
|
<!-- 留言字段 -->
|
|
<image src="/static/img/ic-message1.png" class="image2" />
|
|
<image src="/static/img/ic-message1.png" class="image2" />
|
|
- <text style="color: #141414;font-size: 21rpx;">留言</text>
|
|
|
|
|
|
+ <text style="color: #141414;font-size: 21rpx;" @click="modify(item, 1)">留言</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund"
|
|
|
|
+ v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
|
|
|
|
+ :status="status"></PriceChange>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='loadingicon flex-center' :hidden='!loading'>
|
|
<view class='loadingicon flex-center' :hidden='!loading'>
|
|
@@ -66,22 +69,30 @@
|
|
</view>
|
|
</view>
|
|
<view class="flex-center no-data-tip" v-if="loadTitle">{{loadTitle}}</view>
|
|
<view class="flex-center no-data-tip" v-if="loadTitle">{{loadTitle}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <emptyPage v-else title="暂无订单~" :imgSrc="urlDomain+'crmebimage/presets/noShopper.png'"></emptyPage>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import PriceChange from "./PriceChange/index.vue";
|
|
|
|
+ import emptyPage from '@/components/emptyPage.vue'
|
|
import {
|
|
import {
|
|
ProductTypeEnum,
|
|
ProductTypeEnum,
|
|
} from "@/enums/productEnums";
|
|
} from "@/enums/productEnums";
|
|
import {
|
|
import {
|
|
-
|
|
|
|
|
|
+ userMark,
|
|
getOrderList
|
|
getOrderList
|
|
} from '@/api/order.js';
|
|
} from '@/api/order.js';
|
|
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
|
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
|
|
let app = getApp();
|
|
let app = getApp();
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ emptyPage,
|
|
|
|
+ PriceChange
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ urlDomain: this.$Cache.get("imgHost"),
|
|
statusBarHeight: app.globalData.statusBarHeight,
|
|
statusBarHeight: app.globalData.statusBarHeight,
|
|
navigationBarHeight: 0,
|
|
navigationBarHeight: 0,
|
|
isShow: 0,
|
|
isShow: 0,
|
|
@@ -90,7 +101,10 @@
|
|
loadTitle: '',
|
|
loadTitle: '',
|
|
page: 1,
|
|
page: 1,
|
|
list: [], //订单数据
|
|
list: [], //订单数据
|
|
- ProductTypeEnum
|
|
|
|
|
|
+ ProductTypeEnum,
|
|
|
|
+ change:false,
|
|
|
|
+ orderInfo:{},
|
|
|
|
+ status: ""
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//下拉刷新
|
|
//下拉刷新
|
|
@@ -115,6 +129,39 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ modify: function(item, status) {
|
|
|
|
+ this.change = true;
|
|
|
|
+ this.status = status.toString();
|
|
|
|
+ this.orderInfo = item;
|
|
|
|
+ },
|
|
|
|
+ changeclose: function(msg) {
|
|
|
|
+ this.change = msg;
|
|
|
|
+ },
|
|
|
|
+ async savePrice(opt) {
|
|
|
|
+ let that = this,
|
|
|
|
+ data = {};
|
|
|
|
+ data.orderNo = that.orderInfo.orderNo;
|
|
|
|
+ data.remark=opt.remark
|
|
|
|
+ if (!data.remark) {
|
|
|
|
+ return this.$util.Tips({
|
|
|
|
+ title: '请输入备注'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ userMark(data).then(res=>{
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ this.$util.Tips({
|
|
|
|
+ title: '备注成功'
|
|
|
|
+ })
|
|
|
|
+ this.getOrderList();
|
|
|
|
+ this.change = false
|
|
|
|
+ }else{
|
|
|
|
+ this.$util.Tips({
|
|
|
|
+ title:res.message
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* 去订单详情
|
|
* 去订单详情
|
|
*/
|
|
*/
|