空管入库

This commit is contained in:
2023-04-28 10:28:18 +08:00
parent 35b10b105c
commit ded55a9c9f
2 changed files with 15 additions and 6 deletions

View File

@@ -61,13 +61,17 @@
}, },
created () { created () {
this._queryProductArea() this._queryProductArea()
this._queryDeviceList() this._queryDeviceList('')
this._queryPaperMaterial('') this._queryPaperMaterial('')
}, },
methods: { methods: {
/** 选择器1 */ /** 选择器1 */
selectChange1(e) { selectChange1(e) {
this.index1 = e this.index1 = e
if (e) {
this._queryDeviceList(e)
this.index2 = ''
}
}, },
/** 选择器2 */ /** 选择器2 */
selectChange2(e) { selectChange2(e) {
@@ -104,8 +108,8 @@
this.options1 = [...res.data] this.options1 = [...res.data]
}, },
/** 查询设备下拉框 */ /** 查询设备下拉框 */
async _queryDeviceList () { async _queryDeviceList (area) {
let res = await queryDeviceList() let res = await queryDeviceList(area)
this.options2 = [...res.rows] this.options2 = [...res.rows]
}, },
/**查询物料下拉框*/ /**查询物料下拉框*/
@@ -162,6 +166,9 @@
this.index2 = '' this.index2 = ''
this.index3 = '' this.index3 = ''
this.qty = '' this.qty = ''
this._queryDeviceList('')
this._queryPaperMaterial('')
} catch (e) { } catch (e) {
this.disabled = false this.disabled = false
} }

View File

@@ -502,9 +502,11 @@ data: {
* 空管出入库 * 空管出入库
*/ */
// 1.1查询纸管库设备下拉框 // 1.1查询纸管库设备下拉框
export const queryDeviceList = () => request({ export const queryDeviceList = (area) => request({
url:'api/pda/paper/queryDeviceList', url:'api/pda/paper/queryDeviceList',
data: {} data: {
product_area: area
}
}) })
// 1.2查询纸管物料下拉框 // 1.2查询纸管物料下拉框
export const queryPaperMaterial = (code) => request({ export const queryPaperMaterial = (code) => request({
@@ -520,7 +522,7 @@ data: jarr
}) })
// 1.4入库设置/出库确认 // 1.4入库设置/出库确认
export const emptyConfirm = (qty, mater, code, option) => request({ export const emptyConfirm = (qty, mater, code, option) => request({
url:'pda/paper/PaperDeviceOperate', url:'api/pda/paper/PaperDeviceOperate',
data: { data: {
qty: qty, qty: qty,
material_code: mater, material_code: mater,