|
|
@@ -76,6 +76,9 @@
|
|
|
<el-option label="企业信用" value="ENT_CREDIT" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="签约协议号" prop="agreement_no">
|
|
|
+ <el-input v-model="createForm.agreement_no" placeholder="签约完成后粘贴协议号(选填)" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
<el-input v-model="createForm.remark" type="textarea" placeholder="请输入备注" />
|
|
|
</el-form-item>
|
|
|
@@ -779,6 +782,7 @@ const authorizeResult = reactive({
|
|
|
|
|
|
const createForm = reactive({
|
|
|
enterprise_id: "",
|
|
|
+ agreement_no: "",
|
|
|
account_type: "ALL",
|
|
|
scene: "B2B_TRANS",
|
|
|
remark: "",
|
|
|
@@ -1235,9 +1239,11 @@ async function handleAuthorize() {
|
|
|
const res = await AccountAPI.authorizeApply({
|
|
|
enterprise_id: currentEnterpriseId.value!,
|
|
|
});
|
|
|
- authorizeResult.sign_url = res.data.data?.sign_url || "";
|
|
|
- // 直接打开新窗口跳转
|
|
|
- window.open(authorizeResult.sign_url, "_blank");
|
|
|
+ const signHtml = res.data.data?.sign_url || "";
|
|
|
+ authorizeResult.sign_url = signHtml;
|
|
|
+ // pageExecute 返回 HTML 表单,通过 Blob URL 跳转到支付宝签约页
|
|
|
+ const blob = new Blob([signHtml], { type: "text/html" });
|
|
|
+ window.open(URL.createObjectURL(blob), "_blank");
|
|
|
} finally {
|
|
|
authorizeLoading.value = false;
|
|
|
}
|
|
|
@@ -1278,6 +1284,7 @@ async function handleCreate() {
|
|
|
try {
|
|
|
const res = await AccountAPI.create({
|
|
|
enterprise_id: currentEnterpriseId.value!,
|
|
|
+ agreement_no: createForm.agreement_no || undefined,
|
|
|
account_type: "ALL",
|
|
|
scene: "B2B_TRANS",
|
|
|
remark: "",
|
|
|
@@ -1314,9 +1321,11 @@ async function handleDeposit() {
|
|
|
amount: depositForm.amount,
|
|
|
remark: depositForm.remark,
|
|
|
});
|
|
|
- depositResult.url = res.data.data?.url || "";
|
|
|
- // 直接打开新窗口跳转
|
|
|
- window.open(depositResult.url, "_blank");
|
|
|
+ const depositHtml = res.data.data?.url || "";
|
|
|
+ depositResult.url = depositHtml;
|
|
|
+ // pageExecute 返回 HTML 表单,通过 Blob URL 跳转到支付宝充值页
|
|
|
+ const blob = new Blob([depositHtml], { type: "text/html" });
|
|
|
+ window.open(URL.createObjectURL(blob), "_blank");
|
|
|
} finally {
|
|
|
depositLoading.value = false;
|
|
|
}
|