|
|
@ -1,11 +1,23 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<!-- 归还弹窗 --> |
|
|
<!-- 归还弹窗 --> |
|
|
<el-dialog :title="$t('page.business.resource.gyzj.guihuan')" :visible.sync="open" width="800px" append-to-body |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('page.business.resource.gyzj.sqguihuan')" :visible.sync="open" width="800px" append-to-body |
|
|
:close-on-click-modal="false"> |
|
|
:close-on-click-modal="false"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.mc')"> |
|
|
|
|
|
<el-input type="text" v-model="form.mc" maxlength="50" disabled /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.bh')"> |
|
|
|
|
|
<el-input type="text" v-model="form.bh" maxlength="50" disabled /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.sxrq')"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.sxrq')"> |
|
|
<el-input type="text" v-model="form.sxrq" maxlength="50" disabled /> |
|
|
<el-input type="text" v-model="form.sxrq" maxlength="50" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -13,7 +25,7 @@ |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.nd')"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.nd')"> |
|
|
<el-input type="text" v-model="form.nd" maxlength="50" disabled> <template slot="append">{{ form.nddw |
|
|
<el-input type="text" v-model="form.nd" maxlength="50" disabled> <template slot="append">{{ form.nddw |
|
|
}}</template> |
|
|
|
|
|
|
|
|
}}</template> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -34,7 +46,7 @@ |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ckjz')"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ckjz')"> |
|
|
<el-input type="text" v-model="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw |
|
|
<el-input type="text" v-model="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw |
|
|
}}</template> |
|
|
|
|
|
|
|
|
}}</template> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -47,15 +59,15 @@ |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ckmz')"> |
|
|
|
|
|
<el-input type="text" v-model="form.ckmz" maxlength="50" disabled> <template slot="append">{{ form.ckmzdw |
|
|
|
|
|
}}</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.md')"> |
|
|
|
|
|
<el-input type="text" :value="(form.mdOthers && form.mdOthers != '') ? (form.mdMcs + ',' + form.mdMcs) : form.mdMcs" |
|
|
|
|
|
maxlength="50" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.md')"> |
|
|
|
|
|
<el-input type="text" :value="(form.mdOthers&&form.mdOthers!='')?(form.mdMcs+','+form.mdMcs):form.mdMcs" maxlength="50" disabled /> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.zytj')" prop="ghzytj"> |
|
|
|
|
|
<el-input type="text" v-model="form.ghzytj" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -72,37 +84,6 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.zytj')" prop="ghzytj"> |
|
|
|
|
|
<el-input type="text" v-model="form.ghzytj" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.rkmz')" prop="rkmz"> |
|
|
|
|
|
<el-input type="number" v-model="form.rkmz" maxlength="50" :placeholder="$t('form.placeholderInput')"> |
|
|
|
|
|
<template slot="append">{{ form.ckldw }}</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsl')" prop="jsl"> |
|
|
|
|
|
<el-input type="number" v-model="form.jsl" maxlength="50" disabled |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')"> |
|
|
|
|
|
<template slot="append">{{ form.ckldw }}</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.syl')" prop="syl"> |
|
|
|
|
|
<el-input type="number" v-model="form.syl" maxlength="50" :placeholder="$t('form.placeholderInput')"> |
|
|
|
|
|
<template slot="append">{{ form.ckldw }}</template> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.remark')" prop="remark"> |
|
|
<el-form-item :label="$t('form.remark')" prop="remark"> |
|
|
<el-input type="textarea" v-model="form.remark" :rows="5" maxlength="500" |
|
|
<el-input type="textarea" v-model="form.remark" :rows="5" maxlength="500" |
|
|
@ -111,59 +92,28 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr1Id')"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr1Id')"> |
|
|
<el-input type="text" v-model="form.ghr1Mc" maxlength="50" disabled /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr2Id')"> |
|
|
|
|
|
<el-input type="text" v-model="form.ghr2Mc" maxlength="50" disabled /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr1Id')+$t('form.password')" prop="ghr1mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.ghr1mm" maxlength="20" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr2Id')+$t('form.password')" prop="ghr2mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.ghr2mm" maxlength="20" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<!-- <el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsr1Id')" prop="jsr1Id"> |
|
|
|
|
|
<SelectDeptUser v-model="form.jsr1Id" key="jsr1Id" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> --> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsr1Id')"> |
|
|
|
|
|
<el-input type="text" v-model="nickName" maxlength="50" disabled /> |
|
|
<el-input type="text" v-model="nickName" maxlength="50" disabled /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsr1Id') + $t('form.password')" prop="jsr1mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.jsr1mm" maxlength="20" |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr1Id') + $t('form.password')" prop="ghr1mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.ghr1mm" maxlength="20" |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsr2Id')" prop="jsr2Id"> |
|
|
|
|
|
<SelectDeptUser v-model="form.jsr2Id" key="jsr2Id" /> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr2Id')" prop="ghr2Id"> |
|
|
|
|
|
<SelectDeptUser v-model="form.ghr2Id" key="ghr2Id" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item :label="$t('page.business.resource.gyzj.jsr2Id') + $t('form.password')" prop="jsr2mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.jsr2mm" maxlength="20" |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.resource.gyzj.ghr2Id') + $t('form.password')" prop="ghr2mm"> |
|
|
|
|
|
<el-input type="password" v-model="form.ghr2mm" maxlength="20" |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -186,7 +136,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { gh, info } from "@/api/business/gyzj/gyzj" |
|
|
|
|
|
|
|
|
import { sqgh, info } from "@/api/business/gyzj/gyzj" |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
|
|
|
|
|
|
@ -317,24 +267,7 @@ export default { |
|
|
this.reset() |
|
|
this.reset() |
|
|
let that = this |
|
|
let that = this |
|
|
info({ id: row.id }).then(response => { |
|
|
info({ id: row.id }).then(response => { |
|
|
that.form.id = response.data.id |
|
|
|
|
|
that.form.mc = response.data.mc |
|
|
|
|
|
that.form.bh = response.data.bh |
|
|
|
|
|
that.form.sxrq = response.data.sxrq |
|
|
|
|
|
that.form.nd = response.data.nd |
|
|
|
|
|
that.form.nddw = response.data.nddw |
|
|
|
|
|
that.form.cctj = response.data.cctj |
|
|
|
|
|
that.form.ccwz = response.data.ccwz |
|
|
|
|
|
that.form.ckl = response.data.ckl |
|
|
|
|
|
that.form.ckldw = response.data.ckldw |
|
|
|
|
|
that.form.ffrq = response.data.ffrq |
|
|
|
|
|
that.form.ckmz = response.data.ckmz |
|
|
|
|
|
that.form.ckmzdw = response.data.ckldw |
|
|
|
|
|
that.form.mdIds = response.data.mdIds |
|
|
|
|
|
that.form.ghr1Mc = response.data.ghr1Mc |
|
|
|
|
|
that.form.ghr2Mc = response.data.ghr2Mc |
|
|
|
|
|
that.form.ghr1Id = response.data.ghr1Id |
|
|
|
|
|
that.form.ghr2Id = response.data.ghr2Id |
|
|
|
|
|
|
|
|
that.form = _.merge({}, this.form, response.data) |
|
|
that.open = true |
|
|
that.open = true |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -342,7 +275,7 @@ export default { |
|
|
this.$refs["form"].validate(valid => { |
|
|
this.$refs["form"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
gh(this.form).then(response => { |
|
|
|
|
|
|
|
|
sqgh(this.form).then(response => { |
|
|
this.open = false |
|
|
this.open = false |
|
|
this.$emit('callback') |
|
|
this.$emit('callback') |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
|