| | |
| | | :visible="signatureDialogVisible" |
| | | @confirm="handleSignatureConfirm" |
| | | /> |
| | | <edit-dispatch |
| | | :visible.sync="approvalDialogVisible" |
| | | :type="approvalDialogType" |
| | | :data="currentApprovalData" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import SignatureCanvas from "@/components/SignatureCanvas.vue"; |
| | | import EditDispatch from "./editDispatch.vue"; |
| | | |
| | | export default { |
| | | name: "dispatchingList", |
| | | components: { |
| | | SignatureCanvas, |
| | | EditDispatch, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | participants: "张三、李四、王五", |
| | | createTime: "2024-03-15", |
| | | status: "pending", |
| | | planName: "新材料研发项目", |
| | | planCode: "PLAN-2024-001", |
| | | stage: "实验阶段", |
| | | testDate: "2024-03-20", |
| | | testName: "材料力学性能测试", |
| | | testCode: "TEST-2024-001", |
| | | testTime: "2024-03-20 09:00", |
| | | groupTableData: [ |
| | | { |
| | | groupName: "对照组", |
| | | remark: "标准材料组" |
| | | }, |
| | | { |
| | | groupName: "实验组", |
| | | remark: "新材料组" |
| | | } |
| | | ], |
| | | taskTableData: [ |
| | | { |
| | | taskName: "材料准备", |
| | | leader: "张三", |
| | | startTime: "2024-03-20 09:00" |
| | | }, |
| | | { |
| | | taskName: "性能测试", |
| | | leader: "李四", |
| | | startTime: "2024-03-20 10:00" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | experimentCode: "EXP-2024-002", |
| | |
| | | ], |
| | | signatureDialogVisible: false, |
| | | currentRow: null, |
| | | approvalDialogVisible: false, |
| | | approvalDialogType: "view", |
| | | currentApprovalData: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | }); |
| | | }, |
| | | handleConfirm(row) { |
| | | this.currentRow = row; |
| | | this.signatureDialogVisible = true; |
| | | // this.currentRow = row; |
| | | // this.signatureDialogVisible = true; |
| | | |
| | | this.currentApprovalData = row; |
| | | this.approvalDialogType = "approve"; |
| | | this.approvalDialogVisible = true; |
| | | }, |
| | | handleSignatureConfirm(imageData) { |
| | | console.log("imageData imageData", imageData); |