From 1768b289dff05e5c431a14df9b649a0c5245d89d Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期一, 24 二月 2025 19:48:10 +0800 Subject: [PATCH] 标准物质领用 --- src/views/CNAS/resourceDemand/standardMaterialAccept/component/AddRecord.vue | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 103 insertions(+), 0 deletions(-) diff --git a/src/views/CNAS/resourceDemand/standardMaterialAccept/component/AddRecord.vue b/src/views/CNAS/resourceDemand/standardMaterialAccept/component/AddRecord.vue new file mode 100644 index 0000000..1e54f5e --- /dev/null +++ b/src/views/CNAS/resourceDemand/standardMaterialAccept/component/AddRecord.vue @@ -0,0 +1,103 @@ +<template> + <el-dialog :visible.sync="dialogVisible" title="鏍囧噯鐗╄川楠屾敹璁板綍" width="70%"> + <!-- <el-steps :active="currentStep" finish-status="success"> + <el-step class="cursor-pointer" v-for="(item, index) in steps" :key="index" :title="item"> + </el-step> + </el-steps> --> +<!-- <el-form :model="model" label-width="140px" size="small">--> +<!-- <Step1 :model.sync="model"></Step1>--> +<!-- </el-form>--> + <span slot="footer" class="dialog-footer"> + <el-button @click="dialogVisible = false">鍙� 娑�</el-button> + <el-button type="primary" @click="submit">淇� 瀛�</el-button> + </span> + </el-dialog> +</template> + +<script> +// import Step1 from './Step/Step1.vue' +export default { + components: { + // Step1 + }, + data() { + return { + dialogVisible: false, + currentStep: 0, // 姝ラ鏉℃樉绀虹鍑犳 + // steps: ['鎻愪氦', '寮�绠遍獙鏀跺鏍�', '瀹夎楠屾敹妫�鏌�', '瀹夎楠屾敹澶嶆牳', '楠屾敹鏍告煡', '楠屾敹鏍告煡瀹℃牳'], + model: { + acceptance: { + id: undefined, + producer: undefined, // 鍘傚浠h〃 + file: undefined, // 鐩稿叧闄勪欢 + recipient: undefined, // 鎺ユ敹浜� + signature: undefined, // 鎺ュ彈绛惧瓧 + situation: undefined, // 楠屾敹鎯呭喌 + installation: undefined, // 瀹夎璋冭瘯鎯呭喌 + substanceId: undefined, // 娓呭崟 + arriveDate: undefined, // 鍒拌揣鏃ユ湡 + maintenanceUnit: undefined, // 缁翠慨鍗曚綅 + }, + list: [] + } + } + }, + watch: { + model(newVal) { + this.model = newVal + } + }, + methods: { + clearForm() { + this.model.acceptance.id = undefined + this.model.acceptance.producer = undefined + this.model.acceptance.file = undefined + this.model.acceptance.recipient = undefined + this.model.acceptance.signature = undefined + this.model.acceptance.situation = undefined + this.model.acceptance.installation = undefined + this.model.acceptance.substanceId = undefined + this.model.acceptance.arriveDate = undefined + this.model.acceptance.maintenanceUnit = undefined + this.model.list = [] + }, + openDialog(form) { + console.log(form) + if(form) { + this.model.acceptance.id = form.acceptance.id + this.model.acceptance.producer = form.acceptance.producer + this.model.acceptance.file = form.acceptance.file + this.model.acceptance.recipient = form.acceptance.recipient + this.model.acceptance.signature = form.acceptance.signature + this.model.acceptance.situation = form.acceptance.situation + this.model.acceptance.installation = form.acceptance.installation + this.model.acceptance.substanceId = form.acceptance.substanceId + this.model.acceptance.arriveDate = form.acceptance.arriveDate + this.model.acceptance.maintenanceUnit = form.acceptance.maintenanceUnit + this.model.list = form.list + } else { + this.clearForm() + } + this.dialogVisible = true + }, + closeDialog() { + this.dialogVisible = false + }, + submit() { + if (!this.model.acceptance.substanceId) { + this.$message.warning('璇烽�夋嫨娓呭崟') + return + } + this.$emit('submit', this.model) + this.closeDialog() + } + } +} + +</script> + +<style scoped> +.cursor-pointer { + cursor: pointer; +} +</style> -- Gitblit v1.9.3