Преглед изворни кода

fix:销售订单和采购订单列表需要时分秒查询

liujt пре 2 недеља
родитељ
комит
24df50a9a5

+ 1 - 1
pages/home/pages/manage/components/purchaseScreen.vue

@@ -4,7 +4,7 @@
 			<view class="search_list">
 				<u-form labelPosition="left" :model="form" labelWidth="180" labelAlign="left" class="baseForm">
 					<u-form-item label="创建时间:" class="required-form" borderBottom prop="rangeDate">
-						<uni-datetime-picker v-model="rangeDate" :border="true" :icon="false" type="daterange" />
+						<uni-datetime-picker v-model="rangeDate" :border="true" :icon="false" type="datetimerange" />
 					</u-form-item>
 					<u-form-item label="订单类型:" class="required-form" borderBottom prop="sourceType">
 						<zxz-uni-data-select :localdata="requirementSourceType" v-model="form.sourceType" dataValue='value'

+ 1 - 1
pages/home/pages/manage/components/salesScreen.vue

@@ -4,7 +4,7 @@
 			<view class="search_list">
 				<u-form labelPosition="left" :model="form" labelWidth="180" labelAlign="left" class="baseForm">
 					<u-form-item label="创建时间:" class="required-form" borderBottom prop="rangeDate">
-						<uni-datetime-picker v-model="rangeDate" :border="true" :icon="false" type="daterange" />
+						<uni-datetime-picker v-model="rangeDate" :border="true" :icon="false" type="datetimerange" />
 					</u-form-item>
 					<u-form-item label="订单类型:" class="required-form" borderBottom prop="needProduce">
 						<zxz-uni-data-select :localdata="orderTypeEnum" v-model="form.needProduce" dataValue='code'

+ 1 - 0
pages/home/pages/manage/manage.vue

@@ -774,6 +774,7 @@ export default {
     border-radius: 12rpx;
     overflow: hidden;
     background: linear-gradient(135deg, #edb15b 0%, #ff6b00 100%);
+    // background: linear-gradient(135deg, #f8caca 0%, #F56C6C 100%);
     box-shadow: 0 4rpx 16rpx rgba(255, 149, 0, 0.25);
     padding: 20rpx;
 

+ 2 - 2
pages/home/pages/manage/purchaseOrderDetail.vue

@@ -155,9 +155,9 @@
 				const day = String(now.getDate()).padStart(2, '0')
 				const today = `${year}-${month}-${day}`
 				if (this.type === 'year') {
-					this.rangeDate = [`${year}-01-01`, today]
+					this.rangeDate = [`${year}-01-01 00:00:00`, today + ' 23:59:59']
 				} else if (this.type === 'month') {
-					this.rangeDate = [`${year}-${month}-01`, today]
+					this.rangeDate = [`${year}-${month}-01 00:00:00`, today + ' 23:59:59']
 				}
                 this.form.createTimeStart = this.rangeDate[0]
                 this.form.createTimeEnd = this.rangeDate[1]

+ 3 - 3
pages/home/pages/manage/saleOrderDetail.vue

@@ -160,9 +160,9 @@
 				const day = String(now.getDate()).padStart(2, '0')
 				const today = `${year}-${month}-${day}`
 				if (this.type === 'year') {
-					this.rangeDate = [`${year}-01-01`, today]
+					this.rangeDate = [`${year}-01-01 00:00:00`, today + ' 23:59:59']
 				} else if (this.type === 'month') {
-					this.rangeDate = [`${year}-${month}-01`, today]
+					this.rangeDate = [`${year}-${month}-01 00:00:00`, today + ' 23:59:59']
 				}
                 this.form.createTimeStart = this.rangeDate[0]
                 this.form.createTimeEnd = this.rangeDate[1]
@@ -194,7 +194,7 @@
 				par.pageNum = this.page
 				par.size = this.size
 				// par = this.URLSearchParams(par)
-				console.log(par)
+				console.log('par----', par)
 				uni.showLoading({
 					title: '加载中'
 				})