|
|
@@ -257,7 +257,7 @@
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="其他信息" name="other">
|
|
|
+ <!-- <el-tab-pane label="其他信息" name="other">
|
|
|
<el-form
|
|
|
label-width="160px"
|
|
|
ref="otherFormRef"
|
|
|
@@ -304,7 +304,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
- </el-tab-pane>
|
|
|
+ </el-tab-pane> -->
|
|
|
<el-tab-pane label="证书资质" name="certificate">
|
|
|
<ele-pro-table ref="certificateTable"
|
|
|
:row-class-name="({row})=>row.id==this.businessId?'isGreen':''"
|
|
|
@@ -353,7 +353,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {contactDetail, getInfoById} from '@/api/bpm/components/saleManage/contact';
|
|
|
+import {contactDetail, getInfoByIds} from '@/api/bpm/components/saleManage/contact';
|
|
|
import {getFile} from '@/api/system/file';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import {copyObj} from '@/utils/util';
|
|
|
@@ -365,7 +365,11 @@ import fileMain from "@/components/addDoc/index.vue";
|
|
|
|
|
|
|
|
|
export default {
|
|
|
-
|
|
|
+ props:{
|
|
|
+ businessId:{
|
|
|
+ default:""
|
|
|
+ }
|
|
|
+ },
|
|
|
mixins: [dictMixins],
|
|
|
components: {fileMain, certificateQualificationsDialog},
|
|
|
data() {
|
|
|
@@ -599,7 +603,9 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
+ created() {
|
|
|
+ this._getById(this.businessId);
|
|
|
+ },
|
|
|
methods: {
|
|
|
cancel() {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -642,6 +648,9 @@ export default {
|
|
|
this.$refs.certificateTable.reload({page: 1, where});
|
|
|
},
|
|
|
async _getById(id) {
|
|
|
+ if(!id){
|
|
|
+ return
|
|
|
+ }
|
|
|
const data = await contactDetail(id);
|
|
|
this.form = data.base;
|
|
|
this.otherForm = data.other;
|
|
|
@@ -652,8 +661,9 @@ export default {
|
|
|
this.tableLinkData.forEach(e => e.status = e.status + "");
|
|
|
}
|
|
|
|
|
|
- await getInfoById(this.form.categoryId).then((res) => {
|
|
|
- this.$set(this.form, 'categoryName', res.data.name)
|
|
|
+ await getInfoByIds(this.form.categoryId).then((res) => {
|
|
|
+ let categoryName = res.data.map((item) => item.name)?.join(',');
|
|
|
+ this.$set(this.form, 'categoryName', categoryName);
|
|
|
});
|
|
|
},
|
|
|
|