|
@@ -35,6 +35,11 @@
|
|
|
<el-input v-model="queryParams.taskTypeName" style="width: 150px" placeholder="请输入项目" clearable
|
|
|
@keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="结果情况:" prop="resultStatus">
|
|
|
+ <el-select v-model="queryParams.resultStatus" placeholder="请选择结果情况" clearable @change="handleQuery">
|
|
|
+ <el-option v-for="item in resultStatus" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<!-- <el-form-item v-if="tenant.versionId !== '4'" label="是否自己负责:" v-hasPermi="['business:once:person']">
|
|
|
<el-switch v-model="oneself" @change="handleOneself" />
|
|
|
</el-form-item> -->
|
|
@@ -80,8 +85,7 @@
|
|
|
<el-table-column label="说明" align="center" prop="explain" min-width="180" />
|
|
|
<el-table-column label="合同" align="center" min-width="180" >
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="primary" size="small" @click="viewContract(scope.row)"
|
|
|
- v-hasPermi="['business:archive:order:edit']">查看</el-button>
|
|
|
+ <el-button link type="primary" size="small" @click="viewContract(scope.row)">查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="委托时间" align="center" min-width="140">
|
|
@@ -128,8 +132,9 @@
|
|
|
|
|
|
<el-table-column label="任务进度" align="center" prop="onWorkDetail" min-width="140">
|
|
|
<template #default="scope">
|
|
|
- {{scope.row.onWorkDetail}}
|
|
|
- <el-button link type="primary" icon="Edit" size="small" style="padding: 0"
|
|
|
+ <el-button link type="primary" size="small" @click="viewOnWorkDetail(scope.row)"
|
|
|
+ >{{textFormat(scope.row.onWorkDetail)}}</el-button>
|
|
|
+ <el-button v-if="scope.row.record != null&&scope.row.record.handlerId === useUserStore().user.userId" style="margin: 0" link type="primary" icon="Edit"
|
|
|
@click="viewOnWorkDetail(scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -154,10 +159,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="结果情况" align="center" min-width="140">
|
|
|
<template #default="scope">
|
|
|
- {{ scope.row.record == null? '未开始' : scope.row.record.status === 7 ?'暂停办理':scope.row.record.status === 5?'终止任务':scope.row.record.status === 1?'办理中':scope.row.record.status === 0?'未开始':'完成任务' }}
|
|
|
+ <div v-if="scope.row.record == null || scope.row.record===0">
|
|
|
+ {{'未开始'}}
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-button link type="primary" size="small" @click="viewResult(scope.row)"
|
|
|
+ >{{ scope.row.record.status ===3?'已完成':scope.row.record.status ===4?'暂停中':'办理中' }}</el-button>
|
|
|
+ <el-button v-if="scope.row.record != null&&scope.row.record.handlerId === useUserStore().user.userId" link type="primary" icon="Edit" size="small" style="margin: 0"
|
|
|
+ @click="viewResult(scope.row)" />
|
|
|
+ </div>
|
|
|
|
|
|
- <el-button link type="primary" icon="Edit" size="small" style="padding: 0"
|
|
|
- @click="viewResult(scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" align="center" width="100">
|
|
@@ -207,7 +218,7 @@
|
|
|
<el-table-column label="操作" width="130" align="center" prop="">
|
|
|
<template #default="scope">
|
|
|
|
|
|
- <el-button v-if="scope.row.record != null && scope.row.record.status === 7" size="small" type="primary" link
|
|
|
+ <el-button v-if="scope.row.record != null && scope.row.record.status === 4" size="small" type="primary" link
|
|
|
v-hasPermi="['business:production:onceWork:finished']" @click="continueHandle(scope.row)">
|
|
|
继续办理
|
|
|
</el-button>
|
|
@@ -232,8 +243,8 @@
|
|
|
<!-- 分页 -->
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
- <contract-form ref="contractRef" :get-list="getContractList" />
|
|
|
- <result-dialog ref="resultDialogView" :get-list="getList" />
|
|
|
+ <contract-form ref="contractRef" :select-view="false" :get-list="getContractList" />
|
|
|
+ <result-dialog ref="resultDialogView" :get-list="getList" />
|
|
|
<on-work-detail ref="onWorkDetailView" :get-list="getList" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -264,7 +275,7 @@
|
|
|
{
|
|
|
label: "办理中",
|
|
|
value: 1,
|
|
|
- color: "#ff8c00",
|
|
|
+ color: "#FFB836",
|
|
|
},
|
|
|
{
|
|
|
label: "已完成",
|
|
@@ -272,24 +283,32 @@
|
|
|
color: "#2FCB81",
|
|
|
},
|
|
|
{
|
|
|
- label: "已完成(终止任务)",
|
|
|
- value: 5,
|
|
|
- color: "#2FCB81",
|
|
|
+ label: "暂停中",
|
|
|
+ value: 4,
|
|
|
+ color: "#b80f0f",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ resultStatus: [
|
|
|
+ {
|
|
|
+ label: "暂停办理",
|
|
|
+ value: 2,
|
|
|
+ color: "#888",
|
|
|
},
|
|
|
{
|
|
|
- label: "已完成(完成任务)",
|
|
|
- value: 6,
|
|
|
+ label: "终止任务",
|
|
|
+ value: 0,
|
|
|
color: "#2FCB81",
|
|
|
},
|
|
|
{
|
|
|
- label: "暂停中",
|
|
|
- value: 7,
|
|
|
- color: "#888",
|
|
|
+ label: "完成任务",
|
|
|
+ value: 1,
|
|
|
+ color: "#2FCB81",
|
|
|
},
|
|
|
+
|
|
|
],
|
|
|
});
|
|
|
|
|
|
- const { selectStatus } = toRefs(data);
|
|
|
+ const { selectStatus,resultStatus } = toRefs(data);
|
|
|
|
|
|
/** 字典数组区 */
|
|
|
/** 查询 对象 */
|
|
@@ -487,6 +506,12 @@
|
|
|
const id = row.contractId || ids.value;
|
|
|
proxy.$refs.contractRef.open(id);
|
|
|
}
|
|
|
+ const textFormat = (text)=>{
|
|
|
+ if(text){
|
|
|
+ return text.slice(0,10)+'....'
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ }
|
|
|
const viewResult = (row) =>{
|
|
|
const id = row.id || ids.value;
|
|
|
if(row.record == null||row.record.status === 0 ){
|
|
@@ -498,7 +523,7 @@
|
|
|
{ dangerouslyUseHTMLString: true }
|
|
|
);
|
|
|
}else {
|
|
|
- resultDialogView.value.openView(id, row.record.status, row.record.handlerId, row.tenantId);
|
|
|
+ resultDialogView.value.openView(id, row.record.status, row.record.handlerId,row.record.resultStatus);
|
|
|
}
|
|
|
}
|
|
|
const rowNum = (num)=> {
|