签报字段
This commit is contained in:
@ -110,8 +110,8 @@
|
|||||||
import customerListModal from '/@/components/common/customerListModal.vue';
|
import customerListModal from '/@/components/common/customerListModal.vue';
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
|
|
||||||
const tableName = 'ScoreCustomer';
|
const tableName = 'Appro';
|
||||||
const columnName = 'ScoreCustomer'
|
const columnName = 'Appro'
|
||||||
|
|
||||||
const formType = ref('2'); // 0 新建 1 修改 2 查看
|
const formType = ref('2'); // 0 新建 1 修改 2 查看
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
@ -144,8 +144,16 @@
|
|||||||
});
|
});
|
||||||
const [register, { openModal:openModal}] = useModal();
|
const [register, { openModal:openModal}] = useModal();
|
||||||
const rules: Record<string, Rule[]> = {
|
const rules: Record<string, Rule[]> = {
|
||||||
cpCodeName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
title: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
gsId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
typeCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
securityCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
urgencyCode: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
empIdName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
bDeptIdName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
comIdName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
dateAppro: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
content: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
|
|
||||||
};
|
};
|
||||||
const layout = {
|
const layout = {
|
||||||
labelCol: { span: 9 },
|
labelCol: { span: 9 },
|
||||||
|
|||||||
@ -496,34 +496,29 @@ export const formProps: FormProps = {
|
|||||||
key: '8',
|
key: '8',
|
||||||
field: 'sort',
|
field: 'sort',
|
||||||
label: '显示顺序',
|
label: '显示顺序',
|
||||||
type: 'input',
|
type: 'number',
|
||||||
component: 'InputNumber',
|
component: 'InputNumber',
|
||||||
colProps: { span: 8 },
|
colProps: { span: 8 },
|
||||||
defaultValue: null,
|
defaultValue: null,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
width: '100%',
|
|
||||||
span: '',
|
|
||||||
min:0,
|
|
||||||
defaultValue: '',
|
|
||||||
labelWidthMode: 'fix',
|
labelWidthMode: 'fix',
|
||||||
labelFixWidth: 120,
|
labelFixWidth: 120,
|
||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
width: '100%',
|
||||||
placeholder: '请输入显示顺序',
|
span: '',
|
||||||
|
defaultValue: null,
|
||||||
|
min: 0,
|
||||||
|
max: null,
|
||||||
|
step: 1,
|
||||||
maxlength: null,
|
maxlength: null,
|
||||||
prefix: '',
|
|
||||||
suffix: '',
|
|
||||||
addonBefore: '',
|
|
||||||
addonAfter: '',
|
|
||||||
disabled: false,
|
disabled: false,
|
||||||
allowClear: false,
|
|
||||||
showLabel: true,
|
showLabel: true,
|
||||||
|
controls: true,
|
||||||
required: false,
|
required: false,
|
||||||
|
subTotal: false,
|
||||||
|
isShow: true,
|
||||||
rules: [],
|
rules: [],
|
||||||
events: {},
|
events: {},
|
||||||
isSave: false,
|
|
||||||
isShow: true,
|
|
||||||
scan: false,
|
|
||||||
style: { width: '100%' },
|
style: { width: '100%' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,8 +5,8 @@
|
|||||||
<a-card title="评价基础信息" :bordered="false" >
|
<a-card title="评价基础信息" :bordered="false" >
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="8">
|
<a-col :span="8">
|
||||||
<a-form-item label="客户名称" name="cpCodeName">
|
<a-form-item label="客户名称" name="cpName">
|
||||||
<a-input-search v-model:value="formState.cpCodeName" placeholder="请选择客户" readonly @search="onSearch"/>
|
<a-input-search v-model:value="formState.cpName" placeholder="请选择客户" readonly @search="onSearch"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="8">
|
<a-col :span="8">
|
||||||
@ -121,7 +121,7 @@
|
|||||||
const userInfo = reactive({})
|
const userInfo = reactive({})
|
||||||
const [register, { openModal:openModal}] = useModal();
|
const [register, { openModal:openModal}] = useModal();
|
||||||
const rules: Record<string, Rule[]> = {
|
const rules: Record<string, Rule[]> = {
|
||||||
cpCodeName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
cpName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
gsId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
gsId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
};
|
};
|
||||||
const layout = {
|
const layout = {
|
||||||
@ -201,7 +201,7 @@
|
|||||||
const handleSuccess = (val) => {
|
const handleSuccess = (val) => {
|
||||||
formState.cpCode = val[0].cuCode
|
formState.cpCode = val[0].cuCode
|
||||||
formState.classCode = val[0].classCode
|
formState.classCode = val[0].classCode
|
||||||
formState.cpCodeName = val[0].cuName
|
formState.cpName = val[0].cuName
|
||||||
}
|
}
|
||||||
const gsIdFocus = (val) => {
|
const gsIdFocus = (val) => {
|
||||||
gsIdOld.value = val
|
gsIdOld.value = val
|
||||||
|
|||||||
@ -5,8 +5,8 @@
|
|||||||
<a-card title="评价基础信息" :bordered="false" >
|
<a-card title="评价基础信息" :bordered="false" >
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="8">
|
<a-col :span="8">
|
||||||
<a-form-item label="供应商" name="cpCodeName">
|
<a-form-item label="供应商" name="cpName">
|
||||||
<a-input-search v-model:value="formState.cpCodeName" placeholder="请选择供应商" readonly @search="onSearch"/>
|
<a-input-search v-model:value="formState.cpName" placeholder="请选择供应商" readonly @search="onSearch"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="8">
|
<a-col :span="8">
|
||||||
@ -121,7 +121,7 @@
|
|||||||
const userInfo = reactive({})
|
const userInfo = reactive({})
|
||||||
const [register, { openModal:openModal}] = useModal();
|
const [register, { openModal:openModal}] = useModal();
|
||||||
const rules: Record<string, Rule[]> = {
|
const rules: Record<string, Rule[]> = {
|
||||||
cpCodeName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
cpName: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
gsId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
gsId: [{ required: true, message: "该项为必填项", trigger: 'change' }],
|
||||||
};
|
};
|
||||||
const layout = {
|
const layout = {
|
||||||
@ -201,7 +201,7 @@
|
|||||||
const handleSuccess = (val) => {
|
const handleSuccess = (val) => {
|
||||||
formState.cpCode = val[0].suCode
|
formState.cpCode = val[0].suCode
|
||||||
formState.classCode = val[0].classCode
|
formState.classCode = val[0].classCode
|
||||||
formState.cpCodeName = val[0].suName
|
formState.cpName = val[0].suName
|
||||||
}
|
}
|
||||||
const gsIdFocus = (val) => {
|
const gsIdFocus = (val) => {
|
||||||
gsIdOld.value = val
|
gsIdOld.value = val
|
||||||
|
|||||||
Reference in New Issue
Block a user