Răsfoiți Sursa

不再允许修改账单日期

shish 16 ore în urmă
părinte
comite
75cd8cad8a

+ 4 - 13
ghsApp/src/admin/billing/affirm.vue

@@ -407,11 +407,7 @@
                 <text v-if="modifyPrice > 0 && modifyPrice < finalPrice" style="font-size: 28upx; margin-left: 20upx; color: green">优惠 ¥{{ parseFloat((finalPrice - modifyPrice).toFixed(2)) }}</text>
               </tui-list-cell>
 
-              <tui-list-cell class="line-cell" :hover="false" :arrow="true">
-                <view class="tui-title">账单日期</view>
-                <view class="uni-input" v-if="form.historyDate == ''" style="color: #cccccc; width: 400upx; font-size: 32upx" @click="bindHistoryDateChange" >默认当天</view >
-                <view class="uni-input" @click="bindHistoryDateChange" v-else style="width: 400upx; font-size: 32upx">{{ form.historyDate }}</view>
-              </tui-list-cell>
+              <!-- 账单日期入口已下线:固定走当天,historyDate 仍传空字符串给后端;后端逻辑暂不动 -->
 
               <tui-list-cell class="line-cell" :arrow="true">
                 <div class="tui-title">开单人</div>
@@ -623,7 +619,7 @@ export default {
       },
       defaultPickerDate: '',
       showPicker: false,
-      pickerType: '', // 'history' 或 'sendDate'
+      pickerType: '', // 当前仅用于送货日期 'sendDate'
       discountList: [
         { name: '1折', value: 0.1 },
         { name: '2折', value: 0.2 },
@@ -928,18 +924,13 @@ export default {
     getMyFinance() {
       this.showFinance = this.showFinance == 1 ? 0 : 1;
     },
-    bindHistoryDateChange() {
-      this.pickerType = 'history';
-      this.showPicker = true;
-    },
+    // 账单日期入口已下线,日期选择器仅用于送货日期
     bindDateChange() {
       this.pickerType = 'sendDate';
       this.showPicker = true;
     },
     confirmPicker(e) {
-      if (this.pickerType === 'history') {
-        this.form.historyDate = e.value;
-      } else if (this.pickerType === 'sendDate') {
+      if (this.pickerType === 'sendDate') {
         this.form.sendTimeWant = e.value;
       }
       this.showPicker = false;

+ 0 - 3
ghsApp/src/pagesOrder/detail.vue

@@ -77,9 +77,6 @@
 				<view>
 					{{ formatDateDisplay(detailInfo.payTime) }}
 				</view>
-					<view class="price">
-						<button @click="openPicker" class="admin-button-com default">修改</button>
-					</view>
 				</view>
 				<view class="order-info_box">
 					<view>客户单号:</view>

+ 0 - 6
ghsApp/src/pagesPurchase/details.vue

@@ -67,12 +67,6 @@
 						<button @click="getMySelf()" class="admin-button-com middle blue" style="margin-left:20upx;">我自己</button>
 					</tui-list-cell>
 
-					<tui-list-cell class="line-cell" :hover="false" :arrow="true">
-						<view class="tui-title ">入库日期</view>
-						<view class="uni-input" v-if="form.entryTime==''" style="color:#CCCCCC;" @click="bindEntryTimeChange">请选择,默认当天</view>
-						<view class="uni-input" @click="bindEntryTimeChange">{{form.entryTime}}</view>
-					</tui-list-cell>
-
 					<block v-if="location == 1">
 						<tui-list-cell class="line-cell" :hover="false" :arrow="false">
 							<view class="tui-title">打印小票</view>

+ 0 - 3
ghsApp/src/pagesPurchase/info.vue

@@ -26,9 +26,6 @@
 					<view>
 						<text v-if="detailInfo.status==4">{{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}</text>
 						<text v-else>待入库</text>
-					</view>	
-					<view class="price">
-						<button @click="openPicker" class="admin-button-com default" >修改</button>
 					</view>
 				</view>
 				<view class="order-info_box">

+ 3 - 22
hdApp/src/admin/billing/affirm.vue

@@ -344,15 +344,7 @@
             </picker>
           </tui-list-cell>
 
-					<tui-list-cell class="line-cell" :hover="false" :arrow="true">
-						<view class="tui-title">账单日期</view>
-            <view class="uni-input" v-if="form.historyDate==''" @click="bindHistoryDateChange">
-              <view  style="width:410upx;font-size:32upx;color:#CCCCCC;">默认当天</view>
-            </view>
-            <view class="uni-input" @click="bindHistoryDateChange">
-              <view style="width:410upx;font-size:32upx;">{{form.historyDate}}</view>
-            </view>
-					</tui-list-cell>
+					<!-- 账单日期入口已下线:固定走当天,historyDate 仍传空字符串给后端;后端逻辑暂不动 -->
 
           <tui-list-cell class="line-cell" :hover="false" :arrow="false">
             <view class="tui-title">备注</view>
@@ -504,10 +496,7 @@
 	  </view>
 	</uni-popup>
 
-    <!-- 账单日期选择器蒙板 -->
-    <view v-if="showPicker" class="date-picker-mask" @click="showPicker = false"></view>
-    
-    <mx-date-picker :show="showPicker" format="yyyy-mm-dd" type="date" :value="defaultPickerDate" :show-tips="true" @confirm="confirmPicker" @cancel="showPicker = false" />
+    <!-- 账单日期选择器已随入口下线移除,仅保留配送日期选择 -->
 
     <!-- 配送日期选择器蒙板 -->
     <view v-if="reachDatePickerShow" class="date-picker-mask" @click="reachDatePickerShow = false"></view>
@@ -552,8 +541,6 @@ export default {
   mixins: [productMins],
   data () {
     return {
-			defaultPickerDate:'',
-			showPicker: false,
 			reachDatePickerShow: false,
 			reachDatePickerValue: '',
       discountList:[{name:'1折',value:0.1},{name:'2折',value:0.2},{name:'3折',value:0.3},{name:'4折',value:0.4},{name:'5折',value:0.5},{name:'6折',value:0.6},{name:'7折',value:0.7},{name:'8折',value:0.8},{name:'9折',value:0.9},{name:'不打折',value:1}],
@@ -1047,13 +1034,7 @@ export default {
         }
       }
     },
-    bindHistoryDateChange(){
-			this.showPicker = true
-    },
-		confirmPicker(e) {
-			this.form.historyDate = e.value
-      this.showPicker = false
-		},
+    // 账单日期入口已下线:不再打开日期选择器,提交仍带空 historyDate(后端按当天处理)
 		bindReachDateChange(){
 			this.reachDatePickerShow = true
 			this.reachDatePickerValue = this.form.reachDate

+ 1 - 1
hdApp/src/admin/home/components/mall-home-panel.vue

@@ -107,7 +107,7 @@
         <view class="refund-todo-row">
           <view class="refund-todo-left">
             <text class="refund-todo-title">售后审核</text>
-            <text class="refund-todo-stat">{{ pendingRefundCount }}笔待处理</text>
+            <text class="refund-todo-stat">{{ pendingRefundCount }}笔待处理</text>
           </view>
           <view class="refund-todo-right">
             <text class="refund-todo-action">去处理</text>