|
@@ -82,6 +82,13 @@ import { defineComponent, ref } from 'vue';
|
|
|
import { handleForm } from './setup';
|
|
import { handleForm } from './setup';
|
|
|
import { FormState } from './interface';
|
|
import { FormState } from './interface';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
|
|
+import { AgreementType } from '@/common/constants/enumCommon';
|
|
|
|
|
+import { getAgreementTypeList } from '@/views/platinum/platinum_agreement/setup';
|
|
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import {addCustomerInfoOperate} from "@/services/proto/accountinfo";
|
|
|
|
|
+import {agreementConfigOperate} from "@/services/proto/manager";
|
|
|
|
|
+import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
|
|
|
|
|
+import {getUserId} from "@/services/bus/account";
|
|
|
import { handleArgreementType } from '@/views/platinum/platinum_agreement/setup';
|
|
import { handleArgreementType } from '@/views/platinum/platinum_agreement/setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -99,11 +106,19 @@ export default defineComponent({
|
|
|
|
|
|
|
|
function submit(OperateType: 1 | 2) {
|
|
function submit(OperateType: 1 | 2) {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
- // const reqParam: QHJAgreementConfigOperateReq = {};
|
|
|
|
|
- // requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['新增协议成功', '新增协议失败:']).then(() => {
|
|
|
|
|
- // cancel();
|
|
|
|
|
- // context.emit('refresh');
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+ const reqParam: QHJAgreementConfigOperateReq = {
|
|
|
|
|
+ operatetype: 1, // uint32 操作类型-1:新增 2:修改
|
|
|
|
|
+ agreementno: param.agreementno, // string 协议编号
|
|
|
|
|
+ agreementname: param.agreementname, // string 协议名称
|
|
|
|
|
+ agreementtype: Number(param.agreementtype), // uint32 协议类型 - 1:注册 2:登录 3:交易
|
|
|
|
|
+ agreementcontent: param.agreementcontent, // string 协议内容
|
|
|
|
|
+ operatesrc: 1,// uint32 操作来源 - 1:管理端 2:终端
|
|
|
|
|
+ operateid: getUserId() // uint64 操作人
|
|
|
|
|
+ };
|
|
|
|
|
+ requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['新增协议成功', '新增协议失败:']).then(() => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|