包装入库需求修改,提交按钮样式修改
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
{menu_id: '5', icon: 'RF09', name: '人工分拣', path: '', sonTree: [
|
||||
{menu_id: '1', name: '分拣排产', path: '/pages/modules/sort-schedue'},
|
||||
{menu_id: '2', name: '剩料入库', path: '/pages/modules/surplus-mater-instore'},
|
||||
{menu_id: '3', name: '托盘绑定', path: '/pages/modules/pallet-bind'},
|
||||
// {menu_id: '3', name: '托盘绑定', path: '/pages/modules/pallet-bind'},
|
||||
{menu_id: '4', name: '包装入库', path: '/pages/modules/package-instore'},
|
||||
{menu_id: '5', name: '呼叫满料', path: '/pages/modules/call-full-mater'},
|
||||
{menu_id: '6', name: '呼叫木盘', path: '/pages/modules/call-mupan'},
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_callingMaterialTaskShow">刷新</button>
|
||||
<button class="submit-button" :disabled="disabled" @tap="toSure">呼叫满料</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_callingMaterialTaskShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :disabled="disabled" @tap="toSure">呼叫满料</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_callingWoodenPalletTaskShow">刷新</button>
|
||||
<button class="submit-button" :disabled="disabled" @tap="toSure">呼叫木盘</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_callingWoodenPalletTaskShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :disabled="disabled" @tap="toSure">呼叫木盘</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_emptyDiskIntoStorageShow">刷新</button>
|
||||
<button class="submit-button" :disabled="disabled" @tap="toSure">空盘入库</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_emptyDiskIntoStorageShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :disabled="disabled" @tap="toSure">空盘入库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_forcedRestingShow">刷新</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !pkId}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_forcedRestingShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !val1 || !pkId}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !index1}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !val1 || !index1}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_mixRequestInfo">刷新</button>
|
||||
<button class="submit-button" :disabled="disabled" @tap="toSure">删除</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_mixRequestInfo">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :disabled="disabled" @tap="toSure">删除</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !index1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">清空</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">清空</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="zd-col-11 submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -59,9 +59,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_shelfMaterialQuery">查询</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !index || (index === '2' && !val2) || (index === '3' && (!val2 || !val3 || !pkId))}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" @tap="_shelfMaterialQuery">查询</button>
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !val1 || !index || (index === '2' && !val2) || (index === '3' && (!val2 || !val3 || !pkId))}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="toSure1">开工</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="toSure2">完工</button>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="toSure1">开工</button>
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="toSure2">完工</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" @tap="_forcedRestingShow">刷新</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="_forcedRestingShow">刷新</button>
|
||||
<button class="zd-col-11 submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user