毛重
This commit is contained in:
@@ -25,6 +25,14 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">毛重</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-24">
|
||||||
|
<input type="number" v-model="weight" class="filter_input">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label filter_input_disabled">总数量</span>
|
<span class="filter_label filter_input_disabled">总数量</span>
|
||||||
@@ -69,8 +77,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
|
<!-- <button class="zd-col-5 button-default" @tap="toEmpty">清空</button> -->
|
||||||
<button class="zd-col-10 button-primary" :class="{'button-info': !pkId || !val2 || !val1 || !num}" :disabled="disabled" @tap="_manualInbound">入站</button>
|
<button class="zd-col-10 button-primary" :class="{'button-info': !pkId || !val2 || !val1 || !num || !weight}" :disabled="disabled" @tap="_manualInbound">入站</button>
|
||||||
<button class="zd-col-10 button-primary" :class="{'button-info': !pkId || !val2 || !val1 || !num}" :disabled="disabled" @tap="_manualOutbound">出站</button>
|
<button class="zd-col-10 button-primary" :class="{'button-info': !pkId || !val2 || !val1 || !num || !weight}" :disabled="disabled" @tap="_manualOutbound">出站</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -90,6 +98,7 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
num: null,
|
num: null,
|
||||||
|
weight: null,
|
||||||
pkId: '',
|
pkId: '',
|
||||||
pkObj: {},
|
pkObj: {},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
@@ -104,6 +113,10 @@
|
|||||||
toEmpty () {
|
toEmpty () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
|
this.num = null
|
||||||
|
this.weight = null
|
||||||
|
this.pkId = ''
|
||||||
|
this.pkObj = {}
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
@@ -131,12 +144,12 @@
|
|||||||
},
|
},
|
||||||
async _manualInbound () {
|
async _manualInbound () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId || !this.val2 || !this.val1 || !this.num) {
|
if (!this.pkId || !this.val2 || !this.val1 || !this.num || !this.weight) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await manualInbound(this.pkObj, this.val2, this.val1, this.num)
|
let res = await manualInbound(this.pkObj, this.val2, this.val1, this.num, this.weight)
|
||||||
if (res) {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@@ -151,12 +164,12 @@
|
|||||||
},
|
},
|
||||||
async _manualOutbound () {
|
async _manualOutbound () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId || !this.val2 || !this.val1 || !this.num) {
|
if (!this.pkId || !this.val2 || !this.val1 || !this.num || !this.weight) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await manualOutbound(this.pkObj, this.val2, this.val1, this.num)
|
let res = await manualOutbound(this.pkObj, this.val2, this.val1, this.num, this.weight)
|
||||||
if (res) {
|
if (res) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -306,14 +306,14 @@ export const getTaskBucketGroupInfo = (vcode) => request({
|
|||||||
data: {vehicle_code: vcode}
|
data: {vehicle_code: vcode}
|
||||||
})
|
})
|
||||||
// 入站
|
// 入站
|
||||||
export const manualInbound = (row, cpoint, vcode, total) => request({
|
export const manualInbound = (row, cpoint, vcode, total, weight) => request({
|
||||||
url:'api/pdaProduction/manualInbound',
|
url:'api/pdaProduction/manualInbound',
|
||||||
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total}
|
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
|
||||||
})
|
})
|
||||||
// 出站
|
// 出站
|
||||||
export const manualOutbound = (row, cpoint, vcode, total) => request({
|
export const manualOutbound = (row, cpoint, vcode, total, weight) => request({
|
||||||
url:'api/pdaProduction/manualOutbound',
|
url:'api/pdaProduction/manualOutbound',
|
||||||
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total}
|
data: {row: row, current_point: cpoint, vehicle_code: vcode, total: total, weight: weight}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user