新购验收

This commit is contained in:
zzyuan 2024-11-19 11:13:38 +08:00
parent d39e6a453f
commit 2dfd195d15
5 changed files with 32 additions and 4 deletions

14
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"i18n-ally.localesPaths": [
"src/uni_modules/uni-table/i18n",
"src/uni_modules/uni-calendar/components/uni-calendar/i18n",
"src/uni_modules/uni-countdown/components/uni-countdown/i18n",
"src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n",
"src/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n",
"src/uni_modules/uni-fav/components/uni-fav/i18n",
"src/uni_modules/uni-load-more/components/uni-load-more/i18n",
"src/uni_modules/uni-pagination/components/uni-pagination/i18n",
"src/uni_modules/uni-popup/components/uni-popup/i18n",
"src/uni_modules/uni-search-bar/components/uni-search-bar/i18n"
]
}

View File

@ -39,6 +39,7 @@ const loginForm = reactive({
//
const onHandleLogin = async () => {
const res = await appLoginAPI(loginForm)
console.log(res)
if (res.code === 200) {
// 1. token
memberStore.setToken(res.data.access_token)

View File

@ -46,7 +46,7 @@
<script setup>
import { ref, reactive } from 'vue'
import { getPurchaseInfo } from '../../../services/purchase.js';
import { onLoad } from '@dcloudio/uni-app'
import { onLoad,onShow } from '@dcloudio/uni-app'
const searchValue = ref('')
@ -90,6 +90,9 @@ onLoad((options)=>{
taskId.value = options.taskId
getTableList()
})
onShow(()=>{
getTableList()
})
</script>
<style lang="scss" scoped>

View File

@ -59,8 +59,18 @@ const pass = () => {
purchaseCheckDetailsList:[obj],
verifyPass:true
}
console.log(param)
innerVerify(param).then(res => {
console.log(res)
if(res.code==200){
uni.showToast({ title: '验证成功', icon: 'none' })
uni.navigateBack({
delta: 1 //
});
}else{
uni.showToast({ title: res.msg, icon: 'none' })
}
}).catch(error => {
console.log(error)
})

View File

@ -78,7 +78,7 @@ const getTableList = () => {
}
console.log(obj)
getPurchaseList(obj).then(res => {
tableList.value = res.rows;
tableList.value = res.data.rows;
console.log(tableList.value)
}).catch(error => {
console.log(error)