|
@@ -111,7 +111,20 @@ export default {
|
|
|
this.$emit("close", false);
|
|
|
},
|
|
|
printDialog() {
|
|
|
- this.$print(this.$refs.printContent);
|
|
|
+ var self = this;
|
|
|
+ var formData = new FormData();
|
|
|
+ formData.append("auditingId", self.businessKey);
|
|
|
+ auditingApi
|
|
|
+ .printed(formData)
|
|
|
+ .then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+ if(jsonData.result){
|
|
|
+ self.$print(self.$refs.printContent);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((error) => {
|
|
|
+ // self.$message.error(error + "");
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
mounted: function () {
|
|
@@ -125,7 +138,6 @@ export default {
|
|
|
.then(function (response) {
|
|
|
var jsonData = response.data.data;
|
|
|
self.showData = jsonData;
|
|
|
- console.log(self.showData);
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
// self.$message.error(error + "");
|