|
|
|
@ -44,8 +44,8 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input type="text" v-model="scope.row.mdIds" maxlength="50" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
<SelectStudy v-model="scope.row.mdIds" :selectkey="scope.row.id + ''" |
|
|
|
@change="selectStudyChangeBatch" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('form.remark')" align="center" width="250px"> |
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.mjy.nd')"> |
|
|
|
<el-input type="text" v-model="form.nd" maxlength="50" disabled> <template slot="append">{{ form.nddw |
|
|
|
}}</template> |
|
|
|
}}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -108,7 +108,7 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.mjy.ckjz')"> |
|
|
|
<el-input type="text" v-model="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw |
|
|
|
}}</template> |
|
|
|
}}</template> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -121,7 +121,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="$t('page.business.resource.mjy.md')" prop="mdIds"> |
|
|
|
<SelectStudy v-model="form.mdIds" @change="selectStudyChange" /> |
|
|
|
<SelectStudy v-model="form.mdIds" @change="selectStudyChange" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
@ -221,7 +221,7 @@ import SelectStudy from '@/views/business/comps/select/SelectStudy'; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "Ff", |
|
|
|
components: { SelectList, SelectDeptUser,SelectStudy }, |
|
|
|
components: { SelectList, SelectDeptUser, SelectStudy }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isBatch: false, |
|
|
|
@ -270,7 +270,7 @@ export default { |
|
|
|
message: ' ', |
|
|
|
trigger: 'blur' |
|
|
|
}], |
|
|
|
|
|
|
|
|
|
|
|
ckmzdw: [{ |
|
|
|
required: true, |
|
|
|
message: ' ', |
|
|
|
@ -309,19 +309,25 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
selectStudyChange(val){ |
|
|
|
this.form.mdMcs=val.name |
|
|
|
this.form.mdOther=val.other |
|
|
|
selectStudyChange(val) { |
|
|
|
this.form.mdMcs = val.name |
|
|
|
this.form.mdOther = val.other |
|
|
|
}, |
|
|
|
selectStudyChangeBatch(val) { |
|
|
|
if (val && val.id && val.id !== '') { |
|
|
|
const _index = _.findIndex(this.selectList, function (o) { return o.id + '' === val.key }) |
|
|
|
if (_index > -1) { |
|
|
|
this.selectList[_index].mdMcs = val.name |
|
|
|
this.selectList[_index].mdOther = val.mdOther |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSc(row) { |
|
|
|
const that = this |
|
|
|
this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { |
|
|
|
return delDept(row.deptId) |
|
|
|
}).then(() => { |
|
|
|
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) |
|
|
|
this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { |
|
|
|
const _index = _.findIndex(this.selectList, function (o) { return o.id === row.id }) |
|
|
|
if (_index > -1) { |
|
|
|
that.selectList.splice(_index, 1) |
|
|
|
that.form.ids = that.selectList.map(item => item.id) |
|
|
|
this.selectList.splice(_index, 1) |
|
|
|
this.form.ids = this.selectList.map(item => item.id) |
|
|
|
} |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
@ -331,15 +337,25 @@ export default { |
|
|
|
this.form.ids = val.map(item => item.id) |
|
|
|
let tmp = [] |
|
|
|
_.forEach(val, function (item) { |
|
|
|
let a = item |
|
|
|
a.ckmzdw = a.kcdw |
|
|
|
a.zytj = null |
|
|
|
a.ckmz = null |
|
|
|
a.mdIds = null |
|
|
|
a.mdMcs = null |
|
|
|
a.mdOther = null |
|
|
|
a.remark = null |
|
|
|
tmp.push(a) |
|
|
|
tmp.push({ |
|
|
|
id: item.id, |
|
|
|
mc: item.mc, |
|
|
|
bh: item.bh, |
|
|
|
nd: item.nd, |
|
|
|
nddw: item.nddw, |
|
|
|
kc: item.kc, |
|
|
|
kcdw: item.kcdw, |
|
|
|
cctj: item.cctj, |
|
|
|
sxrq: item.sxrq, |
|
|
|
ccwz: item.ccwz, |
|
|
|
ckmzdw:item.kcdw, |
|
|
|
zytj: null, |
|
|
|
ckmz: null, |
|
|
|
mdIds: null, |
|
|
|
mdMcs: null, |
|
|
|
mdOther: null, |
|
|
|
remark: null |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.selectList = tmp |
|
|
|
this.open = true |
|
|
|
|