|
@@ -63,7 +63,7 @@
|
|
|
<i v-else class="el-icon-s-unfold"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-drawer v-if="billConfig && billConfig.log" class="log-drawer" :size="600" append-to-body title="操作日志"
|
|
|
+ <el-drawer v-if="billConfig && billConfig.log" class="log-drawer" :size="600" @open="openLog" append-to-body title="操作日志"
|
|
|
:visible.sync="drawer" direction="rtl">
|
|
|
<byLog :propConfig="billConfig && billConfig.log" :parentValue="billValue" ref="log" />
|
|
|
</el-drawer>
|
|
@@ -241,8 +241,8 @@
|
|
|
return
|
|
|
}
|
|
|
const blob = new Blob([res],{
|
|
|
- type: "application/pdf;chartset=UTF-8"
|
|
|
- })
|
|
|
+ type: "application/pdf;chartset=UTF-8"
|
|
|
+ })
|
|
|
const qrUrl:any =(window as any).URL.createObjectURL(blob);
|
|
|
const myWindow =(window as any).open(qrUrl);
|
|
|
myWindow.print();
|
|
@@ -258,14 +258,16 @@
|
|
|
this.billValue = (this.$refs.billForm as any).getValue();
|
|
|
this.drawer = true;
|
|
|
}
|
|
|
- this.$forceUpdate();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ openLog(){
|
|
|
+ this.$nextTick(() => {
|
|
|
if (this.$refs.log) {
|
|
|
(this.$refs.log as any).setBillValue(this.billValue);
|
|
|
(this.$refs.log as any).request();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
setConfigAfter() {
|
|
|
if (this.attrs.activeName) {
|
|
|
this.showTab = this.attrs.activeName
|