change
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<div class="search-confirm-wrap">
|
<div class="search-confirm-wrap">
|
||||||
<div class="search-wrap">
|
<div class="search-wrap">
|
||||||
<div class="search-item_2 flexend">
|
<div class="search-item_2 flexend">
|
||||||
<button class="button button--primary" @click="toSelect">刻字暂存位选择</button>
|
<button class="button button--primary" :class="{'button--defalut': !this.pkId}" @click="toSelect">刻字暂存位选择</button>
|
||||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': !this.pkId}" @click="_sendVechile">空框送回</button>
|
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': !this.pkId}" @click="_sendVechile">空框送回</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -52,6 +52,13 @@ export default {
|
|||||||
this._packageList()
|
this._packageList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// grid
|
||||||
|
async _packageList () {
|
||||||
|
let res = await packageList()
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.dataList = [...res.content]
|
||||||
|
}
|
||||||
|
},
|
||||||
async _sendVechile () {
|
async _sendVechile () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
@@ -71,6 +78,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
toSelect () {
|
toSelect () {
|
||||||
|
if (!this.pkId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$store.dispatch('setMaterObj', JSON.stringify(this.pkObj))
|
this.$store.dispatch('setMaterObj', JSON.stringify(this.pkObj))
|
||||||
this.$router.push('/letterbufferselect')
|
this.$router.push('/letterbufferselect')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,10 +53,21 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.val1 = this.$store.getters.setMaterObj.device_code
|
|
||||||
this._cachepoint()
|
this._cachepoint()
|
||||||
},
|
},
|
||||||
|
activated () {
|
||||||
|
if (this.$store.getters.materObj !== '') {
|
||||||
|
this.val1 = JSON.parse(this.$store.getters.materObj).device_code
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// grid
|
||||||
|
async _cachepoint () {
|
||||||
|
let res = await cachepoint()
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.dataList = [...res.content]
|
||||||
|
}
|
||||||
|
},
|
||||||
async _confirmUp () {
|
async _confirmUp () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (!this.pkId) {
|
if (!this.pkId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user