修改
This commit is contained in:
@@ -200,7 +200,7 @@ export const sendVechile = (dcode) => post('api/pda/package/sendVechile', {
|
||||
export const cachepoint = () => post('api/pda/package/cachepoint', {
|
||||
})
|
||||
// 1.3确认上料
|
||||
export const confirmUp = (dcode, pcode) => post('api/pda/package/confirmUp', {
|
||||
export const sendMaterial = (dcode, pcode) => post('api/pda/package/sendMaterial', {
|
||||
device_code: dcode,
|
||||
point_code: pcode
|
||||
})
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="order-wraper">
|
||||
<div class="search-confirm-wrap">
|
||||
<div class="search-wrap">
|
||||
<div class="search-item_2 flexend">
|
||||
<div class="search-item_3">
|
||||
<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>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
dataList: [],
|
||||
// dataList: [{device_code: '24007845L', workorder_code: '23xcds', material_spec: '垫片活接直通\DPHJS22\EHJA0703009B', plan_qty: '1000', material_code: '0022060927'}],
|
||||
// dataList: [{device_code: '24007845L', workorder_code: '23xcds', material_spec: '垫片活接9B', plan_qty: '1000', material_code: '0022060927'}],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled1: false
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item_2 flexend">
|
||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': !this.pkId}" @click="_confirmUp">确认上料</button>
|
||||
<button class="button button--primary" :disabled="disabled1" :class="{'button--defalut': !this.pkId}" @click="_sendMaterial">确认上料</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { cachepoint, confirmUp } from '../../../config/getData1.js'
|
||||
import { cachepoint, sendMaterial } from '../../../config/getData1.js'
|
||||
export default {
|
||||
name: 'letterbufferselect',
|
||||
data () {
|
||||
@@ -53,12 +53,10 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._cachepoint()
|
||||
},
|
||||
activated () {
|
||||
if (this.$store.getters.materObj !== '') {
|
||||
this.val1 = JSON.parse(this.$store.getters.materObj).device_code
|
||||
}
|
||||
this._cachepoint()
|
||||
},
|
||||
methods: {
|
||||
// grid
|
||||
@@ -68,14 +66,14 @@ export default {
|
||||
this.dataList = [...res.content]
|
||||
}
|
||||
},
|
||||
async _confirmUp () {
|
||||
async _sendMaterial () {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await confirmUp(this.val1, this.pkId)
|
||||
let res = await sendMaterial(this.val1, this.pkId)
|
||||
this.toast(res.message)
|
||||
this.disabled1 = false
|
||||
this.pkId = ''
|
||||
|
||||
Reference in New Issue
Block a user