diff --git a/pages/ProductManage/ZjCasing.vue b/pages/ProductManage/ZjCasing.vue index 7906702..e7b53f6 100644 --- a/pages/ProductManage/ZjCasing.vue +++ b/pages/ProductManage/ZjCasing.vue @@ -95,7 +95,7 @@ - + @@ -250,12 +250,12 @@ /** 穿轴确认 */ async _casingWearConfirm () { this.disabled2 = true - if (!this.val2) { + if (!this.val1 || !this.val2) { this.disabled2 = false return } try { - let res = await casingWearConfirm(this.val2) + let res = await casingWearConfirm(this.val2, this.val1) this.disabled2 = false this.checkArr = [] this.val1 = '' diff --git a/utils/getData2.js b/utils/getData2.js index 18fbc6f..3e11dc1 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -160,10 +160,11 @@ export const casingOutConfirm = (qzz, code) => request({ } }) // 1.5穿轴确认 -export const casingWearConfirm = (qzz) => request({ +export const casingWearConfirm = (qzz, code) => request({ url:'api/pda/casing/wearConfirm', data: { - qzzno: qzz + qzzno: qzz, + point_code: code } })