-
+
+
+
+ *
+
{{ $t('workCenter.enStandardRevision.countersign') }}
-
-
-
-
-
-
-
+
+
+
+ *
+
{{ $t('workCenter.enStandardRevision.approverHeadEngineer') }}
-
-
-
-
-
-
-
+
+
+
{{ $t('workCenter.enStandardRevision.standardText') }}
-
-
-
-
-
企业标准
-
{{ $t('workCenter.enStandardRevision.onLineEditing') }}
-
-
+
+
+
+
企业标准
+
{{ $t('workCenter.enStandardRevision.onLineEditing') }}
+
+
@@ -205,7 +203,7 @@ export default {
}
],
// 参会人员
- conferee: [
+ meetingUsers: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.conferee') + this.$t('cannotEmpty'),
@@ -221,7 +219,7 @@ export default {
}
],
// 审批人(主管级领导)
- approverLeader: [
+ approvalUser: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.approverLeader') + this.$t('cannotEmpty'),
@@ -229,7 +227,7 @@ export default {
}
],
// 审批人(标准化)
- approverStandardization: [
+ approvalUserStandard: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.approverStandardization') + this.$t('cannotEmpty'),
@@ -237,7 +235,7 @@ export default {
}
],
// 会签(相关部门领导)
- countersign: [
+ relatedLeader: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.countersign') + this.$t('cannotEmpty'),
@@ -245,7 +243,7 @@ export default {
}
],
// 审批(总工程师)
- approverHeadEngineer: [
+ chiefEngineer: [
{
required: true,
message: this.$t('workCenter.enStandardRevision.approverHeadEngineer') + this.$t('cannotEmpty'),
@@ -258,19 +256,17 @@ export default {
methods: {
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
initData (data) {
- this.data = data
// 给表单赋值,在线编辑不知道要怎么赋值?
- // this.formInline =
+ this.formInline = Object.assign({}, data)
// 给表单赋值
- // this.$nextTick(() => {
- // this.$refs.baseInfoForm.formInline =
- // })
+ this.$nextTick(() => {
+ this.$refs.baseInfoForm.initData(data)
+ })
},
// 外层要获取数据
getData () {
// 把数据抛出,在线编辑不知道要不要抛
- const data = {}
- data.uploadMinuteFormInline = this.formInline
+ const data = Object.assign({}, this.formInline)
return data
},
// 外层获取数据要过校验,返回false表示没有通过校验
@@ -278,7 +274,7 @@ export default {
let data = {}
await this.$refs.ruleForm.validate(valid => {
if (valid) {
- data.formInline = this.formInline
+ data = Object.assign({}, this.formInline)
} else {
data = false
}
@@ -287,11 +283,6 @@ export default {
},
// 点击文件上传
clickButtonToUpload (fieldName) {
- if (fieldName === 'uploadAttachment') {
- this.fileMaxSize = 10
- } else {
- this.fileMaxSize = undefined
- }
this.$refs.uploadFile.open(this.formInline[fieldName])
this.uploadName = fieldName
},
diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/OtherDrafterUploadStandardBaseInfo.vue b/src/views/workCenter/enterpriseStandardRevision/modules/OtherDrafterUploadStandardBaseInfo.vue
index 7d588731..b20ac79a 100644
--- a/src/views/workCenter/enterpriseStandardRevision/modules/OtherDrafterUploadStandardBaseInfo.vue
+++ b/src/views/workCenter/enterpriseStandardRevision/modules/OtherDrafterUploadStandardBaseInfo.vue
@@ -11,11 +11,18 @@
:dataSource="dataSource"
:pagination="false"
:loading="loading">
+
+
+
+ {{ record.operateType === '2' ? '我' : (text || global.emptyLine) }}
+ {{ record.operateType === '2' ? '我' : (text || global.emptyLine) }}
+
+