|
@@ -55,23 +55,26 @@
|
|
|
const eventChannel = instance.getOpenerEventChannel();
|
|
|
|
|
|
eventChannel.on('outsourcedInspectionConsultation', function(data) {
|
|
|
+ console.log('show')
|
|
|
+ console.log(lot.value)
|
|
|
console.log('outsourcedInspectionConsultation', data)
|
|
|
// 传入当前报工信息 通过当前报工的产品和工序获取检查指导书和分选标准
|
|
|
if (data && data.data) {
|
|
|
getProductConsult(data.data).then(res => {
|
|
|
- console.log("res", res);
|
|
|
+ // console.log("res", res);
|
|
|
if (res.code == 200) {
|
|
|
lot.value = data.data
|
|
|
lot.value.product = res.data
|
|
|
+ lot.value.question = ''
|
|
|
}
|
|
|
})
|
|
|
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- onLoad(() => {
|
|
|
+ onLoad(() => {})
|
|
|
|
|
|
- })
|
|
|
+ onShow(() => {})
|
|
|
|
|
|
const handleSubmit = () => {
|
|
|
if (lot.value.question == null || lot.value.question == '') {
|