| @@ -392,13 +392,18 @@ export default { | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| getList(){ | getList(){ | ||||
| queryList({yhzgx:"02",searchValue:"NHDM,HZXM"}).then(response => { | |||||
| queryList({yhzgx:"02",searchValue:"NHDM,HZXM,HZZJHM,nhdm,HZZJLX,TXDZ,dept_id,dept_name"}).then(response => { | |||||
| this.nhdmDictionaries = response.rows.map(function(item){ | this.nhdmDictionaries = response.rows.map(function(item){ | ||||
| item.nhValue = item.hzxm + item.nhdm; | item.nhValue = item.hzxm + item.nhdm; | ||||
| return { | return { | ||||
| nhValue:item.nhValue, | nhValue:item.nhValue, | ||||
| hzxm:item.hzxm, | hzxm:item.hzxm, | ||||
| txdz:item.txdz, | |||||
| nhdm:item.nhdm, | nhdm:item.nhdm, | ||||
| zjhm:item.hzzjhm, | |||||
| zjlx:item.hzzjlx, | |||||
| deptId:item.deptId, | |||||
| deptName:item.deptName | |||||
| }; | }; | ||||
| }); | }); | ||||
| this.newList = this.nhdmDictionaries; | this.newList = this.nhdmDictionaries; | ||||
| @@ -423,9 +428,6 @@ export default { | |||||
| hzzjhm:item.zjhm, | hzzjhm:item.zjhm, | ||||
| nhdm:item.nhdm, | nhdm:item.nhdm, | ||||
| hzzjlx:item.zjlx, | hzzjlx:item.zjlx, | ||||
| lxdh:item.lxdh, | |||||
| hklx:item.hklx, | |||||
| sfbjtjjzzcy:item.sfbjtjjzzcy, | |||||
| deptId:item.deptId, | deptId:item.deptId, | ||||
| deptName:item.deptName, | deptName:item.deptName, | ||||
| } | } | ||||
| @@ -456,17 +458,29 @@ export default { | |||||
| }, | }, | ||||
| shyqrdmxmChange(val){ | shyqrdmxmChange(val){ | ||||
| this.$set(this.form, "nhdm", val.nhdm); | this.$set(this.form, "nhdm", val.nhdm); | ||||
| this.$set(this.form, "shyqrdbzjhm", val.hzzjhm); | |||||
| this.$set(this.form, "shyqrdbzjhm", val.zjhm); | |||||
| this.$set(this.form, "shyqrdbxm", val.hzxm); | this.$set(this.form, "shyqrdbxm", val.hzxm); | ||||
| this.$set(this.form, "dh", val.lxdh); | |||||
| this.$set(this.form, "xb", val.sqrxb); | |||||
| this.$set(this.form, "hklx", val.hklx); | |||||
| this.$set(this.form, "sfbncjtjjzzcy", val.sfbjtjjzzcy); | |||||
| this.$set(this.form, "shyqrdbzjlx", val.zjlx); | |||||
| this.$set(this.form, "dz", val.txdz); | |||||
| let sex = this.parseIDCard(val.zjhm); | |||||
| if(sex === 0){ | |||||
| sex = 1; | |||||
| }else{ | |||||
| sex = 2 | |||||
| } | |||||
| this.$set(this.form, "xb", sex); | |||||
| listNmfw({zjddm:this.zjdzdxx.zjddm}).then(response => { | listNmfw({zjddm:this.zjdzdxx.zjddm}).then(response => { | ||||
| this.nmfwDictionaries = response.rows; | this.nmfwDictionaries = response.rows; | ||||
| }); | }); | ||||
| this.shownhdm = false; | this.shownhdm = false; | ||||
| }, | }, | ||||
| parseIDCard(idcard) { | |||||
| if(!idcard) | |||||
| return false; | |||||
| console.info(idcard) | |||||
| let sex = (parseInt(idcard.substr(16, 1)) % 2) ^ 1; | |||||
| return sex; | |||||
| }, | |||||
| submitzjd(){ | submitzjd(){ | ||||
| this.$refs.form.validate().then(() => { | this.$refs.form.validate().then(() => { | ||||
| if(this.form.id == null){ | if(this.form.id == null){ | ||||