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

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

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