|
|
@ -29,7 +29,7 @@ G |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<el-button @click="saveNext">保存</el-button> |
|
|
<el-button @click="saveNext">保存</el-button> |
|
|
<el-button type="primary" @click="tj">提交</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="openSubmit = true">提交</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -66,6 +66,65 @@ G |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="提交预设表" :visible.sync="openSubmit" width="500px" append-to-body :close-on-click-modal="false"> |
|
|
|
|
|
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item label="审核人员" prop="shryId"> |
|
|
|
|
|
<SelectDeptUser v-model="form.shryId" :name="form.shryMc" key="shryId" @change="selectDeptUserChange" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item label="是否需要试验负责人审核" prop="fzrsh"> |
|
|
|
|
|
<el-radio-group v-model="form.fzrsh"> |
|
|
|
|
|
<el-radio :label="10">是</el-radio> |
|
|
|
|
|
<el-radio :label="1">否</el-radio> |
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
|
|
|
<el-input type="text" :value="form.qmyy" maxlength="50" disabled |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('form.remark')" prop="remark"> |
|
|
|
|
|
<el-input type="textarea" v-model="form.getReason" :rows="2" maxlength="500" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('form.signer')"> |
|
|
|
|
|
<el-input type="text" v-model="nickName" maxlength="50" disabled |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
|
|
|
<el-input type="password" v-model="form.qmrmm" maxlength="20" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button type="primary" @click="tj">{{ $t('form.confirm') }}</el-button> |
|
|
|
|
|
<el-button @click="openSubmit = false">{{ $t('form.cancel') }}</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -73,15 +132,34 @@ G |
|
|
import { studyFormPre_bc, studyFormPre_tj, studyFormPre_info } from "@/api/business/study/studyFormPre" |
|
|
import { studyFormPre_bc, studyFormPre_tj, studyFormPre_info } from "@/api/business/study/studyFormPre" |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
|
|
|
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "Bj", |
|
|
name: "Bj", |
|
|
components: { SelectTemplate }, |
|
|
|
|
|
|
|
|
components: { SelectTemplate, SelectDeptUser }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
open: false, |
|
|
open: false, |
|
|
showIndex: 1, |
|
|
showIndex: 1, |
|
|
form: {}, |
|
|
form: {}, |
|
|
|
|
|
openSubmit: false, |
|
|
|
|
|
rulesApprove: { |
|
|
|
|
|
qmrmm: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}], |
|
|
|
|
|
fzrsh: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}], |
|
|
|
|
|
shryId: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
rules: { |
|
|
rules: { |
|
|
bdmc: [{ |
|
|
bdmc: [{ |
|
|
required: true, |
|
|
required: true, |
|
|
@ -128,10 +206,16 @@ export default { |
|
|
bdsm: null, |
|
|
bdsm: null, |
|
|
templateId: null, |
|
|
templateId: null, |
|
|
templateMc: null, |
|
|
templateMc: null, |
|
|
bdnr: null |
|
|
|
|
|
|
|
|
bdnr: null, |
|
|
|
|
|
fzrsh: null, |
|
|
|
|
|
shryId: null, |
|
|
|
|
|
shryMc: null, |
|
|
} |
|
|
} |
|
|
this.resetForm("form") |
|
|
this.resetForm("form") |
|
|
}, |
|
|
}, |
|
|
|
|
|
selectDeptUserChange(val) { |
|
|
|
|
|
this.form.shryMc = val.name |
|
|
|
|
|
}, |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
this.reset() |
|
|
this.reset() |
|
|
this.showIndex = 1 |
|
|
this.showIndex = 1 |
|
|
@ -139,6 +223,7 @@ export default { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormPre_info({ id: row.id }).then(response => { |
|
|
studyFormPre_info({ id: row.id }).then(response => { |
|
|
this.form = response.data |
|
|
this.form = response.data |
|
|
|
|
|
this.form.qmyy = '制作提交预制表单' |
|
|
this.open = true |
|
|
this.open = true |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
@ -166,10 +251,15 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
tj() { |
|
|
tj() { |
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormPre_tj(this.form).then(response => { |
|
|
|
|
|
this.$emit('close') |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
|
|
|
this.$refs["formSubmit"].validate(valid => { |
|
|
|
|
|
if (valid) { |
|
|
|
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormPre_tj(this.form).then(response => { |
|
|
|
|
|
this.$emit('close') |
|
|
|
|
|
this.openSubmit = false |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|