Browse Source

修改编辑

shish 3 years ago
parent
commit
d8701e2c9a

+ 1 - 1
hdApp/src/admin/order/components/detail-work.vue

@@ -6,7 +6,7 @@
 					<image :src="info.smallCover" mode="aspectFit" style="width:95upx;height:95upx;"></image>
 					<image :src="info.smallCover" mode="aspectFit" style="width:95upx;height:95upx;"></image>
 				</view>
 				</view>
 				<view class="list-msg">
 				<view class="list-msg">
-					<view class="title">{{info.workSn}} {{info.goodsSn}} {{ info.name}}</view>
+					<view class="title">{{info.workSn}} {{ info.name}}</view>
 				</view>
 				</view>
 			</view>
 			</view>
 			<view class="list-right">
 			<view class="list-right">

+ 1 - 1
hdApp/src/admin/order/detail.vue

@@ -17,7 +17,7 @@
       <view class="module-com order-msg">
       <view class="module-com order-msg">
         <view class="module-tit">
         <view class="module-tit">
           收花人信息<text v-if="orderInfo.fromType == 4 && !$util.isEmpty(orderInfo.thirdSn)">(美团编号:{{orderInfo.thirdSn}})</text>
           收花人信息<text v-if="orderInfo.fromType == 4 && !$util.isEmpty(orderInfo.thirdSn)">(美团编号:{{orderInfo.thirdSn}})</text>
-          <button class="admin-button-com mini-btn" @click="edit" style="float:right;">编辑</button>
+          <button class="admin-button-com mini-btn" @click="edit" style="float:right;">修改</button>
         </view>
         </view>
         <view class="module-det">
         <view class="module-det">
 
 

+ 16 - 0
hdApp/src/admin/order/refund.vue

@@ -67,10 +67,14 @@
 			<view class="flex-center btn" @tap="cancelRefund">取消</view>
 			<view class="flex-center btn" @tap="cancelRefund">取消</view>
 			<view class="flex-center btn active" @tap="confirmRefund" style="margin-left: 80upx">确定</view>
 			<view class="flex-center btn active" @tap="confirmRefund" style="margin-left: 80upx">确定</view>
 		</view>
 		</view>
+		<view class="flex-center btn-box" style="margin-bottom:50upx;margin-top:50upx;">
+			<view class="flex-center btn active" @tap="allRefundFn">全部退货退款</view>
+		</view>
 	</view>
 	</view>
 </template>
 </template>
 <script>
 <script>
 import { getDetail,refund } from "@/api/order/index";
 import { getDetail,refund } from "@/api/order/index";
+import { allRefund } from "@/api/refund"
 export default {
 export default {
 	name: "orderDetail",
 	name: "orderDetail",
 	components: {},
 	components: {},
@@ -123,6 +127,18 @@ export default {
 		cancelRefund(){
 		cancelRefund(){
 			uni.navigateBack({delta: 1});
 			uni.navigateBack({delta: 1});
 		},
 		},
+		allRefundFn(){
+			let that = this
+			that.$util.confirmModal({content:'确认全部退货退款?'},() => {
+				uni.showLoading({mask:true})
+				allRefund({id:that.orderInfo.id}).then(res => {
+					uni.hideLoading()
+					if(res.code == 1){
+						this.$util.pageTo({url:'/common/success',query:{titleType:1},type:2})
+					}
+				})
+			})
+		},
 		confirmRefund(){
 		confirmRefund(){
 			let hasError = false
 			let hasError = false
 			let selectProduct = []
 			let selectProduct = []

+ 4 - 0
hdApp/src/api/refund/index.js

@@ -1,5 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 import https from '@/plugins/luch-request_0.0.7/request'
 
 
+export const allRefund = data => {
+	return https.get('/refund/all-refund', data)
+}
+
 //退款详情
 //退款详情
 export const refundDetail = data => {
 export const refundDetail = data => {
 	return https.get('/refund/detail', data)
 	return https.get('/refund/detail', data)