删除
This commit is contained in:
@@ -1,132 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="呼叫空托盘"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option2"
|
||||
:active="active2"
|
||||
:open="open2"
|
||||
@toggleItem="toggleItem2"
|
||||
@dropdownMenu="dropdownMenu2">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">点位</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option3"
|
||||
:active="active3"
|
||||
:open="open3"
|
||||
@toggleItem="toggleItem3"
|
||||
@dropdownMenu="dropdownMenu3">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">数量</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled' :val2 === '' || active2 === '' || active3 === ''}" :disabled="disabled1" @click="_callEmptyconfirm">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {callEmptyqueryPoint, callEmptyconfirm} from '@config/getData1'
|
||||
export default {
|
||||
name: 'CallEmptyPallet',
|
||||
components: {
|
||||
NavBar,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val2: '',
|
||||
option2: [],
|
||||
active2: '',
|
||||
open2: false,
|
||||
option3: [],
|
||||
active3: '',
|
||||
open3: false,
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._callEmptyqueryPoint()
|
||||
},
|
||||
methods: {
|
||||
/** 查询点位 */
|
||||
async _callEmptyqueryPoint () {
|
||||
let res = await callEmptyqueryPoint()
|
||||
this.option2 = [...res.result.regionja]
|
||||
this.option2.map(el => {
|
||||
this.$set(el, 'value', el.region_id)
|
||||
this.$set(el, 'label', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 确认 */
|
||||
async _callEmptyconfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.val2 === '' || this.active2 === '' || this.active3 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await callEmptyconfirm(this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code, this.val2)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.val2 = ''
|
||||
this.active2 = ''
|
||||
this.active3 = ''
|
||||
this.disabled1 = false
|
||||
},
|
||||
toggleItem2 () {
|
||||
if (!this.open2) {
|
||||
this.open2 = true
|
||||
} else {
|
||||
this.open2 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu2 (i) {
|
||||
this.active2 = i + ''
|
||||
this.open2 = false
|
||||
this.option3 = this.option2[this.active2].pointArr
|
||||
this.option3.map(el => {
|
||||
this.$set(el, 'value', el.point_id)
|
||||
this.$set(el, 'label', el.point_name)
|
||||
})
|
||||
},
|
||||
toggleItem3 () {
|
||||
if (!this.open3) {
|
||||
this.open3 = true
|
||||
} else {
|
||||
this.open3 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu3 (i) {
|
||||
this.active3 = i + ''
|
||||
this.open3 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,124 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="叫料"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option2"
|
||||
:active="active2"
|
||||
:open="open2"
|
||||
@toggleItem="toggleItem2"
|
||||
@dropdownMenu="dropdownMenu2">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">点位</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option3"
|
||||
:active="active3"
|
||||
:open="open3"
|
||||
@toggleItem="toggleItem3"
|
||||
@dropdownMenu="dropdownMenu3">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled':active2 === '' || active3 === ''}" :disabled="disabled1" @click="_callMaterialconfirm">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {callMaterialqueryPoint, callMaterialconfirm} from '@config/getData1'
|
||||
export default {
|
||||
name: 'EquipCallMater',
|
||||
components: {
|
||||
NavBar,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
option2: [],
|
||||
active2: '',
|
||||
open2: false,
|
||||
option3: [],
|
||||
active3: '',
|
||||
open3: false,
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._callMaterialqueryPoint()
|
||||
},
|
||||
methods: {
|
||||
/** 查询点位 */
|
||||
async _callMaterialqueryPoint () {
|
||||
let res = await callMaterialqueryPoint()
|
||||
this.option2 = [...res.result.regionja]
|
||||
this.option2.map(el => {
|
||||
this.$set(el, 'value', el.region_id)
|
||||
this.$set(el, 'label', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 确认 */
|
||||
async _callMaterialconfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.active2 === '' || this.active3 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await callMaterialconfirm(this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.active2 = ''
|
||||
this.active3 = ''
|
||||
this.disabled1 = false
|
||||
},
|
||||
toggleItem2 () {
|
||||
if (!this.open2) {
|
||||
this.open2 = true
|
||||
} else {
|
||||
this.open2 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu2 (i) {
|
||||
this.active2 = i + ''
|
||||
this.open2 = false
|
||||
this.option3 = this.option2[this.active2].pointArr
|
||||
this.option3.map(el => {
|
||||
this.$set(el, 'value', el.point_id)
|
||||
this.$set(el, 'label', el.point_name)
|
||||
})
|
||||
},
|
||||
toggleItem3 () {
|
||||
if (!this.open3) {
|
||||
this.open3 = true
|
||||
} else {
|
||||
this.open3 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu3 (i) {
|
||||
this.active3 = i + ''
|
||||
this.open3 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,393 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="定点任务"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">任务类型</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option1"
|
||||
:active="active1"
|
||||
:open="open1"
|
||||
@toggleItem="toggleItem1"
|
||||
@dropdownMenu="dropdownMenu1">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">托盘个数</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="number" class="filter-input filter-scan-input" v-model="val4">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">起点</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="optionNew2"
|
||||
:active="active2"
|
||||
:open="open2"
|
||||
:inputed="true"
|
||||
v-model="val2"
|
||||
@handleBlur="handleBlur2"
|
||||
@handleChange="handleChange2"
|
||||
@toggleItem="toggleItem2"
|
||||
@dropdownMenu="dropdownMenu2">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="startShow" class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">起点列</div>
|
||||
<div class="fxcol mgl20 visible torow">
|
||||
<dropdown-menu
|
||||
:option="option4"
|
||||
:active="active4"
|
||||
:open="open4"
|
||||
@toggleItem="toggleItem4"
|
||||
@dropdownMenu="dropdownMenu4">
|
||||
</dropdown-menu>
|
||||
<div class="filter-label filter-label_1 txtjustify">起点层</div>
|
||||
<dropdown-menu
|
||||
:option="option5"
|
||||
:active="active5"
|
||||
:open="open5"
|
||||
@toggleItem="toggleItem5"
|
||||
@dropdownMenu="dropdownMenu5">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">终点</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="optionNew3"
|
||||
:active="active3"
|
||||
:open="open3"
|
||||
:inputed="true"
|
||||
v-model="val3"
|
||||
@handleBlur="handleBlur3"
|
||||
@handleChange="handleChange3"
|
||||
@toggleItem="toggleItem3"
|
||||
@dropdownMenu="dropdownMenu3">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="endShow" class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">终点列</div>
|
||||
<div class="fxcol mgl20 visible torow">
|
||||
<dropdown-menu
|
||||
:option="option6"
|
||||
:active="active6"
|
||||
:open="open6"
|
||||
@toggleItem="toggleItem6"
|
||||
@dropdownMenu="dropdownMenu6">
|
||||
</dropdown-menu>
|
||||
<div class="filter-label filter-label_1 txtjustify">终点层</div>
|
||||
<dropdown-menu
|
||||
:option="option7"
|
||||
:active="active7"
|
||||
:open="open7"
|
||||
@toggleItem="toggleItem7"
|
||||
@dropdownMenu="dropdownMenu7">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled':active1 === '' || active2 === '' || active3 === ''}" :disabled="disabled1" @click="_handTask">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {taskType, queryDevice, handTask, storageCode} from '@config/getData2.js'
|
||||
export default {
|
||||
name: 'FixedPointTask',
|
||||
components: {
|
||||
NavBar,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
option1: [],
|
||||
active1: '',
|
||||
open1: false,
|
||||
option2: [],
|
||||
optionNew2: [],
|
||||
val2: '',
|
||||
scode: '',
|
||||
startType: '',
|
||||
active2: '',
|
||||
open2: false,
|
||||
option3: [],
|
||||
optionNew3: [],
|
||||
val3: '',
|
||||
ecode: '',
|
||||
endType: '',
|
||||
active3: '',
|
||||
open3: false,
|
||||
disabled1: false,
|
||||
val4: '1',
|
||||
startShow: false,
|
||||
option4: [],
|
||||
active4: '',
|
||||
open4: false,
|
||||
option5: [],
|
||||
active5: '',
|
||||
open5: false,
|
||||
endShow: false,
|
||||
option6: [],
|
||||
active6: '',
|
||||
open6: false,
|
||||
option7: [],
|
||||
active7: '',
|
||||
open7: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._taskType()
|
||||
this._queryDevice()
|
||||
},
|
||||
methods: {
|
||||
/** 查询类型 */
|
||||
async _taskType () {
|
||||
let res = await taskType()
|
||||
this.option1 = [...res.result]
|
||||
},
|
||||
/** 查询点位 */
|
||||
async _queryDevice () {
|
||||
let res = await queryDevice()
|
||||
this.option2 = [...res.result]
|
||||
this.option2.map(el => {
|
||||
this.$set(el, 'value', el.device_code)
|
||||
this.$set(el, 'label', el.device_code)
|
||||
})
|
||||
this.option3 = [...this.option2]
|
||||
},
|
||||
/** 确认 */
|
||||
async _handTask () {
|
||||
this.disabled1 = true
|
||||
if (this.val4 <= 0) {
|
||||
this.val4 = 1
|
||||
}
|
||||
if (this.active1 === '' || this.active2 === '' || this.active3 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
let val4 = this.active4 !== '' ? this.option4[this.active4].value : ''
|
||||
let val5 = this.active5 !== '' ? this.option5[this.active5].value : ''
|
||||
let val6 = this.active6 !== '' ? this.option6[this.active6].value : ''
|
||||
let val7 = this.active7 !== '' ? this.option7[this.active7].value : ''
|
||||
try {
|
||||
let res = await handTask(this.option1[this.active1].value, this.val4, this.scode, val4, val5, this.ecode, val6, val7)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.active1 = ''
|
||||
this.active2 = ''
|
||||
this.active3 = ''
|
||||
this.active4 = ''
|
||||
this.active5 = ''
|
||||
this.active6 = ''
|
||||
this.active7 = ''
|
||||
this.disabled1 = false
|
||||
this.val2 = ''
|
||||
this.startType = ''
|
||||
this.scode = ''
|
||||
this.val3 = ''
|
||||
this.endType = ''
|
||||
this.ecode = ''
|
||||
this.val4 = '1'
|
||||
this.startShow = false
|
||||
this.endShow = false
|
||||
},
|
||||
toggleItem1 () {
|
||||
if (!this.open1) {
|
||||
this.open1 = true
|
||||
} else {
|
||||
this.open1 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu1 (i) {
|
||||
this.active1 = i + ''
|
||||
this.open1 = false
|
||||
},
|
||||
/** 模糊匹配 */
|
||||
selectMatchItem (lists, keyWord) {
|
||||
let resArr = []
|
||||
lists.filter((item) => {
|
||||
if (item.device_code.indexOf(keyWord) > -1) {
|
||||
resArr.push(item)
|
||||
}
|
||||
})
|
||||
return resArr
|
||||
},
|
||||
handleChange2 (e) {
|
||||
this.optionNew2 = []
|
||||
this.optionNew2 = this.selectMatchItem(this.option2, e)
|
||||
this.open2 = true
|
||||
},
|
||||
handleBlur2 () {
|
||||
this.open2 = false
|
||||
this.val2 = ''
|
||||
this.startType = ''
|
||||
this.scode = ''
|
||||
},
|
||||
toggleItem2 () {
|
||||
if (!this.open2) {
|
||||
this.optionNew2 = this.option2
|
||||
this.open2 = true
|
||||
} else {
|
||||
this.open2 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu2 (i) {
|
||||
this.active2 = i + ''
|
||||
this.open2 = false
|
||||
if (this.optionNew2.length > 0) {
|
||||
this.val2 = this.optionNew2[i].value
|
||||
this.startType = this.optionNew2[i].device_type
|
||||
this.scode = this.val2
|
||||
if (this.startType === 'storage') {
|
||||
this._storageCode(this.val2, 1)
|
||||
this.startShow = true
|
||||
} else {
|
||||
this.active4 = ''
|
||||
this.active5 = ''
|
||||
this.option4 = []
|
||||
this.option5 = []
|
||||
this.startShow = false
|
||||
}
|
||||
}
|
||||
},
|
||||
handleChange3 (e) {
|
||||
this.optionNew3 = []
|
||||
this.optionNew3 = this.selectMatchItem(this.option3, e)
|
||||
this.open3 = true
|
||||
},
|
||||
handleBlur3 () {
|
||||
this.open3 = false
|
||||
this.val3 = ''
|
||||
this.endType = ''
|
||||
this.ecode = ''
|
||||
},
|
||||
toggleItem3 () {
|
||||
if (!this.open3) {
|
||||
this.optionNew3 = this.option3
|
||||
this.open3 = true
|
||||
} else {
|
||||
this.open3 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu3 (i) {
|
||||
this.active3 = i + ''
|
||||
this.open3 = false
|
||||
if (this.optionNew3.length > 0) {
|
||||
this.val3 = this.optionNew3[i].value
|
||||
this.endType = this.optionNew3[i].device_type
|
||||
this.ecode = this.val3
|
||||
if (this.endType === 'storage') {
|
||||
this._storageCode(this.val3, 2)
|
||||
this.endShow = true
|
||||
} else {
|
||||
this.active6 = ''
|
||||
this.active7 = ''
|
||||
this.option6 = []
|
||||
this.option7 = []
|
||||
this.endShow = false
|
||||
}
|
||||
}
|
||||
},
|
||||
/** 查询类型 */
|
||||
async _storageCode (e, type) {
|
||||
let res = await storageCode(e)
|
||||
if (type === 1) {
|
||||
this.option4 = this.buildArray(res.minY, res.maxY)
|
||||
this.option5 = this.buildArray(res.minZ, res.maxZ)
|
||||
} else {
|
||||
this.option6 = this.buildArray(res.minY, res.maxY)
|
||||
this.option7 = this.buildArray(res.minZ, res.maxZ)
|
||||
}
|
||||
},
|
||||
/** 建数组 */
|
||||
buildArray (min, max) {
|
||||
let arr = []
|
||||
let i = min
|
||||
while (Number(i) <= Number(max)) {
|
||||
if (Number(i) < 10) {
|
||||
arr.push({value: '0' + i, label: '0' + i})
|
||||
} else {
|
||||
arr.push({value: i, label: i})
|
||||
}
|
||||
i++
|
||||
}
|
||||
return arr
|
||||
},
|
||||
toggleItem4 () {
|
||||
if (!this.open4) {
|
||||
this.open4 = true
|
||||
} else {
|
||||
this.open4 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu4 (i) {
|
||||
this.active4 = i + ''
|
||||
this.open4 = false
|
||||
},
|
||||
toggleItem5 () {
|
||||
if (!this.open5) {
|
||||
this.open5 = true
|
||||
} else {
|
||||
this.open5 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu5 (i) {
|
||||
this.active5 = i + ''
|
||||
this.open5 = false
|
||||
},
|
||||
toggleItem6 () {
|
||||
if (!this.open6) {
|
||||
this.open6 = true
|
||||
} else {
|
||||
this.open6 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu6 (i) {
|
||||
this.active6 = i + ''
|
||||
this.open6 = false
|
||||
},
|
||||
toggleItem7 () {
|
||||
if (!this.open7) {
|
||||
this.open7 = true
|
||||
} else {
|
||||
this.open7 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu7 (i) {
|
||||
this.active7 = i + ''
|
||||
this.open7 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '~@style/mixin'
|
||||
.torow
|
||||
_fj()
|
||||
.filter-label
|
||||
width 1.2rem
|
||||
.filter-label_1
|
||||
margin 0 .2rem
|
||||
</style>
|
||||
@@ -1,68 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="组盘"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
label="托盘"
|
||||
v-model="val1"
|
||||
:seaShow="false"
|
||||
></search-box>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">数量</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : val1 === '' || val2 === ''}" :disabled="disabled1" @click="_emptyAndQtyconfirm">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import {emptyAndQtyconfirm} from '@config/getData1'
|
||||
export default {
|
||||
name: 'GroupPallet',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 确认 */
|
||||
async _emptyAndQtyconfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.val1 === '' || this.val2 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await emptyAndQtyconfirm(this.val1, this.val2)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.disabled1 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,148 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="送空托盘"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option2"
|
||||
:active="active2"
|
||||
:open="open2"
|
||||
@toggleItem="toggleItem2"
|
||||
@dropdownMenu="dropdownMenu2">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">点位</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option3"
|
||||
:active="active3"
|
||||
:open="open3"
|
||||
@toggleItem="toggleItem3"
|
||||
@dropdownMenu="dropdownMenu3">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<search-box
|
||||
label="托盘"
|
||||
v-model="val1"
|
||||
:seaShow="false"
|
||||
:disabled="isSpecial"
|
||||
></search-box>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">数量</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled' :val2 === '' || active2 === '' || active3 === ''}" :disabled="disabled1" @click="_sendEmptyconfirm">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {sendEmptyqueryPoint, sendEmptyconfirm} from '@config/getData1'
|
||||
export default {
|
||||
name: 'SendEmptyPallet',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
isSpecial: false,
|
||||
option2: [],
|
||||
active2: '',
|
||||
open2: false,
|
||||
option3: [],
|
||||
active3: '',
|
||||
open3: false,
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._sendEmptyqueryPoint()
|
||||
},
|
||||
methods: {
|
||||
/** 查询点位 */
|
||||
async _sendEmptyqueryPoint () {
|
||||
let res = await sendEmptyqueryPoint()
|
||||
this.option2 = [...res.result.regionja]
|
||||
this.option2.map(el => {
|
||||
this.$set(el, 'value', el.region_id)
|
||||
this.$set(el, 'label', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 确认 */
|
||||
async _sendEmptyconfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.val2 === '' || this.active2 === '' || this.active3 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await sendEmptyconfirm(this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code, this.val1, this.val2)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.val2 = ''
|
||||
this.active2 = ''
|
||||
this.active3 = ''
|
||||
this.disabled1 = false
|
||||
},
|
||||
toggleItem2 () {
|
||||
if (!this.open2) {
|
||||
this.open2 = true
|
||||
} else {
|
||||
this.open2 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu2 (i) {
|
||||
this.active2 = i + ''
|
||||
this.open2 = false
|
||||
if (this.option2[this.active2].region_code === 'SSX01') {
|
||||
this.val1 = ''
|
||||
this.isSpecial = true
|
||||
} else {
|
||||
this.isSpecial = false
|
||||
}
|
||||
this.option3 = this.option2[this.active2].pointArr
|
||||
this.option3.map(el => {
|
||||
this.$set(el, 'value', el.point_id)
|
||||
this.$set(el, 'label', el.point_name)
|
||||
})
|
||||
},
|
||||
toggleItem3 () {
|
||||
if (!this.open3) {
|
||||
this.open3 = true
|
||||
} else {
|
||||
this.open3 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu3 (i) {
|
||||
this.active3 = i + ''
|
||||
this.open3 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,132 +0,0 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="送料"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option2"
|
||||
:active="active2"
|
||||
:open="open2"
|
||||
@toggleItem="toggleItem2"
|
||||
@dropdownMenu="dropdownMenu2">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">点位</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<dropdown-menu
|
||||
:option="option3"
|
||||
:active="active3"
|
||||
:open="open3"
|
||||
@toggleItem="toggleItem3"
|
||||
@dropdownMenu="dropdownMenu3">
|
||||
</dropdown-menu>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">数量</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled' :val2 === '' || active2 === '' || active3 === ''}" :disabled="disabled1" @click="_sendMaterialconfirm">确定</button>
|
||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {sendMaterialqueryPoint, sendMaterialconfirm} from '@config/getData1'
|
||||
export default {
|
||||
name: 'SendMater',
|
||||
components: {
|
||||
NavBar,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val2: '',
|
||||
option2: [],
|
||||
active2: '',
|
||||
open2: false,
|
||||
option3: [],
|
||||
active3: '',
|
||||
open3: false,
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._sendMaterialqueryPoint()
|
||||
},
|
||||
methods: {
|
||||
/** 查询点位 */
|
||||
async _sendMaterialqueryPoint () {
|
||||
let res = await sendMaterialqueryPoint()
|
||||
this.option2 = [...res.result.regionja]
|
||||
this.option2.map(el => {
|
||||
this.$set(el, 'value', el.region_id)
|
||||
this.$set(el, 'label', el.region_name)
|
||||
})
|
||||
},
|
||||
/** 确认 */
|
||||
async _sendMaterialconfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.val2 === '' || this.active2 === '' || this.active3 === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await sendMaterialconfirm(this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code, this.val2)
|
||||
this.toast(res.desc)
|
||||
this.toCancle()
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 取消 */
|
||||
toCancle () {
|
||||
this.val2 = ''
|
||||
this.active2 = ''
|
||||
this.active3 = ''
|
||||
this.disabled1 = false
|
||||
},
|
||||
toggleItem2 () {
|
||||
if (!this.open2) {
|
||||
this.open2 = true
|
||||
} else {
|
||||
this.open2 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu2 (i) {
|
||||
this.active2 = i + ''
|
||||
this.open2 = false
|
||||
this.option3 = this.option2[this.active2].pointArr
|
||||
this.option3.map(el => {
|
||||
this.$set(el, 'value', el.point_id)
|
||||
this.$set(el, 'label', el.point_name)
|
||||
})
|
||||
},
|
||||
toggleItem3 () {
|
||||
if (!this.open3) {
|
||||
this.open3 = true
|
||||
} else {
|
||||
this.open3 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu3 (i) {
|
||||
this.active3 = i + ''
|
||||
this.open3 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user