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.
105 lines
2.4 KiB
105 lines
2.4 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(){
|
|
uni.request({
|
|
url: this.tui.interfaceUrl() + '/app/logitics/edit',
|
|
data: {
|
|
id: "1782981706819702784",
|
|
password: "888888",
|
|
companyName: "测试勿选",
|
|
companyTel: "18888888888",
|
|
mobile: "18888888888",
|
|
username: "18888888888",
|
|
contacts: "测试"
|
|
},
|
|
header: {
|
|
'content-type': 'application/json',
|
|
'Accesstoken': "22f5698ef97c422ba1c81570b1370a54"
|
|
},
|
|
method: 'PUT', //'GET','POST'
|
|
dataType: 'json',
|
|
success: (res) => {
|
|
if (res.data.code == 200){
|
|
this.upDoorList = res.data.result.records
|
|
this.waitUpDoorNum = res.data.result.total
|
|
}
|
|
},
|
|
fail: (res) => {
|
|
this.tui.toast("网络不给力,请稍后再试~")
|
|
}
|
|
})
|
|
// this.tui.request("/app/logitics/edit", "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>
|