|
@@ -596,7 +596,7 @@ export default {
|
|
|
// 委外订单国内 表头
|
|
|
outsourceOrderColumns: [
|
|
|
{ title: '制造工艺', width: '10%', dataIndex: 'cvcname', className: 'replacecolor' },
|
|
|
- { title: '工厂', width: 80, dataIndex: 'cvenAbbName', className: 'replacecolor' },
|
|
|
+ { title: '工厂', width: 80, dataIndex: 'cvenAbbName', className: 'replacecolor specleWidth' },
|
|
|
{
|
|
|
title: '材料出库数量',
|
|
|
dataIndex: 'iquantityOut',
|
|
@@ -825,7 +825,7 @@ export default {
|
|
|
const win = window.open();
|
|
|
const style = '<style>\n'
|
|
|
+'.noprint{display:none}'
|
|
|
- +'.specleWidth{width:10% !important}'
|
|
|
+ +'.specleWidth{width:15% !important}'
|
|
|
+'.ant-table-body{overflow-x: hidden !important }' //去除滚动条
|
|
|
+'.kk{display:flex;flex-wrap: wrap}' //主要信息并排
|
|
|
+'.ant-col-sm-8{width:40%;margin-bottom: 6px;}'
|
|
@@ -851,9 +851,19 @@ export default {
|
|
|
+ '</style>';
|
|
|
win.document.write(style+html);
|
|
|
win.focus();
|
|
|
- win.print();
|
|
|
- win.close();
|
|
|
- this.showSelect = 0
|
|
|
+ setTimeout(function(){
|
|
|
+ let textArea = win.document.getElementsByTagName('textarea')
|
|
|
+ for (let i = 0; i < textArea.length; i++) {
|
|
|
+ textArea[i].style.height = 'auto' // 先设置成auto,再设置高度,删除文字的时候高度才会改变
|
|
|
+ textArea[i].style.height = textArea[i].scrollHeight+30 + 'px'
|
|
|
+ }
|
|
|
+ win.print();
|
|
|
+ win.close();
|
|
|
+ this.showSelect = 0
|
|
|
+ },500)
|
|
|
+ // win.print();
|
|
|
+ // win.close();
|
|
|
+ // this.showSelect = 0
|
|
|
})
|
|
|
|
|
|
},
|
|
@@ -1150,49 +1160,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- //成本发票 -----合计行
|
|
|
- // costFooterShow(data){
|
|
|
- // return (
|
|
|
- // <a-table
|
|
|
- // rowKey={Math.random}
|
|
|
- // bordered={false}
|
|
|
- // pagination={false}
|
|
|
- // columns={this.costInvoiceColumns}
|
|
|
- // dataSource={this.costFooterDataSource || []}
|
|
|
- // showHeader={false}
|
|
|
- // ></a-table>
|
|
|
- // )
|
|
|
- // },
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- // 开票成本-成衣 ----合计行
|
|
|
- // clothesFooterShow(data) {
|
|
|
- // return (
|
|
|
- // <a-table
|
|
|
- // rowKey={Math.random}
|
|
|
- // bordered={false}
|
|
|
- // pagination={false}
|
|
|
- // columns={this.costInvoiceClothesColumns}
|
|
|
- // dataSource={this.clothesFooterDataSource || []}
|
|
|
- // showHeader={false}
|
|
|
- // ></a-table>
|
|
|
- // )
|
|
|
- // },
|
|
|
|
|
|
- // 开票成本-辅料 ----合计行
|
|
|
- // assistFooterShow(data) {
|
|
|
- // return (
|
|
|
- // <a-table
|
|
|
- // rowKey={Math.random}
|
|
|
- // bordered={false}
|
|
|
- // pagination={false}
|
|
|
- // columns={this.costInvoiceIngredientColumns}
|
|
|
- // dataSource={this.assistFooterDataSource || []}
|
|
|
- // showHeader={false}
|
|
|
- // ></a-table>
|
|
|
- // )
|
|
|
- // },
|
|
|
//费用支出 ----合计行
|
|
|
costPayFooterShow(){
|
|
|
return (
|