|
|
|
|
@ -1196,22 +1196,26 @@ export default {
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ 'color': this.flowStatusColor.get(row.FLOWSTATUS.zhaobiao.getStatus()), 'display': 'flex', 'align-items': 'center', 'justify-content': 'center' }}>
|
|
|
|
|
<span>{ this.flowStatus.get(row.FLOWSTATUS.zhaobiao.getStatus()) || '无' }</span>
|
|
|
|
|
<el-popover title="是否需要招标审核" placement="bottom-start" width="160">
|
|
|
|
|
<el-switch active-value={1}
|
|
|
|
|
v-model={row.is_tender_audit}
|
|
|
|
|
inactive-value={0}
|
|
|
|
|
active-text="是"
|
|
|
|
|
inactive-text="否"
|
|
|
|
|
on={{
|
|
|
|
|
change: e => {
|
|
|
|
|
editorContract({
|
|
|
|
|
id: row.id,
|
|
|
|
|
is_tender_audit: e
|
|
|
|
|
}).then(_ => this.getContracts())
|
|
|
|
|
}
|
|
|
|
|
}}></el-switch>
|
|
|
|
|
<i class="el-icon-info" style="margin-left: 8px;font-size: 17px;" slot="reference"></i>
|
|
|
|
|
</el-popover>
|
|
|
|
|
{
|
|
|
|
|
row.is_purchase ? (
|
|
|
|
|
<el-popover title="是否需要招标审核" placement="bottom-start" width="160">
|
|
|
|
|
<el-switch active-value={1}
|
|
|
|
|
v-model={row.is_tender_audit}
|
|
|
|
|
inactive-value={0}
|
|
|
|
|
active-text="是"
|
|
|
|
|
inactive-text="否"
|
|
|
|
|
on={{
|
|
|
|
|
change: e => {
|
|
|
|
|
editorContract({
|
|
|
|
|
id: row.id,
|
|
|
|
|
is_tender_audit: e
|
|
|
|
|
}).then(_ => this.getContracts())
|
|
|
|
|
}
|
|
|
|
|
}}></el-switch>
|
|
|
|
|
<i class="el-icon-info" style="margin-left: 8px;font-size: 17px;" slot="reference"></i>
|
|
|
|
|
</el-popover>
|
|
|
|
|
) : ''
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
(row.FLOWSTATUS.zhaobiao.getStatus() !== 2 && row.FLOWSTATUS.zhaobiao.getStatus() !== -2) ? <a style="color: #333" on={{['click']:()=>{
|
|
|
|
|
@ -1232,22 +1236,26 @@ export default {
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ 'color': this.flowStatusColor.get(row.FLOWSTATUS.shenpi.getStatus()), 'display': 'flex', 'align-items': 'center', 'justify-content': 'center' }}>
|
|
|
|
|
<span>{ this.flowStatus.get(row.FLOWSTATUS.shenpi.getStatus()) }</span>
|
|
|
|
|
<el-popover title="是否需要合同审批" placement="bottom-start" width="160">
|
|
|
|
|
<el-switch active-value={1}
|
|
|
|
|
v-model={row.is_contract}
|
|
|
|
|
inactive-value={0}
|
|
|
|
|
active-text="是"
|
|
|
|
|
inactive-text="否"
|
|
|
|
|
on={{
|
|
|
|
|
'change':e => {
|
|
|
|
|
editorContract({
|
|
|
|
|
id: row.id,
|
|
|
|
|
is_contract: e
|
|
|
|
|
}).then(_ => this.getContracts())
|
|
|
|
|
}
|
|
|
|
|
}}></el-switch>
|
|
|
|
|
<i class="el-icon-info" style="margin-left: 8px;font-size: 17px;" slot="reference"></i>
|
|
|
|
|
</el-popover>
|
|
|
|
|
{
|
|
|
|
|
row.is_purchase ? (
|
|
|
|
|
<el-popover title="是否需要合同审批" placement="bottom-start" width="160">
|
|
|
|
|
<el-switch active-value={1}
|
|
|
|
|
v-model={row.is_contract}
|
|
|
|
|
inactive-value={0}
|
|
|
|
|
active-text="是"
|
|
|
|
|
inactive-text="否"
|
|
|
|
|
on={{
|
|
|
|
|
'change': e => {
|
|
|
|
|
editorContract({
|
|
|
|
|
id: row.id,
|
|
|
|
|
is_contract: e
|
|
|
|
|
}).then(_ => this.getContracts())
|
|
|
|
|
}
|
|
|
|
|
}}></el-switch>
|
|
|
|
|
<i class="el-icon-info" style="margin-left: 8px;font-size: 17px;" slot="reference"></i>
|
|
|
|
|
</el-popover>
|
|
|
|
|
) : ''
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
(row.FLOWSTATUS.shenpi.getStatus() !== 2 && row.FLOWSTATUS.shenpi.getStatus() !== -2) ? <a style="color: #333" on={{['click']:()=>this.toOaDetail('hetong',row)}}>查看</a> : ''
|
|
|
|
|
@ -1722,7 +1730,7 @@ export default {
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_URL}/#/flow/detail?auth_token=${window.encodeURIComponent(getToken())}&isSinglePage=1&flow_id=`
|
|
|
|
|
switch (tbname) {
|
|
|
|
|
case "caigou":
|
|
|
|
|
let caigou = row.is_common_purchase ? row.flow_list.find(i => i.tag === 'common_purchase') : row.flow_list.find(i => i.tag === 'caigou')
|
|
|
|
|
let caigou = row.is_common_purchase ? row.flow_list.find(i => i.tag === 'common_purchase') : row.flow_list.find(i => i.custom_model_id === row.flow_mod_id)
|
|
|
|
|
//url += `&to=/flow/detail?flow_id=${caigou.id}`
|
|
|
|
|
url += caigou?.flow_id
|
|
|
|
|
break;
|
|
|
|
|
@ -2350,6 +2358,7 @@ export default {
|
|
|
|
|
const common_purchase = item.flow_list.find(i => i.tag === 'common_purchase')
|
|
|
|
|
const caigou = item.flow_list.find(i => i.custom_model_id === item.flow_mod_id)
|
|
|
|
|
const shenpi = item.flow_list.find(i => i.tag === 'contract')
|
|
|
|
|
const other = item.flow_list.find(i => i.custom_model_id === item.flow_mod_id)
|
|
|
|
|
if (item.is_purchase) {
|
|
|
|
|
//为采购项目
|
|
|
|
|
if (!item.is_common_purchase) {
|
|
|
|
|
@ -2393,7 +2402,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (item.flow_mod_id) {
|
|
|
|
|
const other = item.flow_list.find(i => i.custom_model_id === item.flow_mod_id)
|
|
|
|
|
//非采购事前流程
|
|
|
|
|
flowStatus["other"].setStatus(other?.flow_status ?? 2)
|
|
|
|
|
if (!other || other.flow_status === 2) {
|
|
|
|
|
@ -2404,9 +2412,13 @@ export default {
|
|
|
|
|
if (item.is_end === 0) {
|
|
|
|
|
flowStatus["zhifu"].setStatus(2)
|
|
|
|
|
//最后一笔没付完
|
|
|
|
|
if ((item.is_purchase === 0 && item.other_flow_status === 3) || (!item.is_contract && !item.is_substitute && caigou?.flow_status === 1) || (item.purchase_way?.value === "网上商城" && caigou?.flow_status === 1) ||
|
|
|
|
|
if (
|
|
|
|
|
(item.is_purchase === 0 && other?.flow_status === 1) ||
|
|
|
|
|
item.status === 2 ||
|
|
|
|
|
(!item.is_contract && item.is_simple) || (item.is_contract && item.is_substitute && shenpi?.flow_status === 1)) {
|
|
|
|
|
(!item.is_contract && item.is_simple) ||
|
|
|
|
|
(item.is_tender_audit && !item.is_contract && shenpi?.flow_status === 1) ||
|
|
|
|
|
(!item.is_tender_audit && !item.is_contract && (caigou?.flow_status === 1 || common_purchase?.flow_status === 1))
|
|
|
|
|
) {
|
|
|
|
|
//网上商场的话采购完成 合同签订完成 不为合同并且为简易
|
|
|
|
|
flowStatus["zhifu"].setExecutable(true)
|
|
|
|
|
}
|
|
|
|
|
|