领料单,出库检验单打印样式调整

This commit is contained in:
hongchao 2025-01-23 13:54:30 +08:00
parent b55a43f075
commit c3fb3c7d87
5 changed files with 100 additions and 37 deletions

View File

@ -18,7 +18,7 @@ export function pushReviewList(query){
}) })
} }
// 费用结算申请提交 // 费用推送审核提交
export function submitFee(params){ export function submitFee(params){
return request({ return request({
url: '/material/slt_agreement_info/submitFee', url: '/material/slt_agreement_info/submitFee',

View File

@ -95,7 +95,6 @@
</el-table> </el-table>
<pagination <pagination
v-show="total > 0"
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@ -282,7 +281,13 @@ export default {
/** 导出 */ /** 导出 */
handleExport() { handleExport() {
// this.download(
// 'material/complex_query/exportOutRecord',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
}, },
}; };

View File

@ -70,7 +70,7 @@
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExportYear"
>导出年度费用</el-button >导出年度费用</el-button
> >
<el-button <el-button
@ -78,7 +78,7 @@
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExportStart"
>导出开工年度费用</el-button >导出开工年度费用</el-button
> >
<el-button <el-button
@ -604,7 +604,7 @@ export default {
}, },
/** 查询岗位列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
// getPushReviewList(this.queryParams).then((response) => { // getPushReviewList(this.queryParams).then((response) => {
@ -793,9 +793,36 @@ export default {
// this.$message.success(""); // this.$message.success("");
// }); // });
}, },
/** 导出 */ /** 导出 */
handleExport() { handleExport() {
// this.download(
// 'material/complex_query/exportOutRecord',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
},
/** 导出年度费用 */
handleExportYear() {
// this.download(
// 'material/complex_query/exportOutRecord',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
},
/** 导出开工年度费用 */
handleExportStart() {
// this.download(
// 'material/complex_query/exportOutRecord',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
/** 批量退回 */ /** 批量退回 */

View File

@ -695,9 +695,13 @@ export default {
}, },
// //
handleExportLease() { handleExportLease() {
// exportLease(this.dialogLease).then((response) => { // this.download(
// this.$message.success(""); // 'material/complex_query/exportOutRecord',
// }); // {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
// //
@ -722,9 +726,13 @@ export default {
}, },
// //
handleExportRepair() { handleExportRepair() {
// exportRepair(this.dialogRepair).then((response) => { // this.download(
// this.$message.success(""); // 'material/complex_query/exportOutRecord',
// }); // {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
@ -748,11 +756,15 @@ export default {
handleQueryScrap() { handleQueryScrap() {
this.getScrapList() this.getScrapList()
}, },
// //
handleExportScrap() { handleExportScrap() {
// exportScrap(this.dialogScrap).then((response) => { // this.download(
// this.$message.success(""); // 'material/complex_query/exportOutRecord',
// }); // {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
@ -777,13 +789,23 @@ export default {
this.getLoseList() this.getLoseList()
}, },
handleExportLose() { handleExportLose() {
// exportLose(this.dialogLose).then((response) => { // this.download(
// this.$message.success(""); // 'material/complex_query/exportOutRecord',
// }); // {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
/** 导出 */ /** 外层导出 */
handleExport() { handleExport() {
// this.download(
// 'material/complex_query/exportOutRecord',
// {
// ...this.queryParams,
// },
// `_${new Date().getTime()}.xlsx`,
// )
}, },
/** 提交 */ /** 提交 */

View File

@ -150,7 +150,7 @@
/> />
<!-- 出库检验单弹窗 --> <!-- 出库检验单弹窗 -->
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body> <el-dialog :title="title" :visible.sync="openPrint" width="1090px" append-to-body>
<div style="height: 600px; overflow-y: scroll;padding: 0 20px"> <div style="height: 600px; overflow-y: scroll;padding: 0 20px">
<!-- <vue-easy-print tableShow ref="remarksPrintRefCheck" class="print" :printable="'checkId'"> --> <!-- <vue-easy-print tableShow ref="remarksPrintRefCheck" class="print" :printable="'checkId'"> -->
<div id="checkId"> <div id="checkId">
@ -168,7 +168,7 @@
{{ checkDataInfo.leaseUnit }} {{ checkDataInfo.leaseUnit }}
</div> </div>
</div> </div>
<el-table :data="printTableData" class="table" style="margin-top: 20px;width: 1000px; padding: 2px" border> <el-table :data="printTableData" class="table" style="margin-top: 20px;width: 100%;" border>
<el-table-column label="机具名称" align="center" prop="typeName"/> <el-table-column label="机具名称" align="center" prop="typeName"/>
<el-table-column label="规格型号" align="center" prop="typeModelName" /> <el-table-column label="规格型号" align="center" prop="typeModelName" />
<el-table-column label="单位" align="center" prop="unit" width="40px"/> <el-table-column label="单位" align="center" prop="unit" width="40px"/>
@ -177,7 +177,7 @@
<el-table-column label="额定载荷KN" align="center" prop="ratedLoad" width="80px"/> <el-table-column label="额定载荷KN" align="center" prop="ratedLoad" width="80px"/>
<el-table-column label="试验载荷KN" align="center" prop="testLoad" width="80px"/> <el-table-column label="试验载荷KN" align="center" prop="testLoad" width="80px"/>
<el-table-column label="持荷时间min" align="center" prop="holdingTime" width="80px"/> <el-table-column label="持荷时间min" align="center" prop="holdingTime" width="80px"/>
<el-table-column label="试验日期" align="center" prop="testTime" /> <el-table-column label="试验日期" align="center" prop="testTime" width="120px"/>
<el-table-column label="下次试验日期" align="center" prop="nextTestTime" width="120px"/> <el-table-column label="下次试验日期" align="center" prop="nextTestTime" width="120px"/>
<el-table-column label="检验结论" align="center" prop="checkResult" /> <el-table-column label="检验结论" align="center" prop="checkResult" />
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column label="备注" align="center" prop="remark"/>
@ -207,7 +207,8 @@
<!-- 领料单弹窗 --> <!-- 领料单弹窗 -->
<el-dialog :visible.sync="open" width="800px" :title="title" append-to-body> <el-dialog :visible.sync="open" width="800px" :title="title" append-to-body>
<div style="height: 500px; overflow-y: scroll; padding: 0 20px"> <div style="height: 500px; overflow-y: scroll; padding: 0 20px">
<vue-easy-print tableShow ref="remarksPrintRef" class="print"> <!-- <vue-easy-print tableShow ref="remarksPrintRef" > -->
<div id="checkIdTwo">
<div class="title" style="text-align: center; font-weight: 600; font-size: 16px"> <div class="title" style="text-align: center; font-weight: 600; font-size: 16px">
领料单 领料单
</div> </div>
@ -229,9 +230,9 @@
{{ leaseApplyData.code }} {{ leaseApplyData.code }}
</div> </div>
</div> </div>
<div style="width: 100%;margin-top: 20px;">
<el-table :data="leaseApplyDetails" class="table" border style="padding: 2px;"> <el-table :data="leaseApplyDetails" class="table" border style="width: 100%;">
<el-table-column label="序号" align="center" type="index" /> <el-table-column label="序号" align="center" type="index" width="60px"/>
<el-table-column label="类型名称" align="center" prop="typeName" /> <el-table-column label="类型名称" align="center" prop="typeName" />
<el-table-column label="规格型号" align="center" prop="typeName" /> <el-table-column label="规格型号" align="center" prop="typeName" />
<el-table-column label="计量单位" align="center" prop="unitName" /> <el-table-column label="计量单位" align="center" prop="unitName" />
@ -244,7 +245,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<div class="fillIn" style="margin-top: 30px;display: flex;justify-content: space-between;"> <div class="fillIn" style="margin-top: 30px;display: flex;justify-content: space-between;">
<div class="item" style="width: 24%;display: flex;align-items: center;flex-wrap: wrap;"> <div class="item" style="width: 24%;display: flex;align-items: center;flex-wrap: wrap;">
<div style="width: 30%;">审核</div> <div style="width: 30%;">审核</div>
@ -271,7 +272,8 @@
</div> </div>
</div> </div>
</div> </div>
</vue-easy-print> </div>
<!-- </vue-easy-print> -->
</div> </div>
<div slot="footer" class="dialog-footer" style="text-align: center"> <div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" @click="print"> </el-button> <el-button type="primary" @click="print"> </el-button>
@ -546,7 +548,7 @@ export default {
printable: 'checkId', printable: 'checkId',
type: 'html', type: 'html',
targetStyles: ['*'], targetStyles: ['*'],
maxWidth:'1200' maxWidth:'1400'
// //
}); });
}, },
@ -569,7 +571,14 @@ export default {
// //
print() { print() {
this.$refs.remarksPrintRef.print(); // this.$refs.remarksPrintRef.print();
printJS({
printable: 'checkIdTwo',
type: 'html',
targetStyles: ['*'],
maxWidth:'1400'
//
});
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -722,10 +731,10 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep.el-table .fixed-width .el-button--mini { // ::v-deep.el-table .fixed-width .el-button--mini {
width: 70px !important; // width: 70px !important;
margin-bottom: 10px; // margin-bottom: 10px;
} // }
.image-type { .image-type {
/* 旋转图片 */ /* 旋转图片 */