点位管理
This commit is contained in:
@@ -156,12 +156,12 @@
|
|||||||
},
|
},
|
||||||
cleanUp () {
|
cleanUp () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
this._handPointOpt('2', this.index, this.qty)
|
this._handPointOpt(this.obj.device_code, '2', this.index, this.qty)
|
||||||
this.active = false
|
this.active = false
|
||||||
},
|
},
|
||||||
msgSure () {
|
msgSure () {
|
||||||
this.disabled2 = true
|
this.disabled2 = true
|
||||||
this._handPointOpt('1', this.index, this.qty)
|
this._handPointOpt(this.obj.device_code, '1', this.index, this.qty)
|
||||||
this.active = false
|
this.active = false
|
||||||
},
|
},
|
||||||
msgCancle () {
|
msgCancle () {
|
||||||
@@ -170,9 +170,9 @@
|
|||||||
this.index = ''
|
this.index = ''
|
||||||
this.qty = ''
|
this.qty = ''
|
||||||
},
|
},
|
||||||
async _handPointOpt (type, mtype, qty) {
|
async _handPointOpt (code, type, mtype, qty) {
|
||||||
try {
|
try {
|
||||||
let res = await handPointOpt(type, mtype, qty)
|
let res = await handPointOpt(code, type, mtype, qty)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '操作成功',
|
title: '操作成功',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -60,9 +60,10 @@ export const handMaterial = () => request({
|
|||||||
// return res
|
// return res
|
||||||
// }
|
// }
|
||||||
// 1.4点位操作
|
// 1.4点位操作
|
||||||
export const handPointOpt = (type, mtype, qty) => request({
|
export const handPointOpt = (code, type, mtype, qty) => request({
|
||||||
url:'api/hand/pointOpt',
|
url:'api/hand/pointOpt',
|
||||||
data: {
|
data: {
|
||||||
|
device_code: code,
|
||||||
type: type,
|
type: type,
|
||||||
material_type: mtype,
|
material_type: mtype,
|
||||||
qty: qty
|
qty: qty
|
||||||
|
|||||||
Reference in New Issue
Block a user