Browse Source

打印

master
蔡玲玲 2 weeks ago
parent
commit
accd6419f9
  1. 2
      base-vue/src/views/modules/contract/contract.vue
  2. 9
      base-vue/src/views/modules/contract/temp-add-or-update.vue

2
base-vue/src/views/modules/contract/contract.vue

@ -110,7 +110,7 @@
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :dictData="dictData" @refreshDataList="getDataList"></add-or-update> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :dictData="dictData" @refreshDataList="getDataList"></add-or-update>
<temp-add-or-update v-if="tempVisible" ref="tempAdd"></temp-add-or-update> <temp-add-or-update v-if="tempVisible" ref="tempAdd" :dictData="dictData"></temp-add-or-update>
</div> </div>
</template> </template>

9
base-vue/src/views/modules/contract/temp-add-or-update.vue

@ -6,7 +6,7 @@
<div class="dialog_content" id="popupContent"> <div class="dialog_content" id="popupContent">
<div style="width: 100%;"> <div style="width: 100%;">
<div class="zd-row"> <div class="zd-row">
<div class="zd-col-12 item_p">需方{{ dataForm.clientId }}</div> <div class="zd-col-12 item_p">需方{{ dictData[1] | findByValue(dataForm.clientId) }}</div>
<div class="zd-col-12 item_p">合同编号{{ dataForm.contractNumber }}</div> <div class="zd-col-12 item_p">合同编号{{ dataForm.contractNumber }}</div>
</div> </div>
<div class="zd-row"> <div class="zd-row">
@ -104,6 +104,9 @@ export default {
dataList: [{materialCode: 'S9410002000002'}, {materialCode: 'S9410002000003'}] dataList: [{materialCode: 'S9410002000002'}, {materialCode: 'S9410002000003'}]
} }
}, },
props: {
dictData: Array
},
methods: { methods: {
init (id) { init (id) {
this.dataForm.contractId = id || 0 this.dataForm.contractId = id || 0
@ -163,6 +166,10 @@ export default {
// //
addAndPrint () { addAndPrint () {
const LODOP = getLodop() const LODOP = getLodop()
if (LODOP === undefined || LODOP === null) {
this.visible = false
return
}
LODOP.PRINT_INITA('0mm', '0mm', '213mm', '297mm', '打印合同模板') LODOP.PRINT_INITA('0mm', '0mm', '213mm', '297mm', '打印合同模板')
LODOP.SET_PRINT_PAGESIZE(1, 2100, 2970, 'A4') LODOP.SET_PRINT_PAGESIZE(1, 2100, 2970, 'A4')
LODOP.ADD_PRINT_TEXT(0, 0, '0', '0', '') LODOP.ADD_PRINT_TEXT(0, 0, '0', '0', '')

Loading…
Cancel
Save