yumeng 2 лет назад
Родитель
Сommit
abc1dac6bf
1 измененных файлов с 28 добавлено и 0 удалено
  1. 28 0
      src/views/goodsManagement/samplingList.vue

+ 28 - 0
src/views/goodsManagement/samplingList.vue

@@ -210,6 +210,16 @@
         >批量审核
         </el-button
         >
+        <el-button
+          type="primary"
+          plain
+          size="mini"
+          @click="batchProcessAssignment"
+          v-if="queryParams.collectSampleStatus == 6"
+          style="margin-bottom: 15px"
+        >批量审核作业
+        </el-button
+        >
 
         <el-table
           v-loading="loading"
@@ -1472,6 +1482,24 @@
           this.$message.error("请选择领样");
         }
       },
+
+      batchProcessAssignment() {
+        if (this.okIds.length > 0) {
+          batchProcess({
+            ids: this.okIds,
+            status: 7,
+            userId: this.$store.getters.userId,
+            userName: this.$store.getters.name,
+          }).then((res) => {
+            this.okIds = [];
+            this.handleQuery();
+            this.$message.success(res.message);
+          });
+        } else {
+          this.$message.error("请选择领样");
+        }
+      },
+
       getPersonList() {
         getSupplyChainUserList().then((response) => {
           this.queryParamsList.personList = response.rows;