You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

246 lines
5.6 KiB
Vue

2 years ago
<template>
<view class="container">
<view class="tui-searchbox">
<view class="tui-search-input">
<icon type="search" :size='20' color='#333'></icon>
2 years ago
<input confirm-type="search" placeholder="请输入提单号" :focus="true" auto-focus auto-blur
2 years ago
placeholder-class="tui-input-plholder" class="tui-input" v-model.trim="postData.MBLNO"
@confirm="searchInfo" />
<icon type="clear" :size='20' color='#bcbcbc' @tap="cleanMBLNO" v-show="postData.MBLNO"></icon>
</view>
<view class="tui-search-input">
<icon type="search" :size='20' color='#333'></icon>
<input confirm-type="search" placeholder="请输入车号" :focus="true" auto-focus
placeholder-class="tui-input-plholder" class="tui-input" v-model.trim="postData.TRUCKNO" @confirm="searchInfo" />
<icon type="clear" :size='20' color='#bcbcbc' @tap="cleanTRUCKNO" v-show="postData.TRUCKNO"></icon>
</view>
</view>
<uni-card v-if="list" v-for="(item,index) in list" :title="item.MBLNO" :key="index">
<view class="example">
<uni-forms ref="form" :modelValue="item" label-position="left">
<uni-forms-item label="客户名称" name="CUSTOMERNAME">
<uni-easyinput type="text" :disabled="true" v-model="item.CUSTOMERNAME" />
</uni-forms-item>
<uni-forms-item label="货主" name="GOODSOWNER">
<uni-easyinput type="text" :disabled="true" v-model="item.GOODSOWNER" />
</uni-forms-item>
<uni-forms-item label="货物名称" name="GOODSNAME">
<uni-easyinput type="text" :disabled="true" v-model="item.GOODSNAME" />
</uni-forms-item>
<uni-forms-item label="车号" name="TRUCKNO">
<uni-easyinput type="text" v-model="item.TRUCKNO" :disabled="true" />
</uni-forms-item>
<uni-forms-item label="司机" name="DRIVER">
<uni-easyinput type="text" v-model="item.DRIVER" :disabled="true" />
</uni-forms-item>
<uni-forms-item label="电话" name="MOBILE">
<uni-easyinput type="text" v-model="item.MOBILE" :disabled="true" />
</uni-forms-item>
<uni-forms-item label="仓库" name="STOREHOUSENAME">
<uni-easyinput type="text" :disabled="true" v-model="item.STOREHOUSENAME" />
</uni-forms-item>
<uni-forms-item label="备注" name="REMARK">
<uni-easyinput type="text" :disabled="true" v-model="item.REMARK" />
</uni-forms-item>
</uni-forms>
<button @click="skip(item)"></button>
</view>
</uni-card>
</view>
</template>
<script>
export default {
data() {
return {
info: [],
loadData: [],
pageIndex: 1,
loadding: false,
pullUpOn: true,
isShow: false,
postData: {
MBLNO: "",
TRUCKNO:""
},
key: "",
list: '',
type:''
}
},
onShow() {
this.list = ''
// this.postData.MBLNO = ''
},
methods: {
back: function() {
uni.navigateBack();
},
cleanMBLNO: function() {
this.postData.MBLNO = ''
},
cleanTRUCKNO: function() {
this.postData.TRUCKNO = ''
},
searchInfo: function() {
uni.showLoading()
console.log(this.postData)
this.tui.request("/StockOut/GetStockOutPlanInfo", "POST", this.postData, false, false, false)
.then((
res) => {
console.log(res)
if (res.Code == 0) {
this.list = res.Data
uni.hideLoading()
} else if (res.Code == -1) {
this.tui.toast(res.Message, 2000, 'none')
}
}).catch((err) => {
console.log(err)
this.tui.toast('异常:' + err, 2000, 'none')
uni.hideLoading()
})
},
skip: function(item) {
uni.setStorageSync("WMSOUTPLANID", item.WMSPLANID)
uni.setStorageSync("TRUCKID", item.TRUCKID)
uni.setStorageSync("TRUCKNO", item.TRUCKNO)
uni.navigateTo({
url: '../stockout-handle/stockout-handle'
2 years ago
})
}
}
}
</script>
<style>
.example {
padding: 15px;
background-color: #fff;
}
.button-group {
margin-top: 15px;
display: flex;
justify-content: space-around;
}
.form-item {
display: flex;
align-items: center;
}
.button {
display: flex;
align-items: center;
height: 35px;
margin-left: 10px;
}
/* @import '../../static/style/thorui.css'; */
.tui-msg-box {
display: flex;
align-items: center;
}
.tui-msg-pic {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
display: block;
margin-right: 24rpx;
flex-shrink: 0;
}
.tui-msg-item {
max-width: 500rpx;
/* min-height: 100rpx; */
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.tui-msg-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 45rpx;
line-height: 2;
justify-content: space-between;
color: #262b3a;
}
.tui-item-box {
width: 100%;
display: flex;
align-items: center;
}
.tui-list-cell_name {
padding-left: 20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.tui-ml-auto {
margin-left: auto;
}
.tui-right {
margin-left: auto;
margin-right: 34rpx;
font-size: 26rpx;
color: #999;
}
.tui-logo {
height: 52rpx;
width: 52rpx;
flex-shrink: 0;
}
</style>
<style lang='scss'>
.tui-searchbox {
padding: 30rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
}
.tui-search-input {
width: 100%;
height: 66rpx;
border-radius: 35rpx;
padding: 0 30rpx;
box-sizing: border-box;
background: #f2f2f2;
display: flex;
align-items: center;
flex-wrap: nowrap;
}
.tui-input {
flex: 1;
color: #333;
padding: 0 16rpx;
font-size: 28rpx;
}
.tui-input-plholder {
font-size: 28rpx;
color: #b2b2b2;
}
.fr-btn {
float: right;
height: 60upx;
font-size: 28upx;
line-height: 60upx;
margin: 14upx 0;
}
</style>