@@ -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() {
@@ -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
@@ -132,7 +132,7 @@
- <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>
@@ -131,7 +131,7 @@
- <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"
@@ -125,7 +125,7 @@
- <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>
@@ -121,7 +121,7 @@
- <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"
- <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>
@@ -107,7 +107,7 @@
- <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"