ezhizao_zx 11 mesi fa
parent
commit
8c94f635b6

+ 4 - 4
src/views/business/lot/index.vue

@@ -72,13 +72,13 @@
       </el-form-item>
       <div style="margin-top: 20px">
         <el-button type="primary" @click="handleWasteRecycling"
-          :disabled="selections.length == 0 || selections.length > 1 || checkRecycle()"
+          :disabled="selections.length == 0 || selections.length > 1"
           v-hasPermi="['business:lot:wasteRecycling']">添加废品回用</el-button>
-        <el-button :disabled="selections.length !== 1 || checkRecycle()" type="primary" @click="showInBatch"
+        <el-button :disabled="selections.length !== 1" type="primary" @click="showInBatch"
           v-hasPermi="['business:lot:inBatch']">分批</el-button>
-        <el-button type="primary" :disabled="once || checkRecycle()" @click="handleOnceSingleChange"
+        <el-button type="primary" :disabled="once" @click="handleOnceSingleChange"
           v-hasPermi="['business:lot:onceSingleChange']">单批单改</el-button>
-        <el-button type="primary" :disabled="multi || checkRecycle()" @click="handleMultiSingleChange"
+        <el-button type="primary" :disabled="multi" @click="handleMultiSingleChange"
           v-hasPermi="['business:lot:multiSingleChange']">多批单改</el-button>
       </div>
     </el-form>

+ 1 - 0
src/views/business/outsource/index.vue

@@ -144,6 +144,7 @@ const single = ref(true);
 const multiple = ref(true);
 const total = ref(0);
 const printCarriers = ref([])
+const webHost = import.meta.env.VITE_APP_PRODUCTION_API;
 /** 查询对象 */
 const queryParams = ref({
   pageNum: 1,

+ 4 - 4
src/views/business/reviseBath/lotFormParticulars.vue

@@ -186,12 +186,12 @@
     </el-form>
     <div style="padding: 16px">
       <span style="font-weight: bold; font-size: 18px">工艺路线</span>
-      <el-button v-if="showVerify(true, 'business:lot:onceSingleChange')" :disabled="lot.isWasteRecycling == 1"
-        type="primary" style="float: right; margin-left: 10px" @click="handleOnceSingleChange">
+      <el-button v-if="showVerify(true, 'business:lot:onceSingleChange')" type="primary"
+        style="float: right; margin-left: 10px" @click="handleOnceSingleChange">
         单批单改
       </el-button>
-      <el-button v-if="showVerify(true, 'business:lot:inBatch')" :disabled="lot.isWasteRecycling == 1" type="primary"
-        style="float: right; margin-left: 10px" @click="handleSplit()">
+      <el-button v-if="showVerify(true, 'business:lot:inBatch')" type="primary" style="float: right; margin-left: 10px"
+        @click="handleSplit()">
         分批
       </el-button>
       <el-button v-if="showVerify(true, 'business:lot:waste')" :disabled="lot.isWaste == 1" type="danger"