hurx 3 天之前
父节点
当前提交
529045d87e
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/report/order/index.vue

+ 6 - 2
src/views/report/order/index.vue

@@ -101,8 +101,12 @@
         <el-table-column label="操作" align="center" min-width="200">
           <template #default="scope">
             <div style="display: flex; flex-wrap: wrap; gap: 4px; justify-content: center">
-              <el-button link type="primary" @click="handleUpdate(scope.row)">编辑</el-button>
-              <el-button link type="success" @click="handleSubmit(scope.row)">提交</el-button>
+              <el-button link type="primary" v-if="scope.row.preparedStatus == 0 || scope.row.preparedStatus == 2" @click="handleUpdate(scope.row)"
+                >编辑</el-button
+              >
+              <el-button link type="success" v-if="scope.row.preparedStatus == 0 || scope.row.preparedStatus == 2" @click="handleSubmit(scope.row)"
+                >提交</el-button
+              >
               <!-- <el-button link type="danger" @click="handleReject(scope.row)">驳回</el-button> -->
               <!-- <el-button link type="primary" @click="handleConfirm(scope.row)">确认</el-button> -->
               <el-button link type="info" @click="handleViewAttachment(scope.row)">查看附件</el-button>