优化
This commit is contained in:
@@ -98,6 +98,11 @@ uni-button:after {
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.filter_unit {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #ff6a00;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
.tab-line {
|
.tab-line {
|
||||||
_wh(32rpx, 10rpx)
|
_wh(32rpx, 10rpx)
|
||||||
background-color #fff
|
background-color #fff
|
||||||
|
|||||||
@@ -133,6 +133,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
|
this.index = ''
|
||||||
|
this.index2 = ''
|
||||||
this.index3 = ''
|
this.index3 = ''
|
||||||
this.index4 = ''
|
this.index4 = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
|||||||
@@ -146,12 +146,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await inArea(this.index)
|
let res = await inArea(this.index)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.index = ''
|
|
||||||
this.dataList = []
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@@ -172,12 +171,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await outArea(this.index)
|
let res = await outArea(this.index)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.index = ''
|
|
||||||
this.dataList = []
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -24,16 +24,17 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-6">
|
||||||
<span class="filter_label">用料数量</span>
|
<span class="filter_label">用料数量</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-16">
|
||||||
<input type="number" class="filter_input" v-model="val3" disabled>
|
<input type="number" v-model="val3" class="filter_input">
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-col-2"><span class="filter_unit">{{unit}}</span></view>
|
||||||
</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">托盘数</span>
|
<span class="filter_label">叫料托盘数</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<input type="number" class="filter_input" v-model="val2">
|
<input type="number" class="filter_input" v-model="val2">
|
||||||
@@ -63,6 +64,7 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
val2: '1',
|
val2: '1',
|
||||||
val3: '',
|
val3: '',
|
||||||
|
unit: '',
|
||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
pointCode: '',
|
pointCode: '',
|
||||||
@@ -92,7 +94,8 @@
|
|||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
let selobj = this.options.find(item => item.value === this.index)
|
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) {
|
handleChange1 (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
|
|||||||
@@ -243,13 +243,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await blanking(this.val1, this.dataList, this.index)
|
let res = await blanking(this.val1, this.dataList, this.index)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.val1 = ''
|
|
||||||
this.index = ''
|
|
||||||
this.dataList = []
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -130,12 +130,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await comfirmGetting(this.val1, this.dataList)
|
let res = await comfirmGetting(this.val1, this.dataList)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.val1 = ''
|
|
||||||
this.dataList = []
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -264,6 +264,7 @@
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@@ -289,6 +290,7 @@
|
|||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
@@ -119,6 +119,12 @@
|
|||||||
toCheck (e) {
|
toCheck (e) {
|
||||||
this.pkId = e.task_code === this.pkId ? '' : e.task_code
|
this.pkId = e.task_code === this.pkId ? '' : e.task_code
|
||||||
},
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.pkId = ''
|
||||||
|
this.dataList = []
|
||||||
|
this.disabled = false
|
||||||
|
},
|
||||||
async _againTask () {
|
async _againTask () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
@@ -128,13 +134,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await againTask(this.pkId)
|
let res = await againTask(this.pkId)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.val1 = ''
|
|
||||||
this.dataList = []
|
|
||||||
this.pkId = ''
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
@@ -155,13 +159,11 @@
|
|||||||
try {
|
try {
|
||||||
let res = await forceConfirm(this.pkId)
|
let res = await forceConfirm(this.pkId)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
this.val1 = ''
|
|
||||||
this.dataList = []
|
|
||||||
this.pkId = ''
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user