重量限制
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
userName: '',
|
userName: '',
|
||||||
menuList: [
|
menuList: [
|
||||||
{title: '原料管理', path: 'RF04', sonTree: [{title: '来料入库', path: '/pages/zw/ll-instore'}, {title: '空载具入库', path: '/pages/zw/kzj-instore'}, {title: '空载具出库', path: '/pages/zw/kzj-outstore'}, {title: '点位属性设置', path: '/pages/zw/point-attrset'}, {title: '物料组盘', path: '/pages/zw/wl-groupplate'}, {title: '点位更新', path: '/pages/zw/confirm-quhuo'}]},
|
{title: '原料管理', path: 'RF04', sonTree: [{title: '来料入库', path: '/pages/zw/ll-instore'}, {title: '空载具入库', path: '/pages/zw/kzj-instore'}, {title: '空载具出库', path: '/pages/zw/kzj-outstore'}, {title: '点位属性设置', path: '/pages/zw/point-attrset'}, {title: '物料组盘', path: '/pages/zw/wl-groupplate'}, {title: '点位更新', path: '/pages/zw/confirm-quhuo'}]},
|
||||||
{title: '解包管理', path: 'RF03', sonTree: [{title: '解包上料', path: '/pages/zw/jb-up-mater'}, {title: '解包下料', path: '/pages/zw/jb-lower-mater'}, {title: '解包退料', path: '/pages/zw/jb-return-mater'}, {title: '人车安全', path: '/pages/zw/mancar-safe'}]},
|
{title: '解包管理', path: 'RF03', sonTree: [{title: '解包上料', path: '/pages/zw/jb-up-mater'}, {title: '解包出桶', path: '/pages/zw/jb-lower-mater'}, {title: '解包退料', path: '/pages/zw/jb-return-mater'}, {title: '人车安全', path: '/pages/zw/mancar-safe'}]},
|
||||||
{title: '缓存管理', path: 'RF06', sonTree: [{title: '料桶盘点', path: '/pages/zw/materbox-instore'}, {title: '物料入库', path: '/pages/zw/ltzp'}]},
|
{title: '缓存管理', path: 'RF06', sonTree: [{title: '料桶盘点', path: '/pages/zw/materbox-instore'}, {title: '物料入库', path: '/pages/zw/ltzp'}]},
|
||||||
{title: '产线管理', path: 'RF02', sonTree: [{title: '手工叫料', path: '/pages/zw/manual-callmater'}, {title: '手工退料', path: '/pages/zw/manual-returnmater'}]},
|
{title: '产线管理', path: 'RF02', sonTree: [{title: '手工叫料', path: '/pages/zw/manual-callmater'}, {title: '手工退料', path: '/pages/zw/manual-returnmater'}]},
|
||||||
{title: '作业管理', path: 'RF07', sonTree: [{title: '作业管理', path: '/pages/zw/zygl'}]},
|
{title: '作业管理', path: 'RF07', sonTree: [{title: '作业管理', path: '/pages/zw/zygl'}]},
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2}" @tap="seachList">查询工单</button>
|
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2}" @tap="seachList">查询工单</button>
|
||||||
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2 || !this.val3 || !this.val2 || !this.pkId}" @tap="xlconfirm">确认下料</button>
|
<button class="zd-col-11 button-primary" :class="{'button-info': !this.index2 || !this.val3 || !this.val2 || !this.pkId}" @tap="xlconfirm">确认出桶</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<span class="filter_label">物料单重(kg)</span>
|
<span class="filter_label">物料单重(kg)</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<NumberInput v-model="currentData.single_weight" />
|
<NumberInput v-model="currentData.single_weight"/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
@@ -52,13 +52,21 @@
|
|||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
</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-7">
|
||||||
<span class="filter_label">料桶编码</span>
|
<span class="filter_label">料桶编码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
|
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">料桶编码</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17 filter_select">
|
||||||
|
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -73,7 +81,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import NumberInput from '@/components/NumberInput.vue'
|
import NumberInput from '@/components/NumberInput.vue'
|
||||||
import {suppList, combination} from '@/utils/getData4.js'
|
import {vehiclelist, suppList, combination} from '@/utils/getData4.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -87,12 +95,15 @@
|
|||||||
currentData: {},
|
currentData: {},
|
||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
this._suppList()
|
this._suppList()
|
||||||
|
this._vehiclelist()
|
||||||
},
|
},
|
||||||
onShow () {
|
onShow () {
|
||||||
if (this.$store.getters.publicObj !== '') {
|
if (this.$store.getters.publicObj !== '') {
|
||||||
@@ -116,6 +127,11 @@
|
|||||||
this.options = []
|
this.options = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/** 料桶编码下拉框*/
|
||||||
|
async _vehiclelist () {
|
||||||
|
let res = await vehiclelist()
|
||||||
|
this.options1 = [...res]
|
||||||
|
},
|
||||||
toJump () {
|
toJump () {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/common/mater-list?title=查询物料'
|
url: '/pages/common/mater-list?title=查询物料'
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': !index2 || (!qty && index4 === '1') || !index4}" :disabled="disabled" @tap="_checkoutbillBackMaterial">确认</button>
|
<button class="zd-col-16 button-primary" :class="{'button-info': !index2 || (!qty && index4 === '1') || !index4}" :disabled="disabled" @tap="toSure">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -104,12 +104,54 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _checkoutbillBackMaterial () {
|
// async _checkoutbillBackMaterial () {
|
||||||
|
// this.disabled = true
|
||||||
|
// if (!this.index2 || (!this.qty && this.index4 === '1') || !this.index4) {
|
||||||
|
// this.disabled = false
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
// try {
|
||||||
|
// const qty = this.index4 !== '2' ? this.qty : null
|
||||||
|
// let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
|
||||||
|
// if (res.code === '200') {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.message,
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// this.clearUp()
|
||||||
|
// } else {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.message,
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// this.disabled = false
|
||||||
|
// }
|
||||||
|
// } catch (e) {
|
||||||
|
// this.disabled = false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.index2 || (!this.qty && this.index4 === '1') || !this.index4) {
|
if (!this.index2 || (!this.qty && this.index4 === '1') || !this.index4) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (Number(this.qty) > 2000) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '输入的重量'+ Number(this.qty) +'过大,是否继续?',
|
||||||
|
confirmColor: '#ff6a00',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
this._checkoutbillBackMaterial()
|
||||||
|
} else if (res.cancel) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _checkoutbillBackMaterial () {
|
||||||
try {
|
try {
|
||||||
const qty = this.index4 !== '2' ? this.qty : null
|
const qty = this.index4 !== '2' ? this.qty : null
|
||||||
let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
|
let res = await checkoutbillBackMaterial(this.index2, this.index4, qty)
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}' || !val1 || !index}" :disabled="disabled" @tap="_zwgroupPlate">组盘确认</button>
|
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}' || !val1 || !index}" :disabled="disabled" @tap="toSure">组盘确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -192,12 +192,28 @@
|
|||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
},
|
},
|
||||||
async _zwgroupPlate () {
|
toSure () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (JSON.stringify(this.currentData) === '{}' || !this.val1 || !this.index) {
|
if (JSON.stringify(this.currentData) === '{}' || !this.val1 || !this.index) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (Number(this.currentData.qty) > 2000) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '输入的重量'+ Number(this.currentData.qty) +'过大,是否继续?',
|
||||||
|
confirmColor: '#ff6a00',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
this._zwgroupPlate()
|
||||||
|
} else if (res.cancel) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _zwgroupPlate () {
|
||||||
try {
|
try {
|
||||||
this.currentData.stor_code = this.index
|
this.currentData.stor_code = this.index
|
||||||
let selobj = this.options2.find(item => item.value === this.currentData.supp_code)
|
let selobj = this.options2.find(item => item.value === this.currentData.supp_code)
|
||||||
|
|||||||
@@ -344,6 +344,12 @@ export const combination = (vcode, pcsn, mid, spcode, spname, sweight) => reques
|
|||||||
data: {vehicle_code: vcode, pcsn: pcsn, material_id: mid, supp_code: spcode, supp_name: spname, single_weight: sweight}
|
data: {vehicle_code: vcode, pcsn: pcsn, material_id: mid, supp_code: spcode, supp_name: spname, single_weight: sweight}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 料桶组盘-可用载具数组
|
||||||
|
export const vehiclelist = () => request({
|
||||||
|
url:'api/pda/jb/vehiclelist',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
// 确认取货
|
// 确认取货
|
||||||
export const pickUp = (pcode, pstatus, vcode) => request({
|
export const pickUp = (pcode, pstatus, vcode) => request({
|
||||||
url:'api/pda/iosOut/pickUp',
|
url:'api/pda/iosOut/pickUp',
|
||||||
|
|||||||
Reference in New Issue
Block a user