|
|
|
@ -65,14 +65,15 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
|
<TemplateTable ref="templateTable" emitName="onPlanCallback" @onPlanCallback="onPlanCallback" :sn="form.templateSn" :templateData="templateData" fillType="actFill" /> |
|
|
|
<TemplateTable ref="templateTable" emitName="onPlanCallback" @onPlanCallback="onPlanCallback" |
|
|
|
:sn="form.templateSn" :templateData="templateData" fillType="actFill" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-dialog :title="$t('page.business.study.studyFormPlan.tjjl')" :visible.sync="openSubmit" width="500px" |
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px" v-if="openSubmit"> |
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password > </div> |
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.study.studyFormPlan.shryId')" prop="fshryId"> |
|
|
|
@ -111,7 +112,7 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
|
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20" |
|
|
|
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20" |
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -126,7 +127,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormPlan_bc,studyFormPlan_bcOnly, studyFormPlan_tj, studyFormPlan_info,studyFormPlan_updateBdnr,studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormPlan" |
|
|
|
import { studyFormPlan_bc, studyFormPlan_bcOnly, studyFormPlan_tj, studyFormPlan_info, studyFormPlan_updateBdnr, studyFormFill_updateFhyjjl } from "@/api/business/study/studyFormPlan" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
|
import SelectStudyUser from '@/views/business/comps/select/SelectStudyUser'; |
|
|
|
@ -188,7 +189,7 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onPlanCallback(data) { |
|
|
|
onPlanCallback(data) { |
|
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
|
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) |
|
|
|
if (data.type == 'fieldChanged') { |
|
|
|
@ -201,7 +202,7 @@ export default { |
|
|
|
} |
|
|
|
).then(response => { |
|
|
|
}) |
|
|
|
} else if (data.type == 'reply') { |
|
|
|
} else if (data.type == 'reply') { |
|
|
|
studyFormFill_updateFhyjjl( |
|
|
|
{ |
|
|
|
id: this.form.id, |
|
|
|
@ -272,8 +273,8 @@ export default { |
|
|
|
this.templateData = deepClone(this.form) |
|
|
|
this.open = true |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.showIndex = 1 |
|
|
|
this.form = _.merge({}, this.form, row) |
|
|
|
@ -295,17 +296,14 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
async saveNext() { |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
if (content) { |
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPlan_bc(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.open = false |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
this.form.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData()) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPlan_bc(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.open = false |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
}, |
|
|
|
tj() { |
|
|
|
this.$refs["formSubmit"].validate(valid => { |
|
|
|
|