瀏覽代碼

打印禁用放开

wangzhuo 1 年之前
父節點
當前提交
81e492db80

+ 5 - 1
src/components/boxCost/index.vue

@@ -35,7 +35,7 @@
             class="el-icon-download"
             type="info"
             size="small"
-            :disabled="!id || listData.length === 0"
+            :disabled="(!id || listData.length === 0) && printingIsDisabled"
             @click="openReport">打印
         </el-button>
         <el-button
@@ -742,6 +742,10 @@ export default {
     },
     id: {
       type: String
+    },
+    printingIsDisabled: {
+      type: Boolean,
+      default: true
     }
   },
   async created() {

+ 1 - 1
src/views/boxManagement/buyContainer/detailsPage.vue

@@ -98,7 +98,7 @@
         @onClose="onClose()"
     />
 <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" type="BUY" activeName="second" ref="boxCost" @resetTrigger="resetTrigger"></box-cost>
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" type="BUY" activeName="second" ref="boxCost" @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload
           basic

+ 1 - 1
src/views/boxManagement/exportShipment/detailsPage.vue

@@ -132,7 +132,7 @@
         @onClose="onClose()"
     />
     <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" :codeValue="237.2" type="CK" activeName="first" ref="boxCost"
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" :codeValue="237.2" type="CK" activeName="first" ref="boxCost"
               url="/api/blade-box-tube/transportItemFees/remove" @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload

+ 1 - 1
src/views/boxManagement/importReturnTrip/detailsPage.vue

@@ -131,7 +131,7 @@
         @onClose="onClose()"
     />
     <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" :codeValue="237.92" type="JK" activeName="first" ref="boxCost"
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" :codeValue="237.92" type="JK" activeName="first" ref="boxCost"
               url="/api/blade-box-tube/transportItemFees/remove" @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload

+ 1 - 1
src/views/boxManagement/leaseIn/detailsPage.vue

@@ -125,7 +125,7 @@
         @onClose="onClose()"
     />
 <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" type="ZR" activeName="second" :codeValue="245.2" ref="boxCost"
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" type="ZR" activeName="second" :codeValue="245.2" ref="boxCost"
               @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload

+ 1 - 1
src/views/boxManagement/leaseOut/detailsPage.vue

@@ -121,7 +121,7 @@
         @onClose="onClose()"
     />
 <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" type="ZC" activeName="first" :codeValue="248.2" ref="boxCost"
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" type="ZC" activeName="first" :codeValue="248.2" ref="boxCost"
               @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload

+ 1 - 1
src/views/boxManagement/sellingContainers/detailsPage.vue

@@ -98,7 +98,7 @@
         @onClose="onClose()"
     />
     <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" type="SELL" ref="boxCost" @resetTrigger="resetTrigger"></box-cost>
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" type="SELL" ref="boxCost" @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload
           basic

+ 1 - 1
src/views/boxManagement/stockpilingManage/detailsPage.vue

@@ -107,7 +107,7 @@
         @onClose="onClose()"
     />
 <!--    费用信息组件-->
-    <box-cost v-model="dataListTwo" :id="form.id" type="DCF" activeName="second" :tabShow="3" :codeValue="252.2" ref="boxCost"
+    <box-cost v-model="dataListTwo" :id="form.id" :printingIsDisabled="false" type="DCF" activeName="second" :tabShow="3" :codeValue="252.2" ref="boxCost"
               @resetTrigger="resetTrigger"></box-cost>
     <trade-card title="附件明细">
       <c-upload