喷雾工序加入原材料库
This commit is contained in:
@@ -408,6 +408,12 @@ export const sendLK = (id, vcode, pcode, btn) => post('api/pda/pdm/sendLK', {
|
||||
point_code: pcode,
|
||||
button_name: btn
|
||||
})
|
||||
// 1.15入原材料库
|
||||
export const inRaw = (vcode, pcode, row) => post('api/pda/pdm/inRaw', {
|
||||
vehicle_code: vcode,
|
||||
point_code: pcode,
|
||||
row: row
|
||||
})
|
||||
// 1.7下发
|
||||
export const issuePW = (id, n) => post('api/pda/pdm/issuePW', {
|
||||
worktask_id: id,
|
||||
@@ -549,3 +555,16 @@ export const xcoutconfirmoutstore = (wcode, vcode, dtl) => post('api/pda/st/out/
|
||||
},
|
||||
dtl: dtl
|
||||
})
|
||||
|
||||
/**
|
||||
* 内部软废入库
|
||||
*/
|
||||
// 1.1内部软废入库
|
||||
export const insideIn = (code) => post('api/pda/st/in/insideIn', {
|
||||
vehicle_code: code
|
||||
})
|
||||
// 1.2入库确认
|
||||
export const insideInConfirm = (vcode, code) => post('api/pda/st/in/insideInConfirm', {
|
||||
vehicle_code: vcode,
|
||||
point_code: code
|
||||
})
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" @click="toPrint1">打印桶码</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" @click="groupDisk">组盘</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled5" @click="_sendLK">发送立库</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === '' || val3 === '' || val4 === ''}" :disabled="disabled6" @click="_inRaw">入原材料库</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled1" @click="_updateWorkStatus('99', '结束')">结束</button>
|
||||
<i ref="arrow" class="iconfont open_icon" @click="packUp"></i>
|
||||
</section>
|
||||
@@ -100,7 +101,7 @@ import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import { submitPackUp } from '@config/mUtils.js'
|
||||
import {queryMixDevice, queryWorkTask, updateWorkStatus, issuePW, moveFinish, movePWVehicle, sendLK} from '@config/getData2'
|
||||
import {queryMixDevice, queryWorkTask, updateWorkStatus, issuePW, moveFinish, movePWVehicle, sendLK, inRaw} from '@config/getData2'
|
||||
export default {
|
||||
name: 'ProcessSpray',
|
||||
components: {
|
||||
@@ -126,7 +127,8 @@ export default {
|
||||
disabled2: false,
|
||||
disabled3: false,
|
||||
disabled4: false,
|
||||
disabled5: false
|
||||
disabled5: false,
|
||||
disabled6: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -317,6 +319,26 @@ export default {
|
||||
query: {url: 'ProcessSpray'}
|
||||
})
|
||||
}
|
||||
},
|
||||
/** 入原材料库 */
|
||||
async _inRaw () {
|
||||
this.disabled6 = true
|
||||
if (this.pkId === '' || this.val3 === '' || this.val4 === '') {
|
||||
this.disabled6 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await inRaw(this.val3, this.val4, this.pkObj)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._queryWorkTask(this.barCode)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled6 = false
|
||||
} catch (e) {
|
||||
this.disabled6 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user