|
@@ -20,12 +20,8 @@
|
|
|
:rules="rules">
|
|
:rules="rules">
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="协议编号"
|
|
|
|
|
- name="agreementno">
|
|
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- v-model:value="formState.agreementno"
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- placeholder="请输入协议编号" />
|
|
|
|
|
|
|
+ <a-form-item label="协议编号">
|
|
|
|
|
+ <span class="white">{{formState.agreementno}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
@@ -38,37 +34,24 @@
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="协议类型"
|
|
|
|
|
- name="agreementtype">
|
|
|
|
|
- <a-select class="typeSelect"
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- v-model:value="formState.agreementtype"
|
|
|
|
|
- placeholder="请选择协议类型">
|
|
|
|
|
- <a-select-option v-for="item in userinfotypeList"
|
|
|
|
|
- :value="item.key"
|
|
|
|
|
- :key="item.key">
|
|
|
|
|
- {{item.name}}
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
|
|
+ <a-form-item label="协议类型">
|
|
|
|
|
+ <span class="white">{{formState.agreementtype}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="签署频率"
|
|
<a-form-item label="签署频率"
|
|
|
name="agreementname">
|
|
name="agreementname">
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- v-model:value="formState.agreementname"
|
|
|
|
|
- readonly
|
|
|
|
|
- style="width: 200px"
|
|
|
|
|
- placeholder="" />
|
|
|
|
|
|
|
+ <span class="white">{{getRate()}}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item label="协议内容"
|
|
<a-form-item label="协议内容"
|
|
|
name="agreementcontent">
|
|
name="agreementcontent">
|
|
|
- <a-input class="dialogInput"
|
|
|
|
|
- style="width: 635px"
|
|
|
|
|
- v-model:value="formState.agreementcontent"
|
|
|
|
|
- placeholder="请输入协议内容" />
|
|
|
|
|
|
|
+ <a-textarea class="dialogInput"
|
|
|
|
|
+ v-model:value="formState.agreementcontent"
|
|
|
|
|
+ style="width: 635px"
|
|
|
|
|
+ placeholder="请输入协议内容"
|
|
|
|
|
+ :autosize="{ minRows: 8, maxRows: 24 }" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -84,6 +67,7 @@ import { FormState } from '../add/interface';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
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';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
name: 'modify-custom',
|
|
@@ -100,13 +84,14 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
|
|
|
|
|
const { formRef, formState, rules } = handleForm();
|
|
const { formRef, formState, rules } = handleForm();
|
|
|
-
|
|
|
|
|
|
|
+ // 协议类型
|
|
|
|
|
+ const { getRate } = handleArgreementType(formState);
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
if (visible.value) {
|
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- function submit(OperateType: 1 | 2) {
|
|
|
|
|
|
|
+ function submit() {
|
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
validateAction<FormState>(formRef, formState).then((param) => {
|
|
|
// const reqParam: QHJAgreementConfigOperateReq = {};
|
|
// const reqParam: QHJAgreementConfigOperateReq = {};
|
|
|
// requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['新增协议成功', '新增协议失败:']).then(() => {
|
|
// requestResultLoadingAndInfo(agreementConfigOperate, reqParam, loading, ['新增协议成功', '新增协议失败:']).then(() => {
|
|
@@ -116,6 +101,7 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
|
|
+ getRate,
|
|
|
formState,
|
|
formState,
|
|
|
rules,
|
|
rules,
|
|
|
formRef,
|
|
formRef,
|