|
@@ -397,19 +397,19 @@
|
|
allNum:'',
|
|
allNum:'',
|
|
cabinets:'',
|
|
cabinets:'',
|
|
detailedNum:'合计大写',
|
|
detailedNum:'合计大写',
|
|
- totalPrice:'',
|
|
|
|
|
|
+ totalPrice:this.formState.totalNum,
|
|
coatHanger:'',
|
|
coatHanger:'',
|
|
price:'',
|
|
price:'',
|
|
reason:'',
|
|
reason:'',
|
|
demo:'',
|
|
demo:'',
|
|
jhyName:'',
|
|
jhyName:'',
|
|
containerNo:this.formState.totalText,
|
|
containerNo:this.formState.totalText,
|
|
- jhyNameData:this.formState.totalNum
|
|
|
|
|
|
+ jhyNameData:''
|
|
|
|
|
|
}
|
|
}
|
|
//增加合计行
|
|
//增加合计行
|
|
data.push(obj)
|
|
data.push(obj)
|
|
- data.splice(0,0,obj)
|
|
|
|
|
|
+ data.splice(0,0,obj) //留出表头位置
|
|
const win = window.open();
|
|
const win = window.open();
|
|
win.document.write("<span class='work'>");
|
|
win.document.write("<span class='work'>");
|
|
win.document.write(this.formState.demo);
|
|
win.document.write(this.formState.demo);
|
|
@@ -461,9 +461,9 @@
|
|
var remarks = this.formState.remarks?this.formState.remarks:''
|
|
var remarks = this.formState.remarks?this.formState.remarks:''
|
|
win.document.write('备注:'+remarks);
|
|
win.document.write('备注:'+remarks);
|
|
win.document.write("</span>");
|
|
win.document.write("</span>");
|
|
- // win.document.write("<div class='workFooter1'>");
|
|
|
|
- // win.document.write('审批:');
|
|
|
|
- // win.document.write("</div>");
|
|
|
|
|
|
+ win.document.write("<div class='workFooter1'>");
|
|
|
|
+ win.document.write('审批:');
|
|
|
|
+ win.document.write("</div>");
|
|
const style = '<style>\n'
|
|
const style = '<style>\n'
|
|
+'.noprint{display:none}'
|
|
+'.noprint{display:none}'
|
|
+ 'table{width: 100% !important;border-collapse: collapse;border-spacing: 0;overflow-x:hidden;}\n'
|
|
+ 'table{width: 100% !important;border-collapse: collapse;border-spacing: 0;overflow-x:hidden;}\n'
|
|
@@ -473,7 +473,7 @@
|
|
+ '.work{display: block;text-align: center}\n'
|
|
+ '.work{display: block;text-align: center}\n'
|
|
+ '.workFooter{display: block;margin-top: 2%;}\n'
|
|
+ '.workFooter{display: block;margin-top: 2%;}\n'
|
|
+ '.workFooter1{width: 10%;float: right;margin-top: 2%;margin-right: 12%;}\n'
|
|
+ '.workFooter1{width: 10%;float: right;margin-top: 2%;margin-right: 12%;}\n'
|
|
- // +'@media print{@page {size:landscape}}'
|
|
|
|
|
|
+ +'@media print{@page {size:landscape}}'
|
|
+ '</style>';
|
|
+ '</style>';
|
|
win.document.write(style);
|
|
win.document.write(style);
|
|
win.focus();
|
|
win.focus();
|