提交 1d2dabfc authored 作者: Ras's avatar Ras

收费单添加查看收费单字段,点击生成PDF文件进行打印

上级 f8905c72
......@@ -94,6 +94,7 @@
<a @click="exportDeliveryNotePicPdf(record)">查看送货单图片</a>
<a-divider type="vertical" />
<a @click="exportReceivingNotePdf(record)">查看收费单</a>
<a-divider type="vertical" />
</span>
......@@ -284,6 +285,12 @@
link.click();
});
},
handleCopy(record)
{
this.$refs.copyModalForm.edit(record);
this.$refs.copyModalForm.title = "打印收费单";
this.$refs.copyModalForm.disableSubmit = true;
},
initDictConfig(){
}
}
......
......@@ -91,7 +91,9 @@
<span slot="action" slot-scope="text, record">
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a @click="exportReceivingNotePdf(record)">打印收费单</a>
<a @click="handleCopy(record)">打印收费单</a>
<a-divider type="vertical" />
<a @click="exportReceivingNotePdf(record)">查看收费单</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
......@@ -108,7 +110,7 @@
</a-table>
</div>
<iost-receiving-note-modal ref="modalForm" @ok="modalFormOk"/>
<!-- <iost-receiving-note-modal ref="modalForm" @ok="modalFormOk"/> -->
<iost-receiving-note-copy-modal ref="copyModalForm" @ok="modalFormOk"></iost-receiving-note-copy-modal>
</a-card>
</template>
......@@ -210,14 +212,14 @@
},
handleCopy(record)
{
console.log(record)
this.$refs.copyModalForm.edit(record);
this.$refs.copyModalForm.title = "打印收费单";
this.$refs.copyModalForm.disableSubmit = true;
},
exportReceivingNotePdf(record){
console.log(record)
let url = `${window._CONFIG['domianURL']}/basedata/iostReceivingNote/exportReceivingNotePdf`;
downFile(url, {deliveryRecordId:record.id}).then((data) =>
downFile(url, {deliveryRecordId:record.deliveryRecordId}).then((data) =>
{
if (!data) {
this.$message.warning("文件下载失败")
......
......@@ -56,14 +56,6 @@
<div v-html="text"></div>
</template>
</a-table>
<div class="remarks">
<h3>备注</h3>
<ul style="list-style-type: decimal;margin:1%; padding:0;">
<li v-for="item in remarks">
{{item}}
</li>
</ul>
</div>
</section>
</a-spin>
</template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论