代码更新

This commit is contained in:
GaoHao
2025-02-26 19:46:20 +08:00
parent 7519ffced3
commit b4a0393d2d
413 changed files with 7483 additions and 60762 deletions

View File

@@ -7,9 +7,9 @@
<image src="./profile.png" style="width: 64rpx;height: 64rpx;" mode=""></image>
<view style="margin-left: 16rpx;">
<view style="font-weight: 400;font-size: 28rpx;color: #333333;">
{{item.purveyorName}}
{{item.name}}
</view>
<text style="color: #999;">{{item.purveyorTelephone}}</text>
<text style="color: #999;">{{item.telephone}}</text>
</view>
</view>
@@ -38,7 +38,7 @@
</view>
<view class="df">
<span>上次进货日期</span>
<span v-if="item.lastTransactAt">{{dayjs(item.lastTransactAt).format('YYYY-MM-DD HH:mm:ss')}}</span>
<span v-if="item.lastTransactTime">{{dayjs(item.lastTransactTime).format('YYYY-MM-DD HH:mm:ss')}}</span>
</view>
<view class="df">
<span>地址</span>
@@ -69,43 +69,42 @@
</template>
<script setup>
import {
onMounted,
reactive
} from 'vue';
import {
onShow,
} from '@dcloudio/uni-app';
import { reactive } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import dayjs from 'dayjs' //时间格式库
import go from '@/commons/utils/go.js';
import {
tbShopPurveyorTransact,
tbShopPurveyordelete
} from '@/http/yskApi/requestAll.js';
import { getVendorPage,delVendor } from '@/api/vendor.js';
let datas = reactive({
list: []
})
onShow(() => {
getList()
})
/**
* 获取供应商列表
*/
let getList = () => {
getVendorPage({
page: 1,
size: 999,
}).then(res => {
datas.list = res.records
})
}
/**
* 删除供应商
*/
let deleteEvent = (id) => {
tbShopPurveyordelete([id]).then(() => {
delVendor(id).then(() => {
getList()
})
}
let toUrl = (url, d) => {
go.to(url, d)
}
let getList = () => {
tbShopPurveyorTransact({
page: 0,
size: 20,
sort: 'id',
shopId: uni.getStorageSync("shopId"),
}).then(res => {
datas.list = res.content
})
}
</script>
<style>
page {