|
|
@ -18,10 +18,15 @@ |
|
|
ref="ybRef" :formConfig="ybFormConfig" :formData="formData" /> |
|
|
ref="ybRef" :formConfig="ybFormConfig" :formData="formData" /> |
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
<LineLabel label="template.common.operationSteps" /> |
|
|
<Step ref="stepRef" :formData="formData.stepData"></Step> |
|
|
<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.lba.lba003.fj" label="template.lba.lba003.fj" |
|
|
<BaseInfoFormPackage fieldItemLabel="template.lba.lba003.fj" label="template.lba.lba003.fj" |
|
|
ref="fjRef" :formConfig="getFjFormConfig" :formData="formData" /> |
|
|
ref="fjRef" :formConfig="getFjFormConfig" :formData="formData" /> |
|
|
|
|
|
|
|
|
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.sp.sp007.clhxx" label="template.sp.sp007.clhxx" |
|
|
|
|
|
ref="clhxxRef" :formConfig="clhxxConfig" :formData="formData" @clickButton="handleClickButton" /> |
|
|
|
|
|
|
|
|
|
|
|
<BaseInfoFormPackage fieldItemLabel="template.common.remark" label="template.common.remark" |
|
|
|
|
|
ref="remarkRef" :formConfig="remarkConig" :formData="formData" /> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -41,7 +46,8 @@ import { getLatestSn } from '@/api/template'; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { EventBus } from "@/utils/eventBus"; |
|
|
import { uniqeResource } from "@/utils/calUnitTools"; |
|
|
import { uniqeResource } from "@/utils/calUnitTools"; |
|
|
import { debounce } from 'lodash-es'; |
|
|
import { debounce } from 'lodash-es'; |
|
|
import {getBaseInfoFormConfig, getRemarkFormConfig,getStorageFormConfig,getYbFormConfig,getfjFormConfig} from "../../formConfig/sp/SP007"; |
|
|
|
|
|
|
|
|
import {getBaseInfoFormConfig, getRemarkFormConfig,getStorageFormConfig,getYbFormConfig,getfjFormConfig,getClhxxFormConfig} from "../../formConfig/sp/SP007"; |
|
|
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "SP007", |
|
|
name: "SP007", |
|
|
@ -74,6 +80,10 @@ export default { |
|
|
getFjFormConfig() { |
|
|
getFjFormConfig() { |
|
|
return getfjFormConfig(this); |
|
|
return getfjFormConfig(this); |
|
|
}, |
|
|
}, |
|
|
|
|
|
//处理后信息 |
|
|
|
|
|
clhxxConfig() { |
|
|
|
|
|
return getClhxxFormConfig(this); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
@ -84,6 +94,10 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 点击按钮 |
|
|
|
|
|
handleClickButton(item,signData){ |
|
|
|
|
|
this.$refs.clhxxRef.updateFormData("hjsj", moment().format("YYYY/MM/DD HH:mm"),{isUpdateRecord:true,signData}); |
|
|
|
|
|
}, |
|
|
//打印标签 |
|
|
//打印标签 |
|
|
printTag() { |
|
|
printTag() { |
|
|
const printConfig = this.getBasePrintConfig(); |
|
|
const printConfig = this.getBasePrintConfig(); |
|
|
@ -96,11 +110,11 @@ export default { |
|
|
|
|
|
|
|
|
//获取已填写的表单数据 |
|
|
//获取已填写的表单数据 |
|
|
getFilledFormData() { |
|
|
getFilledFormData() { |
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "ybRef","stepRef", "remarkRef","fjRef"]) |
|
|
|
|
|
|
|
|
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "ybRef","stepRef", "remarkRef","fjRef","clhxxRef"]) |
|
|
}, |
|
|
}, |
|
|
//获取填写完成的表单数据 |
|
|
//获取填写完成的表单数据 |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "ybRef","stepRef", "remarkRef","fjRef"]); |
|
|
|
|
|
|
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "ybRef","stepRef", "remarkRef","fjRef","clhxxRef"]); |
|
|
return content; |
|
|
return content; |
|
|
}, |
|
|
}, |
|
|
getResource() { |
|
|
getResource() { |
|
|
|