|
@@ -26,6 +26,81 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="有效时间:" prop="date" label-width="90px">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ :disabled="type == 'view'"
|
|
|
|
|
+ v-model="form.date"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ type="daterange"
|
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
|
+ range-separator="至"
|
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ label="资质类型:"
|
|
|
|
|
+ prop="certificationType"
|
|
|
|
|
+ label-width="90px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :disabled="type == 'view'"
|
|
|
|
|
+ v-model="form.certificationType"
|
|
|
|
|
+ @change="changeCertificationType"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in qualificationOptions"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ label="关联类型:"
|
|
|
|
|
+ prop="relationName"
|
|
|
|
|
+ label-width="90px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ :disabled="type == 'view'"
|
|
|
|
|
+ v-model="form.relationName"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @click.native="handleClick"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ label="关联类型:"
|
|
|
|
|
+ prop="relationName"
|
|
|
|
|
+ label-width="90px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ :disabled="type == 'view'"
|
|
|
|
|
+ v-model="form.relationName"
|
|
|
|
|
+ readonly
|
|
|
|
|
+ clearable
|
|
|
|
|
+ @click.native="handleClick"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="附件:" prop="accessory" label-width="90px">
|
|
|
|
|
+ <fileMain v-model="form.accessory" :type="type"></fileMain>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width="50px" label="备注">
|
|
<el-form-item label-width="50px" label="备注">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -74,16 +149,12 @@
|
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <!-- <DictSelection v-if="type!=='view'" clearable dictName="客户/供应商资质类型" v-model="scope.row.type"-->
|
|
|
|
|
- <!-- @itemChange="(val)=>handleChangeType(val,scope.row)"></DictSelection>-->
|
|
|
|
|
|
|
+
|
|
|
<span v-else>{{ scope.row.name }}</span>
|
|
<span v-else>{{ scope.row.name }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:code="scope">
|
|
<template v-slot:code="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- :prop="'detailsList.' + scope.$index + '.code'"
|
|
|
|
|
-
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'detailsList.' + scope.$index + '.code'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.code"
|
|
v-model="scope.row.code"
|
|
|
:disabled="type == 'view'"
|
|
:disabled="type == 'view'"
|
|
@@ -147,7 +218,6 @@
|
|
|
<template v-slot:noticePersonName="scope">
|
|
<template v-slot:noticePersonName="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
:prop="'detailsList.' + scope.$index + '.noticePersonName'"
|
|
:prop="'detailsList.' + scope.$index + '.noticePersonName'"
|
|
|
-
|
|
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
:disabled="type == 'view'"
|
|
:disabled="type == 'view'"
|
|
@@ -167,22 +237,7 @@
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<fileMain v-model="scope.row.accessory" :type="type"></fileMain>
|
|
<fileMain v-model="scope.row.accessory" :type="type"></fileMain>
|
|
|
- <!-- <fileUpload-->
|
|
|
|
|
- <!-- v-if="type!=='view'"-->
|
|
|
|
|
- <!-- v-model="scope.row.accessory"-->
|
|
|
|
|
- <!-- module="main"-->
|
|
|
|
|
- <!-- :showLib="false"-->
|
|
|
|
|
- <!-- :limit="10"/>-->
|
|
|
|
|
- <!-- <div v-else>-->
|
|
|
|
|
- <!-- <el-link-->
|
|
|
|
|
- <!-- v-for="link in scope.row.accessory"-->
|
|
|
|
|
- <!-- :key="link.id"-->
|
|
|
|
|
- <!-- type="primary"-->
|
|
|
|
|
- <!-- :underline="false"-->
|
|
|
|
|
- <!-- @click="downloadFile(link)">-->
|
|
|
|
|
- <!-- {{ link.name }}-->
|
|
|
|
|
- <!-- </el-link>-->
|
|
|
|
|
- <!-- </div>-->
|
|
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:type="scope">
|
|
<template v-slot:type="scope">
|
|
@@ -198,7 +253,7 @@
|
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<span v-else>{{ getLabelName(typeList, scope.row.type) }}</span>
|
|
<span v-else>{{ getLabelName(typeList, scope.row.type) }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -215,7 +270,7 @@
|
|
|
:label="item.dictValue"
|
|
:label="item.dictValue"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<span v-else>{{ getLabelName(levelOptions, scope.row.type) }}</span>
|
|
<span v-else>{{ getLabelName(levelOptions, scope.row.type) }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -435,6 +490,20 @@
|
|
|
validityPeriodEnd: '',
|
|
validityPeriodEnd: '',
|
|
|
validityPeriodStart: ''
|
|
validityPeriodStart: ''
|
|
|
},
|
|
},
|
|
|
|
|
+ qualificationOptions: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '客户资质',
|
|
|
|
|
+ value: '1'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '供应商资质',
|
|
|
|
|
+ value: '2'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '个人资质',
|
|
|
|
|
+ value: '3'
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
form: {
|
|
form: {
|
|
|
detailsList: [],
|
|
detailsList: [],
|
|
|
contactId: '',
|
|
contactId: '',
|
|
@@ -465,7 +534,7 @@
|
|
|
dictValue: '高级',
|
|
dictValue: '高级',
|
|
|
dictCode: '3'
|
|
dictCode: '3'
|
|
|
}
|
|
}
|
|
|
- ],
|
|
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|