|
@@ -141,7 +141,7 @@
|
|
|
import planDetaillog from '../../purchasingManage/purchasePlanManage/components/detailDialog.vue';
|
|
import planDetaillog from '../../purchasingManage/purchasePlanManage/components/detailDialog.vue';
|
|
|
import popModal from '@/components/pop-modal';
|
|
import popModal from '@/components/pop-modal';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
- import { contactTypeTree } from '@/api/saleManage/contact';
|
|
|
|
|
|
|
+ import {contactDetail, contactTypeTree} from '@/api/saleManage/contact';
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
getTableList,
|
|
getTableList,
|
|
@@ -205,13 +205,13 @@
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 200
|
|
minWidth: 200
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- prop: 'supplierNames',
|
|
|
|
|
- label: '供应商名称',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- minWidth: 200
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'supplierNames',
|
|
|
|
|
+ // label: '供应商名称',
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // showOverflowTooltip: true,
|
|
|
|
|
+ // minWidth: 200
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
prop: 'winnerName',
|
|
prop: 'winnerName',
|
|
|
label: '中标供应商',
|
|
label: '中标供应商',
|
|
@@ -323,16 +323,17 @@
|
|
|
this.$refs.table.reload({ page: 1, where });
|
|
this.$refs.table.reload({ page: 1, where });
|
|
|
},
|
|
},
|
|
|
//新增合同
|
|
//新增合同
|
|
|
- addGenerateContract(type, row) {
|
|
|
|
|
|
|
+ async addGenerateContract(type, row) {
|
|
|
let { verify, text, ids } = this.verify(type, row);
|
|
let { verify, text, ids } = this.verify(type, row);
|
|
|
if (!verify) {
|
|
if (!verify) {
|
|
|
this.$message.warning(text);
|
|
this.$message.warning(text);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- generateContract(ids).then((res) => {
|
|
|
|
|
- this.$refs.addContractBookDialogRef.open('add', res, true);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let contractInfo = await generateContract(ids);
|
|
|
|
|
+ let contact = await contactDetail(contractInfo.contractVO.partbId);
|
|
|
|
|
+ contractInfo.contractVO.contractName = contact.base.simpleName;
|
|
|
|
|
+ this.$refs.addContractBookDialogRef.open('add', contractInfo, true);
|
|
|
},
|
|
},
|
|
|
//新增编辑
|
|
//新增编辑
|
|
|
openEdit(type, row) {
|
|
openEdit(type, row) {
|