landydb 2 semanas atrás
pai
commit
e3bf4326c1

+ 9 - 4
src/views/modules/production/plan-submit.vue

@@ -19,13 +19,13 @@
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="技术协议:" prop="attachFile1">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile1 == null ? '' : dataForm.attachFile1[0].fileName}}</span>
+          <el-form-item label="技术协议:" prop="attachList1">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList1)">{{dataForm.attachList1 == null ? '' : dataForm.attachList1[0].fileName}}</span>
           </el-form-item>
         </el-col>
         <el-col :span="6">
-          <el-form-item label="资料:" prop="attachFile2">
-            <span @click="attachDetail(dataForm.attachFile1)">{{dataForm.attachFile2 == null ? '' : dataForm.attachFile2[0].fileName}}</span>
+          <el-form-item label="资料:" prop="attachList2">
+            <span class="attch-file" @click="attachDetail(dataForm.attachList2)">{{dataForm.attachList2 == null ? '' : dataForm.attachList2[0].fileName}}</span>
           </el-form-item>
         </el-col>
       </el-row>
@@ -317,4 +317,9 @@ export default {
   flex-direction: column;
   gap: 10px 0px; /* 行列间距控制 */
 }
+
+.attch-file {
+  cursor: pointer;
+  color: #3e8ef7;
+}
 </style>

+ 2 - 2
src/views/modules/production/plan.vue

@@ -87,8 +87,8 @@
           label="操作">
           <template slot-scope="scope">
             <el-button type="text" size="small" @click="submitHandle(scope.row, true)">查看</el-button>
-            <el-button type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
-            <el-button type="text" size="small" @click="submitHandle(scope.row, false)">处理</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="submitHandle(scope.row, false)">处理</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 3 - 3
src/views/modules/tech/project-product.vue

@@ -77,9 +77,9 @@
           label="操作">
           <template slot-scope="scope">
             <el-button type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
-            <el-button type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
-            <el-button type="text" size="small" @click="selectionHandle(scope.row, false)">选择清单</el-button>
-            <el-button type="text" size="small" @click="importHandle(scope.row)">导入</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="selectionHandle(scope.row, false)">选择清单</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="importHandle(scope.row)">导入</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 2 - 2
src/views/modules/tech/project-tech.vue

@@ -87,8 +87,8 @@
           label="操作">
           <template slot-scope="scope">
             <el-button type="text" size="small" @click="submitHandle(scope.row, true)">查看</el-button>
-            <el-button type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
-            <el-button type="text" size="small" @click="submitHandle(scope.row, false)">处理</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="assignHandle(scope.row)">分派</el-button>
+            <el-button v-if="scope.row.state == 1" type="text" size="small" @click="submitHandle(scope.row, false)">处理</el-button>
           </template>
         </el-table-column>
       </el-table>