diff --git a/src/api/template/index.js b/src/api/template/index.js index 373745b..9320dc0 100644 --- a/src/api/template/index.js +++ b/src/api/template/index.js @@ -7,4 +7,13 @@ export const getReagentList = (params) => { method: 'get', params }) +} + +//获取最新的sn号 +export const getLatestSn = (params) => { + return request({ + url: '/system/business/public/getSn', + method: 'get', + params + }) } \ No newline at end of file diff --git a/src/components/Template/BaseInfoFormPcakge.vue b/src/components/Template/BaseInfoFormPcakge.vue index 0df2758..c327180 100644 --- a/src/components/Template/BaseInfoFormPcakge.vue +++ b/src/components/Template/BaseInfoFormPcakge.vue @@ -243,6 +243,7 @@ export default { this.$set(this.errors, key, false); } }, + //更新表单数据 updateFormData(key, value) { this.formFields[key] = value; // 清除该表单项的错误状态 @@ -250,6 +251,7 @@ export default { this.$set(this.errors, key, false); } }, + //批量更新表单数据 batchUpdateFormData(data) { Object.keys(data).forEach(key => { this.formFields[key] = data[key]; @@ -467,7 +469,7 @@ export default { }); }, //直接获取表单数据,不做校验 - getDirectFormData() { + getFilledFormData() { return this.formFields; }, getFormDataByKey(key) { diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 0ac4625..d13e3a1 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -192,7 +192,7 @@ export default { this.headerSelectFields = headerSelectObj; }, // 直接获取表单数据,不做校验 - getDirectFormData() { + getFilledFormData() { return { stepTableFormData: [...this.localDataSource], headerSelectFields: this.headerSelectFields, diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index ebe14fd..38ed74d 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -33,7 +33,7 @@