Compare commits

...

2 Commits

Author SHA1 Message Date
zzyuan 63a0b5f29d Merge branch 'master' of http://192.168.30.2:3000/bonus/bonus-material-app 2024-11-19 11:14:23 +08:00
zzyuan 2dfd195d15 新购验收 2024-11-19 11:13:38 +08:00
5 changed files with 44 additions and 18 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,11 +46,11 @@
<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('')
const id = ref('')
const id = ref('')
const taskId = ref('')
const statusList = ref(["2","12"])
const tableList = ref([])
@ -90,6 +90,9 @@ onLoad((options)=>{
taskId.value = options.taskId
getTableList()
})
onShow(()=>{
getTableList()
})
</script>
<style lang="scss" scoped>

View File

@ -58,9 +58,19 @@ const pass = () => {
let param = {
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

@ -83,21 +83,19 @@ const active = ref(1)
const tableList = ref([])
const statusList = ref(['3', '13', '4', '14', '19'])
const getTableList = () => {
let obj = {
pageNum: '1',
pageSize: '10',
statusList: statusList.value,
}
console.log(obj)
getPurchaseList(obj)
.then((res) => {
tableList.value = res.rows
console.log(tableList.value)
})
.catch((error) => {
console.log(error)
})
const getTableList = () => {
let obj = {
"pageNum":"1",
"pageSize":"10",
"statusList":statusList.value,
}
console.log(obj)
getPurchaseList(obj).then(res => {
tableList.value = res.data.rows;
console.log(tableList.value)
}).catch(error => {
console.log(error)
})
}
const changeTab = (index) => {