You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.7 KiB
78 lines
1.7 KiB
<template>
|
|
<view>
|
|
<view @tap='goList("1")' class="box">拍照入库</view>
|
|
<view @tap='goList("2")' class="box">AI入库列表</view>
|
|
<view @tap='goList("3")' class="box">AI开单</view>
|
|
<view style="margin-bottom: 50px;">
|
|
<uni-easyinput type="textarea" v-model="address" />
|
|
<button @tap="submit">提交</button>
|
|
</view>
|
|
<view style="width:100%;height:500px;overflow: scroll;">{{res}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
components: {},
|
|
data() {
|
|
return {
|
|
address:'',
|
|
res:[]
|
|
}
|
|
},
|
|
onShow() {
|
|
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
methods: {
|
|
submit(){
|
|
this.tui.request("/app/problemFeedback/getProblemFeedbackList", "POST", {
|
|
problemContent:'',
|
|
pageNum:1,
|
|
pageSize:10
|
|
}, false, false).then((res1) => {
|
|
|
|
}).catch((res) => {
|
|
this.tui.toast(res)
|
|
})
|
|
},
|
|
convertChineseToArabic(str) {
|
|
const chineseNumToArabic = {
|
|
'零': 0, '一': 1, '二': 2, '两': 2, '三': 3,
|
|
'四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9
|
|
};
|
|
const regex = /(零|一|二|两|三|四|五|六|七|八|九)/g;
|
|
return str.replace(regex, match => chineseNumToArabic[match]);
|
|
},
|
|
goList(type){
|
|
if(type == 1){
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIPicture'
|
|
})
|
|
}else if(type == 2){
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIInventoryList'
|
|
})
|
|
}else{
|
|
uni.navigateTo({
|
|
url: '/package1/AI/AIHangOrderList'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.box{
|
|
width: 100%;
|
|
height: 100rpx;
|
|
line-height: 100rpx;
|
|
text-align: center;
|
|
font-weight: 800;
|
|
font-size: 48rpx;
|
|
border-bottom: 1px solid #777;
|
|
}
|
|
</style>
|