新购验收
This commit is contained in:
parent
d39e6a453f
commit
2dfd195d15
|
|
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -39,6 +39,7 @@ const loginForm = reactive({
|
||||||
// 登录按钮
|
// 登录按钮
|
||||||
const onHandleLogin = async () => {
|
const onHandleLogin = async () => {
|
||||||
const res = await appLoginAPI(loginForm)
|
const res = await appLoginAPI(loginForm)
|
||||||
|
console.log(res)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
// 1. 获取 token 并存储
|
// 1. 获取 token 并存储
|
||||||
memberStore.setToken(res.data.access_token)
|
memberStore.setToken(res.data.access_token)
|
||||||
|
|
|
||||||
|
|
@ -46,11 +46,11 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { getPurchaseInfo } from '../../../services/purchase.js';
|
import { getPurchaseInfo } from '../../../services/purchase.js';
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad,onShow } from '@dcloudio/uni-app'
|
||||||
|
|
||||||
|
|
||||||
const searchValue = ref('')
|
const searchValue = ref('')
|
||||||
const id = ref('')
|
const id = ref('')
|
||||||
const taskId = ref('')
|
const taskId = ref('')
|
||||||
const statusList = ref(["2","12"])
|
const statusList = ref(["2","12"])
|
||||||
const tableList = ref([])
|
const tableList = ref([])
|
||||||
|
|
@ -90,6 +90,9 @@ onLoad((options)=>{
|
||||||
taskId.value = options.taskId
|
taskId.value = options.taskId
|
||||||
getTableList()
|
getTableList()
|
||||||
})
|
})
|
||||||
|
onShow(()=>{
|
||||||
|
getTableList()
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,19 @@ const pass = () => {
|
||||||
let param = {
|
let param = {
|
||||||
purchaseCheckDetailsList:[obj],
|
purchaseCheckDetailsList:[obj],
|
||||||
verifyPass:true
|
verifyPass:true
|
||||||
}
|
}
|
||||||
|
console.log(param)
|
||||||
innerVerify(param).then(res => {
|
innerVerify(param).then(res => {
|
||||||
console.log(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 => {
|
}).catch(error => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ const getTableList = () => {
|
||||||
}
|
}
|
||||||
console.log(obj)
|
console.log(obj)
|
||||||
getPurchaseList(obj).then(res => {
|
getPurchaseList(obj).then(res => {
|
||||||
tableList.value = res.rows;
|
tableList.value = res.data.rows;
|
||||||
console.log(tableList.value)
|
console.log(tableList.value)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue