添加显示角标

master
ZR20090193-陈敬勇 2 years ago
parent 30b6b2d360
commit 902fe1ab68

@ -2,7 +2,7 @@
"name" : "落箱App", "name" : "落箱App",
"appid" : "__UNI__032F53F", "appid" : "__UNI__032F53F",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.1.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */

@ -16,21 +16,27 @@
<icon type="clear" :size='20' color='#bcbcbc' @tap="cleanTRUCKNO" v-show="postData.TRUCKNO"></icon> <icon type="clear" :size='20' color='#bcbcbc' @tap="cleanTRUCKNO" v-show="postData.TRUCKNO"></icon>
</view> </view>
</view> </view>
<view class="tag-view" v-if="info" v-for="(item,index) in info" :key="index" style="margin-left: 20rpx;">
<uni-badge class="uni-badge-left-margin" :text="item.count" absolute="rightTop" size="small">
<uni-tag :inverted="true" :text="item.name" type="primary"></uni-tag>
</uni-badge>
</view>
<uni-card v-if="list" v-for="(item,index) in list" :title="item.worktype" :key="index"> <uni-card v-if="list" v-for="(item,index) in list" :title="item.worktype" :key="index">
<view class="example"> <view class="example">
<uni-forms ref="form" :modelValue="item" label-position="left"> <uni-forms ref="form" :modelValue="item" label-position="left">
<uni-forms-item label="预计日期" name="workplandate"> <uni-forms-item label="预计日期" name="workplandate">
<uni-easyinput type="text" :disabled="true" v-model="item.workplandate" /> <uni-easyinput type="text" :disabled="true" v-model="item.workplandate" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="箱号" name="cntrno"> <uni-forms-item label="箱号" name="cntrno">
<uni-easyinput type="text" :disabled="true" v-model="item.cntrno" /> <uni-easyinput type="text" :disabled="true" v-model="item.cntrno" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="承运车号" name="truckno"> <uni-forms-item label="承运车号" name="truckno">
<uni-easyinput type="text" :disabled="true" v-model="item.truckno" /> <uni-easyinput type="text" :disabled="true" v-model="item.truckno" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="状态" name="workstatus"> <uni-forms-item label="状态" name="workstatus">
<uni-easyinput type="text" :disabled="true" v-model="item.workstatus" /> <uni-easyinput type="text" :disabled="true" v-model="item.workstatus" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<button @click="skip(item.gid)"></button> <button @click="skip(item.gid)"></button>
</view> </view>
@ -58,15 +64,15 @@
}, },
key: "", key: "",
list: '', list: '',
type:'' type: ''
} }
}, },
onShow() { onShow() {
this.list = '' this.list = ''
this.skipData.type = '' this.skipData.type = ''
this.postData.CNTRNO = '' this.postData.CNTRNO = ''
this.postData.TRUCKNO = '' this.postData.TRUCKNO = ''
this.getInfo() this.getInfo()
}, },
methods: { methods: {
back: function() { back: function() {
@ -85,8 +91,9 @@
.then(( .then((
res) => { res) => {
console.log(res) console.log(res)
if (res.succeeded) { if (res.succeeded) {
this.list = res.data this.list = res.data[0]
this.info = res.data[1]
uni.hideLoading() uni.hideLoading()
} else { } else {
this.tui.toast(res.message, 2000, 'none') this.tui.toast(res.message, 2000, 'none')

@ -40,7 +40,7 @@
label="库位选择"> label="库位选择">
</uni-data-select> </uni-data-select>
</uni-forms-item> </uni-forms-item>
<uni-forms-item v-if="info.worktype=='班列移位'" label="计划车架号" name="carnuM_1"> <uni-forms-item label="车架号" name="carnuM_1">
<uni-easyinput type="text" :disabled="true" v-model="info.carnuM_1" /> <uni-easyinput type="text" :disabled="true" v-model="info.carnuM_1" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item v-if="info.worktype=='班列移位'" label="实际车架号" name="carnuM_2"> <uni-forms-item v-if="info.worktype=='班列移位'" label="实际车架号" name="carnuM_2">

@ -16,6 +16,11 @@
<icon type="clear" :size='20' color='#bcbcbc' @tap="cleanTRAINNUM" v-show="postData.TRAINNUM"></icon> <icon type="clear" :size='20' color='#bcbcbc' @tap="cleanTRAINNUM" v-show="postData.TRAINNUM"></icon>
</view> </view>
</view> </view>
<view class="tag-view" v-if="info" v-for="(item,index) in info" :key="index" style="margin-left: 20rpx;">
<uni-badge class="uni-badge-left-margin" :text="item.count" absolute="rightTop" size="small">
<uni-tag :inverted="true" :text="item.train" type="primary"></uni-tag>
</uni-badge>
</view>
<uni-card v-if="list" v-for="(item,index) in list" :title="item.worktype" :key="index"> <uni-card v-if="list" v-for="(item,index) in list" :title="item.worktype" :key="index">
<view class="example"> <view class="example">
<uni-forms ref="form" :modelValue="item" label-position="left"> <uni-forms ref="form" :modelValue="item" label-position="left">
@ -86,7 +91,8 @@
res) => { res) => {
console.log(res) console.log(res)
if (res.succeeded) { if (res.succeeded) {
this.list = res.data this.list = res.data[0]
this.info = res.data[1]
uni.hideLoading() uni.hideLoading()
} else { } else {
this.tui.toast(res.message, 2000, 'none') this.tui.toast(res.message, 2000, 'none')

Loading…
Cancel
Save