董国庆
2025-04-09 bc48a619a1ddf7661ac4d3e80b1e32a17c696f0c
src/views/dataManagement/dispatching/list.vue
@@ -108,16 +108,23 @@
      :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 {
@@ -140,6 +147,35 @@
          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",
@@ -173,6 +209,9 @@
      ],
      signatureDialogVisible: false,
      currentRow: null,
      approvalDialogVisible: false,
      approvalDialogType: "view",
      currentApprovalData: null,
    };
  },
  created() {
@@ -215,8 +254,12 @@
      });
    },
    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);