shish 2 лет назад
Родитель
Сommit
c1024b0eea

+ 1 - 1
ghsApp/src/admin/home/components/OrderItem.vue

@@ -22,7 +22,7 @@
             <view>{{ item.sendNum }}</view>
         </view>
         <view class="order-info_box">
-            <view>日期:</view>
+            <view>创建:</view>
             <view>
               {{ item.addTime?item.addTime.substr(5,11):'' }}
             </view>

+ 4 - 0
ghsApp/src/api/order/index.js

@@ -1,5 +1,9 @@
 import https from "@/plugins/luch-request_0.0.7/request";
 
+export const modifyOrderConfirmTimeFn = data => {
+	return https.get("/order/modify-order-confirm-time", data)
+}
+
 export const cancelBookOrderInfo = data => {
 	return https.get("/order/cancel-book-order", data)
 }

+ 24 - 5
ghsApp/src/pagesOrder/detail.vue

@@ -33,12 +33,18 @@
 					<view style="color:green;font-weight:bold;">已自动通知</view>
 				</view>
 				<view class="order-info_box">
-					<view>订单日期:</view>
+					<view>创建时间:</view>
 					<view>{{ detailInfo.addTime?detailInfo.addTime.substr(5,11):'' }}</view>
 				</view>
 				<view class="order-info_box" v-if="detailInfo.payStatus == 1">
-					<view>支付时间:</view>
-					<view>{{ detailInfo.payTime?detailInfo.payTime.substr(5,11):'' }}</view>
+					<view>确认时间:</view>
+					<view>
+
+						<picker mode="date" :value="payDate" @change="updateConfirmTime" style="width:400upx;">
+							<view class="uni-input">{{ detailInfo.payTime?detailInfo.payTime.substr(5,11):'' }}</view>
+						</picker>
+
+					</view>
 				</view>
 				<view class="order-info_box">
 					<view>订单编号:</view>
@@ -417,7 +423,7 @@
 import { mapGetters } from "vuex";
 import stepStatus from "./components/stepStatus";
 import TuiListCell from "@/components/plugin/list-cell";
-import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel,modifyRemarkFn,orderFh } from "@/api/order";
+import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel,modifyRemarkFn,orderFh,modifyOrderConfirmTimeFn } from "@/api/order";
 import { getOrderProduct,giveItem } from "@/api/order-item";
 import productMins from "@/mixins/product";
 import { ORDER_STATUS } from "@/utils/declare";
@@ -462,7 +468,8 @@ export default {
 			fhWlNo:'',
 			fhWl:'顺丰',
 			fhWlFocus:false,
-			fhLabelShow:false
+			fhLabelShow:false,
+			payDate:''
 		};
 	},
 	onPullDownRefresh() {
@@ -495,6 +502,18 @@ export default {
 		}
 	},
 	methods: {
+		updateConfirmTime(e){
+			let that = this
+			this.payDate = e.detail.value
+			that.$util.confirmModal({content:'确认修改?'},() => {
+				modifyOrderConfirmTimeFn({id:that.detailInfo.id,date:that.payDate}).then(res=>{
+					if(res.code == 1){
+						that.$msg(res.msg)
+						that.init()
+					}
+				})
+			})
+		},
 		directFh(info){
 			let that = this
 			that.$util.confirmModal({content:'确认发货?'},() => {