|
@@ -282,6 +282,17 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "导出",
|
|
|
+ type: "primary",
|
|
|
+ text: true,
|
|
|
+ },
|
|
|
+ el: "button",
|
|
|
+ click() {
|
|
|
+ deriveExcel(row);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "打印",
|
|
|
type: "primary",
|
|
|
text: true,
|
|
@@ -703,6 +714,19 @@ const clickManualSynchronization = () => {
|
|
|
}
|
|
|
);
|
|
|
};
|
|
|
+const deriveExcel = (row) => {
|
|
|
+ ElMessageBox.confirm("你是否确认此操作", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ proxy.postFile("/statementOfAccountMerge/exportDeliveryOfGoodsExcel", [row.id]).then((res) => {
|
|
|
+ proxy.downloadFile(res, "货物交接单-" + row.code + ".xlsx");
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|