sen
2025-09-10 7edf9e6a325ec521c603bc93d45b7b01b9304b31
ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue
@@ -17,7 +17,10 @@
        </el-button> -->
      </template>
      <template #menu="{ size, row, index }">
       <el-link class="link-btn" type="primary" :underline="false" plain :size="size"
          @click="handleEditBtn(row, index)" v-if="row.status == 0"
          v-hasPermi="['cwgl:smartLockerApplication:cancel']"> 编辑
        </el-link>
        <el-link class="link-btn"  v-if="row.status == 0" type="primary" :underline="false" plain  @click="handleInvalid(row)"
          v-hasPermi="['cwgl:smartLockerApplication:invalid']"> 作废
        </el-link>
@@ -182,7 +185,7 @@
        rules: [
        {
          required: true,
          message: "领取截止时间不能为空", trigger: "blur"
          message: "领取截止时间不能为空", trigger: "change"
        }
      ],
    },
@@ -192,6 +195,7 @@
      type: 'datetime',  // 改为 datetime 类型
      format: 'YYYY-MM-DD HH:mm:ss',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      editDisplay: false,
      addDisplay: false,  // 新增时不显示
      minWidth: 200,
@@ -201,6 +205,7 @@
      minWidth: 180,
      type: 'datetime',  // 改为 datetime 类型
      format: 'YYYY-MM-DD HH:mm:ss',
      editDisplay: false,
      addDisplay: false,  // 新增时不显示
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
@@ -210,7 +215,7 @@
      label: '创建时间',
      minWidth: 180,
      addDisplay: false,  // 新增时不显示
      editDisplay: false,
      type: 'datetime',  // 改为 datetime 类型
      format: 'YYYY-MM-DD HH:mm:ss',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
@@ -229,6 +234,7 @@
      fixed: 'right',
      dataType: 'string',
      type: 'select',
      editDisplay: false,
      addDisplay: false,  // 新增时不显示
      dicUrl: '/system/dict/data/type/sys_apply_status',
    },
@@ -341,5 +347,8 @@
  })
}
const handleEditBtn = (row, index) => {
  crudRef.value.rowEdit(row, index)
  // option.value.editBtn = true;
}
</script>