guoyujia 9 ヶ月 前
コミット
cf89a133b9
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/views/business/productionBatch/lotInfoForm.vue

+ 2 - 2
src/views/business/productionBatch/lotInfoForm.vue

@@ -109,7 +109,7 @@
             width="200px"
           >
             <template #default="scope">
-              <el-button v-if="scope.row.hasDaywork || scope.row.isSuperaddition == 0"
+              <el-button v-if="scope.row.id!=null"
                 link
                 type="primary"
                 @click="handleColumnClick(scope.row.lotCode)"
@@ -358,7 +358,7 @@ function handleAddLotNum(data) {
   detailInfo.value.superadditionTotalNumber =  detailInfo.value.superadditionTotalNumber + data.length
   console.log(data)
   data.forEach(item =>{
-    lotList.value.unshift({lotCode:item,productionQuantity:detailInfo.value.oneLotQuantity,isSuperaddition:1, editStatus: true,
+    lotList.value.unshift({id:null,lotCode:item,productionQuantity:detailInfo.value.oneLotQuantity,isSuperaddition:1, editStatus: true,
       productionPlanDetailId:detailInfo.value.id,technologicalProcessId:detailInfo.value.technologicalProcessId,
       technologyVersion:detailInfo.value.technologyVersion,productId:detailInfo.value.productId})
   })