This commit is contained in:
2025-09-15 08:50:44 +08:00
parent 6b3b795151
commit a1dc1deb9f
8 changed files with 29 additions and 20 deletions

View File

@@ -98,6 +98,11 @@ uni-button:after {
justify-content: flex-start;
align-items: center;
}
.filter_unit {
font-size: 28rpx;
color: #ff6a00;
font-weight: bold;
}
.tab-line {
_wh(32rpx, 10rpx)
background-color #fff

View File

@@ -133,6 +133,8 @@
}
},
clearUp () {
this.index = ''
this.index2 = ''
this.index3 = ''
this.index4 = ''
this.disabled = false

View File

@@ -146,12 +146,11 @@
try {
let res = await inArea(this.index)
if (res.code === '200') {
this.index = ''
this.dataList = []
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
@@ -172,12 +171,11 @@
try {
let res = await outArea(this.index)
if (res.code === '200') {
this.index = ''
this.dataList = []
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,

View File

@@ -24,16 +24,17 @@
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<view class="zd-col-6">
<span class="filter_label">用料数量</span>
</view>
<view class="zd-col-17">
<input type="number" class="filter_input" v-model="val3" disabled>
<view class="zd-col-16">
<input type="number" v-model="val3" class="filter_input">
</view>
<view class="zd-col-2"><span class="filter_unit">{{unit}}</span></view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">托盘数</span>
<span class="filter_label">叫料托盘数</span>
</view>
<view class="zd-col-17">
<input type="number" class="filter_input" v-model="val2">
@@ -63,6 +64,7 @@
val1: '',
val2: '1',
val3: '',
unit: '',
options: [],
index: '',
pointCode: '',
@@ -92,7 +94,8 @@
selectChange (e) {
this.index = e
let selobj = this.options.find(item => item.value === this.index)
this.val3 = selobj.qty
this.val3 = selobj.qty
this.unit = selobj.unit_name
},
handleChange1 (e) {
if (e) {

View File

@@ -243,13 +243,11 @@
try {
let res = await blanking(this.val1, this.dataList, this.index)
if (res.code === '200') {
this.val1 = ''
this.index = ''
this.dataList = []
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,

View File

@@ -130,12 +130,11 @@
try {
let res = await comfirmGetting(this.val1, this.dataList)
if (res.code === '200') {
this.val1 = ''
this.dataList = []
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,

View File

@@ -264,6 +264,7 @@
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
@@ -289,6 +290,7 @@
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,

View File

@@ -119,6 +119,12 @@
toCheck (e) {
this.pkId = e.task_code === this.pkId ? '' : e.task_code
},
clearUp () {
this.val1 = ''
this.pkId = ''
this.dataList = []
this.disabled = false
},
async _againTask () {
this.disabled = true
if (!this.pkId) {
@@ -128,13 +134,11 @@
try {
let res = await againTask(this.pkId)
if (res.code === '200') {
this.val1 = ''
this.dataList = []
this.pkId = ''
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,
@@ -155,13 +159,11 @@
try {
let res = await forceConfirm(this.pkId)
if (res.code === '200') {
this.val1 = ''
this.dataList = []
this.pkId = ''
uni.showToast({
title: res.message,
icon: 'none'
})
this.clearUp()
} else {
uni.showToast({
title: res.message,