|
@@ -416,43 +416,47 @@ const props = defineProps({
|
|
|
});
|
|
|
onMounted(() => {
|
|
|
if (props.rowData && props.rowData.id) {
|
|
|
- proxy.post("/pay/detail", { id: props.rowData.id }).then((res) => {
|
|
|
- printDetails.value = res;
|
|
|
- if (printDetails.value.createUser) {
|
|
|
- let data = userList.value.filter(
|
|
|
- (item) => item.value == printDetails.value.createUser
|
|
|
- );
|
|
|
- if (data && data.length > 0) {
|
|
|
- printDetails.value.deptId = data[0].deptId;
|
|
|
+ proxy
|
|
|
+ .post("/ehsdPurchase/payDetail", { id: props.rowData.id })
|
|
|
+ .then((res) => {
|
|
|
+ printDetails.value = res;
|
|
|
+ if (printDetails.value.createUser) {
|
|
|
+ let data = userList.value.filter(
|
|
|
+ (item) => item.value == printDetails.value.createUser
|
|
|
+ );
|
|
|
+ if (data && data.length > 0) {
|
|
|
+ printDetails.value.deptId = data[0].deptId;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- proxy
|
|
|
- .post("/fileInfo/getList", { businessIdList: [props.rowData.id] })
|
|
|
- .then((resFile) => {
|
|
|
- let electronicInvoiceText = "";
|
|
|
- if (
|
|
|
- resFile[props.rowData.id] &&
|
|
|
- resFile[props.rowData.id].length > 0
|
|
|
- ) {
|
|
|
- for (let i = 0; i < resFile[props.rowData.id].length; i++) {
|
|
|
- if (i === 0) {
|
|
|
- electronicInvoiceText = resFile[props.rowData.id][0].fileName;
|
|
|
- } else {
|
|
|
- electronicInvoiceText =
|
|
|
- electronicInvoiceText +
|
|
|
- ", " +
|
|
|
- resFile[props.rowData.id][i].fileName;
|
|
|
+ proxy
|
|
|
+ .post("/fileInfo/getList", { businessIdList: [props.rowData.id] })
|
|
|
+ .then((resFile) => {
|
|
|
+ let electronicInvoiceText = "";
|
|
|
+ if (
|
|
|
+ resFile[props.rowData.id] &&
|
|
|
+ resFile[props.rowData.id].length > 0
|
|
|
+ ) {
|
|
|
+ for (let i = 0; i < resFile[props.rowData.id].length; i++) {
|
|
|
+ if (i === 0) {
|
|
|
+ electronicInvoiceText = resFile[props.rowData.id][0].fileName;
|
|
|
+ } else {
|
|
|
+ electronicInvoiceText =
|
|
|
+ electronicInvoiceText +
|
|
|
+ ", " +
|
|
|
+ resFile[props.rowData.id][i].fileName;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- printDetails.value.electronicInvoiceText = electronicInvoiceText;
|
|
|
- });
|
|
|
- // if (res.flowExampleId) {
|
|
|
- // proxy.post("/flowExample/getApprovalRecord", { id: res.flowExampleId }).then((record) => {
|
|
|
- // printDetails.value.recordList = record.recordList;
|
|
|
- // });
|
|
|
- // }
|
|
|
- });
|
|
|
+ printDetails.value.electronicInvoiceText = electronicInvoiceText;
|
|
|
+ });
|
|
|
+ if (res.flowExampleId) {
|
|
|
+ proxy
|
|
|
+ .post("/flowExample/getApprovalRecord", { id: res.flowExampleId })
|
|
|
+ .then((record) => {
|
|
|
+ printDetails.value.recordList = record.recordList;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
</script>
|