选择物料
This commit is contained in:
@@ -93,3 +93,37 @@ export const outgetAll = (sid, btime, etime, btype, mcode, scode) => post('api/p
|
|||||||
export const inconfirm = (row) => post('api/pda/cp/in/confirm', {
|
export const inconfirm = (row) => post('api/pda/cp/in/confirm', {
|
||||||
row: row
|
row: row
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 刻字上料
|
||||||
|
// 1.1设备列表
|
||||||
|
export const devicelist = () => post('api/device/list', {
|
||||||
|
workprocedure_id: '1535144682756116480'
|
||||||
|
})
|
||||||
|
|
||||||
|
// 1.2车间列表
|
||||||
|
export const dictDetailByCode = (code) => post('api/dict/dictDetailByCode', {
|
||||||
|
code: code
|
||||||
|
})
|
||||||
|
|
||||||
|
// 1卸料
|
||||||
|
export const kzunload = (dcode, qty) => post('api/pda/kzunload', {
|
||||||
|
device_code: dcode,
|
||||||
|
qty: qty
|
||||||
|
})
|
||||||
|
|
||||||
|
// 1卸料
|
||||||
|
export const kzresidue = (dcode) => post('api/pda/kzresidue', {
|
||||||
|
device_code: dcode
|
||||||
|
})
|
||||||
|
|
||||||
|
// 临时人工刻字上料
|
||||||
|
// 1刻字上料
|
||||||
|
export const tmpcallVechile = (dcode, qty) => post('api/pda/tmpcallVechile', {
|
||||||
|
device_code: dcode,
|
||||||
|
qty: qty
|
||||||
|
})
|
||||||
|
|
||||||
|
// 2空框回库
|
||||||
|
export const tmpsendVechile = (dcode) => post('api/pda/tmpsendVechile', {
|
||||||
|
device_code: dcode
|
||||||
|
})
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<button class="button button--primary" @click="toInConfirm">确认入库</button>
|
<button class="button button--primary" @click="toInConfirm">确认入库</button>
|
||||||
<button class="button button--primary" @click="toSearch">作业查询</button>
|
<button class="button button--primary" @click="toSearch">作业查询</button>
|
||||||
<button class="button button--primary" @click="toAddBillMater">添加单据物料</button>
|
<button class="button button--primary" @click="toAddBillMater">添加单据物料</button>
|
||||||
<button class="button button--primary" @click="toDel">删除一行</button>
|
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="delRow">删除一行</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,6 +152,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
toAddBillMater () {
|
toAddBillMater () {
|
||||||
|
this.$store.dispatch('setMaterArr', [])
|
||||||
this.$router.push('/selectfinishedmater')
|
this.$router.push('/selectfinishedmater')
|
||||||
},
|
},
|
||||||
toSearch () {
|
toSearch () {
|
||||||
@@ -161,8 +162,12 @@ export default {
|
|||||||
this.pkId = this.pkId === e.sale_code ? '' : e.sale_code
|
this.pkId = this.pkId === e.sale_code ? '' : e.sale_code
|
||||||
this.pkObj = this.pkId === e.sale_code ? e : {}
|
this.pkObj = this.pkId === e.sale_code ? e : {}
|
||||||
},
|
},
|
||||||
toDel () {
|
delRow () {
|
||||||
console.log('del')
|
if (!this.pkId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dataList = this.dataList.filter(el => el.sale_code !== this.pkId)
|
||||||
|
this.$store.dispatch('setMaterArr', this.dataList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user