|
|
|
@ -76,7 +76,8 @@ |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
|
<TemplateTable emitName="onEditCallback" @onEditCallback="onEditCallback" ref="templateTable" :sn="form.templateSn" :templateData="form" fillType="actFill" /> |
|
|
|
<TemplateTable emitName="onEditCallback" @onEditCallback="onEditCallback" ref="templateTable" |
|
|
|
:sn="form.templateSn" :templateData="form" fillType="actFill" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -85,7 +86,7 @@ |
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
<el-form ref="formApprove" :model="formApprove" :rules="rulesApprove" label-width="120px"> |
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password"> </div> |
|
|
|
<el-row v-if="form.sftb==1"> |
|
|
|
<el-row v-if="form.sftb == 1"> |
|
|
|
<el-col :psna="24"> |
|
|
|
<el-form-item> |
|
|
|
<div><el-checkbox v-model="formApprove.sfcz" @change="sfczChange">{{ |
|
|
|
@ -223,7 +224,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { studyFormFill_bc, studyFormFill_tj, studyFormFill_info } from "@/api/business/study/studyFormFill" |
|
|
|
import { studyFormFill_bc, studyFormFill_updateBdnr, studyFormFill_tj, studyFormFill_info } from "@/api/business/study/studyFormFill" |
|
|
|
import { study_info } from "@/api/business/study/study" |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import SelectTemplate from "@/views/business/comps/select/SelectTemplate"; |
|
|
|
@ -297,7 +298,19 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onEditCallback(data) { |
|
|
|
console.log(data,"onEditCallback") |
|
|
|
console.log("data:" + JSON.stringify(data)) |
|
|
|
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) |
|
|
|
// {"type":"fieldChanged","newRecord":{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","oldValue":"1.0","value":"1.0333","title":"修改记录","time":"2026-01-14 19:44:02"},"resourceList":[{"userNameCn":"谭飞","userNameEn":"tf","key":"_versionNum","field":"试验基本信息-版本号","oldValue":"1.0","value":"1.0","title":"修改记录","time":"2026-01-14 19:43:57"}]} |
|
|
|
if (data.type == 'fieldChanged') { |
|
|
|
studyFormFill_updateBdnr( |
|
|
|
{ |
|
|
|
id:this.form.id, |
|
|
|
bdnr:JSON.stringify(this.$refs.templateTable.getFilledFormData()), |
|
|
|
zdxgjl:JSON.stringify(data.newRecord) |
|
|
|
} |
|
|
|
).then(response => { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
delcc(index) { |
|
|
|
this.cclist.splice(index, 1) |
|
|
|
@ -340,7 +353,7 @@ export default { |
|
|
|
this.showIndex = 1 |
|
|
|
this.$modal.loading() |
|
|
|
study_info({ id: studyId }).then(response => { |
|
|
|
this.form = _.merge({}, this.form, { stydyId: studyId, resourceStudy: response.data.resource,sftb:1 }) |
|
|
|
this.form = _.merge({}, this.form, { stydyId: studyId, resourceStudy: response.data.resource, sftb: 1 }) |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -416,6 +429,13 @@ export default { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
this.showIndex = 2 |
|
|
|
this.$modal.loading() |
|
|
|
studyFormFill_bc(this.form).then(response => { |
|
|
|
this.form=response.data |
|
|
|
this.showIndex = 2 |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -483,16 +503,16 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
tj() { |
|
|
|
let that=this |
|
|
|
let that = this |
|
|
|
this.$refs["formApprove"].validate(valid => { |
|
|
|
if (valid) { |
|
|
|
that.$modal.loading() |
|
|
|
that.formApprove.resource = JSON.stringify(that.resource) |
|
|
|
if(that.czlist.length>0){ |
|
|
|
if (that.czlist.length > 0) { |
|
|
|
that.formApprove.czlist = JSON.stringify(that.czlist) |
|
|
|
} |
|
|
|
if(that.cclist.length>0){ |
|
|
|
that.formApprove.cclist = JSON.stringify(that.cclist) |
|
|
|
if (that.cclist.length > 0) { |
|
|
|
that.formApprove.cclist = JSON.stringify(that.cclist) |
|
|
|
} |
|
|
|
studyFormFill_tj(that.formApprove).then(response => { |
|
|
|
that.openApprove = false |
|
|
|
|