EnrollmentModal.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <template>
  2. <a-modal
  3. :title="title"
  4. :width="1600"
  5. :visible="visible"
  6. :maskClosable="false"
  7. :confirmLoading="confirmLoading"
  8. @ok="handleOk"
  9. @cancel="handleCancel">
  10. <template slot="footer">
  11. <a-button @click="handleCancel">取消</a-button>
  12. <a-button @click="print()" :href="printMouldUrl" target="_blank" type="primary" style="margin-right: 1%;margin-left: 1%;">打印</a-button>
  13. <a-button @click="handleOk" type="primary" v-if="!show">保存</a-button>
  14. </template>
  15. <a-spin :spinning="confirmLoading">
  16. <!-- 主表单区域 -->
  17. <a-form :form="form">
  18. <a-row>
  19. <a-col :span="8 ">
  20. <a-form-item label="登记人 " :labelCol="labelCol" :wrapperCol="wrapperCol">
  21. <j-popup
  22. v-decorator="['operator', validatorRules.operator]"
  23. :trigger-change="true"
  24. org-fields="realname,depart_name"
  25. dest-fields="operator,operatorDept"
  26. code="user_dept"
  27. @callback="popupCallback"/>
  28. </a-form-item>
  29. </a-col>
  30. <a-col :span="8 ">
  31. <a-form-item label="登记部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
  32. <a-input v-decorator="[ 'operatorDept', validatorRules.operatorDept]" placeholder="请输入登记部门" disabled></a-input>
  33. </a-form-item>
  34. </a-col>
  35. <a-col :span="8 ">
  36. <a-form-item label="登记日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
  37. <j-date placeholder="请选择登记日期" v-decorator="[ 'operateDate', validatorRules.operateDate]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  38. </a-form-item>
  39. </a-col>
  40. <a-col :span="8 ">
  41. <a-form-item label="姓名" :labelCol="labelCol" :wrapperCol="wrapperCol">
  42. <a-input v-decorator="[ 'realname', validatorRules.realname]" placeholder="请输入姓名" :disabled="show"></a-input>
  43. </a-form-item>
  44. </a-col>
  45. <a-col :span="8 ">
  46. <a-form-item label="用户账号" :labelCol="labelCol" :wrapperCol="wrapperCol">
  47. <a-input v-decorator="[ 'username', validatorRules.username]" placeholder="请输入用户账号" disabled></a-input>
  48. </a-form-item>
  49. </a-col>
  50. <a-col :span="8 ">
  51. <a-form-item label="性别" :labelCol="labelCol" :wrapperCol="wrapperCol">
  52. <a-select v-decorator="['gender', validatorRules.gender]" placeholder="请选择性别" :disabled="show">
  53. <a-select-option :value="1">男</a-select-option>
  54. <a-select-option :value="2">女</a-select-option>
  55. </a-select>
  56. </a-form-item>
  57. </a-col>
  58. <a-col :span="8 ">
  59. <a-form-item label="证件类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
  60. <a-select v-decorator="['idType', validatorRules.idType]" placeholder="请选择证件类型" :disabled="show" :getPopupContainer="trigger => trigger.parentNode || document.body">
  61. <a-select-option value="身份证">身份证</a-select-option>
  62. <a-select-option value="其他">其他</a-select-option>
  63. </a-select>
  64. </a-form-item>
  65. </a-col>
  66. <a-col :span="8 ">
  67. <a-form-item label="证件号码" :labelCol="labelCol" :wrapperCol="wrapperCol">
  68. <a-input v-decorator="[ 'idNo', validatorRules.idNo]" placeholder="请输入证件号码" :disabled="show"></a-input>
  69. </a-form-item>
  70. </a-col>
  71. <a-col :span="8 ">
  72. <a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">
  73. <j-date placeholder="请选择生日" v-decorator="[ 'birthday', validatorRules.birthday]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  74. </a-form-item>
  75. </a-col>
  76. <a-col :span="8 ">
  77. <a-form-item label="入职日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
  78. <j-date placeholder="请选择入职日期" v-decorator="[ 'joinDate', validatorRules.joinDate]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  79. </a-form-item>
  80. </a-col>
  81. <a-col :span="8 ">
  82. <a-form-item label="职务" :labelCol="labelCol" :wrapperCol="wrapperCol">
  83. <j-select-position placeholder="请选择职务" :multiple="false" v-decorator="['post', validatorRules.post]" :disabled="show"/>
  84. </a-form-item>
  85. </a-col>
  86. <a-col :span="8 ">
  87. <a-form-item label="职级" :labelCol="labelCol" :wrapperCol="wrapperCol">
  88. <a-input v-decorator="[ 'postLevel', validatorRules.postLevel]" placeholder="请输入职级" :disabled="show"></a-input>
  89. </a-form-item>
  90. </a-col>
  91. <a-col :span="8 ">
  92. <a-form-item label="学历" :labelCol="labelCol" :wrapperCol="wrapperCol">
  93. <a-select v-decorator="['education', validatorRules.education]" placeholder="请选择学历" :disabled="show">
  94. <a-select-option value="大专">大专</a-select-option>
  95. <a-select-option value="本科">本科</a-select-option>
  96. <a-select-option value="硕士">硕士</a-select-option>
  97. <a-select-option value="博士">博士</a-select-option>
  98. </a-select>
  99. </a-form-item>
  100. </a-col>
  101. <a-col :span="8 ">
  102. <a-form-item label="岗位类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
  103. <a-select v-decorator="['positionType', validatorRules.positionType]" placeholder="请选择岗位类型" :disabled="show">
  104. <a-select-option value="管理类">管理类</a-select-option>
  105. <a-select-option value="专技类">专技类</a-select-option>
  106. </a-select>
  107. </a-form-item>
  108. </a-col>
  109. <a-col :span="8 ">
  110. <a-form-item label="部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
  111. <j-select-depart v-decorator="['departIds', validatorRules.departIds]" :trigger-change="true" :disabled="show"/>
  112. </a-form-item>
  113. </a-col>
  114. <a-col :span="8 ">
  115. <a-form-item label="手机号码" :labelCol="labelCol" :wrapperCol="wrapperCol">
  116. <a-input v-decorator="[ 'mobile', validatorRules.mobile]" placeholder="请输入手机号码" :disabled="show"></a-input>
  117. </a-form-item>
  118. </a-col>
  119. <a-col :span="8 ">
  120. <a-form-item label="座机" :labelCol="labelCol" :wrapperCol="wrapperCol">
  121. <a-input v-decorator="[ 'phone', validatorRules.phone]" placeholder="请输入座机" :disabled="show"></a-input>
  122. </a-form-item>
  123. </a-col>
  124. <a-col :span="8 ">
  125. <a-form-item label="联系地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
  126. <a-input v-decorator="[ 'address', validatorRules.address]" placeholder="请输入联系地址" :disabled="show"></a-input>
  127. </a-form-item>
  128. </a-col>
  129. <a-col :span="8 ">
  130. <a-form-item label="试用结束日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
  131. <j-date placeholder="请选择试用结束日期" v-decorator="[ 'probationEnd', validatorRules.probationEnd]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  132. </a-form-item>
  133. </a-col>
  134. <a-col :span="8 ">
  135. <a-form-item label="合同起始日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
  136. <j-date placeholder="请选择合同起始日期" @change="changeStartTime" v-decorator="[ 'contractStart', validatorRules.contractStart]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  137. </a-form-item>
  138. </a-col>
  139. <a-col :span="8 ">
  140. <a-form-item label="合同结束日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
  141. <j-date placeholder="请选择合同结束日期" @change="changeEndTime" v-decorator="[ 'contractEnd', validatorRules.contractEnd]" :trigger-change="true" style="width: 100%" :disabled="show"/>
  142. </a-form-item>
  143. </a-col>
  144. <a-col :span="8 ">
  145. <a-form-item label="身份" :labelCol="labelCol" :wrapperCol="wrapperCol">
  146. <a-radio-group v-decorator="[ 'identity', validatorRules.identity]" :disabled="show">
  147. <a-radio :value="1">普通用户</a-radio>
  148. <a-radio :value="2">上级</a-radio>
  149. </a-radio-group>
  150. </a-form-item>
  151. </a-col>
  152. <a-col :span="8 ">
  153. <a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol">
  154. <a-input v-decorator="[ 'remark', validatorRules.remark]" placeholder="请输入备注" :disabled="show"></a-input>
  155. </a-form-item>
  156. </a-col>
  157. <a-col :span="8 ">
  158. <a-form-item label="签字图片" :labelCol="labelCol" :wrapperCol="wrapperCol">
  159. <j-upload v-decorator="['signature', validatorRules.signature]" fileType="image" :trigger-change="true" :disabled="show"></j-upload>
  160. </a-form-item>
  161. </a-col>
  162. <a-col :span="8 ">
  163. <a-form-item label="附件" :labelCol="labelCol" :wrapperCol="wrapperCol">
  164. <j-upload v-decorator="['attachment', validatorRules.attachment]" fileType="file" :trigger-change="true" :disabled="show"></j-upload>
  165. </a-form-item>
  166. </a-col>
  167. </a-row>
  168. </a-form>
  169. <!-- 子表单区域 -->
  170. <a-tabs v-model="activeKey" @change="handleChangeTabs">
  171. <a-tab-pane tab="联系人" :key="refKeys[0]" :forceRender="true">
  172. <j-editable-table
  173. :ref="refKeys[0]"
  174. :loading="enrollmentContactTable.loading"
  175. :columns="enrollmentContactTable.columns"
  176. :dataSource="enrollmentContactTable.dataSource"
  177. :maxHeight="300"
  178. :rowNumber="true"
  179. :rowSelection="true"
  180. :actionButton="!show"/>
  181. </a-tab-pane>
  182. <a-tab-pane tab="工作经历" :key="refKeys[1]" :forceRender="true">
  183. <j-editable-table
  184. :ref="refKeys[1]"
  185. :loading="enrollmentJobTable.loading"
  186. :columns="enrollmentJobTable.columns"
  187. :dataSource="enrollmentJobTable.dataSource"
  188. :maxHeight="300"
  189. :rowNumber="true"
  190. :rowSelection="true"
  191. :actionButton="!show"/>
  192. </a-tab-pane>
  193. <a-tab-pane tab="学习经历" :key="refKeys[2]" :forceRender="true">
  194. <j-editable-table
  195. :ref="refKeys[2]"
  196. :loading="enrollmentEduTable.loading"
  197. :columns="enrollmentEduTable.columns"
  198. :dataSource="enrollmentEduTable.dataSource"
  199. :maxHeight="300"
  200. :rowNumber="true"
  201. :rowSelection="true"
  202. :actionButton="!show"/>
  203. </a-tab-pane>
  204. </a-tabs>
  205. </a-spin>
  206. </a-modal>
  207. </template>
  208. <script>
  209. import pick from 'lodash.pick'
  210. import { FormTypes,getRefPromise } from '@/utils/JEditableTableUtil'
  211. import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
  212. import { validateDuplicateValue } from '@/utils/util'
  213. import JDate from '@/components/jeecg/JDate'
  214. import JUpload from '@/components/jeecg/JUpload'
  215. import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
  216. import JDictSelectTag from "@/components/dict/JDictSelectTag"
  217. import JSelectPosition from '@/components/jeecgbiz/JSelectPosition'
  218. export default {
  219. name: 'EnrollmentModal',
  220. mixins: [JEditableTableMixin],
  221. components: {
  222. JDate,
  223. JUpload,
  224. JSelectDepart,
  225. JDictSelectTag,
  226. JSelectPosition
  227. },
  228. data() {
  229. return {
  230. show:false,
  231. labelCol: {
  232. span: 6
  233. },
  234. wrapperCol: {
  235. span: 16
  236. },
  237. labelCol2: {
  238. span: 3
  239. },
  240. wrapperCol2: {
  241. span: 20
  242. },
  243. // 新增时子表默认添加几行空数据
  244. addDefaultRowNum: 1,
  245. printMouldUrl:'',
  246. validatorRules: {
  247. operator: {rules: [
  248. {required: true, message: '请输入登记人 !'},
  249. ]},
  250. operatorDept: {rules: [
  251. ]},
  252. operateDate: {rules: [
  253. {required: true, message: '请输入登记日期!'},
  254. ]},
  255. realname: {rules: [
  256. ]},
  257. username: {rules: [
  258. ]},
  259. gender: {rules: [
  260. {required: true, message: '请输入性别!'},
  261. ]},
  262. idType: {rules: [
  263. {required: true, message: '请输入证件类型!'},
  264. ]},
  265. idNo: {rules: [
  266. {required: true, message: '请输入证件号码!'},{validator: this.validateIdCard}
  267. ]},
  268. birthday: {rules: [
  269. {required: true, message: '请输入生日!'},
  270. ]},
  271. joinDate: {rules: [
  272. {required: true, message: '请输入入职日期!'},
  273. ]},
  274. post: {rules: [
  275. {required: true, message: '请输入职务!'},
  276. ]},
  277. postLevel: {rules: [
  278. {required: true, message: '请输入职级!'},
  279. ]},
  280. education: {rules: [
  281. {required: true, message: '请选择学历!'},
  282. ]},
  283. positionType: {rules: [
  284. {required: true, message: '请输入岗位类型!'},
  285. ]},
  286. departIds: {rules: [
  287. {required: true, message: '请输入部门!'},
  288. ]},
  289. mobile: {rules: [{ validator: this.validatePhone }
  290. ]},
  291. phone: {rules: [
  292. { pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' }
  293. ]},
  294. address: {rules: [
  295. ]},
  296. probationEnd: {rules: [
  297. {required: true, message: '请输入试用结束日期!'},
  298. ]},
  299. contractStart: {rules: [
  300. {required: true, message: '请输入合同起始日期!'},
  301. ]},
  302. contractEnd: {rules: [
  303. {required: true, message: '请输入合同结束日期!'},
  304. ]},
  305. remark: {rules: [
  306. ]},
  307. identity: {rules: [
  308. ]},
  309. signature: {rules: [
  310. ]},
  311. attachment: {rules: [
  312. ]},
  313. },
  314. refKeys: ['enrollmentContact', 'enrollmentJob', 'enrollmentEdu', ],
  315. tableKeys:['enrollmentContact', 'enrollmentJob', 'enrollmentEdu', ],
  316. activeKey: 'enrollmentContact',
  317. // 工作经历
  318. enrollmentJobTable: {
  319. loading: false,
  320. dataSource: [],
  321. columns: [
  322. {
  323. title: '单位',
  324. key: 'company',
  325. type: FormTypes.input,
  326. width:"200px",
  327. placeholder: '请输入${title}',
  328. defaultValue: '',
  329. },
  330. {
  331. title: '职位',
  332. key: 'position',
  333. type: FormTypes.input,
  334. width:"200px",
  335. placeholder: '请输入${title}',
  336. defaultValue: '',
  337. },
  338. {
  339. title: '起始日期',
  340. key: 'startDate',
  341. type: FormTypes.date,
  342. width:"200px",
  343. placeholder: '请输入${title}',
  344. defaultValue: '',
  345. },
  346. {
  347. title: '截止日期',
  348. key: 'endDate',
  349. type: FormTypes.date,
  350. width:"200px",
  351. placeholder: '请输入${title}',
  352. defaultValue: '',
  353. },
  354. ]
  355. },
  356. // 联系人
  357. enrollmentContactTable: {
  358. loading: false,
  359. dataSource: [],
  360. columns: [
  361. {
  362. title: '姓名',
  363. key: 'name',
  364. type: FormTypes.input,
  365. width:"200px",
  366. placeholder: '请输入${title}',
  367. defaultValue: '',
  368. },
  369. {
  370. title: '关系',
  371. key: 'relation',
  372. type: FormTypes.input,
  373. width:"200px",
  374. placeholder: '请输入${title}',
  375. defaultValue: '',
  376. },
  377. {
  378. title: '性别',
  379. key: 'sex',
  380. width:"200px",
  381. placeholder: '请输入${title}',
  382. defaultValue: '',
  383. type: FormTypes.select,
  384. options: [ // 下拉选项
  385. { title: '男', value: '1' },
  386. { title: '女', value: '2' },
  387. ],
  388. },
  389. {
  390. title: '联系方式',
  391. key: 'phone',
  392. type: FormTypes.input,
  393. width:"200px",
  394. placeholder: '请输入${title}',
  395. defaultValue: '',
  396. },
  397. {
  398. title: '职业',
  399. key: 'career',
  400. type: FormTypes.input,
  401. width:"200px",
  402. placeholder: '请输入${title}',
  403. defaultValue: '',
  404. },
  405. ]
  406. },
  407. // 学习经历
  408. enrollmentEduTable: {
  409. loading: false,
  410. dataSource: [],
  411. columns: [
  412. {
  413. title: '学校',
  414. key: 'school',
  415. type: FormTypes.input,
  416. width:"200px",
  417. placeholder: '请输入${title}',
  418. defaultValue: '',
  419. },
  420. {
  421. title: '起始日期',
  422. key: 'startDate',
  423. type: FormTypes.date,
  424. width:"200px",
  425. placeholder: '请输入${title}',
  426. defaultValue: '',
  427. },
  428. {
  429. title: '截止日期',
  430. key: 'endDate',
  431. type: FormTypes.date,
  432. width:"200px",
  433. placeholder: '请输入${title}',
  434. defaultValue: '',
  435. },
  436. ]
  437. },
  438. id:'',
  439. url: {
  440. add: "/oa/enrollment/add",
  441. edit: "/oa/enrollment/edit",
  442. enrollmentJob: {
  443. list: '/oa/enrollment/queryEnrollmentJobByMainId'
  444. },
  445. enrollmentContact: {
  446. list: '/oa/enrollment/queryEnrollmentContactByMainId'
  447. },
  448. enrollmentEdu: {
  449. list: '/oa/enrollment/queryEnrollmentEduByMainId'
  450. },
  451. }
  452. }
  453. },
  454. methods: {
  455. getAllTable() {
  456. let values = this.tableKeys.map(key => getRefPromise(this, key))
  457. return Promise.all(values)
  458. },
  459. validateIdCard(rule, value, callback) {
  460. if (!value || new RegExp(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/).test(value)) {
  461. callback();
  462. } else {
  463. callback("您的身份证号码格式不正确!");
  464. }
  465. },
  466. validatePhone (rule, value, callback) {
  467. if (!value) {
  468. callback()
  469. } else {
  470. // update-begin--Author:kangxiaolin Date:20190826 for:[05] 手机号不支持199号码段--------------------
  471. if (new RegExp(/^1[3|4|5|7|8|9][0-9]\d{8}$/).test(value)) {
  472. // update-end--Author:kangxiaolin Date:20190826 for:[05] 手机号不支持199号码段--------------------
  473. // var params = {
  474. // tableName: 'sys_user',
  475. // fieldName: 'phone',
  476. // fieldVal: value,
  477. // dataId: this.userId
  478. // }
  479. // duplicateCheck(params).then(res => {
  480. // if (res.success) {
  481. // callback()
  482. // } else {
  483. // callback('手机号已存在!')
  484. // }
  485. // })
  486. } else {
  487. callback('请输入正确格式的手机号码!')
  488. }
  489. }
  490. },
  491. /** 调用完edit()方法之后会自动调用此方法 */
  492. editAfter(record,stat2) {
  493. this.id = record.id
  494. this.show = false
  495. if(stat2=='detail'){
  496. this.show = true
  497. }
  498. let fieldval = pick(this.model,'operator','operatorDept','operateDate','realname','username','gender','idType','idNo','birthday','joinDate','post','postLevel','education','positionType','departIds','mobile','phone','address','probationEnd','contractStart','contractEnd','remark','identity','signature','attachment')
  499. this.$nextTick(() => {
  500. this.form.setFieldsValue(fieldval)
  501. })
  502. // 加载子表数据
  503. if (this.model.id) {
  504. let params = { id: this.model.id }
  505. this.requestSubTableData(this.url.enrollmentJob.list, params, this.enrollmentJobTable)
  506. this.requestSubTableData(this.url.enrollmentContact.list, params, this.enrollmentContactTable)
  507. this.requestSubTableData(this.url.enrollmentEdu.list, params, this.enrollmentEduTable)
  508. }
  509. },
  510. /** 整理成formData */
  511. classifyIntoFormData(allValues) {
  512. let main = Object.assign(this.model, allValues.formValue)
  513. return {
  514. ...main, // 展开
  515. enrollmentContactList: allValues.tablesValue[0].values,
  516. enrollmentJobList: allValues.tablesValue[1].values,
  517. enrollmentEduList: allValues.tablesValue[2].values,
  518. }
  519. },
  520. print(){
  521. this.printMouldUrl = 'http://172.18.91.36:8081/jeecg-boot/jmreport/shareView/835754802514579456'+'?id='+this.id
  522. },
  523. validateError(msg){
  524. this.$message.error(msg)
  525. },
  526. popupCallback(row){
  527. this.form.setFieldsValue(pick(row,'operator','operatorDept','operateDate','realname','username','gender','idType','idNo','birthday','joinDate','post','postLevel','education','positionType','departIds','mobile','phone','address','probationEnd','contractStart','contractEnd','remark','identity','signature','attachment'))
  528. },
  529. changeStartTime(data){
  530. var end = new Date((this.form.getFieldValue('contractEnd')).replace(/\-/g, "\/"));
  531. var start = new Date(data.replace(/\-/g, "\/"));
  532. if(this.form.getFieldValue('contractEnd')!=""&&data!=""&&start >=end)
  533. {
  534. this.$nextTick(() => {
  535. this.form.setFieldsValue({contractStart: '' })
  536. this.$forceUpdate()
  537. })
  538. this.$message.error("合同开始时间不能大于合同结束时间!")
  539. return false;
  540. }
  541. },
  542. changeEndTime(data){
  543. var start = new Date((this.form.getFieldValue('contractStart')).replace(/\-/g, "\/"));
  544. var end = new Date(data.replace(/\-/g, "\/"));
  545. if(this.form.getFieldValue('contractStart')!=""&&data!=""&&start >=end)
  546. {
  547. this.$nextTick(() => {
  548. this.form.setFieldsValue({contractEnd: '' })
  549. this.$forceUpdate()
  550. })
  551. this.$message.error("合同开始时间不能大于合同结束时间!")
  552. return false;
  553. }
  554. }
  555. }
  556. }
  557. </script>
  558. <style scoped lang="less">
  559. /deep/ .ant-form-item-control {
  560. height: 40px;
  561. }
  562. </style>