luojie 2 months ago
parent
commit
2087ba5b0d
68 changed files with 399 additions and 223 deletions
  1. +1
    -0
      src/views/business/comps/common/sign.vue
  2. +7
    -1
      src/views/business/comps/template/comps/gsp/MJYLQSQD.vue
  3. +2
    -16
      src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue
  4. +42
    -36
      src/views/business/comps/template/comps/sp/SWYPFXCBYPZB.vue
  5. +40
    -44
      src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue
  6. +1
    -0
      src/views/business/comps/template/dialog/EditSign.vue
  7. +1
    -1
      src/views/business/form/drug/comp/edit.vue
  8. +44
    -7
      src/views/business/form/drug/comp/sign.vue
  9. +1
    -1
      src/views/business/form/nonTrial/comp/edit.vue
  10. +43
    -6
      src/views/business/form/nonTrial/comp/sign.vue
  11. +1
    -1
      src/views/business/form/nonTrial/comp/syff/Xq.vue
  12. +10
    -5
      src/views/business/form/nonTrial/comp/syff/Xz.vue
  13. +3
    -1
      src/views/business/form/nonTrial/comp/syff/Yd.vue
  14. +3
    -1
      src/views/business/resource/gsp/comps/ffjl/Gd.vue
  15. +2
    -1
      src/views/business/resource/gsp/comps/ffjl/Jd.vue
  16. +3
    -1
      src/views/business/resource/gsp/comps/ffjl/Jq.vue
  17. +27
    -23
      src/views/business/resource/gsp/comps/ffjl/Js.vue
  18. +3
    -1
      src/views/business/resource/gsp/comps/ffjl/Jy.vue
  19. +3
    -1
      src/views/business/resource/gsp/comps/ffjl/Sd.vue
  20. +2
    -2
      src/views/business/resource/gsp/comps/ffjlList.vue
  21. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Bj.vue
  22. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Cz.vue
  23. +3
    -1
      src/views/business/resource/gsp/comps/gsp/CzBatch.vue
  24. +5
    -0
      src/views/business/resource/gsp/comps/gsp/Ff.vue
  25. +4
    -2
      src/views/business/resource/gsp/comps/gsp/Gd.vue
  26. +5
    -0
      src/views/business/resource/gsp/comps/gsp/Gh.vue
  27. +11
    -7
      src/views/business/resource/gsp/comps/gsp/Jd.vue
  28. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Js.vue
  29. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Jy.vue
  30. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Sd.vue
  31. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Shbj.vue
  32. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Shxgkc.vue
  33. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Xgkc.vue
  34. +3
    -1
      src/views/business/resource/gsp/comps/gsp/Xz.vue
  35. +2
    -0
      src/views/business/resource/gsp/comps/gsp/Ysff.vue
  36. +1
    -1
      src/views/business/resource/gsp/comps/gspList.vue
  37. +3
    -1
      src/views/business/resource/gsp/comps/rkjl/Bj.vue
  38. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Gd.vue
  39. +23
    -19
      src/views/business/resource/gsp/comps/rkjl/Jd.vue
  40. +27
    -23
      src/views/business/resource/gsp/comps/rkjl/Js.vue
  41. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Jy.vue
  42. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Sd.vue
  43. +2
    -0
      src/views/business/resource/gsp/comps/rkjl/Xz.vue
  44. +2
    -2
      src/views/business/resource/gsp/comps/rkjlList.vue
  45. +1
    -0
      src/views/business/resource/sj/comps/Cz.vue
  46. +1
    -0
      src/views/business/resource/sj/comps/CzBatch.vue
  47. +1
    -0
      src/views/business/resource/sj/comps/Gd.vue
  48. +2
    -1
      src/views/business/resource/sj/comps/Jy.vue
  49. +1
    -1
      src/views/business/resource/sj/list.vue
  50. +1
    -1
      src/views/business/study/comp/edit.vue
  51. +1
    -0
      src/views/business/study/comp/jhbd/Bj.vue
  52. +1
    -0
      src/views/business/study/comp/sign.vue
  53. +1
    -0
      src/views/business/study/comp/sqbd/Bj.vue
  54. +1
    -0
      src/views/business/study/comp/sqbd/Fh.vue
  55. +1
    -0
      src/views/business/study/comp/sqbd/Fz.vue
  56. +1
    -0
      src/views/business/study/comp/sqbd/Ghgsr.vue
  57. +1
    -0
      src/views/business/study/comp/sqbd/Jq.vue
  58. +1
    -0
      src/views/business/study/comp/sqbd/Qrfz.vue
  59. +1
    -0
      src/views/business/study/comp/sqbd/Sh.vue
  60. +1
    -0
      src/views/business/study/comp/sqbd/Sy.vue
  61. +1
    -0
      src/views/business/study/comp/sqbd/Xq.vue
  62. +8
    -3
      src/views/business/study/comp/syff/Xz.vue
  63. +3
    -1
      src/views/business/study/comp/syff/Yd.vue
  64. +3
    -1
      src/views/business/study/comp/syj/Bj.vue
  65. +1
    -0
      src/views/business/study/comp/syj/Js.vue
  66. +3
    -1
      src/views/business/study/comp/syj/Xz.vue
  67. +2
    -0
      src/views/business/study/comp/tbbd/Bj.vue
  68. +1
    -0
      src/views/login.vue

+ 1
- 0
src/views/business/comps/common/sign.vue View File

@ -35,6 +35,7 @@
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<div class="sbzdtcma"> <input type="text"></div>
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>

+ 7
- 1
src/views/business/comps/template/comps/gsp/MJYLQSQD.vue View File

@ -215,6 +215,7 @@ export default {
mounted() {
},
methods: {
//sywzmcgyjlgynd
init(val) {
if (val.key == 'sywzmc') {
this.filterGyjl(val, false)
@ -223,6 +224,7 @@ export default {
this.filterGynd(val, false)
}
},
//sywzmcgyjl
onSelectBlur(val) {
if (val.key == 'sywzmc' && ((!this.formData.sywzmc||this.formData.sywzmc=='') || val.type == 'save')) {
this.filterGyjl(val, true)
@ -231,6 +233,7 @@ export default {
this.filterGynd(val, true)
}
},
//gyjl
filterGyjl(val, reset) {
let that = this
let tmp = []
@ -257,6 +260,7 @@ export default {
// }, 10)
}
},
//gynd
filterGynd(val, reset) {
let tmp = []
_.forEach(_.filter(this.gyndOptionsOld, function (o) {
@ -308,6 +312,7 @@ export default {
}
})
},
//
onDialogSubmit(selectedId, currentRow) {
console.log(JSON.stringify(currentRow))
//
@ -332,7 +337,7 @@ export default {
}
this.$refs.selectReagentDialogRef.onCancel()
},
//
//
onClickSybh() {
this.$refs.selectReagentDialogRef.show(this.formData.id)
// this.$refs.baseInfoRef.setClickable("syNo", true);
@ -345,6 +350,7 @@ export default {
content.sdId = this.formData.sdId
return content;
},
//
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "remarkRef"]);
content.syId = this.formData.syId

+ 2
- 16
src/views/business/comps/template/comps/gsp/SYWZPZJHB.vue View File

@ -15,7 +15,7 @@
<CustomTable @blur="onHandleTableBlur" :showHeaderSelect="fillType === 'actFill'" :showAddRow="fillType === 'actFill'" :showOperation="fillType === 'actFill'" ref="stepTableRef" :columns="stepColumns"
:formData="formData" >
<template slot="operation" slot-scope="{ row, rowIndex, columns }">
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
<TableOpertaionDelete :row="row" :rowIndex="rowIndex" :columns="columns" @deleteRow="deleteRow" ></TableOpertaionDelete>
</template>
</CustomTable>
</div>
@ -62,7 +62,6 @@ export default {
},
},
computed: {
//
remarkConig() {
return [
@ -177,7 +176,6 @@ export default {
currentSubKey: "",//key
dataSource: [],
stepTableDataSource: [],
};
},
mounted() {
@ -188,21 +186,9 @@ export default {
getFilledFormData(){
return this.getFilledFormDataByRefs(["baseInfoRef","stepFormPackageRef", "remarkRef","stepTableRef"])
},
//
async getFormData() {
return await this.validFormFields(["baseInfoRef", "stepFormPackageRef","stepTableRef","remarkRef"]);
},
async onSave() {
const formData = await this.getFormData();
// const formData = await this.$refs.stepTableRef.getFormData();
console.log(formData, "formData")
},
//
addRow() {
this.$refs.stepTableRef.addRow({
startSolutionCode: "",
preparationConcentration: "",
preparationVolume: "",
})
}
}
};

+ 42
- 36
src/views/business/comps/template/comps/sp/SWYPFXCBYPZB.vue View File

@ -6,27 +6,26 @@
$t('template.sp.sp002.title') }}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" ref="baseInfoRef"
:formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns"
:dataSource="resource" />
<TableList label="template.common.instrumentInfo" :columns="yqsColumns"
:dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition" label="template.common.storageCondition" ref="storageConditionRef"
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.instrumentInfo" :columns="yqsColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"
label="template.common.storageCondition" ref="storageConditionRef"
:formConfig="storageFormConfig" :formData="formData" />
<LineLabel label="template.common.operationSteps" />
<div class="template-form-item">
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary"
@click="printTag">标签打印</el-button>
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" />
</div>
<Step ref="stepRef" :formData="formData.stepData"></Step>
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" ref="remarkRef" :formConfig="remarkConig"
:formData="formData" />
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
</div>
<!-- <button @click = "onSave">保存</button> -->
</div>
</template>
@ -38,6 +37,7 @@ import Step from "@/components/Template/Step";
import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSn } from '@/api/template';
import { EventBus } from "@/utils/eventBus";
export default {
name: "SWYPFXCBYPZB",
@ -50,6 +50,7 @@ export default {
},
},
computed: {
//
storageFormConfig() {
return [
{
@ -67,6 +68,7 @@ export default {
}
];
},
//
remarkConig() {
return [
{
@ -85,7 +87,7 @@ export default {
}
]
},
//
baseInfoFormConfig() {
return [
{
@ -111,7 +113,7 @@ export default {
label: 'template.common.versionNumber',
type: "inputNumber",
fillType: "actFill",
prepend:"V",
prepend: "V",
maxlength: 50
},
@ -155,6 +157,7 @@ export default {
}
]
},
//
stepFormConfig() {
return [
{
@ -182,7 +185,7 @@ export default {
fillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
selectTo:"targetActConcentrationUnit",//
selectTo: "targetActConcentrationUnit",//
},
targetActConcentration: {
label: 'template.common.targetActConcentration',
@ -204,7 +207,7 @@ export default {
subOptions: this.getDictOptions('business_tjdw'),
fillType: "preFill",
maxlength: 10,
selectTo:"targetActVolumeUnit",//
selectTo: "targetActVolumeUnit",//
},
targetActVolume: {
label: 'template.common.targetActVolume',
@ -250,35 +253,45 @@ export default {
formData: {
immediate: true,
handler(v) {
if(!v.targetCodeSn && this.fillType === "actFill"){
if (!v.targetCodeSn && this.fillType === "actFill") {
this.getCode();
}
}
}
},
methods: {
//
printTag() {
const printConfig = this.getBasePrintConfig();
const { storageCondition, targetCodeSn } = this.formData;
printConfig["存储条件"] = storageCondition;
printConfig["编号"] = targetCodeSn;
EventBus.$emit('showTagPrintDialog', { printConfig })
},
//
async getCode(){
async getCode() {
const result = await getLatestSn({
count: 1,
})
if(result.code == 200){
this.$refs.stepFormPackageRef.updateFormData("targetCodeSn",result.data[0])
if (result.code == 200) {
this.$refs.stepFormPackageRef.updateFormData("targetCodeSn", result.data[0])
}
},
//
getFilledFormData(){
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"])
},
//
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]);
//resource
let tmpResource = []
if(this.fillType === "actFill"){
if (this.fillType === "actFill") {
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode+content.targetCodeSn,
bh: content.targetCode + content.targetCodeSn,
ph: '',
nd: content.targetActConcentration + content.targetActConcentrationUnit,
source: 'ELN配制',
@ -288,22 +301,15 @@ export default {
kc: content.targetActVolume,
kcdw: content.targetActVolumeUnit,
syl: null,
syldw:content.targetActVolumeUnit,
yxzq:content.effectivePeriod,
yxzqdw:content.effectivePeriodUnit,
syldw: content.targetActVolumeUnit,
yxzq: content.effectivePeriod,
yxzqdw: content.effectivePeriodUnit,
})
}
//使
this.resourceTmp=tmpResource
this.resourceTmp = tmpResource
return content;
},
async onSave() {
const formData = await this.getFilledFormData();
console.log(formData, "formData")
},
}
}
};
</script>

+ 40
- 44
src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue View File

@ -3,32 +3,29 @@
<div>
<div class="detail-container">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ formData.bdmc ||
$t('template.sp.sp001.title') }}<img src="@/assets/images/detail-title.png" /></div>
$t('template.sp.sp001.title') }}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div class="content">
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo" ref="baseInfoRef"
:formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns"
:dataSource="resource" />
<TableList label="template.common.instrumentInfo" :columns="yqsColumns"
:dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition" label="template.common.storageCondition" ref="storageConditionRef"
<BaseInfoFormPackage fieldItemLabel="template.common.baseInfo" label="template.common.baseInfo"
ref="baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" />
<TableList label="template.common.reagentInfo" :columns="sysjColumns" :dataSource="resource" />
<TableList label="template.common.instrumentInfo" :columns="yqsColumns" :dataSource="yqResource" />
<BaseInfoFormPackage fieldItemLabel="template.common.storageCondition"
label="template.common.storageCondition" ref="storageConditionRef"
:formConfig="storageFormConfig" :formData="formData" />
<LineLabel label="template.common.operationSteps" />
<div class="template-form-item">
<el-button class="print-btn" v-if = "fillType === 'actFill'" type="primary" @click="printTag">标签打印</el-button>
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef" :formConfig="stepFormConfig" @blur="onHandleBlur"
:formData="formData" />
<el-button class="print-btn" v-if="fillType === 'actFill'" type="primary"
@click="printTag">标签打印</el-button>
<BaseInfoFormPackage fieldItemLabel="template.common.operationSteps" ref="stepFormPackageRef"
:formConfig="stepFormConfig" @blur="onHandleBlur" :formData="formData" />
</div>
<Step ref="stepRef" :formData="formData.stepData"></Step>
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" ref="remarkRef" :formConfig="remarkConig"
:formData="formData" />
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark"
ref="remarkRef" :formConfig="remarkConig" :formData="formData" />
</div>
</div>
</div>
<!-- <button @click = "onSave">保存</button> -->
</div>
</template>
@ -41,6 +38,7 @@ import templateMixin from "../../mixins/templateMixin";
import CustomTable from '@/components/Template/CustomTable.vue';
import { getLatestSn } from '@/api/template';
import { EventBus } from "@/utils/eventBus";
export default {
name: "Sp001",
components: { BaseInfoFormPackage, LineLabel, TableList, Step, CustomTable },
@ -52,6 +50,7 @@ export default {
},
},
computed: {
//
storageFormConfig() {
return [
{
@ -64,11 +63,11 @@ export default {
options: this.getDictOptions("business_cctj"),
otherCode: "storageConditionOther",
},
}
}
];
},
//
remarkConig() {
return [
{
@ -87,7 +86,7 @@ export default {
}
]
},
//
baseInfoFormConfig() {
return [
{
@ -113,7 +112,7 @@ export default {
label: 'template.common.versionNumber',
type: "inputNumber",
fillType: "actFill",
prepend:"V",
prepend: "V",
maxlength: 50
},
@ -158,6 +157,7 @@ export default {
}
]
},
//
stepFormConfig() {
return [
{
@ -185,7 +185,7 @@ export default {
fillType: "preFill",
subOptions: this.getDictOptions('business_nddw'),
maxlength: 10,
selectTo:"targetActConcentrationUnit",//
selectTo: "targetActConcentrationUnit",//
},
targetActConcentration: {
label: 'template.common.targetActConcentration',
@ -207,7 +207,7 @@ export default {
subOptions: this.getDictOptions('business_tjdw'),
fillType: "preFill",
maxlength: 10,
selectTo:"targetActVolumeUnit",//
selectTo: "targetActVolumeUnit",//
},
targetActVolume: {
label: 'template.common.targetActVolume',
@ -251,43 +251,45 @@ export default {
formData: {
immediate: true,
handler(v) {
if(!v.targetCodeSn && this.fillType === "actFill"){
if (!v.targetCodeSn && this.fillType === "actFill") {
this.getCode();
}
}
}
},
methods: {
printTag(){
//
printTag() {
const printConfig = this.getBasePrintConfig();
const {storageCondition,targetCodeSn} = this.formData;
const { storageCondition, targetCodeSn } = this.formData;
printConfig["存储条件"] = storageCondition;
printConfig["编号"] = targetCodeSn;
printConfig["编号"] = targetCodeSn;
EventBus.$emit('showTagPrintDialog', {printConfig})
EventBus.$emit('showTagPrintDialog', { printConfig })
},
//
async getCode(){
async getCode() {
const result = await getLatestSn({
count: 1,
})
if(result.code == 200){
this.$refs.stepFormPackageRef.updateFormData("targetCodeSn",result.data[0])
if (result.code == 200) {
this.$refs.stepFormPackageRef.updateFormData("targetCodeSn", result.data[0])
}
},
//
getFilledFormData(){
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"])
},
//
async getFormData() {
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "stepRef", "remarkRef"]);
//resource
let tmpResource = []
if(this.fillType === "actFill"){
if (this.fillType === "actFill") {
//
tmpResource.push({
mc: content.targetName,
bh: content.targetCode+content.targetCodeSn,
bh: content.targetCode + content.targetCodeSn,
ph: '',
nd: content.targetActConcentration + content.targetActConcentrationUnit,
source: 'ELN配制',
@ -297,22 +299,15 @@ export default {
kc: content.targetActVolume,
kcdw: content.targetActVolumeUnit,
syl: null,
syldw:content.targetActVolumeUnit,
yxzq:content.effectivePeriod,
yxzqdw:content.effectivePeriodUnit,
syldw: content.targetActVolumeUnit,
yxzq: content.effectivePeriod,
yxzqdw: content.effectivePeriodUnit,
})
}
//使
this.resourceTmp=tmpResource
this.resourceTmp = tmpResource
return content;
},
async onSave() {
const formData = await this.validFormFields(["stepRef"]);
console.log(formData, "formData")
},
}
};
</script>
@ -320,7 +315,8 @@ export default {
.mt-20 {
margin-top: 20px;
}
.print-btn{
.print-btn {
margin-bottom: 20px;
}
</style>

+ 1
- 0
src/views/business/comps/template/dialog/EditSign.vue View File

@ -37,6 +37,7 @@
</el-col> -->
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<div class="sbzdtcma"> <input type="text"></div>
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" show-password />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/form/drug/comp/edit.vue View File

@ -118,7 +118,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.drug.submit'):this.$t('page.business.study.drug.xgsy'),this.oldStatus==1?this.$t('page.business.study.drug.create'):this.$t('page.business.study.drug.xgsy'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.drug.submit'):this.$t('page.business.study.drug.xgsy'),this.oldStatus==1?this.$t('page.business.study.drug.create'):this.$t('page.business.study.drug.xgsy'),false,null,this.oldStatus!=1,this.oldStatus!=1)
}else{
this.doSave({})
}

+ 44
- 7
src/views/business/form/drug/comp/sign.vue View File

@ -5,7 +5,7 @@
<el-form ref="signForm" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="24" v-if="showDate">
<el-form-item :label="$t('page.business.study.nonTrial.jysj')" prop="startDate">
<el-form-item :label="$t('page.business.study.drug.jysj')" prop="startDate">
<el-date-picker v-model="dateArr" clearable type="daterange" range-separator="-" :start-placeholder="$t('form.startDate')"
:end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd" style="width: 100%" @change="changeDate" />
</el-form-item>
@ -18,7 +18,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-form-item :label="isReson?$t('form.reason'):$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
@ -44,6 +44,7 @@
</el-col> -->
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<div class="sbzdtcma"> <input type="text"></div>
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" autocomplete="off" auto-complete="new-password" show-password />
</el-form-item>
</el-col>
@ -89,7 +90,9 @@ export default {
message: ' ',
trigger: 'change'
}]
}
},
isReson:false
}
},
computed: {
@ -97,9 +100,9 @@ export default {
created() {
},
methods: {
show(title,qmyy,showDate) {
show(title,qmyy,showDate,selectedDate,isReson,reasonRequired) {
this.showDate = showDate==undefined?false:showDate
this.dateArr = []
this.dateArr = selectedDate || []
this.title = title
this.form = {
qmyy:qmyy,
@ -108,11 +111,45 @@ export default {
qmrMc:this.$store.getters.nickName,
qmrMcEn:this.$store.getters.name,
qmrmm:'',
startDate:'',
endDate:''
startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'',
endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:''
}
this.resetForm("signForm")
this.open = true
this.isReson = isReson || false
if(reasonRequired){
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}],
remark: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}else{
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}]
}
}
},
cancel() {
this.open = false

+ 1
- 1
src/views/business/form/nonTrial/comp/edit.vue View File

@ -118,7 +118,7 @@ export default {
if (valid) {
this.infoDialog.formData.status = status
if(status === 3){
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?this.$t('page.business.study.nonTrial.create'):this.$t('page.business.study.nonTrial.xgsy'))
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?this.$t('page.business.study.nonTrial.create'):this.$t('page.business.study.nonTrial.xgsy'),false,null,this.oldStatus!=1,this.oldStatus!=1)
}else{
this.doSave({})
}

+ 43
- 6
src/views/business/form/nonTrial/comp/sign.vue View File

@ -18,7 +18,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="$t('form.remark')" prop="remark">
<el-form-item :label="isReson?$t('form.reason'):$t('form.remark')" prop="remark">
<el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500"
:placeholder="$t('form.placeholderInput')">
</el-input>
@ -44,6 +44,7 @@
</el-col> -->
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<div class="sbzdtcma"> <input type="text"></div>
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" autocomplete="off" auto-complete="new-password" show-password />
</el-form-item>
</el-col>
@ -89,7 +90,9 @@ export default {
message: ' ',
trigger: 'change'
}]
}
},
isReson:false
}
},
computed: {
@ -97,9 +100,9 @@ export default {
created() {
},
methods: {
show(title,qmyy,showDate) {
show(title,qmyy,showDate,selectedDate,isReson,reasonRequired) {
this.showDate = showDate==undefined?false:showDate
this.dateArr = []
this.dateArr = selectedDate || []
this.title = title
this.form = {
qmyy:qmyy,
@ -108,11 +111,45 @@ export default {
qmrMc:this.$store.getters.nickName,
qmrMcEn:this.$store.getters.name,
qmrmm:'',
startDate:'',
endDate:''
startDate:selectedDate&&selectedDate.length>0?selectedDate[0]:'',
endDate:selectedDate&&selectedDate.length>1?selectedDate[1]:''
}
this.resetForm("signForm")
this.open = true
this.isReson = isReson || false
if(reasonRequired){
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}],
remark: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}else{
this.rules ={
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}],
startDate: [{
required: true,
message: ' ',
trigger: 'change'
}]
}
}
},
cancel() {
this.open = false

+ 1
- 1
src/views/business/form/nonTrial/comp/syff/Xq.vue View File

@ -31,7 +31,7 @@
class="el-icon-arrow-right el-icon--right"></i></el-button>
</el-button-group>
</div>
<div ref="contentToPdf">
<div ref="contentToPdf" v-show="showExportBtn" style="width: 100%; margin-top: 30px;">
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.study.studyMethod.qmhz') }}</div>

+ 10
- 5
src/views/business/form/nonTrial/comp/syff/Xz.vue View File

@ -4,11 +4,11 @@ G