Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory
| | |
| | | <template> |
| | | <el-dialog |
| | | :visible.sync="visible" |
| | | title="" |
| | | title="签字确认" |
| | | width="520px" |
| | | :close-on-click-modal="false" |
| | | custom-class="record-detail-dialog" |
| | |
| | | <el-button @click="handleDraft">存草稿</el-button> |
| | | <el-button @click="handleCancel">取消</el-button> |
| | | </div> |
| | | |
| | | <!-- 签字确认组件 --> |
| | | <SignatureCanvas :visible.sync="signatureVisible" @confirm="handleSignatureConfirm" /> |
| | | </el-form> |
| | | |
| | | <ParentForm ref="parentForm" @addNodeSign="addNodeSign" /> |
| | | <PlanForm ref="planForm" @addNodeSign="addNodeSign" /> |
| | | <AddSublevelForm ref="addSublevelForm" @addNodeSign="addNodeSign" /> |
| | | <AddSublevelPlan ref="addSublevelPlan" @addNodeSign="addNodeSign" /> |
| | | <ConfirmStorageDialog name="接种操作人签字" :visible.sync="confirmStorageDialogVisible" |
| | | @confirm="handleSignatureConfirm" /> |
| | | <!-- 菌种工程师 --> |
| | | <ConfirmStorageDialog name="菌种保藏人签字" text="是否确认该项菌种信息入库" :visible.sync="storageVisible" |
| | | @confirm="handleSignatureConfirm" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import SignatureCanvas from "@/components/SignatureCanvas.vue"; |
| | | import G6 from '@antv/g6'; |
| | | import ParentForm from "./components/ParentForm.vue"; |
| | | import PlanForm from "./components/PlanForm.vue"; |
| | | import AddSublevelForm from "./components/AddSublevelForm.vue"; |
| | | import AddSublevelPlan from "./components/AddSublevelPlan.vue"; |
| | | import ConfirmStorageDialog from "@/components/confirm-storage-dialog"; |
| | | |
| | | export default { |
| | | name: "AddPedigree", |
| | | components: { |
| | | SignatureCanvas, |
| | | ParentForm, |
| | | PlanForm, |
| | | AddSublevelForm, |
| | | AddSublevelPlan |
| | | AddSublevelPlan, |
| | | ConfirmStorageDialog |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | isAddingNode: false, |
| | | nodeData: {}, |
| | | nodeType: '',//1母代 2计划数 3子孙代 |
| | | tableData: [], |
| | | confirmStorageDialogVisible: false, |
| | | storageVisible: false |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | addNodeSign(value, type) { |
| | | this.nodeData = value |
| | | this.nodeType = type |
| | | this.signatureVisible = true; |
| | | this.confirmStorageDialogVisible = true; |
| | | }, |
| | | handleSubmit() { |
| | | this.$refs.pedigreeForm.validate((valid) => { |
| | | if (valid) { |
| | | this.signatureVisible = true; |
| | | this.confirmStorageDialogVisible = true; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$router.back(); |
| | | }, |
| | | handleSignatureConfirm(signatureImage) { |
| | | this.signatureVisible = false; |
| | | this.confirmStorageDialogVisible = false; |
| | | console.log("submit form with signature:", signatureImage); |
| | | if (this.nodeType === 1) { |
| | | this.handleAddParent(this.nodeData) |
| | |
| | | <el-button @click="handleDraft">存草稿</el-button> |
| | | <el-button @click="handleCancel">取消</el-button> |
| | | </div> |
| | | |
| | | <!-- 签字确认组件 --> |
| | | <SignatureCanvas :visible.sync="signatureVisible" @confirm="handleSignatureConfirm" /> |
| | | </el-form> |
| | | |
| | | <AddAncestor ref="addAncestor" @addNodeSign="addNodeSign" /> |
| | | <PlanForm ref="planForm" @addNodeSign="addNodeSign" /> |
| | | <AddSublevelForm ref="addSublevelForm" @addNodeSign="addNodeSign" /> |
| | | <ConfirmStorageDialog name="接种操作人签字" :visible.sync="confirmStorageDialogVisible" |
| | | @confirm="handleSignatureConfirm" /> |
| | | <!-- 菌种工程师 --> |
| | | <ConfirmStorageDialog name="菌种保藏人签字" text="是否确认该项菌种信息入库" :visible.sync="storageVisible" |
| | | @confirm="handleSignatureConfirm" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import SignatureCanvas from "@/components/SignatureCanvas.vue"; |
| | | import G6 from '@antv/g6'; |
| | | import PlanForm from "./progenitorComponents/PlanForm.vue"; |
| | | import AddAncestor from "./progenitorComponents/AddAncestor.vue"; |
| | | import AddSublevelForm from "./progenitorComponents/AddSublevelForm.vue"; |
| | | import ConfirmStorageDialog from "@/components/confirm-storage-dialog"; |
| | | |
| | | export default { |
| | | name: "AddPedigree", |
| | | components: { |
| | | SignatureCanvas, |
| | | PlanForm, |
| | | AddAncestor, |
| | | AddSublevelForm |
| | | AddSublevelForm, |
| | | ConfirmStorageDialog |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | isAddingNode: false, |
| | | nodeData: {}, |
| | | nodeType: '',//1祖代 2计划数 3母代 |
| | | tableData: [], |
| | | confirmStorageDialogVisible: false, |
| | | storageVisible: false |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | addNodeSign(value, type) { |
| | | this.nodeData = value |
| | | this.nodeType = type |
| | | this.signatureVisible = true; |
| | | this.confirmStorageDialogVisible = true; |
| | | }, |
| | | handleSubmit() { |
| | | this.$refs.pedigreeForm.validate((valid) => { |
| | | if (valid) { |
| | | this.signatureVisible = true; |
| | | this.confirmStorageDialogVisible = true; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$router.back(); |
| | | }, |
| | | handleSignatureConfirm(signatureImage) { |
| | | this.signatureVisible = false; |
| | | this.confirmStorageDialogVisible = false; |
| | | console.log("submit form with signature:", signatureImage); |
| | | if (this.nodeType === 1) { |
| | | this.handleAddParent(this.nodeData) |
| | |
| | | strainName: this.form.strainName, |
| | | strainNo: this.form.strainNo, |
| | | status: 'add', |
| | | activeType: null, |
| | | activeType: 1, |
| | | isDiscarded: true, |
| | | }); |
| | | return |
| | |
| | | this.$refs.addSublevelForm.openInitData({ |
| | | title: '新增菌种传代项', |
| | | form: { |
| | | strainName: this.form.strainName, |
| | | strainNo: this.form.strainNo, |
| | | isDiscarded: true |
| | | isDiscarded: true, |
| | | ...nodeModel.data |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="20"> |
| | | <el-col :span="20" v-if="planForm.activeType == 1"> |
| | | <el-form-item label="来源获得" prop="source"> |
| | | <el-input :disabled="planForm.status != 'add'" v-model="planForm.source" |
| | | placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10" v-else> |
| | | <el-form-item label="菌落编号" prop="source"> |
| | | <el-input :disabled="planForm.status != 'add'" v-model="planForm.source" |
| | | placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | |
| | | data() { |
| | | return { |
| | | planDialogVisible: false, |
| | | planForm: { |
| | | status: 'add', |
| | | activeType: 1, |
| | | isDiscarded: true, |
| | | }, |
| | | planForm: {}, |
| | | planRules: { |
| | | inoculateNo: [ |
| | | { required: true, message: '请输入菌种编号', trigger: 'blur' } |
| | |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="传代菌种编号" prop="strainNo"> |
| | | <el-input disabled v-model="form.strainNo"></el-input> |
| | | <el-input disabled v-model="form.inoculateNo"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="传代菌种名称" prop="strainName"> |
| | | <el-input disabled v-model="form.strainName"></el-input> |
| | | <el-input disabled v-model="form.inoculateName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="接种菌种编号" prop="inoculateNo"> |
| | | <el-input :disabled="!dialogTitle.includes('新增')" v-model="form.inoculateNo" |
| | | <el-input :disabled="!dialogTitle.includes('新增')" v-model="form.num" |
| | | placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item label="接种菌种名称" prop="inoculateName"> |
| | | <el-input :disabled="!dialogTitle.includes('新增')" v-model="form.inoculateName" |
| | | <el-input :disabled="!dialogTitle.includes('新增')" v-model="form.name" |
| | | placeholder="请输入"></el-input> |
| | | </el-form-item> |
| | | </el-col> |