|
@ -102,11 +102,6 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<winScanNormal ref="scanPopup" title="设备编号" @getResult='getScanResult'></winScanNormal> |
|
|
|
|
|
|
|
|
|
|
|
<wz-select-popup ref="selectPopup" title="选择生产计划" @select="selectPlan" /> |
|
|
|
|
|
<showModal ref="comMessage" @confirm="confirm"></showModal> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -126,15 +121,17 @@ |
|
|
getBucketCode, |
|
|
getBucketCode, |
|
|
checkItemCodeByBucket |
|
|
checkItemCodeByBucket |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
import showModal from '../../mycomponents/common/showModal.vue' |
|
|
|
|
|
import winScanNormal from "@/mycomponents/scan/winScanNormal.vue" |
|
|
import { |
|
|
|
|
|
showConfirmMsg |
|
|
|
|
|
} from "@/common/utils.js" |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
getCurrDateTime, |
|
|
getCurrDateTime, |
|
|
} from "@/common/basic.js" |
|
|
} from "@/common/basic.js" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
winScanNormal, |
|
|
|
|
|
showModal |
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -226,21 +223,6 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
confirm(content) { |
|
|
|
|
|
if (content.includes("料筒号")) { |
|
|
|
|
|
this.$refs.inputBucketCode.focused = true |
|
|
|
|
|
} else if (content.includes("零件号")) { |
|
|
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
|
|
} else if (content.includes("批次")) { |
|
|
|
|
|
this.$refs.inputBatchCode.focused = true |
|
|
|
|
|
} else if (content.includes("参考")) { |
|
|
|
|
|
this.$refs.inputReferenceCode.focused = true |
|
|
|
|
|
} else if (content.includes("供应商")) { |
|
|
|
|
|
this.$refs.inputSupplierCode.focused = true |
|
|
|
|
|
} else if (content.includes("重量")) { |
|
|
|
|
|
this.$refs.inputWeight.focused = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onConfirmBatchCode(data) { |
|
|
onConfirmBatchCode(data) { |
|
|
if (data == undefined || data == "") { |
|
|
if (data == undefined || data == "") { |
|
@ -335,23 +317,18 @@ |
|
|
createTime: getCurrDateTime(), |
|
|
createTime: getCurrDateTime(), |
|
|
} |
|
|
} |
|
|
console.log("参数", param) |
|
|
console.log("参数", param) |
|
|
// uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
// title: "加载中", |
|
|
title: "加载中", |
|
|
// mask: true |
|
|
mask: true |
|
|
// }) |
|
|
}) |
|
|
// var param = { |
|
|
plasticsInputSubmit(param).then(res => { |
|
|
// planNumber: this.planNumber, |
|
|
uni.hideLoading() |
|
|
// materialName: this.materialName, |
|
|
this.showMessage("提示","提交成功") |
|
|
// materialQty: this.materialQty |
|
|
this.resetData() |
|
|
// } |
|
|
}).catch(error => { |
|
|
// plasticsInputSubmit(param).then(res=>{ |
|
|
uni.hideLoading() |
|
|
// uni.hideLoading() |
|
|
this.showMessage("提示",error) |
|
|
// this.showMessage("提交成功") |
|
|
}) |
|
|
// this.clearData() |
|
|
|
|
|
// }).catch(error=>{ |
|
|
|
|
|
// uni.hideLoading() |
|
|
|
|
|
// this.showMessage(error) |
|
|
|
|
|
// }) |
|
|
|
|
|
}, |
|
|
}, |
|
|
showMessage(title, hint) { |
|
|
showMessage(title, hint) { |
|
|
this.$refs.inputBucketCode.focused = false |
|
|
this.$refs.inputBucketCode.focused = false |
|
@ -360,12 +337,31 @@ |
|
|
this.$refs.inputReferenceCode.focused = false |
|
|
this.$refs.inputReferenceCode.focused = false |
|
|
this.$refs.inputSupplierCode.focused = false |
|
|
this.$refs.inputSupplierCode.focused = false |
|
|
this.$refs.inputWeight.focused = false |
|
|
this.$refs.inputWeight.focused = false |
|
|
this.$refs.comMessage.showMessage(title, hint) |
|
|
|
|
|
|
|
|
showConfirmMsg(title, hint, callBack => { |
|
|
|
|
|
if (hint.includes("料筒号")) { |
|
|
|
|
|
this.$refs.inputBucketCode.focused = true |
|
|
|
|
|
} else if (hint.includes("零件号")) { |
|
|
|
|
|
this.$refs.inputItemCode.focused = true |
|
|
|
|
|
} else if (hint.includes("批次")) { |
|
|
|
|
|
this.$refs.inputBatchCode.focused = true |
|
|
|
|
|
} else if (hint.includes("参考")) { |
|
|
|
|
|
this.$refs.inputReferenceCode.focused = true |
|
|
|
|
|
} else if (hint.includes("供应商")) { |
|
|
|
|
|
this.$refs.inputSupplierCode.focused = true |
|
|
|
|
|
} else if (hint.includes("重量")) { |
|
|
|
|
|
this.$refs.inputWeight.focused = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
resetData() { |
|
|
resetData() { |
|
|
this.planNumber = ""; |
|
|
this.planNumber = "" |
|
|
this.materialName = "" |
|
|
this.bucketCheckCode = "" |
|
|
this.materialQty = 0 |
|
|
this.itemCheckCode = "" |
|
|
|
|
|
this.batchCode = "" |
|
|
|
|
|
this.referenceCode = "" |
|
|
|
|
|
this.supplierCode = "" |
|
|
|
|
|
this.weight = "" |
|
|
}, |
|
|
}, |
|
|
showPlanSelect() { |
|
|
showPlanSelect() { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
@ -403,14 +399,6 @@ |
|
|
console.log(data.detail.value) |
|
|
console.log(data.detail.value) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectPlan(mode, data) { |
|
|
|
|
|
this.planNumber = data.PLAN_NO |
|
|
|
|
|
this.planName = data.SHIFT_CODE |
|
|
|
|
|
console.log(mode) |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
reqGetList(data) { |
|
|
reqGetList(data) { |
|
|
// var data ={ |
|
|
// var data ={ |
|
|
// pageIndex:1, |
|
|
// pageIndex:1, |
|
|