| | |
| | | <a-row> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='申请单编号' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder='请输入申请单编号'></a-input> |
| | | <a-input v-model='model.num' placeholder="将由系统生成"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | <a-form-model-item label='申请人' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='applicant'> |
| | | <j-dict-select-tag type='list' v-model='model.applicant' dictCode='sys_user,realname,id' |
| | | placeholder='请选择申请人' disabled /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='办理人' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='handlePerson'> |
| | | <j-dict-select-tag type='list' v-model='model.handlePerson' dictCode='sys_user,realname,id' |
| | | placeholder='请选择办理人' /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | |
| | | <script> |
| | | |
| | | import { getAction } from '@/api/manage' |
| | | import { getAction,httpAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isAchievement:false, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | |
| | | // 新增时子表默认添加几行空数据 |
| | | addDefaultRowNum: 1, |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请输入申请单编号!' } |
| | | ], |
| | | // num: [ |
| | | // { required: true, message: '请输入申请单编号!' } |
| | | // ], |
| | | auditStatus: [ |
| | | { required: true, message: '请输入审核状态!' } |
| | | ] |
| | |
| | | validateRules: [{ required: true, message: '${title}不能为空' }] |
| | | }, |
| | | { |
| | | title: '补办原因', |
| | | title: '申请/补办原因', |
| | | key: 'replaceReason', |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: '实操成绩', |
| | |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: '考试结论', |
| | | key: 'examinationConclusion', |
| | | type: JVXETypes.checkbox, |
| | | customValue: ['Y', 'N'], |
| | | type: JVXETypes.select, |
| | | dictCode:'examination_conclusion', |
| | | width: '200px', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: '状态', |
| | | key: 'status', |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | } |
| | | // { |
| | | // title: '状态', |
| | | // key: 'status', |
| | | // type: JVXETypes.input, |
| | | // width: '200px', |
| | | // placeholder: '请输入${title}', |
| | | // defaultValue: '' |
| | | // } |
| | | ] |
| | | }, |
| | | url: { |
| | | add: '/eam/operationCertificateApply/add', |
| | | edit: '/eam/operationCertificateApply/edit', |
| | | addOperationCertificate:'/eam/operationCertificate/addOperationCertificate', |
| | | queryById: '/eam/operationCertificateApply/queryById', |
| | | operationCertificateApplyDetail: { |
| | | list: '/eam/operationCertificateApply/queryOperationCertificateApplyDetailByMainId' |
| | | } |
| | | }, |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | } |
| | | } |
| | | }, |
| | |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | | initNum(){ |
| | | getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | addBefore() { |
| | | this.operationCertificateApplyDetailTable.dataSource = [] |
| | | }, |
| | |
| | | }, |
| | | validateError(msg) { |
| | | this.$message.error(msg) |
| | | } |
| | | }, |
| | | request(formData) { |
| | | let url = this.url.add, method = 'post' |
| | | if (this.model.id) { |
| | | url = this.url.edit |
| | | method = 'put' |
| | | } |
| | | this.confirmLoading = true |
| | | console.log("formData===>",formData); |
| | | httpAction(url, formData, method).then((res) => { |
| | | if (res.success) { |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | this.$message.success(res.message) |
| | | this.$emit('ok') |
| | | this.close() |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.confirmLoading = false |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |