|
|
|
@ -1,545 +0,0 @@
|
|
|
|
|
<template>
|
|
|
|
|
<Dialog title="打印预览" v-model="dialogVisible" width="1000">
|
|
|
|
|
<!-- 打印预览 -->
|
|
|
|
|
<div class="print-wrap page" ref="print">
|
|
|
|
|
<table border="2" cellspacing="0" id="table">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<div style="width: 110px; text-align: center">
|
|
|
|
|
<img :src="logoDataUrl" style="width: 100%; padding: 0 5px" alt="" />
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="6">
|
|
|
|
|
<span style="font-size: 20px; font-weight: 700">开发项目启动单</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="2" style="padding: 5px 0">
|
|
|
|
|
<div style="border-bottom: 1px solid #666; padding-bottom: 5px">项目编号</div>
|
|
|
|
|
<div style="padding-top: 5px">{{ formData.code}}</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"> 客户名称 </td>
|
|
|
|
|
<td colspan="5">
|
|
|
|
|
<span>{{ formData.customer.name }}</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="1">{{ formData.customer.brief }}</td>
|
|
|
|
|
<td> 编码: </td>
|
|
|
|
|
<td>{{ formData.customer.code }} </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"> 项目名称 </td>
|
|
|
|
|
<td colspan="6">
|
|
|
|
|
{{ formData.projectName }}
|
|
|
|
|
</td>
|
|
|
|
|
<td> 业务员: </td>
|
|
|
|
|
<td>{{ formData.businessManName }} </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2"> 项目工期 </td>
|
|
|
|
|
<td colspan="1"> 起 </td>
|
|
|
|
|
<td colspan="1">
|
|
|
|
|
<span>{{ formatDate(new Date(formData.projectStartTime), 'YYYY-MM-DD') }}</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td colspan="1">至</td>
|
|
|
|
|
<td colspan="1">{{ formatDate(new Date(formData.projectEndTime), 'YYYY-MM-DD') }}</td>
|
|
|
|
|
<td>天数</td>
|
|
|
|
|
<td colspan="1">{{ betweenDay(new Date(formData.projectStartTime), new Date(formData.projectEndTime)) }}</td>
|
|
|
|
|
<td colspan="1"> 是否紧急: </td>
|
|
|
|
|
<td colspan="1">{{ getDictLabel(DICT_TYPE.HELI_COMMON_IS_OR_NOT, formData.isUrgency) }} </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="10">
|
|
|
|
|
<div style="display: flex; justify-content: space-between">
|
|
|
|
|
<div style="width: 42%; font-size: 12px; display: flex; flex-direction: column">
|
|
|
|
|
<div style="text-align: left; width: 100%">客户提供资料:</div>
|
|
|
|
|
<div id="fruitForm" style="display: flex; justify-content: flex-start; align-items: center">
|
|
|
|
|
<span class="checkbox" v-if="formData.hasContract == 0"></span>
|
|
|
|
|
<span class="checkbox" v-else-if="formData.hasContract == 1">√</span>
|
|
|
|
|
<label for="checkbox1">开发合同</label>
|
|
|
|
|
|
|
|
|
|
<span class="checkbox" v-if="formData.hasTechnologyProtocol == 0"></span>
|
|
|
|
|
<span class="checkbox" v-else-if="formData.hasTechnologyProtocol == 1">√</span>
|
|
|
|
|
<label for="checkbox2">技术协议</label>
|
|
|
|
|
<span class="checkbox" v-if="formData.hasBlueprint == 0"></span>
|
|
|
|
|
<span class="checkbox" v-else-if="formData.hasBlueprint == 1">√</span>
|
|
|
|
|
<label for="checkbox3">图纸/数模</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 27%; display: flex; justify-content: center; font-size: 12px">
|
|
|
|
|
<span>费用说明:</span>
|
|
|
|
|
<div style="border: 1px solid #333">
|
|
|
|
|
<div style="border-bottom: 1px solid #333">
|
|
|
|
|
<span v-if="formData.hasPrice == 1">有费用</span>
|
|
|
|
|
<span v-else>无费用</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding: 0 3px">
|
|
|
|
|
<span v-if="formData.hasPrice == 1">{{ formData.price }}(元)</span>
|
|
|
|
|
<span v-else> </span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 22%; display: flex; justify-content: center; font-size: 12px">
|
|
|
|
|
<div>
|
|
|
|
|
<div>类别:</div>
|
|
|
|
|
<div>性质:</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="border: 1px solid #333; width: 100px">
|
|
|
|
|
<div style="border-bottom: 1px solid #333">{{ getDictLabel(DICT_TYPE.HELI_BUSINESS_LINE, formData.businessLine) }}</div>
|
|
|
|
|
<div>{{ getDictLabel(DICT_TYPE.HELI_PROJECT_PROPERTY, formData.property) }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="10">
|
|
|
|
|
<div style="text-align: left; width: 100%">子项目信息</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="xh"> 序号 </td>
|
|
|
|
|
<td colspan="2"> 名称 </td>
|
|
|
|
|
<td> 设备型号 </td>
|
|
|
|
|
<td style="width:10%"> 简称 </td>
|
|
|
|
|
<td> 数量 </td>
|
|
|
|
|
<td> 主要材料 </td>
|
|
|
|
|
<td colspan="3"> 子项目编号 </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr v-for="(item,idx) in formData.projectOrderSubs" :key="idx">
|
|
|
|
|
<td>{{ idx+1 }}</td>
|
|
|
|
|
<td colspan="2">{{item.name}}</td>
|
|
|
|
|
<td>{{item.deviceModel}}</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td>{{item.amount}}</td>
|
|
|
|
|
<td>{{item.compositionName}}</td>
|
|
|
|
|
<td colspan="3"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="10">
|
|
|
|
|
<div style="text-align: left; width: 100%">备注:</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="10">
|
|
|
|
|
<div style="text-align: left; height: 150px; padding: 10px">
|
|
|
|
|
<p> {{ formData.remark }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4" style="width:33%"> 编制/日期 </td>
|
|
|
|
|
<td colspan="3" style="width:33%"> 审核/日期 </td>
|
|
|
|
|
<td colspan="3" style="width:33%"> 批准/日期 </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4">{{formData.creatorName}}</td>
|
|
|
|
|
<td colspan="3">{{formData.auditUserName}}</td>
|
|
|
|
|
<td colspan="3">{{formData.approveUserName}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4">{{formatDate(new Date(formData.createTime), 'YYYY-MM-DD')}}</td>
|
|
|
|
|
<td colspan="3">{{formatDate(new Date(formData.auditTime), 'YYYY-MM-DD')}}</td>
|
|
|
|
|
<td colspan="3">{{formatDate(new Date(formData.approveTime), 'YYYY-MM-DD')}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<!-- 【打印】 -->
|
|
|
|
|
<el-button @click="onPrint" type="primary">打印</el-button>
|
|
|
|
|
<el-button @click="outopen">取消</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</Dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
// import { ref, reactive } from 'vue'
|
|
|
|
|
import * as PlanApi from '@/api/heli/plan'
|
|
|
|
|
import * as PlanSubApi from '@/api/heli/plansub'
|
|
|
|
|
import * as ProjectOrderApi from '@/api/heli/projectorder'
|
|
|
|
|
import { getIntDictOptions, getStrDictOptions, DICT_TYPE, getDictLabel } from '@/utils/dict'
|
|
|
|
|
import { betweenDay, dateFormatter, formatDate } from '@/utils/formatTime'
|
|
|
|
|
import { Check } from '@element-plus/icons-vue'
|
|
|
|
|
import { getCustomer } from '@/api/heli/customer'
|
|
|
|
|
import { getOperateLogPage } from '@/api/system/operatelog'
|
|
|
|
|
import urlimg from '@/assets/imgs/exlogo.png'
|
|
|
|
|
const logoDataUrl = ref('') // 存储Logo的Base64编码数据URL
|
|
|
|
|
|
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
|
|
|
|
|
|
const onPrint = () => {
|
|
|
|
|
// 拿到打印页面dom节点
|
|
|
|
|
const printNode = document.querySelector('.print-wrap')
|
|
|
|
|
if (!printNode) return
|
|
|
|
|
// 页面文档创建一个空的内框架,用于挂载打印节点,并设置一定的样式
|
|
|
|
|
const newIframe: any = document.createElement('iframe')
|
|
|
|
|
newIframe.setAttribute(
|
|
|
|
|
'style',
|
|
|
|
|
'width:0px;height:0px;position:absolute;left:-9999px;top:-9999px;'
|
|
|
|
|
)
|
|
|
|
|
newIframe.setAttribute('align', 'center')
|
|
|
|
|
document.body.appendChild(newIframe)
|
|
|
|
|
// 将打印页面设置为内框架内容
|
|
|
|
|
let doc: any = null
|
|
|
|
|
doc = newIframe.contentWindow.document
|
|
|
|
|
doc.write(`
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
/* 浏览器打印基本样式 */
|
|
|
|
|
.page {
|
|
|
|
|
width: 21cm;
|
|
|
|
|
min-height: 29.7cm;
|
|
|
|
|
padding: 10mm;
|
|
|
|
|
margin: 20px auto;
|
|
|
|
|
border: 1px #d3d3d3 solid;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
background: white;
|
|
|
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
|
|
|
position: relative;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@page {
|
|
|
|
|
size: A4;
|
|
|
|
|
margin:1cm;
|
|
|
|
|
}
|
|
|
|
|
@media print {
|
|
|
|
|
.page {
|
|
|
|
|
margin: 10mm;
|
|
|
|
|
border: initial;
|
|
|
|
|
border-radius: initial;
|
|
|
|
|
width: initial;
|
|
|
|
|
min-height: initial;
|
|
|
|
|
box-shadow: initial;
|
|
|
|
|
background: initial;
|
|
|
|
|
page-break-after: always;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
table {
|
|
|
|
|
width: 100%; /* 让表格宽度100%占满其父元素宽度 */
|
|
|
|
|
height: auto; /* 高度根据内容自适应 */
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin-top: 5mm; /* 添加顶部外边距,替代原先的页内边距 */
|
|
|
|
|
td {
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
border: 1px solid #333;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.xh {
|
|
|
|
|
width: 50px !important;
|
|
|
|
|
}
|
|
|
|
|
.checkbox {
|
|
|
|
|
border: 2px solid #999;
|
|
|
|
|
width: 10px;
|
|
|
|
|
height: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-left:10px ;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div>
|
|
|
|
|
${printNode.innerHTML}
|
|
|
|
|
</div>`)
|
|
|
|
|
doc.close()
|
|
|
|
|
// 浏览器打印页面打开渲染
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
newIframe.contentWindow.focus()
|
|
|
|
|
newIframe.contentWindow.print()
|
|
|
|
|
document.body.removeChild(newIframe) // 移除打印内框架,下次打印下次再挂载
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
|
}, 100)
|
|
|
|
|
}
|
|
|
|
|
const outopen = () => {
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
|
}
|
|
|
|
|
const queryParams: any = ref({
|
|
|
|
|
code: undefined
|
|
|
|
|
})
|
|
|
|
|
const isSelected = ref([1, 3])
|
|
|
|
|
|
|
|
|
|
const formData = ref({
|
|
|
|
|
id: undefined,
|
|
|
|
|
code: undefined,
|
|
|
|
|
orderStatus: 4,
|
|
|
|
|
deliveryStatus: 1,
|
|
|
|
|
businessDeptId: undefined,
|
|
|
|
|
customerId: undefined,
|
|
|
|
|
projectName: undefined,
|
|
|
|
|
businessLine: undefined,
|
|
|
|
|
blueprintNo: undefined,
|
|
|
|
|
hasPrice: 1,
|
|
|
|
|
price: undefined,
|
|
|
|
|
currency: '1',
|
|
|
|
|
projectStartTime: undefined,
|
|
|
|
|
projectEndTime: undefined,
|
|
|
|
|
isUrgency: 0,
|
|
|
|
|
property: 1,
|
|
|
|
|
referenceTechnology: undefined,
|
|
|
|
|
hasAlter: 0,
|
|
|
|
|
lastAlterTime: undefined,
|
|
|
|
|
qualityRequirement: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
hasContract: 0,
|
|
|
|
|
hasTechnologyProtocol: 0,
|
|
|
|
|
hasBlueprint: 0,
|
|
|
|
|
blueprintRemark: undefined,
|
|
|
|
|
status: 1,
|
|
|
|
|
businessMan: undefined,
|
|
|
|
|
createTime: new Date(),
|
|
|
|
|
projectOrderSubs: [],
|
|
|
|
|
attachments: [],
|
|
|
|
|
operateLogs: [],
|
|
|
|
|
contractNo: undefined,
|
|
|
|
|
active: '',
|
|
|
|
|
activeOpinion: '',
|
|
|
|
|
isSnapshot: 0,
|
|
|
|
|
snapshotId: undefined,
|
|
|
|
|
snapshotCode: undefined,
|
|
|
|
|
orderTime: new Date(),
|
|
|
|
|
snapshotOrderTime: undefined,
|
|
|
|
|
alterFieldNames: [],
|
|
|
|
|
customer: {},
|
|
|
|
|
creatorName: undefined,
|
|
|
|
|
auditTime: undefined,
|
|
|
|
|
auditUserName: undefined,
|
|
|
|
|
approveTime: undefined,
|
|
|
|
|
approveUserName: undefined
|
|
|
|
|
})
|
|
|
|
|
const planData = ref({
|
|
|
|
|
id: undefined,
|
|
|
|
|
projectId: undefined,
|
|
|
|
|
projectOwner: undefined,
|
|
|
|
|
hasCraft: undefined,
|
|
|
|
|
craftOwner: undefined,
|
|
|
|
|
craftStartTime: undefined,
|
|
|
|
|
craftEndTime: undefined,
|
|
|
|
|
editor: undefined,
|
|
|
|
|
editorDate: undefined,
|
|
|
|
|
auditor: undefined,
|
|
|
|
|
auditDate: undefined,
|
|
|
|
|
approver: undefined,
|
|
|
|
|
approveDate: undefined,
|
|
|
|
|
description: undefined,
|
|
|
|
|
status: undefined,
|
|
|
|
|
createTime: undefined,
|
|
|
|
|
operateLogs: [],
|
|
|
|
|
projectOrderSubs: [],
|
|
|
|
|
projectPlanSubs: [],
|
|
|
|
|
craftInfos: [],
|
|
|
|
|
craftContent: undefined
|
|
|
|
|
})
|
|
|
|
|
/** 打开弹窗 */
|
|
|
|
|
const open = async (id: number) => {
|
|
|
|
|
//图片处理
|
|
|
|
|
// 在组件挂载后,将Logo图片转换为Base64编码数据URL
|
|
|
|
|
const logoImage = new Image()
|
|
|
|
|
logoImage.src = urlimg // 替换为Logo图片路径
|
|
|
|
|
logoImage.onload = () => {
|
|
|
|
|
const canvas = document.createElement('canvas')
|
|
|
|
|
canvas.width = logoImage.width
|
|
|
|
|
canvas.height = logoImage.height
|
|
|
|
|
const context = canvas.getContext('2d')
|
|
|
|
|
context.drawImage(logoImage, 0, 0)
|
|
|
|
|
const base64String = canvas.toDataURL('image/png')
|
|
|
|
|
logoDataUrl.value = base64String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
resetForm()
|
|
|
|
|
// 生产计划数据
|
|
|
|
|
planData.value = await PlanApi.getPlan(id)
|
|
|
|
|
// 生产计划子项目数据
|
|
|
|
|
await handleInitPlanSub(id)
|
|
|
|
|
// 生产计划工艺数据
|
|
|
|
|
await handleCraftInfo()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formData.value = await ProjectOrderApi.getProjectOrder(planData.value.projectId)
|
|
|
|
|
// 子项列表
|
|
|
|
|
formData.value.projectOrderSubs = await ProjectOrderApi.getProjectOrderSubListByProjectOrderId(planData.value.projectId)
|
|
|
|
|
formData.value.customer = await getCustomer(formData.value.customerId)
|
|
|
|
|
// 操作日志查询 并筛选审核/批准信息
|
|
|
|
|
let logParams = {
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 2,
|
|
|
|
|
typeList: [9, 10]
|
|
|
|
|
}
|
|
|
|
|
const logs = await getOperateLogPage(logParams)
|
|
|
|
|
if (logs.list && logs.list.length == 2) {
|
|
|
|
|
const approveLog = logs.list[0]
|
|
|
|
|
const auditLog = logs.list[1]
|
|
|
|
|
formData.value.approveTime = approveLog.startTime
|
|
|
|
|
formData.value.approveUserName = approveLog.userNickname
|
|
|
|
|
formData.value.auditTime = auditLog.startTime
|
|
|
|
|
formData.value.auditUserName = auditLog.userNickname
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
const handleCraftInfo = async () =>{
|
|
|
|
|
if (planData.value.craftContent == null) {
|
|
|
|
|
planData.value.craftInfos = []
|
|
|
|
|
|
|
|
|
|
getIntDictOptions(DICT_TYPE.HELI_CRAFT).forEach(dict => {
|
|
|
|
|
planData.value.craftInfos.push({ id: dict.value, name: dict.label, startDate: '', endDate: '', owner: '', description: '' })
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
planData.value.craftInfos = eval(planData.value.craftContent)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const handleInitPlanSub = async (id) => {
|
|
|
|
|
// 生产计划子项列表
|
|
|
|
|
const queryParams = reactive({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 99,
|
|
|
|
|
projectPlanId: id
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
planData.value.projectPlanSubs =
|
|
|
|
|
(await PlanSubApi.getPlanSubPage(queryParams)).list
|
|
|
|
|
|
|
|
|
|
formData.value.projectOrderSubs.forEach(item => {
|
|
|
|
|
if (planData.value.projectPlanSubs.filter(sub => sub.projectSubId == item.id).length > 0) {
|
|
|
|
|
var subTemp = planData.value.projectPlanSubs.find(sub => sub.projectSubId == item.id)
|
|
|
|
|
item.planSubId = subTemp.id
|
|
|
|
|
item.projectPlanId = subTemp.projectPlanId
|
|
|
|
|
item.projectId = subTemp.projectId
|
|
|
|
|
item.projectSubId = subTemp.projectSubId
|
|
|
|
|
item.projectSubShortName = subTemp.projectSubShortName
|
|
|
|
|
item.projectSubCode = subTemp.projectSubCode
|
|
|
|
|
item.mouldId = subTemp.mouldId
|
|
|
|
|
item.equipId = subTemp.equipId
|
|
|
|
|
item.blankDate = subTemp.blankDate
|
|
|
|
|
item.blankOwner = subTemp.blankOwner
|
|
|
|
|
item.twoDimDate = subTemp.twoDimDate
|
|
|
|
|
item.twoDimOwner = subTemp.twoDimOwner
|
|
|
|
|
item.threeDimDate = subTemp.threeDimDate
|
|
|
|
|
item.threeDimOwner = subTemp.threeDimOwner
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/** 重置表单 */
|
|
|
|
|
const resetForm = () => {
|
|
|
|
|
formData.value = {
|
|
|
|
|
id: undefined,
|
|
|
|
|
code: undefined,
|
|
|
|
|
orderStatus: 4,
|
|
|
|
|
deliveryStatus: 1,
|
|
|
|
|
businessDeptId: undefined,
|
|
|
|
|
customerId: undefined,
|
|
|
|
|
projectName: undefined,
|
|
|
|
|
businessLine: undefined,
|
|
|
|
|
blueprintNo: undefined,
|
|
|
|
|
hasPrice: 1,
|
|
|
|
|
price: undefined,
|
|
|
|
|
currency: '1',
|
|
|
|
|
projectStartTime: undefined,
|
|
|
|
|
projectEndTime: undefined,
|
|
|
|
|
isUrgency: 0,
|
|
|
|
|
property: 1,
|
|
|
|
|
referenceTechnology: undefined,
|
|
|
|
|
hasAlter: 0,
|
|
|
|
|
lastAlterTime: undefined,
|
|
|
|
|
qualityRequirement: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
hasContract: 0,
|
|
|
|
|
hasTechnologyProtocol: 0,
|
|
|
|
|
hasBlueprint: 0,
|
|
|
|
|
blueprintRemark: undefined,
|
|
|
|
|
status: 1,
|
|
|
|
|
businessMan: undefined,
|
|
|
|
|
createTime: new Date(),
|
|
|
|
|
projectOrderSubs: [],
|
|
|
|
|
attachments: [],
|
|
|
|
|
operateLogs: [],
|
|
|
|
|
contractNo: undefined,
|
|
|
|
|
active: '',
|
|
|
|
|
activeOpinion: '',
|
|
|
|
|
isSnapshot: 0,
|
|
|
|
|
snapshotId: undefined,
|
|
|
|
|
snapshotCode: undefined,
|
|
|
|
|
orderTime: new Date(),
|
|
|
|
|
snapshotOrderTime: undefined,
|
|
|
|
|
alterFieldNames: [],
|
|
|
|
|
customer: {},
|
|
|
|
|
creatorName: undefined,
|
|
|
|
|
auditTime: undefined,
|
|
|
|
|
auditUserName: undefined,
|
|
|
|
|
approveTime: undefined,
|
|
|
|
|
approveUserName: undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.page {
|
|
|
|
|
width: 21cm;
|
|
|
|
|
min-height: 29.7cm;
|
|
|
|
|
padding: 10mm;
|
|
|
|
|
margin: 20px auto;
|
|
|
|
|
border: 1px #d3d3d3 solid;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
background: white;
|
|
|
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
|
|
|
position: relative;
|
|
|
|
|
font-size: 14px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@page {
|
|
|
|
|
size: A4;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
@media print {
|
|
|
|
|
.page {
|
|
|
|
|
margin: 0;
|
|
|
|
|
border: initial;
|
|
|
|
|
border-radius: initial;
|
|
|
|
|
width: initial;
|
|
|
|
|
min-height: initial;
|
|
|
|
|
box-shadow: initial;
|
|
|
|
|
background: initial;
|
|
|
|
|
page-break-after: always;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
table {
|
|
|
|
|
width: 100%; /* 让表格宽度100%占满其父元素宽度 */
|
|
|
|
|
height: auto; /* 高度根据内容自适应 */
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin-top: 5mm; /* 添加顶部外边距,替代原先的页内边距 */
|
|
|
|
|
td {
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
border: 1px solid #333;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.xh {
|
|
|
|
|
width: 50px !important;
|
|
|
|
|
}
|
|
|
|
|
.checkbox {
|
|
|
|
|
border: 2px solid #999;
|
|
|
|
|
width: 15px;
|
|
|
|
|
height: 15px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
A4的大小:21cm*29.7cm(width:794px;)。
|
|
|
|
|
单位换算:1 inch = 2.54 cm 1mm = 96 px 1 cm = 37.79528 px*/
|
|
|
|
|
</style>
|