ezhizao_zx hace 9 meses
padre
commit
89ab5aeffd

+ 4 - 0
src/views/business/inventoryCheck/OutsourceCheckDialog.vue

@@ -151,6 +151,10 @@ function handleEdit(row, index) {
 }
 //一键盘点
 function handleTaksLot() {
+  if (dataList.value.length == 0) {
+    proxy.$message.error('没有可盘点批次')
+    return
+  }
   batchTaksStockLot(dataList.value).then(res => {
     if (res.code == 200) {
       proxy.$modal.msgSuccess(res.msg);

+ 2 - 2
src/views/business/inventoryCheck/form.vue

@@ -55,7 +55,7 @@
           <el-button :disabled="queryParams.deptId == null || queryParams.deptId == '0'" type="primary" icon="Check"
             @click="handleTaksLot">一键盘点未开始批次
           </el-button>
-          <el-button type="primary" icon="List" @click="showOutsourceCheckDialog">外协发出单盘点
+          <el-button v-if="detailInfo.status != 2" type="primary" icon="List" @click="showOutsourceCheckDialog">外协发出单盘点
           </el-button>
         </el-form-item>
       </el-form>
@@ -170,7 +170,7 @@ const queryParams = ref({
 const open = (row) => {
   visible.value = true;
   console.log(is_identification.value)
-  is_identification.value = is_identification.value.filter(item =>item.value !=0)
+  is_identification.value = is_identification.value.filter(item => item.value != 0)
   reset();
   detailInfo.value = proxy.deepClone(row);
   getDeptList().then((response) => {