代码优化
This commit is contained in:
@@ -103,19 +103,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
onMounted,
|
||||
getCurrentInstance,
|
||||
ref,
|
||||
reactive
|
||||
} from 'vue';
|
||||
import { onMounted, getCurrentInstance, ref, reactive } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
tbShopPurveyorTransactinfo,
|
||||
tbShopPurveyorpayTransact
|
||||
} from '@/http/yskApi/requestAll.js';
|
||||
import go from '@/commons/utils/go.js'
|
||||
import datePickerview from './components/my-date-pickerview.vue'
|
||||
|
||||
const timeList = [{
|
||||
label: '今天',
|
||||
value: 'today'
|
||||
@@ -157,13 +149,13 @@
|
||||
getlist()
|
||||
})
|
||||
let confirmtow = (id) => {
|
||||
tbShopPurveyorpayTransact({
|
||||
id,
|
||||
...datas.form
|
||||
}).then(() => {
|
||||
datas.PopUp = false
|
||||
getlist()
|
||||
})
|
||||
// tbShopPurveyorpayTransact({
|
||||
// id,
|
||||
// ...datas.form
|
||||
// }).then(() => {
|
||||
// datas.PopUp = false
|
||||
// getlist()
|
||||
// })
|
||||
}
|
||||
let close = () => {
|
||||
datas.form = {}
|
||||
@@ -225,18 +217,18 @@
|
||||
datas.startTime = start
|
||||
datas.endTime = end
|
||||
}
|
||||
tbShopPurveyorTransactinfo({
|
||||
// shopId: uni.getStorageSync('shopId'),
|
||||
size: 20,
|
||||
createAt: [datas.startTime, datas.endTime],
|
||||
page: 0,
|
||||
sort: "id",
|
||||
type: datas.type,
|
||||
status: datas.status,
|
||||
purveyorId: props.id
|
||||
}).then((res) => {
|
||||
datas.list = res.content
|
||||
})
|
||||
// tbShopPurveyorTransactinfo({
|
||||
// // shopId: uni.getStorageSync('shopId'),
|
||||
// size: 20,
|
||||
// createAt: [datas.startTime, datas.endTime],
|
||||
// page: 0,
|
||||
// sort: "id",
|
||||
// type: datas.type,
|
||||
// status: datas.status,
|
||||
// purveyorId: props.id
|
||||
// }).then((res) => {
|
||||
// datas.list = res.content
|
||||
// })
|
||||
}
|
||||
// 获取当前时间
|
||||
function getdate() {
|
||||
|
||||
Reference in New Issue
Block a user