|
|
@ -104,7 +104,7 @@ export default { |
|
|
|
<el-descriptions-item label="税额">{{setup3Model.businesType}}</el-descriptions-item> |
|
|
|
<el-descriptions-item label="税率">{{setup3Model.businesType}}</el-descriptions-item> |
|
|
|
</el-descriptions> |
|
|
|
<app-table :data="setup3Model.detail" :columns="setup2columns" /> |
|
|
|
<app-table v-if="setup3Model.detail" :data="setup3Model.detail" :columns="setup2columns" /> |
|
|
|
</el-scrollbar> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -127,7 +127,7 @@ export default { |
|
|
|
<el-button type="primary" @click="setupRef-=1" v-if="setupRef>1&&setupRef<4">上一步</el-button> |
|
|
|
</span> |
|
|
|
<span class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="next" v-if="setupRef<3">下一步</el-button> |
|
|
|
<el-button type="primary" @click="next" v-if="setupRef<4">下一步</el-button> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
@ -564,6 +564,14 @@ export default { |
|
|
|
} |
|
|
|
}; |
|
|
|
const next = async () => { |
|
|
|
let service = null; |
|
|
|
if (props.businessType === "JisBBAC") { |
|
|
|
service = "bbac_ba_service"; |
|
|
|
} else if (props.usinessType === "JisHBPO") { |
|
|
|
service = "hbpo_ba_service"; |
|
|
|
} else { |
|
|
|
service = "pub_ba_service"; |
|
|
|
} |
|
|
|
if (setupRef.value === 1) { |
|
|
|
try { |
|
|
|
// setupRef.value += 1;
|
|
|
@ -587,47 +595,32 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if (result.data?.code === 400) { |
|
|
|
ElMessage({ |
|
|
|
type: "error", |
|
|
|
message: "操作失败", |
|
|
|
}); |
|
|
|
// ElMessage({
|
|
|
|
// type: "error",
|
|
|
|
// message: "操作失败",
|
|
|
|
// });
|
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
console.log(e); |
|
|
|
} |
|
|
|
} else if (setupRef.value === 2) { |
|
|
|
let service = null; |
|
|
|
if (props.businessType === "JisBBAC") { |
|
|
|
service = "bbac_ba_service"; |
|
|
|
} else if (props.usinessType === "JisHBPO") { |
|
|
|
service = "hbpo_ba_service"; |
|
|
|
} else { |
|
|
|
service = "pub_ba_service"; |
|
|
|
} |
|
|
|
const url = `settleaccount/${service}}/reissue-invoice-list`; |
|
|
|
const url = `settleaccount/${service}/reissue-invoice-list`; |
|
|
|
const result = await request(url, adjList.value, { method: "POST" }); |
|
|
|
if (!result.errors) { |
|
|
|
//setup3的数据来源
|
|
|
|
setup3Model.value = result.data.data; |
|
|
|
setup3Model.value = result.data; |
|
|
|
setup3Model.value.detail = adjList.value; |
|
|
|
setupRef.value += 1; |
|
|
|
} else if (result.data?.code === 400 && result.data.fileName) { |
|
|
|
ElMessage({ |
|
|
|
type: "error", |
|
|
|
message: "操作失败", |
|
|
|
}); |
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); |
|
|
|
} |
|
|
|
} else if (setupRef.value === 3) { |
|
|
|
const url = `settleaccount/${service}}/reissue-invoice-extend`; |
|
|
|
const url = `settleaccount/${service}/reissue-invoice-extend`; |
|
|
|
const result = await request(url, adjList.value, { method: "POST" }); |
|
|
|
if (!result.errors) { |
|
|
|
setupRef.value += 1; |
|
|
|
} else if (result.data?.code === 400 && result.data.fileName) { |
|
|
|
ElMessage({ |
|
|
|
type: "error", |
|
|
|
message: "操作失败", |
|
|
|
}); |
|
|
|
window.open(getUrl(`settleaccount/getblobfile/download/${result.data.fileName}`)); |
|
|
|
} |
|
|
|
} else { |
|
|
|