开启面单按钮问题

master
chc 2023-01-19 17:26:31 +08:00
parent 69caf86c7e
commit 9df377677b
1 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@
ref="table"
></Table>
</Card>
<Modal v-model="openModal" :title="openModalTitle" @on-ok="submit">
<Modal v-model="openModal" :title="openModalTitle" @on-ok="submit" @on-cancel="cancelModal">
<h3 style="color: #ff3c2a; margin-bottom: 10px">是否需要电子面单</h3>
<RadioGroup
v-model="faceSheetForm.faceSheetFlag"
@ -245,6 +245,10 @@ export default {
});
this.loading = false;
},
cancelModal(){
this.faceSheetFlag = false;
this.faceSheetForm.faceSheetFlag = false;
},
//
open(v) {
this.row = v;
@ -284,7 +288,7 @@ export default {
var a = document.createElement("a"); //<a></a>
//
if (val === 'use') {
a.href = "static/open.xlsx"; // ahref .
a.href = "static/instructions.xlsx"; // ahref .
a.download = "使用说明.xlsx"; //.xlsxpdf.fpd
} else if (val === 'type') {
a.href = "static/logisticsType.xlsx"; // ahref .