|
|
|
@ -10,8 +10,6 @@ |
|
|
|
</div> |
|
|
|
<div class="right-top"> |
|
|
|
<el-button @click="cancel()">{{ $t('form.close') }}</el-button> |
|
|
|
<el-button type="primary" v-if="form.bdzt === 5 && form.tbzt === 1" @click="openApprove = true">{{ |
|
|
|
$t('page.business.study.studyFormPlan.tb') }}</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="edit-content "> |
|
|
|
@ -62,56 +60,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 填报 --> |
|
|
|
<el-dialog :title="$t('page.business.study.studyFormPlan.cjjl')" :visible.sync="openApprove" width="500px" |
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px"> |
|
|
|
<el-alert :title="$t('page.business.study.studyFormPlan.ts')" :closable="false" type="success"> |
|
|
|
</el-alert> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
|
<el-input type="text" :value="formApprove.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="formApprove.remark" :rows="5" 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="formApprove.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="approve">{{ $t('form.confirm') }}</el-button> |
|
|
|
<el-button @click="openApprove = false">{{ $t('form.cancel') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormPlan_tb, studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { studyFormPlan_info, studyFormPlan_jcgj, studyFormPlan_qmxx } from "@/api/business/study/studyFormPlan" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import JcgjList from "@/views/business/comps/common/JcgjList"; |
|
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
|
@ -121,20 +74,6 @@ export default { |
|
|
|
components: { JcgjList, TemplateTable }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
openApprove: false, |
|
|
|
formApprove: { |
|
|
|
id: null, |
|
|
|
qmyy: '创建记录', |
|
|
|
remark: '', |
|
|
|
qmrmm: '', |
|
|
|
}, |
|
|
|
rulesApprove: { |
|
|
|
qmrmm: [{ |
|
|
|
required: true, |
|
|
|
message: ' ', |
|
|
|
trigger: 'blur' |
|
|
|
}] |
|
|
|
}, |
|
|
|
qmxxList: [], |
|
|
|
totalQmxx: 0, |
|
|
|
loadingQmxx: true, |
|
|
|
@ -176,7 +115,6 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
dcqbjcgj() { |
|
|
|
alert('todo') |
|
|
|
}, |
|
|
|
@ -230,7 +168,6 @@ export default { |
|
|
|
show(row) { |
|
|
|
this.reset() |
|
|
|
this.$modal.loading() |
|
|
|
this.formApprove.id = row.id |
|
|
|
this.queryParamsJcgj.formId = row.id |
|
|
|
this.queryParamsQmxx.formId = row.id |
|
|
|
studyFormPlan_info({ id: row.id }).then(response => { |
|
|
|
@ -241,20 +178,6 @@ export default { |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
approve() { |
|
|
|
this.$refs["formApprove"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPlan_tb(this.formApprove).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.openApprove = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|