|
|
@@ -14,7 +14,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="label-info-right">
|
|
|
- <div class="right-box">{{ level ? level : ' ' }}</div>
|
|
|
+ <div class="right-div">{{ level ? level : ' ' }}</div>
|
|
|
<div class="right-div"
|
|
|
>{{ netWeight ? netWeight : ' '
|
|
|
}}{{ weightUnit ? weightUnit : ' ' }}</div
|
|
|
@@ -33,7 +33,19 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- productName: ''
|
|
|
+ batchNo: '',
|
|
|
+ createDate: '',
|
|
|
+ enforceStandards: '',
|
|
|
+ layBy: '',
|
|
|
+ level: '',
|
|
|
+ netWeight: '',
|
|
|
+ notice: '',
|
|
|
+ productName: '',
|
|
|
+ purchaseOrigins: '',
|
|
|
+ specification: '',
|
|
|
+ warrantyPeriod: '',
|
|
|
+ warrantyPeriodUnit: '',
|
|
|
+ weightUnit: ''
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -53,19 +65,20 @@
|
|
|
warrantyPeriodUnit,
|
|
|
weightUnit
|
|
|
} = this.$route.query;
|
|
|
- this.productName = productName;
|
|
|
- this.batchNo = batchNo;
|
|
|
- this.createDate = createDate;
|
|
|
- this.enforceStandards = enforceStandards;
|
|
|
- this.layBy = layBy;
|
|
|
- this.level = level;
|
|
|
- this.netWeight = netWeight;
|
|
|
- this.notice = notice;
|
|
|
- this.purchaseOrigins = purchaseOrigins;
|
|
|
- this.specification = specification;
|
|
|
- this.warrantyPeriod = warrantyPeriod;
|
|
|
- this.warrantyPeriodUnit = warrantyPeriodUnit;
|
|
|
- this.weightUnit = weightUnit;
|
|
|
+ this.productName = productName ? productName : '';
|
|
|
+ this.batchNo = batchNo ? batchNo : '';
|
|
|
+ this.createDate = createDate ? createDate : '';
|
|
|
+ this.enforceStandards = enforceStandards ? enforceStandards : '';
|
|
|
+ this.layBy = layBy ? layBy : '';
|
|
|
+ this.level = level ? level : '';
|
|
|
+ this.netWeight = netWeight ? netWeight : '';
|
|
|
+ this.notice = notice ? notice : '';
|
|
|
+ this.purchaseOrigins = purchaseOrigins ? purchaseOrigins : '';
|
|
|
+ this.specification = specification ? specification : '';
|
|
|
+ this.warrantyPeriod =
|
|
|
+ warrantyPeriod && !warrantyPeriod ? warrantyPeriod : '';
|
|
|
+ this.warrantyPeriodUnit = warrantyPeriodUnit ? warrantyPeriodUnit : '';
|
|
|
+ this.weightUnit = weightUnit ? weightUnit : '';
|
|
|
|
|
|
if (this.warrantyPeriodUnit === '1') {
|
|
|
this.warrantyPeriodUnit = '分钟';
|
|
|
@@ -77,8 +90,14 @@
|
|
|
this.warrantyPeriodUnit = '月';
|
|
|
} else if (this.warrantyPeriodUnit === '5') {
|
|
|
this.warrantyPeriodUnit = '年';
|
|
|
+ } else {
|
|
|
+ this.warrantyPeriodUnit = '';
|
|
|
}
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
+ window.print();
|
|
|
+ });
|
|
|
+
|
|
|
// const { id, name, price } = this.$route.query;
|
|
|
// this.order = { id, name, price };
|
|
|
|
|
|
@@ -133,13 +152,14 @@
|
|
|
// flex: 1;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
+ margin: 37px 0 1px 30px;
|
|
|
|
|
|
- .right-box {
|
|
|
- margin: 34px 0 1px 18px;
|
|
|
- }
|
|
|
+ // .right-box {
|
|
|
+ // // margin: 34px 0 1px 18px
|
|
|
+ // }
|
|
|
|
|
|
.right-div {
|
|
|
- margin: 0 0 1px 18px;
|
|
|
+ // margin: 0 0 1px 18px;
|
|
|
height: 17px;
|
|
|
}
|
|
|
}
|