Browse Source

打印

master
蔡玲玲 1 week 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>
<!-- 弹窗, 新增 / 修改 -->
<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>
</template>

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

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

Loading…
Cancel
Save