xhj hace 2 años
padre
commit
c6a7f0783d

+ 1 - 1
merchant/deliverExtend.vue

@@ -51,7 +51,7 @@ export default {
 		// 获取发货单号
 		deliverExtend() {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: this.id
 				},

+ 18 - 0
merchant/deliverExtend/deliverExtend.css

@@ -0,0 +1,18 @@
+/* mine/deliverExtend/deliverExtend.wxss */
+.top{text-align: center;padding: 30rpx 0;color: #9D9E9E;}
+.content{padding: 30rpx 30rpx 0rpx 30rpx;margin: 0 0 20rpx 0; }
+.wuliu{justify-content: space-between;font-size: 28rpx;}
+.imag{align-items: center;}
+.wuliu .imag .dingdan{width: 33rpx;height: 33rpx; margin-right: 19rpx;}
+.psfs{background: #fff;margin:20rpx 0rpx 20rpx 20rpx;overflow: hidden;position: relative;}
+.psico{width: 41rpx;height: 31rpx;margin-right: 22rpx;margin-top: 5rpx;}
+.psfs .flex view{font-size: 28rpx;color: #0065AC;margin-bottom: 12rpx;line-height: 40rpx;}
+.psfs .flex text{display: block;font-size: 24rpx;color: #666;}
+.rico1{width: 14rpx;height: 26rpx;position: absolute;top: 50%;right: 20rpx;transform: translateY(-50%);}
+.kuaidi,.product{border-bottom: 1rpx solid #EFEFEF;}
+.guige{font-size: 24rpx; color: #9D9E9E;padding: 10rpx 0 20rpx 0;}
+.product{padding: 30rpx 0 20rpx 0; font-size: 32rpx;}
+.money{justify-content: space-between;}
+.money .pic{font-size: 24rpx ; color: #F32727;}
+.money .pic text{font-size: 32rpx;}
+.all{padding: 30rpx 0; text-align: center; color: #9D9E9E;}

+ 124 - 0
merchant/deliverExtend/deliverExtend.vue

@@ -0,0 +1,124 @@
+<template>
+<view>
+<!--mine/deliverExtend/deliverExtend.wxml-->
+<view class="top">该订单已被拆分为{{list.length}}个包裹发货</view>
+<view v-for="(item, index) in list" :key="index" class="bgfff content">
+  <view class="dflex wuliu">
+    <view class="dflex imag"><image src="/mine/static/mine/images/list.png" class="dingdan"></image>分单{{index+1}} </view>
+    <view>{{item.express?item.express:''}} {{item.expressNo?item.expressNo:''}}</view>
+  </view>
+  <view class="kuaidi">
+    <view class="psfs dflex" @tap="goUrl" :data-url="'/mine/logistics/logistics?id=' + item.id + '&orderId=' + id">
+      <image src="/static/pages/images/psico.png" class="psico"></image>
+      <view class="flex">
+        <view>{{item.logistics.context}}</view>
+        <text>{{item.logistics.time?item.logistics.time:time}}</text>
+      </view>
+      <image src="/static/pages/images/more.png" class="rico1"></image>
+    </view>
+  </view>
+  <view v-for="(items, index2) in item.extendDTOList" :key="index2" class="product">
+    <view>{{items.productName}}</view>
+    <!-- <view class="guige">规格:额阿伟啊</view> -->
+    <view class="money dflex">
+      <view class="pic">¥<text>{{items.money}}</text></view>
+      <view>x{{items.quantity}}</view>
+    </view>
+  </view>
+  <view class="all">查看全部</view>
+</view>
+</view>
+</template>
+
+<script>
+// mine/deliverExtend/deliverExtend.js
+const app = getApp(); // const QRCode = require('../../utils/weapp.qrcode.js')
+// const QRCode = require('../../utils/weapp.qrcode.js')
+const req = require("../../utils/request.js");
+
+export default {
+  data() {
+    return {
+      id: "",
+      time: "",
+      list: ""
+    };
+  },
+
+  components: {},
+  props: {},
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad: function (options) {
+    this.query = options;
+    this.setData({
+      id: options.orderId
+    });
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow: function () {
+    this.deliverExtend();
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide: function () {},
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload: function () {},
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh: function () {},
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom: function () {},
+  methods: {
+    // 获取分单发货的
+    deliverExtend() {
+      let time = new Date().toLocaleString();
+      this.setData({
+        time: time
+      });
+      req.postRequest('/api/order/deliverExtend', {
+        id: this.query.orderId
+      }, res => {
+        // console.log(res);
+
+        if (!res) {} else {
+          res = res.map(it => {
+            it.logistics = JSON.parse(it.logistics);
+            return it;
+          });
+          // console.log(res);
+          this.setData({
+            list: res
+          });
+        }
+      });
+    },
+
+    goUrl(e) {
+      var dataset = e.currentTarget.dataset;
+      uni.navigateTo({
+        url: dataset.url
+      });
+    }
+
+  }
+};
+</script>
+<style>
+@import "./deliverExtend.css";
+</style>

+ 3 - 3
merchant/express.vue

@@ -261,7 +261,7 @@ export default {
 				id: this.id
 			};
 			req.getRequest(
-				'/api/order/detail',
+				'/admin/v1/orderMall/detail',
 				from,
 				data => {
 					this.order = data;
@@ -371,7 +371,7 @@ export default {
 		getexpress() {
 			// this.req.getexpress({}, (data) => {
 			let express = [];
-			req.getRequest('/api/orderRefund/refundReason', {}, data => {
+			req.getRequest('/admin/v1/orderRefund/refundReason', {}, data => {
 				this.express = data.express;
 			});
 			if (this.index == 3) {
@@ -463,7 +463,7 @@ export default {
 			let that = this;
 
 			req.postRequest(
-				'/api/order/confirm',
+				'/admin/v1/orderMall/confirm',
 				param,
 				data => {
 					if (data == 1) {

+ 1 - 1
merchant/index.vue

@@ -318,7 +318,7 @@ export default {
 		// 确认发货
 		deliverGoods(id, merchantId, orderType) {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: id
 				},

+ 21 - 0
merchant/logistics/logistics.css

@@ -0,0 +1,21 @@
+/* pages/logistics/logistics.wxss */
+page{background: #fff;padding-bottom: 140rpx;}
+.status{padding: 30rpx 35rpx 35rpx;border-bottom: 20rpx solid #f6f6f6;}
+.status view{font-size: 30rpx;color: #333;line-height: 40rpx;}
+.status text{display: block;font-size: 28rpx;color: #999;line-height: 40rpx;}
+.status view text{font-size: 30rpx;color: #FE0419;display: inline-block;}
+.wuliu{padding: 0 35rpx;}
+.tit{font-size: 30rpx;color: #333;padding: 25rpx 0;border-bottom: 1rpx solid #EEEEEE;}
+.pslist{padding: 40rpx 0 0 20rpx;}
+.pslist .li{padding-bottom: 65rpx;display: flex;display: -webkit-flex;align-items: center;padding-left: 45rpx;position: relative;}
+.pslist .li::before{content: '';display: block;width: 20rpx;height: 20rpx;border-radius: 50%;background: #ddd;position: absolute;top: 12rpx;left: -10rpx;z-index: 2;}
+.pslist .li::after{content: '';display: block;width: 2rpx;background: #ddd;position: absolute;top: 10rpx;left: 0;bottom: -12rpx;z-index: 1;}
+.pslist .li:last-child::after{display: none;}
+.lis{flex: 1;-webkit-flex: 1;margin-right: 20rpx;}
+.lis view{font-size: 28rpx;color: #333;}
+.lis text{display: block;font-size: 24rpx;color: #999;margin: 10rpx 0 0;}
+.pslist .li.ing view{color: #FE0419;}
+.pslist .li.ing::before{border: 8rpx solid #ffd3d7;background: #FE0419;left: -17rpx;top: 6rpx;}
+.rico1{display: block;width: 18.2rpx;height: 27.3rpx;position: absolute; top: 70rpx;right: 30rpx;  }
+
+.confirm{position: fixed;left: 30rpx;bottom: 40rpx;right: 30rpx;height: 80rpx;line-height: 80rpx;text-align: center;font-size: 30rpx;color: #fff;border-radius: 40rpx;background: #FE0419;z-index: 5;}

+ 125 - 0
merchant/logistics/logistics.vue

@@ -0,0 +1,125 @@
+<template>
+	<view>
+		<!-- <view class="status"  bindtap="goUrl"  data-url="/pages/my/seperate/seperate?id={{orderId}}&fdid={{id}}"  > -->
+		<view class="status">
+			<text v-if="orderId">订单编号:{{orderId}}</text>
+			<text v-if="detail.expressNo">{{detail.express}}:{{detail.expressNo}}</text>
+			<text v-if="detail.mobile">客服电话:{{detail.mobile}}</text>
+			<image src="/static/pages/images/rico.png" class="rico1"></image>
+		</view>
+		<view class="wuliu">
+			<view class="tit">物流跟踪</view>
+			<view class="pslist" v-if="detail.messages">
+				<block v-for="(item, index) in detail.messages" :key="index">
+					<view :class="'li ' + (index==0?'ing':'')">
+						<view class="lis">
+							<view>{{item.context}}</view>
+							<text>{{item.ftime}}</text>
+						</view>
+					</view>
+				</block>
+			</view>
+			<view class="nodata" v-else>
+				<image :src="picUrlss+'empty.png'"></image>
+				<text>暂无</text>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	const app = getApp();
+	const req = require("../../utils/request.js");
+
+	export default {
+		data() {
+			return {
+				picUrlss: req.public.picUrls,
+				detail: {},
+				//物流详情 
+				id: 0,
+				orderId: '',
+				fdidx: '',
+				type: 0,
+				isReceived: false
+			};
+		},
+
+		components: {},
+		props: {},
+		onLoad: function(options) {
+			this.setData({
+				id: options.id,
+				orderId: options.orderId ? options.orderId : '',
+				type: options.type ? options.type : 0,
+				isReceived: options.isReceived ? true : false
+			});
+
+			if (options.fdidx) {
+				this.fdidx = options.fdidx;
+				uni.setNavigationBarTitle({
+					title: "分单" + this.chinanum(options.fdidx) + "物流"
+				});
+			}
+
+			this.getDetail();
+		},
+		methods: {
+			chinanum(num) {
+				var china = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
+				var arr = [];
+				num = num.toString();
+				var english = num.split('');
+
+				for (var i = 0; i < english.length; i++) {
+					arr.push(china[english[i] * 1]);
+				}
+
+				return arr.join("");
+			},
+
+			goUrl(e) {
+				var dataset = e.currentTarget.dataset;
+				// console.log(dataset.url);
+				uni.navigateTo({
+					url: dataset.url
+				});
+			},
+
+			getDetail() {
+				var _this = this;
+
+				req.getRequest('/admin/v1/orderMall/deliver/detail', {
+					id: this.id,
+					type: this.type
+				}, res => {
+					_this.setData({
+						detail: res
+					});
+				});
+			},
+			confirmOrder() {
+				//确认收货
+				// let index = event.currentTarget.dataset.index;
+				// let page = this.data.pageList[index];
+				let that = this;
+				req.msgConfirm('确认执行该操作?', () => {
+					req.postRequest(
+						'/api/order/newReceiving',
+						{
+							id: that.id
+						},
+						() => {
+							uni.navigateBack();
+						}
+					);
+				});
+			},
+			
+
+		}
+	};
+</script>
+<style>
+	@import "./logistics.css";
+</style>

+ 59 - 51
merchant/order.vue

@@ -15,8 +15,44 @@
 		</view>
 		<view class="tabcon">
 			<block v-if="pageList && pageList.length > 0">
-			
-			<ul class="list">
+			<ul class="list" v-if="tabIndex == 4">
+				<li v-for="(item, index) in pageList" :key="index" @click="jumpUrl('refundDetail?id=' + item.id)">
+					<view class="ddbh dflex" @click="toOrederDel(item.id)">
+						<view class="ordid">
+							{{ item.orderId }}
+						</view>
+					</view>
+					<view class="lis" v-for="(pro, ind) in item.productList" :key="ind">
+						<image :src="pro.image" class="cimage" />
+						<view class="zhinfo">
+							<view class="zhtit" v-text="pro.title"></view>
+							<view v-if="pro.specsList && pro.specsList.length > 0" class="guige">
+								规格:
+								<text v-for="(itemGuige, index) in pro.specsList" :key="index" class="guige" decode="true">{{ itemGuige.value }}&nbsp;</text>
+							</view>
+							<view class="jiage">
+								<view class="price">
+									<span>¥</span>
+									{{ pro.money }}
+								</view>
+								<view class="num">×{{ pro.quantity }}</view>
+							</view>
+						</view>
+					</view>
+					<view class="total">
+						<view>共{{ item.quantity }}件</view>
+						<view>
+							总计:
+							<span>¥{{ item.refundMoney }}</span>
+						</view>
+					</view>
+					<view class="status">
+						<span class="ordidss flex">{{ item.refundStateName }}</span>
+						<!-- <view class="sta-btn" v-if="item.refundState > 29 && item.refundState < 41 && item.refundState != 32">审核</view> -->
+					</view>
+				</li>
+			</ul>
+			<ul class="list" v-else>
 				<li v-for="(item, index) in pageList" :key="index">
 					<view class="ddbh dflex" @click="toOrederDel(item.id)">
 						<view class="ordid">
@@ -66,7 +102,6 @@
 						<span class="ordidss flex">{{ item.stateName }}</span>
 						<!-- <view class="sta-btn" v-if="item.state > 29 && item.state < 41 && item.state != 32" @click="jumpUrl('refund?id=' + item.id)">审核</view> -->
 						<view class="sta-btn" v-if="item.state == 3" @click="deliverGoods(item.id, merchantId, item.orderType)">确认发货</view>
-						<view class="sta-btn" v-if="item.state === 4" @click="deliver(item.id, index)">已提货</view>
 					</view>
 				</li>
 			</ul>
@@ -104,6 +139,10 @@ export default {
 					state: 7,
 					active: false
 				},
+				{
+					label: '售后',
+					active: false
+				},
 			],
 			merchant: {},
 			tabIndex: '',
@@ -147,7 +186,7 @@ export default {
 		// 确认发货
 		deliverGoods(id, merchantId, orderType) {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: id
 				},
@@ -163,48 +202,6 @@ export default {
 			);
 		},
 
-		// 打印
-		orderPrinting(id, index) {
-			req.getRequest(
-				'/api/merchant/printOrderInfo',
-				id,
-				data => {
-					req.msg(data.msg);
-				},
-				true
-			);
-		},
-
-		// 通知取件
-		send(id) {
-			req.getRequest(
-				'/api/wxmes/send',
-				{
-					orderId: id,
-					bsusinessType: 11
-				},
-				data => {
-					req.msg('通知成功');
-				},
-				true
-			);
-		},
-		// 已提货
-		deliver(id, index) {
-			req.postRequest(
-				'/api/order/confirm',
-				{
-					id: id,
-					mode: '1'
-				},
-				data => {
-					this.pageList[index].state = 6;
-					this.pageList[index].stateName = '已签收';
-				},
-				true
-			);
-		},
-
 		// 获取订单列表
 		getOrderlist() {
 			if (!this.isLoad) return false;
@@ -214,13 +211,20 @@ export default {
 				page: this.form.page,
 				limit: this.form.limit
 			};
+			if(this.searchTitle) fromP.search = this.searchTitle
+			else fromP.search = null
 			let that = this;
-			fromP.state = this.TabList[this.tabIndex].state;
-			//正常其它订单
-			this.getOrderlists(fromP)
+			if (this.tabIndex == 4) {
+				//售后
+				this.getRefundList(fromP);
+			} else {
+				fromP.state = this.TabList[this.tabIndex].state;
+				//正常其它订单
+				this.getOrderlists(fromP)
+			}
 		},
 		getRefundList(fromP){
-			req.getRequest('/api/v3/store/refund/page', fromP, data => {
+			req.getRequest('/admin/v1/orderRefund/page', fromP, data => {
 				if (data.list && data.list.length == 10) {
 					this.isLoad = true;
 				}
@@ -231,7 +235,7 @@ export default {
 			});
 		},
 		getOrderlists(fromP){
-			req.getRequest('/admin/orderMall/list', fromP, data => {
+			req.getRequest('/admin/v1/orderMall/list', fromP, data => {
 				if (data && data.length == 10) {
 					this.isLoad = true;
 				}
@@ -265,6 +269,10 @@ export default {
 		// 搜索订单
 		confirm() {
 			let value = this.searchTitle;
+			// this.isLoad = true;
+			// this.form.page = 1;
+			// this.pageList = [];
+			// this.getOrderlist()
 			uni.navigateTo({
 				url: 'search?searchValue=' + value + '&merchantId=' + this.merchant.id
 			});

+ 3 - 3
merchant/refund.vue

@@ -154,7 +154,7 @@ export default {
 		// 售后信息详情
 		refundDataShow() {
 			req.getRequest(
-				'/api/orderRefund/refundDataShow',
+				'/admin/v1/orderRefund/refundDataShow',
 				{
 					orderId: this.orderId
 				},
@@ -254,7 +254,7 @@ export default {
 				dto.refundFalseRes = this.refundFalseRes;
 			}
 			//+ JSON.stringify(dto)
-			req.putRequestJson('/api/orderRefund/apply?'+utils.convertUrlObj(dto), dto, res => {
+			req.putRequestJson('/admin/v1/orderRefund/apply?'+utils.convertUrlObj(dto), dto, res => {
 				req.msg('操作成功');
 				this.refundDataShow();
 				console.log(res);
@@ -277,7 +277,7 @@ export default {
 				dto.refundFalseRes = this.refundFalseRes;
 			}
 			//+ JSON.stringify(dto)
-			req.putRequestJson('/api/orderRefund/goodRefund?'+utils.convertUrlObj(dto), dto, res => {
+			req.putRequestJson('/admin/v1/orderRefund/goodRefund?'+utils.convertUrlObj(dto), dto, res => {
 				req.msg('操作成功');
 				this.refundDataShow();
 				console.log(res);

+ 5 - 5
merchant/refundDetail.vue

@@ -88,8 +88,8 @@
 		</view>
 		<view class="bot">
 			<view class="sta-btn" @click="back">返回</view>
-			<!-- <view class="sta-btn red" @click="showPop(0)" v-if="refundDetail.refundState == 30 || refundDetail.refundState == 39">售后审核</view>
-			<view class="sta-btn" @click="showPop(1)" v-if="refundDetail.refundState == 36">退货确认</view> -->
+			<view class="sta-btn red" @click="showPop(0)" v-if="refundDetail.refundState == 30 || refundDetail.refundState == 39">售后审核</view>
+			<view class="sta-btn" @click="showPop(1)" v-if="refundDetail.refundState == 36">退货确认</view>
 		</view>
 		<view class="chufangy" v-if="refundDetail.refundState == 40">请您到后台管理页面进行退款支付操作</view>
 		
@@ -192,7 +192,7 @@ export default {
 		// 售后信息详情
 		refundDataShow() {
 			req.getRequest(
-				'/api/v3/store/refund/detail',
+				'/admin/v1/orderRefund/detail',
 				{
 					id: this.refundId
 				},
@@ -293,7 +293,7 @@ export default {
 				dto.refundFalseRes = this.refundFalseRes;
 			}
 			//+ JSON.stringify(dto)
-			req.putRequestJson('/api/orderRefund/apply?'+utils.convertUrlObj(dto), dto, res => {
+			req.putRequestJson('/admin/v1/orderRefund/apply?'+utils.convertUrlObj(dto), dto, res => {
 				req.msg('操作成功');
 				this.hidePop()
 				this.refundDataShow();
@@ -317,7 +317,7 @@ export default {
 				dto.refundFalseRes = this.refundFalseRes;
 			}
 			//+ JSON.stringify(dto)
-			req.putRequestJson('/api/orderRefund/goodRefund?'+utils.convertUrlObj(dto), dto, res => {
+			req.putRequestJson('/admin/v1/orderRefund/goodRefund?'+utils.convertUrlObj(dto), dto, res => {
 				req.msg('操作成功');
 				this.hidePop()
 				this.refundDataShow();

+ 3 - 26
merchant/search.vue

@@ -60,10 +60,8 @@
 					</view>
 					<view class="status">
 						<span class="ordidss flex">{{ item.stateName }}</span>
-						<view class="sta-btn" v-if="item.state > 29 && item.state < 41 && item.state != 32" @click="jumpUrl('refund?id=' + item.id)">审核</view>
+						<!-- <view class="sta-btn" v-if="item.state > 29 && item.state < 41 && item.state != 32" @click="jumpUrl('refund?id=' + item.id)">审核</view> -->
 						<view class="sta-btn" v-if="item.state == 3" @click="deliverGoods(item.id, merchantId, item.orderType)">确认发货</view>
-						<view class="sta-btn" v-if="item.state === 4" @click="send(item.id)">通知取件</view>
-						<view class="sta-btn" v-if="item.state === 4" @click="deliver(item.id, index)">已提货</view>
 					</view>
 				</li>
 
@@ -95,7 +93,6 @@ export default {
 		this.userInfo = req.getStorage('userInfo');
 		this.searchTitle = opt.searchValue;
 		this.merchantId = opt.merchantId;
-		this.isPrinting();
 		this.confirm(true);
 	},
 	onShow() {},
@@ -109,14 +106,6 @@ export default {
 				url: url
 			});
 		},
-		// s是否开启云打印
-		isPrinting() {
-			let fromP = {};
-			fromP.id = this.merchantId;
-			req.getRequest('/api/merchant/detail', fromP, data => {
-				this.merchant = data;
-			});
-		},
 		//是否为自己发货
 		isMyDeliver(item) {
 			return item.supplierId == this.userInfo.supplierId;
@@ -149,7 +138,7 @@ export default {
 			if (!this.isLoad) return false;
 			this.isLoad = false;
 			req.getRequest(
-				'/admin/orderMall/list',
+				'/admin/v1/orderMall/list',
 				form,
 				data => {
 					if (data && data.length == 10) {
@@ -173,22 +162,10 @@ export default {
 			this.jumpUrl('show?id=' + id+ '&merchantId=' + this.merchant.id);
 		},
 
-		// 打印
-		orderPrinting(id, index) {
-			req.getRequest(
-				'/api/merchant/printOrderInfo',
-				id,
-				data => {
-					req.msg(data.msg);
-				},
-				true
-			);
-		},
-
 		// 确认发货
 		deliverGoods(id, merchantId, orderType) {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: id
 				},

+ 2 - 2
merchant/show - 副本.vue

@@ -318,7 +318,7 @@ export default {
 		// 确认发货
 		deliverGoods(id, merchantId, orderType) {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: id
 				},
@@ -381,7 +381,7 @@ export default {
 				id: this.id
 			};
 			req.getRequest(
-				'/api/order/detail',
+				'/admin/v1/orderMall/detail',
 				from,
 				data => {
 					this.order = data;

+ 91 - 22
merchant/show.vue

@@ -165,25 +165,55 @@
 					</view>
 					<image src="../merchant/static/images/dzbg.png" class="dzbg" />
 				</view>
+				<!-- &&state!=7订单未完成 -->
+				<view class="psfs dflex" v-if="deliverState" @tap="goUrl" :data-url="url">
+					<image src="/static/pages/images/psico.png" class="psico"></image>
+					<view class="flex">
+						<view v-if="deliverExtend == 1">{{ deliverState }}</view>
+						<view v-else>查看快递</view>
+						<text v-if="deliverExtend == 1">{{ deliverTime }}</text>
+					</view>
+					<image src="/static/pages/images/more.png" class="rico1"></image>
+				</view>
 				<!-- 物流配送 -->
 				<view class="lists ddlist">
 					<ul class="list bgfff" v-for="(items, index) in order.deliverList" :key="index">
-						<view class="lis" v-for="(pro, index1) in items.extendDTOList" :key="index1">
-							<view class="cimgs"><image :src="pro.pic" class="cimg" /></view>
-							<view class="zhinfo">
-								<view class="zhtit" v-text="pro.productName"></view>
-								<view v-if="pro.specsList&&pro.specsList.length>0" class="guige">规格:
-									<text v-for="(itemGuige, index) in pro.specsList" :key="index" class="guige" decode="true">{{itemGuige.value}}&nbsp;
-									</text>
+						<view class="lis" style="display: block;" v-for="(pro, index1) in items.extendDTOList" :key="index1">
+							<view class="ddflex">
+								<view class="cimgs">
+									<image :src="pro.pic" class="cimg" />
 								</view>
-								<view class="jiage">
-									<view class="price">
-										<span>¥</span>
-										{{ pro.money }}
+								<view class="zhinfo">
+									<view class="zhtit" v-text="pro.productName"></view>
+									<view v-if="pro.specsList && pro.specsList.length > 0" class="guige">
+										<text v-for="(itemGuige, index) in pro.specsList" :key="index" class="guige"
+											decode="true">{{ itemGuige.value }}&nbsp;</text>
+									</view>
+									<view class="jiage">
+										<view class="price">
+											<span>¥</span>
+											{{ pro.money }}
+										</view>
+										<view class="num">×{{ pro.deliverQuantity }}</view>
+									</view>
+									<view class="pro-tui" v-if="pro.refundOrderList && pro.refundOrderList.length > 0">
+										<text>售后</text>
+										{{ pro.refundOrderList.length }}
 									</view>
-									<view class="num">×{{ pro.deliverQuantity }}</view>
 								</view>
-								<view class="pro-tui" v-if="pro.refundOrderList&&pro.refundOrderList.length>0"><text>售后</text>{{pro.refundOrderList.length}}</view>
+							</view>
+							<view
+								class="lis zhuang dflex"
+								v-if="pro.refundOrderList && pro.refundOrderList.length > 0"
+								v-for="(its, idx) in pro.refundOrderList"
+								@click="gorefundDet(its)"
+								:data-its="its"
+								:key="idx"
+								style="margin: 20rpx 0;"
+							>
+								<image src="/merchant/static/images/tuikuan.png" class="lis-img"></image>
+								<view class="flex r-txt">{{ refundHintText(its) }}</view>
+								<image src="/static/images/rico2.png" class="rico"></image>
 							</view>
 						</view>
 					</ul>
@@ -223,11 +253,8 @@
 			</ul>
 			<view class="bot">
 				<!-- <a href="javascript:;" class="sta-btn">取消</a> -->
-				<view class="sta-btn" v-if="merchant.printer != 0 && (state == 3 || state == 4)" color="#FE0419" @click="orderPrinting(id, index)">打印小票</view>
 				<!-- <view class="sta-btn" @click="jumpUrl('refund?id=' + id)" v-if="state > 29 && state < 41 && state != 32">审核</view> -->
 				<view class="sta-btn" v-if="state == 3" @click="deliverGoods(id, merchantId, orderType)">确认发货</view>
-				<view class="sta-btn" @click="send(id)" color="#FE0419" v-if="state === 4">通知取件</view>
-				<view class="sta-btn" @click="deliver(id, index)" color="#FE0419" v-if="state === 4">已提货</view>
 			</view>
 		</view>
 	</view>
@@ -285,7 +312,11 @@ export default {
 				}
 			],
 			refundTypenum: '',
-			merchantId: ''
+			merchantId: '',
+			deliverId:'',
+			deliverState:'',
+			deliverExtend: 0,
+			url: '',
 		};
 	},
 	onLoad(opt) {
@@ -300,7 +331,16 @@ export default {
 				url: url
 			});
 		},
-
+		goUrl(e) {
+			// var dataset = e.currentTarget.dataset;
+			let url = e.currentTarget.dataset.url;
+			if (this.deliverState == '完成') {
+				url = url + '&isReceived=true';
+			}
+			uni.navigateTo({
+				url: url
+			});
+		},
 		deliverGoods() {
 			uni.navigateTo({
 				url: 'express?orderId=' + this.orderId + '&id=' + this.deliverId + '&supplierId=' + this.supplierId
@@ -309,7 +349,7 @@ export default {
 		// 确认发货
 		deliverGoods(id, merchantId, orderType) {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: id
 				},
@@ -372,7 +412,7 @@ export default {
 				id: this.id
 			};
 			req.getRequest(
-				'/api/order/detail',
+				'/admin/v1/orderMall/detail',
 				from,
 				data => {
 					this.order = data;
@@ -383,6 +423,9 @@ export default {
 						this.refundDetail();
 						// this.refundExpress();
 					}
+					if (data.mode != 1 && data.state >= 5 && data.state <= 7) {
+						this.deliverExtendFun();
+					}
 					this.isShowView = true;
 				},
 				true
@@ -392,7 +435,7 @@ export default {
 		//获取退货详情
 		refundDetail() {
 			req.getRequest(
-				'/api/orderRefund/queryRefund',
+				'/admin/v1/orderRefund/queryRefund',
 				{
 					orderId: this.id
 				},
@@ -413,7 +456,33 @@ export default {
 				},
 				true
 			);
-		}
+		},
+		// 获取分单发货的
+		deliverExtendFun() {
+			req.postRequest(
+				'/admin/v1/orderMall/deliverExtend',
+				{
+					id: this.id
+				},
+				res => {
+					let url;
+		
+					if (res && res.length >= 2) {
+						url = '/merchant/deliverExtend/deliverExtend?orderId=' + this.id;
+						this.setData({
+							deliverExtend: 2,
+							url: url
+						});
+					} else {
+						url = '/merchant/logistics/logistics?id=' + this.deliverId + '&orderId=' + this.id;
+						this.setData({
+							deliverExtend: 1,
+							url: url
+						});
+					}
+				}
+			);
+		},
 	}
 };
 </script>

+ 8 - 2
merchant/static/css/main.css

@@ -129,7 +129,7 @@ body {background: #f5f5f5;}
 .ddddd {align-items: center;}
 .status .sta-btn {padding: 0 6px;border-color: #FE0419;
 	/* background: #FE0419; */
-	border-radius: 12px;text-align: center;line-height: 25px;font-size: 11px;color: #FE0419;margin-left: 5px;}
+	border-radius: 12px;text-align: center;font-size: 11px;color: #FE0419;margin-left: 5px;}
 .status .sta-btn.red {color: #FE0419;border-color: #FE0419;}
 .status .sta-btn.w {color: #ffffff;border-color: #FE0419;}
 .youji {width: 20px;height: 14px;margin-right: 8px;}
@@ -260,4 +260,10 @@ body {background: #f5f5f5;}
 
 
 .pro-tui{font-size: 26rpx;color: #FE0419;margin-top: 20rpx;}
-.pro-tui text{margin-right: 10rpx;}
+.pro-tui text{margin-right: 10rpx;}
+
+.psfs{background: #fff;padding: 25rpx 45rpx 25rpx 20rpx;margin: 20rpx;overflow: hidden;position: relative;}
+.psico{width: 41rpx;height: 31rpx;margin-right: 22rpx;margin-top: 5rpx;}
+.psfs .flex view{font-size: 28rpx;color: #0065AC;margin-bottom: 12rpx;line-height: 40rpx;}
+.psfs .flex text{display: block;font-size: 24rpx;color: #666;}
+.rico1{width: 14rpx;height: 26rpx;position: absolute;top: 50%;right: 20rpx;transform: translateY(-50%);}

+ 3 - 3
mine/orderDet/orderDet.vue

@@ -549,7 +549,7 @@ export default {
 		let id = options.id;
 		this.setData({
 			isrefund: options.isrefund
-		}); // req.getRequest('/api/order/detail', {
+		}); // req.getRequest('/admin/v1/orderMall/detail', {
 		//   id: id
 		// }, data => {
 		//   that.setData(data);
@@ -568,7 +568,7 @@ export default {
 	async onShow() {
 		let that = this;
 		await req.getRequest(
-			'/api/order/detail',
+			'/admin/v1/orderMall/detail',
 			{
 				id: this.id
 			},
@@ -724,7 +724,7 @@ export default {
 		// 获取分单发货的
 		deliverExtendFun() {
 			req.postRequest(
-				'/api/order/deliverExtend',
+				'/admin/v1/orderMall/deliverExtend',
 				{
 					id: this.query.id
 				},

+ 1 - 1
mine/refund/applyRefund/applyRefund.vue

@@ -350,7 +350,7 @@ export default {
 		// 获取退款详情
 		getOrderDet() {
 			req.getRequest(
-				'/api/order/detail',
+				'/admin/v1/orderMall/detail',
 				{
 					id: this.id
 				},

+ 1 - 1
mine/refund/refundType/refundType.vue

@@ -94,7 +94,7 @@ export default {
    * 生命周期函数--监听页面显示
    */
   onShow: function () {
-    req.getRequest('/api/order/detail', {
+    req.getRequest('/admin/v1/orderMall/detail', {
       id: this.query
     }, data => {
       this.setData(data);

+ 1 - 1
mine/refund/refundlist/refundlist.vue

@@ -157,7 +157,7 @@ export default {
         data.forEach(res => {
           if (res.state >= 40) {
             // console.log(res);
-            req.getRequest('/api/order/detail', {
+            req.getRequest('/admin/v1/orderMall/detail', {
               id: res.id
             }, data => {
               that.setData(data);

+ 12 - 0
pages.json

@@ -484,6 +484,18 @@
 					"style": {
 						"navigationBarTitleText": "售后详情"
 					}
+				},
+				{
+					"path": "logistics/logistics",
+					"style": {
+						"navigationBarTitleText": "物流详情"
+					}
+				},
+				{
+					"path": "deliverExtend/deliverExtend",
+					"style": {
+						"navigationBarTitleText": "物流详情"
+					}
 				}
 			]
 		}

BIN
static/pages/images/more.png


BIN
static/pages/images/psico.png


BIN
static/pages/images/psico_y.png


+ 12 - 3
utils/request.js

@@ -8,7 +8,8 @@ const env = {
 		apiUrl: 'https://pkapi.pikadongli.com'
 	},
 	pota: {
-		apiUrl: 'http://192.168.110.182:8098' ,
+		// apiUrl: 'http://192.168.110.182:8098' ,//zf
+		apiUrl: 'http://192.168.110.180:8098' ,//wjg
 	}
 }
 
@@ -189,7 +190,11 @@ const clearValueEmpty = (data) => {
 const baseRequest = (url, data, method, success, isLoad) => {
 	if(url=='/admin/v2/login'||url=='/api/protocol'||url=='/api/params/value'||url=='/api/other/config'||url=='/admin/v2/user/feedback'){
 		if (!isLoad) uni.showNavigationBarLoading();
-		header['content-type'] = 'application/json;charset=UTF-8'
+		if (url.indexOf('/v1') != -1) {
+			header['content-type'] = 'application/x-www-form-urlencoded'
+		} else {
+			header['content-type'] = 'application/json;charset=UTF-8'
+		}
 		uni.request({
 			url: env[env.NODE_ENV].apiUrl + url,
 			data: clearValueEmpty(data),
@@ -223,7 +228,11 @@ const baseRequest = (url, data, method, success, isLoad) => {
 		getToken(token => {
 			if (!isLoad) uni.showNavigationBarLoading();
 			header.authorityToken = token;
-			header['content-type'] = 'application/json;charset=UTF-8'
+			if (url.indexOf('/v1') != -1) {
+				header['content-type'] = 'application/x-www-form-urlencoded'
+			} else {
+				header['content-type'] = 'application/json;charset=UTF-8'
+			}
 			uni.request({
 				url: env[env.NODE_ENV].apiUrl + url,
 				data: clearValueEmpty(data),