|
|
|
@ -337,7 +337,7 @@
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-if="scope.row.FLOWSTATUS['qianding'].isEnabled()">
|
|
|
|
<template v-if="scope.row.FLOWSTATUS['qianding'].executable && scope.row.FLOWSTATUS['qianding'].status === 1">
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
class="slot-btns-item"
|
|
|
|
class="slot-btns-item"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@ -1275,7 +1275,7 @@ export default {
|
|
|
|
<span style={{ 'color': this.flowStatusColor.get(row.FLOWSTATUS.shenpi.getStatus()) }}>{ this.flowStatus.get(row.FLOWSTATUS.shenpi.getStatus()) }</span>
|
|
|
|
<span style={{ 'color': this.flowStatusColor.get(row.FLOWSTATUS.shenpi.getStatus()) }}>{ this.flowStatus.get(row.FLOWSTATUS.shenpi.getStatus()) }</span>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
(row.FLOWSTATUS.shenpi.getStatus() > 1) ? <a style="color: #333" on={{['click']:()=>this.toOaDetail('hetong',row)}}>查看</a> : ''
|
|
|
|
(row.FLOWSTATUS.shenpi.getStatus() !== 2 && row.FLOWSTATUS.shenpi.getStatus() !== -2) ? <a style="color: #333" on={{['click']:()=>this.toOaDetail('hetong',row)}}>查看</a> : ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ -1752,7 +1752,9 @@ export default {
|
|
|
|
url += caigou?.id
|
|
|
|
url += caigou?.id
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "hetong":
|
|
|
|
case "hetong":
|
|
|
|
url += row.join_last_flow_id
|
|
|
|
let contract = row.flow_list.find(i => i.tag === 'contract')?.detail
|
|
|
|
|
|
|
|
//url += `&to=/flow/detail?flow_id=${caigou.id}`
|
|
|
|
|
|
|
|
url += contract?.id
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "other":
|
|
|
|
case "other":
|
|
|
|
url += row.other_flow_id
|
|
|
|
url += row.other_flow_id
|
|
|
|
@ -1878,13 +1880,11 @@ export default {
|
|
|
|
switch (row.flow_mod_id) {
|
|
|
|
switch (row.flow_mod_id) {
|
|
|
|
case 12:
|
|
|
|
case 12:
|
|
|
|
baseInfo = {
|
|
|
|
baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
|
|
|
|
"6583b42c5c29a": row.name,
|
|
|
|
"6583b42c5c29a": row.name,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
baseInfo = {
|
|
|
|
baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
|
|
|
|
"65b37c797845d": row.name,
|
|
|
|
"65b37c797845d": row.name,
|
|
|
|
"65b37c8facfc9": row.content,
|
|
|
|
"65b37c8facfc9": row.content,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1892,7 +1892,7 @@ export default {
|
|
|
|
case 29:
|
|
|
|
case 29:
|
|
|
|
case 71:
|
|
|
|
case 71:
|
|
|
|
baseInfo = {
|
|
|
|
baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
"caigouxiangmuleixing": row.type_name,
|
|
|
|
"caigouxiangmu": row.name || "",
|
|
|
|
"caigouxiangmu": row.name || "",
|
|
|
|
"caigoufangshi": this.purchaseWay.find(i => i.id === row.purchase_way_id)?.value || "",
|
|
|
|
"caigoufangshi": this.purchaseWay.find(i => i.id === row.purchase_way_id)?.value || "",
|
|
|
|
"zijinlaiyuan": row?.plans.reduce((pre,cur,index)=>(index === 0 ? cur?.name : pre+cur?.name+","),"") || "",
|
|
|
|
"zijinlaiyuan": row?.plans.reduce((pre,cur,index)=>(index === 0 ? cur?.name : pre+cur?.name+","),"") || "",
|
|
|
|
@ -1918,7 +1918,6 @@ export default {
|
|
|
|
// 72
|
|
|
|
// 72
|
|
|
|
this.setNowContract(row, "hetong");
|
|
|
|
this.setNowContract(row, "hetong");
|
|
|
|
let baseInfo = {
|
|
|
|
let baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
|
|
|
|
"hetongmingcheng": row?.name,
|
|
|
|
"hetongmingcheng": row?.name,
|
|
|
|
"amt": Number(row?.money) || row?.plan_price,
|
|
|
|
"amt": Number(row?.money) || row?.plan_price,
|
|
|
|
out_contract_id: row.id,
|
|
|
|
out_contract_id: row.id,
|
|
|
|
@ -1940,7 +1939,6 @@ export default {
|
|
|
|
contract = await show({ id: row.away_id });
|
|
|
|
contract = await show({ id: row.away_id });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let baseInfo = {
|
|
|
|
let baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
|
|
|
|
title: row?.name,
|
|
|
|
title: row?.name,
|
|
|
|
things: row?.name,
|
|
|
|
things: row?.name,
|
|
|
|
"contractno": row?.number,
|
|
|
|
"contractno": row?.number,
|
|
|
|
@ -2419,11 +2417,11 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (item.is_end === 0) {
|
|
|
|
if (item.is_end === 0) {
|
|
|
|
flowStatus["zhifu"].setStatus(1)
|
|
|
|
flowStatus["zhifu"].setStatus(2)
|
|
|
|
//最后一笔没付完
|
|
|
|
//最后一笔没付完
|
|
|
|
if ((item.is_purchase === 0 && item.other_flow_status === 3) || (!item.is_contract && !item.is_substitute && item.purchase_status === 3) || (item.purchase_way?.value === "网上商城" && item.purchase_status === 3) ||
|
|
|
|
if ((item.is_purchase === 0 && item.other_flow_status === 3) || (!item.is_contract && !item.is_substitute && caigou?.status === 1) || (item.purchase_way?.value === "网上商城" && caigou?.status === 1) ||
|
|
|
|
item.status === 2 ||
|
|
|
|
item.status === 2 ||
|
|
|
|
(!item.is_contract && item.is_simple) || (item.is_contract && item.is_substitute && item.join_status === 3)) {
|
|
|
|
(!item.is_contract && item.is_simple) || (item.is_contract && item.is_substitute && shenpi?.status === 1)) {
|
|
|
|
//网上商场的话采购完成 合同签订完成 不为合同并且为简易
|
|
|
|
//网上商场的话采购完成 合同签订完成 不为合同并且为简易
|
|
|
|
flowStatus["zhifu"].setExecutable(true)
|
|
|
|
flowStatus["zhifu"].setExecutable(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|