|
|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="edit-container" > |
|
|
|
|
|
|
|
|
<div class="edit-container"> |
|
|
<div class="edit-top"> |
|
|
<div class="edit-top"> |
|
|
<div class="left-top"> |
|
|
<div class="left-top"> |
|
|
<img src="@/assets/images/back.png" @click="cancel()" /> |
|
|
<img src="@/assets/images/back.png" @click="cancel()" /> |
|
|
@ -28,7 +28,7 @@ |
|
|
<el-button type="primary" @click="next">{{ $t('page.business.study.studyFormFill.next') }}</el-button> |
|
|
<el-button type="primary" @click="next">{{ $t('page.business.study.studyFormFill.next') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<el-button @click="saveNext">{{ $t('page.business.study.studyFormFill.save') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="showSave">{{ $t('page.business.study.studyFormFill.save') }}</el-button> |
|
|
<el-button type="primary" @click="showApprove">{{ $t('page.business.study.studyFormFill.submit') |
|
|
<el-button type="primary" @click="showApprove">{{ $t('page.business.study.studyFormFill.submit') |
|
|
}}</el-button> |
|
|
}}</el-button> |
|
|
<el-button type="primary" @click="pre">{{ $t('page.business.study.studyFormFill.pre') }}</el-button> |
|
|
<el-button type="primary" @click="pre">{{ $t('page.business.study.studyFormFill.pre') }}</el-button> |
|
|
@ -56,8 +56,7 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')" prop="sfbl"> |
|
|
<el-form-item :label="$t('page.business.study.studyFormFill.sfbl')" prop="sfbl"> |
|
|
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')" |
|
|
|
|
|
:disabled="form.id && form.id !== ''"> |
|
|
|
|
|
|
|
|
<el-select v-model="form.sfbl" :placeholder="$t('form.placeholderSelect')"> |
|
|
<el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" /> |
|
|
<el-option :label="$t('page.business.study.studyFormFill.yes')" value="是" /> |
|
|
<el-option :label="$t('page.business.study.studyFormFill.no')" value="否" /> |
|
|
<el-option :label="$t('page.business.study.studyFormFill.no')" value="否" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
@ -220,11 +219,55 @@ |
|
|
<el-button @click="openApprove = false">{{ $t('form.cancel') }}</el-button> |
|
|
<el-button @click="openApprove = false">{{ $t('form.cancel') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="$t('page.business.study.studyFormFill.bcjl')" :visible.sync="openSave" width="600px" |
|
|
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
|
|
<el-form ref="formSave" :model="formSave" :rules="rulesSave" label-width="120px" v-if="openSave"> |
|
|
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24"> |
|
|
|
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
|
|
|
<el-input type="text" :value="formSave.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="formSave.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="formSave.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="saveNext">{{ $t('form.confirm') }}</el-button> |
|
|
|
|
|
<el-button @click="openSave = false">{{ $t('form.cancel') }}</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { studyFormFill_bc, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info,studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
|
|
|
|
|
|
import { studyFormFill_bc, studyFormFill_bcOnly, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormFill" |
|
|
import { study_info } from "@/api/business/study/study" |
|
|
import { study_info } from "@/api/business/study/study" |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
@ -260,7 +303,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
czlist: [], |
|
|
czlist: [], |
|
|
cclist: [], |
|
|
cclist: [], |
|
|
|
|
|
openSave: false, |
|
|
openApprove: false, |
|
|
openApprove: false, |
|
|
|
|
|
formSave: { |
|
|
|
|
|
qmyy: this.$t('page.business.study.studyFormFill.txbbc'), |
|
|
|
|
|
remark: '', |
|
|
|
|
|
qmrmm: '', |
|
|
|
|
|
}, |
|
|
formApprove: { |
|
|
formApprove: { |
|
|
id: null, |
|
|
id: null, |
|
|
qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'), |
|
|
qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'), |
|
|
@ -286,6 +335,13 @@ export default { |
|
|
trigger: 'blur' |
|
|
trigger: 'blur' |
|
|
}] |
|
|
}] |
|
|
}, |
|
|
}, |
|
|
|
|
|
rulesSave: { |
|
|
|
|
|
qmrmm: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
templateData: {} |
|
|
templateData: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -306,12 +362,12 @@ export default { |
|
|
{ |
|
|
{ |
|
|
id: this.form.id, |
|
|
id: this.form.id, |
|
|
bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()), |
|
|
bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()), |
|
|
zdxgjl:data.resourceList? JSON.stringify(data.resourceList):'', |
|
|
|
|
|
filedValue:data.newRecord? JSON.stringify(data.newRecord):'' |
|
|
|
|
|
|
|
|
zdxgjl: data.resourceList ? JSON.stringify(data.resourceList) : '', |
|
|
|
|
|
filedValue: data.newRecord ? JSON.stringify(data.newRecord) : '' |
|
|
} |
|
|
} |
|
|
).then(response => { |
|
|
).then(response => { |
|
|
}) |
|
|
}) |
|
|
} else if (data.type == 'reply') { |
|
|
|
|
|
|
|
|
} else if (data.type == 'reply') { |
|
|
studyFormFill_updateFhyjjl( |
|
|
studyFormFill_updateFhyjjl( |
|
|
{ |
|
|
{ |
|
|
id: this.form.id, |
|
|
id: this.form.id, |
|
|
@ -452,7 +508,7 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.showIndex = 2 |
|
|
this.showIndex = 2 |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
|
|
|
|
|
|
studyFormFill_bcOnly(this.form).then(response => { |
|
|
this.form = response.data |
|
|
this.form = response.data |
|
|
this.showIndex = 2 |
|
|
this.showIndex = 2 |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
@ -476,7 +532,7 @@ export default { |
|
|
this.$tab.closeOpenPage(obj) |
|
|
this.$tab.closeOpenPage(obj) |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
this.$tab.closeOpenPage('/404') |
|
|
|
|
|
|
|
|
this.$tab.closeOpenPage('/404') |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
reset() { |
|
|
reset() { |
|
|
@ -506,7 +562,7 @@ export default { |
|
|
this.$refs["form"].validate(valid => { |
|
|
this.$refs["form"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
|
|
|
|
|
|
studyFormFill_bcOnly(this.form).then(response => { |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
this.cancel() |
|
|
this.cancel() |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
@ -515,18 +571,26 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
showSave() { |
|
|
|
|
|
this.formSave.remark = '' |
|
|
|
|
|
this.formSave.qmrmm = '' |
|
|
|
|
|
this.openSave = true |
|
|
|
|
|
}, |
|
|
async saveNext() { |
|
|
async saveNext() { |
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
|
|
if (content) { |
|
|
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
this.cancel() |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.$refs["formSave"].validate(valid => { |
|
|
|
|
|
if (valid) { |
|
|
|
|
|
this.form.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData()) |
|
|
|
|
|
this.form.qmrmm = this.formSave.qmrmm |
|
|
|
|
|
this.form.remark = this.formSave.remark |
|
|
|
|
|
this.$modal.loading() |
|
|
|
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
this.cancel() |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.$modal.closeLoading() |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
tj() { |
|
|
tj() { |
|
|
let that = this |
|
|
let that = this |
|
|
|