包装入库需求修改,提交按钮样式修改
This commit is contained in:
@@ -4,21 +4,51 @@
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">托盘编码</view>
|
||||
<view class="filter_label">钢托盘1编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1" />
|
||||
<search-box v-model="code1" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料数量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
<input type="number" class="filter_input" v-model="num1">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">剩余数量</view>
|
||||
<view class="filter_label">钢托盘2编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
<search-box v-model="code2" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料数量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="num2">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">钢托盘3编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="code3" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料数量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="num3">
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">木托盘编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="code4" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">物料数量</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="number" class="filter_input" v-model="num4">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -47,9 +77,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_manualSortingPackingTaskShow">刷新</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_manualSortingPackingTaskShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !(((code1 !== '' && num1 !== '') || (code2 !== '' && num2 !== '') || (code3 !== '' && num3 !== '')) && (code4 !== '' && num4 !== ''))}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -65,9 +95,14 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '0',
|
||||
code1: '',
|
||||
num1: '',
|
||||
code2: '',
|
||||
num2: '',
|
||||
code3: '',
|
||||
num3: '',
|
||||
code4: '',
|
||||
num4: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
};
|
||||
@@ -84,16 +119,21 @@
|
||||
/** 确认 */
|
||||
async toSure () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
if (!(((this.code1 !== '' && this.num1 !== '') || (this.code2 !== '' && this.num2 !== '') || (this.code3 !== '' && this.num3 !== '')) && (this.code4 !== '' && this.num4 !== ''))) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await manualSortingPackingTask(this.val1, this.val2, this.val3)
|
||||
let res = await manualSortingPackingTask(this.code1, this.num1, this.code2, this.num2, this.code3, this.num3, this.code4, this.num4)
|
||||
this.disabled = false
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = '0'
|
||||
this.code1 = ''
|
||||
this.num2 = ''
|
||||
this.code2 = ''
|
||||
this.num2 = ''
|
||||
this.code3 = ''
|
||||
this.num3 = ''
|
||||
this.code4 = ''
|
||||
this.num4 = ''
|
||||
this._manualSortingPackingTaskShow()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -107,5 +147,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
<style lang="stylus" scoped>
|
||||
.filter_label
|
||||
width 100px
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user