交互
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
@@ -13,30 +13,12 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">收卷辊码</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box
|
||||
v-model="val2"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">收卷辊规格</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_onlySendRollTruss">入辊</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_onlyCallRollTruss">出辊</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_onlySendRollTruss">入辊</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_onlyCallRollTruss">出辊</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -54,9 +36,6 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
options: [],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
@@ -69,12 +48,12 @@
|
||||
},
|
||||
async _onlySendRollTruss () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.index) {
|
||||
if (!this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handhonlySendRollTrusseldLock(this.val1, this.val2, this.index)
|
||||
let res = await onlySendRollTruss(this.val1)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -86,12 +65,12 @@
|
||||
},
|
||||
async _onlyCallRollTruss () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.index) {
|
||||
if (!this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await onlyCallRollTruss(this.val1, this.index)
|
||||
let res = await onlyCallRollTruss(this.val1)
|
||||
this.clearUp()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -103,8 +82,6 @@
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.index = ''
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || !val2 || !val3}" :disabled="disabled" @tap="_doSubVolumeBindingWeight">绑定重量</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1 || (!val2 && !val3)}" :disabled="disabled" @tap="_doSubVolumeBindingWeight">绑定重量</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -62,7 +62,7 @@
|
||||
methods: {
|
||||
async _doSubVolumeBindingWeight () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.val3) {
|
||||
if (!this.val1 || (!this.val2 && !this.val3)) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -26,14 +26,14 @@ export const authority = () => request({
|
||||
data: {}
|
||||
})
|
||||
// 入辊
|
||||
export const onlySendRollTruss = (code, vcode, type) => request({
|
||||
export const onlySendRollTruss = (code) => request({
|
||||
url:'api/pda/other/onlySendRollTruss',
|
||||
data: {point_code: code, vehicle_code: vcode, vehicle_type: type}
|
||||
data: {point_code: code}
|
||||
})
|
||||
//
|
||||
export const onlyCallRollTruss = (code, vcode, type) => request({
|
||||
export const onlyCallRollTruss = (code) => request({
|
||||
url:'api/pda/other/onlyCallRollTruss',
|
||||
data: {point_code: code, vehicle_type: type}
|
||||
data: {point_code: code}
|
||||
})
|
||||
// 呼叫取样
|
||||
export const callAgvToSampling = (code1, code2) => request({
|
||||
|
||||
Reference in New Issue
Block a user