|
@@ -68,6 +68,10 @@ import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
|
|
import { QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
|
|
|
import { handleArgreementType } from '../../setup';
|
|
import { handleArgreementType } from '../../setup';
|
|
|
|
|
+import {QHJAgreementConfigOperateReq} from "@/services/proto/manager/interface";
|
|
|
|
|
+import {getUserId} from "@/services/bus/account";
|
|
|
|
|
+import {requestResultLoadingAndInfo} from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import {agreementConfigOperate} from "@/services/proto/manager";
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
name: 'modify-custom',
|
|
@@ -93,11 +97,18 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
function submit() {
|
|
function submit() {
|
|
|
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: 2, // uint32 操作类型-1:新增 2:修改
|
|
|
|
|
+ agreementid: props.selectedRow.agreementid,
|
|
|
|
|
+ agreementname: param.agreementname, // string 协议名称
|
|
|
|
|
+ agreementcontent: param.agreementcontent, // string 协议内容
|
|
|
|
|
+ operatesrc: 1, // uint32 操作来源 - 1:管理端 2:终端
|
|
|
|
|
+ operateid: getUserId(), // uint64 操作人
|
|
|
|
|
+ };
|
|
|
|
|
+ requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['修改协议成功', '修改协议失败:']).then(() => {
|
|
|
|
|
+ cancel();
|
|
|
|
|
+ context.emit('refresh');
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|