Merge branch 'material-ui' of http://192.168.0.56:3000/bonus/bonus-ui into material-ui
This commit is contained in:
commit
84dae5a3fc
|
|
@ -98,3 +98,11 @@ export function getMachineById(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 更新打印状态
|
||||||
|
export function updatePrintStatus(id) {
|
||||||
|
return request({
|
||||||
|
url: '/material/back_apply_info/editPrint',
|
||||||
|
method: 'post',
|
||||||
|
data: {id: id},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -145,6 +145,7 @@
|
||||||
import vueEasyPrint from 'vue-easy-print';
|
import vueEasyPrint from 'vue-easy-print';
|
||||||
import {
|
import {
|
||||||
getBackApplyInfo,
|
getBackApplyInfo,
|
||||||
|
updatePrintStatus,
|
||||||
} from '@/api/back/index.js'
|
} from '@/api/back/index.js'
|
||||||
// import { getViewByApply,materialReturnNoteByApply } from "@/api/claimAndRefund/return.js"
|
// import { getViewByApply,materialReturnNoteByApply } from "@/api/claimAndRefund/return.js"
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -201,7 +202,7 @@ export default {
|
||||||
// let params = {
|
// let params = {
|
||||||
// id: this.rowObj.id,
|
// id: this.rowObj.id,
|
||||||
// }
|
// }
|
||||||
console.log(this.rowObj)
|
|
||||||
getBackApplyInfo(this.rowObj.id).then(res => {
|
getBackApplyInfo(this.rowObj.id).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.tableData = res.data.backApplyDetailsList
|
this.tableData = res.data.backApplyDetailsList
|
||||||
|
|
@ -213,6 +214,17 @@ export default {
|
||||||
},
|
},
|
||||||
print() {
|
print() {
|
||||||
this.$refs.printRef.print();
|
this.$refs.printRef.print();
|
||||||
|
console.log(this.rowObj)
|
||||||
|
updatePrintStatus(this.rowObj.id).then(response => {
|
||||||
|
if (response.code === 200) {
|
||||||
|
//this.$modal.msgSuccess("打印成功");
|
||||||
|
// 如果需要刷新列表
|
||||||
|
this.$emit('refresh');
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.$modal.msgError("打印状态更新失败");
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
checkDetail(row) {
|
checkDetail(row) {
|
||||||
this.title = '查看'
|
this.title = '查看'
|
||||||
|
|
@ -221,19 +233,8 @@ export default {
|
||||||
},
|
},
|
||||||
remarksPrint() {
|
remarksPrint() {
|
||||||
this.$refs.remarksPrintRef.print();
|
this.$refs.remarksPrintRef.print();
|
||||||
}
|
},
|
||||||
|
|
||||||
// submit() {
|
|
||||||
// this.$refs["dynamicValidateForm"].validate(valid => {
|
|
||||||
// console.log("valid", valid);
|
|
||||||
// if (valid) {
|
|
||||||
// console.log("11111");
|
|
||||||
// this.cancel();
|
|
||||||
// } else {
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -268,4 +269,13 @@ export default {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media print {
|
||||||
|
.no-print {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.print-content {
|
||||||
|
/* 打印内容的样式 */
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue