|
|
|
@ -82,7 +82,8 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<u-popup v-model="show" mode="center" width="98%" :closeable="true">
|
|
|
|
|
<u-popup v-model="show" mode="center" width="98%">
|
|
|
|
|
<view @click="closepopup"><u-icon style="position: absolute; right: 20rpx" name="close" color="#2979ff" size="28"></u-icon></view>
|
|
|
|
|
<view class="selectlist">
|
|
|
|
|
<div class="item-name">
|
|
|
|
|
<div class="quest">检验项目 :</div>
|
|
|
|
@ -1499,6 +1500,42 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
url: `/pages/quality/Materialinspection/web?listitem=` + encodeURIComponent(result),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
closepopup() {
|
|
|
|
|
//是否关闭弹窗
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: '是否退出?',
|
|
|
|
|
showCancel: true,
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
this.show = false;
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
console.log('不关闭');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
onBackPress(e) {
|
|
|
|
|
if (e.from === 'backbutton') {
|
|
|
|
|
if (this.show === true) {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: '是否退出?',
|
|
|
|
|
showCancel: true,
|
|
|
|
|
success: (res) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
this.show = false;
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
console.log('不关闭');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|
///
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|