|
|
@@ -113,6 +113,11 @@
|
|
|
import { getById } from '@/api/bpm/components/materialPlan/index';
|
|
|
import { getFile } from '@/api/system/file';
|
|
|
import timeDialog from './timeDialog';
|
|
|
+ import {
|
|
|
+ getBomPageCategoryId,
|
|
|
+ contactList,
|
|
|
+ getBomGetById
|
|
|
+ } from '@/api/bpm/components/bomApprover';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -129,6 +134,7 @@
|
|
|
return {
|
|
|
visible: false,
|
|
|
title: '采购配料计划',
|
|
|
+ gysList: [],
|
|
|
|
|
|
// 表格列配置
|
|
|
columns: [
|
|
|
@@ -287,7 +293,10 @@
|
|
|
label: '供应商',
|
|
|
slot: 'supplierName',
|
|
|
action: 'supplierName',
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ formatter: (row) => {
|
|
|
+ return this.gysList.find((item) => item.id === row.supplierId)?.name || '-';
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -317,9 +326,21 @@
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getContactList();
|
|
|
this.getDetailData(this.businessId);
|
|
|
},
|
|
|
methods: {
|
|
|
+ getContactList() {
|
|
|
+ let param = {
|
|
|
+ pageNum: 1,
|
|
|
+ type: 2,
|
|
|
+ size: -1,
|
|
|
+ status: 1
|
|
|
+ };
|
|
|
+ contactList(param).then((res) => {
|
|
|
+ this.gysList = res.list;
|
|
|
+ });
|
|
|
+ },
|
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
|
},
|