hurx 3 өдөр өмнө
parent
commit
529045d87e

+ 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>