代码优化
This commit is contained in:
@@ -14,14 +14,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
onMounted,
|
||||
reactive
|
||||
} from 'vue';
|
||||
import { onMounted, reactive } from 'vue';
|
||||
import dayjs from 'dayjs';
|
||||
import {
|
||||
tbShopPurveyorTransacttransactPayInfos
|
||||
} from '@/http/yskApi/requestAll.js';
|
||||
|
||||
const props = defineProps({
|
||||
id: {
|
||||
type: Number
|
||||
@@ -34,12 +29,12 @@
|
||||
getlist()
|
||||
})
|
||||
let getlist = () => {
|
||||
tbShopPurveyorTransacttransactPayInfos({
|
||||
type: "",
|
||||
id: props.id
|
||||
}).then(res => {
|
||||
datas.list = res
|
||||
})
|
||||
// tbShopPurveyorTransacttransactPayInfos({
|
||||
// type: "",
|
||||
// id: props.id
|
||||
// }).then(res => {
|
||||
// datas.list = res
|
||||
// })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -45,11 +45,11 @@
|
||||
<view class="">
|
||||
<up-button type="primary" shape="circle" size="mini"
|
||||
@tap="toUrl('PAGES_EDIT_SUPPLIER',{item:JSON.stringify(item)})" :plain="true" text="编辑">
|
||||
</up-button> <up-button size="mini" shape="circle" type="primary"
|
||||
@tap="deleteEvent(item.id)" :plain="true" text="删除">
|
||||
</up-button> <up-button size="mini" shape="circle" type="primary"
|
||||
style="background-color: #318AFE;color: #fff;"
|
||||
@tap="toUrl('PAGES_PAYMENT_SETTLEMENT',{id:item.id})" :plain="true" text="结款记录"></up-button>
|
||||
</up-button>
|
||||
<up-button size="mini" shape="circle" type="primary"
|
||||
@tap="deleteEvent(item.id)" :plain="true" text="删除"></up-button>
|
||||
<!-- <up-button size="mini" shape="circle" type="primary" style="background-color: #318AFE;color: #fff;"
|
||||
@tap="toUrl('PAGES_PAYMENT_SETTLEMENT',{id:item.id})" :plain="true" text="结款记录"></up-button> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 200rpx;background-color: #f9f9f9;"> </view>
|
||||
|
||||
Reference in New Issue
Block a user