|
@@ -19,12 +19,14 @@
|
|
|
text: '生成中间合同',
|
|
|
plain: true,
|
|
|
type: 'warning',
|
|
|
+ disabled: selection.data.length === 0,
|
|
|
action: () => openModal('add'),
|
|
|
},
|
|
|
]"
|
|
|
:table-events="{
|
|
|
//element talbe事件都能传
|
|
|
select: select,
|
|
|
+ selectAll: select,
|
|
|
}"
|
|
|
@get-list="getList">
|
|
|
<template #code="{ item }">
|
|
@@ -181,7 +183,7 @@
|
|
|
<div class="baseRow" style="display: flex">
|
|
|
<div class="contentRow" style="width: calc(100% - 100px); text-align: right; color: #409eff">FREIGHT COST:</div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
|
- {{( printDetails.amount - statisticsTwo("amount", 2)).toFixed(2) }}
|
|
|
+ {{statisticsTwo("amount", 2) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="baseRow" style="display: flex">
|
|
@@ -305,11 +307,11 @@ const selectConfig = computed(() => {
|
|
|
prop: "sellCorporationId",
|
|
|
data: corporationList.value,
|
|
|
},
|
|
|
- {
|
|
|
- label: "采购方",
|
|
|
- prop: "buyCorporationId",
|
|
|
- data: corporationList.value,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "采购方",
|
|
|
+ // prop: "buyCorporationId",
|
|
|
+ // data: corporationList.value,
|
|
|
+ // },
|
|
|
];
|
|
|
});
|
|
|
|
|
@@ -355,7 +357,7 @@ const config2 = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "创建人",
|
|
|
- prop: "opUserName",
|
|
|
+ prop: "userName",
|
|
|
width: 180,
|
|
|
},
|
|
|
},
|
|
@@ -466,14 +468,14 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "归属公司",
|
|
|
- slot: "sellCorporationName",
|
|
|
+ slot: "buyCorporationName",
|
|
|
"min-width": 200,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "客户名称",
|
|
|
- slot: "buyCorporationName",
|
|
|
+ slot: "sellCorporationName",
|
|
|
"min-width": 200,
|
|
|
},
|
|
|
},
|
|
@@ -599,8 +601,8 @@ const statistics = (label, index) => {
|
|
|
};
|
|
|
const statisticsTwo = (label, index) => {
|
|
|
let num = 0;
|
|
|
- if (printDetails.value.contractMap.contractProductList && printDetails.value.contractMap.contractProductList.length > 0) {
|
|
|
- printDetails.value.contractMap.contractProductList.map((item) => {
|
|
|
+ if (printDetails.value.contractMap.contractProjectList && printDetails.value.contractMap.contractProjectList.length > 0) {
|
|
|
+ printDetails.value.contractMap.contractProjectList.map((item) => {
|
|
|
if (item[label]) {
|
|
|
num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
|
|
|
}
|