ticketDetail
This commit is contained in:
parent
7d732d68c2
commit
ed771eab5b
File diff suppressed because it is too large
Load Diff
|
|
@ -134,7 +134,7 @@ export default {
|
||||||
|
|
||||||
//工作流
|
//工作流
|
||||||
getWorkflow() {
|
getWorkflow() {
|
||||||
this.$API.system.dept.list.req({ page: 0 }).then((res) => {
|
this.$API.wf.workflow.list.req({ page: 0 }).then((res) => {
|
||||||
this.workflowoptions = res;
|
this.workflowoptions = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -83,19 +83,21 @@
|
||||||
},
|
},
|
||||||
handleShow(row) {
|
handleShow(row) {
|
||||||
let workflowKey = row.workflow_.key;
|
let workflowKey = row.workflow_.key;
|
||||||
let catetype = '';
|
let cateType = '',projectId='';
|
||||||
if(workflowKey==='visit'){
|
if(workflowKey==='visit'){
|
||||||
catetype = row.workflow_.key
|
cateType = row.workflow_.key;
|
||||||
|
projectId = row.ticket_data.visit;
|
||||||
}else if(workflowKey==='rparty'){
|
}else if(workflowKey==='rparty'){
|
||||||
catetype = row.workflow_.key
|
cateType = row.workflow_.key;
|
||||||
|
projectId = row.ticket_data.rpj;
|
||||||
}else{}
|
}else{}
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "visitdetail",
|
name: "visitdetail",
|
||||||
query: {
|
query: {
|
||||||
id: row.id,
|
id: row.id,
|
||||||
type: 'show',
|
type: 'show',
|
||||||
projectId: row.ticket_data.visit,
|
projectId: projectId,
|
||||||
catetype:catetype
|
catetype:cateType
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -16,18 +16,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="进行状态" min-width="100">
|
<el-table-column label="进行状态" min-width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.state_.type == 0"
|
<span>{{ scope.row.state_.name }}</span>
|
||||||
>{{ scope.row.state_.name }}中</span
|
|
||||||
>
|
|
||||||
<span v-else>已{{ scope.row.state_.name }}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作人" min-width="100">
|
<el-table-column label="操作人" min-width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-span v-if="scope.row.participant_">{{
|
<el-span v-if="scope.row.participant_">{{scope.row.participant_.name }}</el-span>
|
||||||
scope.row.participant_.name
|
<el-span v-if="scope.row.participant_str">{{scope.row.participant_str }}</el-span>
|
||||||
}}
|
|
||||||
</el-span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -68,9 +63,9 @@
|
||||||
this.getFlowlogss();
|
this.getFlowlogss();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getFlowlogss() {
|
getFlowlogss() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then(res => {
|
this.$API.wf.ticket.ticketFlowlogs.req(that.ticketId).then(res => {
|
||||||
if (res.err_msg) {
|
if (res.err_msg) {
|
||||||
} else {
|
} else {
|
||||||
that.logs = res;
|
that.logs = res;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
></el-button>
|
></el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding" style="height: 100%;">
|
||||||
<scTable
|
<scTable
|
||||||
ref="table"
|
ref="table"
|
||||||
:data="list"
|
:data="list"
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
highlightCurrentRow
|
highlightCurrentRow
|
||||||
hidePagination
|
hidePagination
|
||||||
>
|
>
|
||||||
|
<el-table-column label="#" type="index"></el-table-column>
|
||||||
<el-table-column label="ID" prop="id"></el-table-column>
|
<el-table-column label="ID" prop="id"></el-table-column>
|
||||||
<el-table-column label="名称" prop="name"></el-table-column>
|
<el-table-column label="名称" prop="name"></el-table-column>
|
||||||
<el-table-column label="是否隐藏">
|
<el-table-column label="是否隐藏">
|
||||||
|
|
|
||||||
|
|
@ -44,37 +44,39 @@
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-left: 10px; margin-bottom: 10px" v-if="cateType==='rparty'">
|
<el-card style="margin-left: 10px; margin-bottom: 10px" v-if="cateType==='rparty'">
|
||||||
<el-descriptions title="来访信息" :column="3">
|
<el-descriptions title="入厂项目" :column="3">
|
||||||
<el-descriptions-item label="工单流水号:">
|
<el-descriptions-item label="工单流水号:">
|
||||||
{{ticketDetail.sn }}
|
{{ticketDetail.sn }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="相关方:">
|
<el-descriptions-item label="相关方:">
|
||||||
{{rpjDetail.name }}
|
{{rpjDetail.rparty_name}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="入厂项目:">
|
<el-descriptions-item label="入厂项目:">
|
||||||
<!--{{rpjDetail.company }}-->
|
{{rpjDetail.name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="项目类型:">
|
<el-descriptions-item label="项目类型:">
|
||||||
<!--<el-tag size="small">{{ rpjDetail.count_people }}人</el-tag>-->
|
<el-tag size="small">{{rpjType_[rpjDetail.type]}}</el-tag>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="合同编号:">
|
<el-descriptions-item label="合同编号:">
|
||||||
<!--<el-tag v-for="item in rpjDetail.visitors_" :key='item.id' size="small">
|
{{rpjDetail.contract_number }}
|
||||||
<!–{{ item.visitor_.name }}–>
|
|
||||||
</el-tag>-->
|
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="状态:">
|
<el-descriptions-item label="状态:">
|
||||||
<!--{{state_[rpjDetail.state] }}-->
|
{{state_[rpjDetail.state] }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="进厂时间:">
|
<el-descriptions-item label="进厂时间:">
|
||||||
<!--{{rpjDetail.visit_time }}-->
|
{{rpjDetail.come_time }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="离厂时间:">
|
<el-descriptions-item label="离厂时间:">
|
||||||
<!--{{rpjDetail.leave_time }}-->
|
{{rpjDetail.leave_time }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="所属部门:">
|
<el-descriptions-item label="所属部门:">
|
||||||
<!--{{purpose_[rpjDetail.purpose] }}-->
|
{{rpjDetail.belong_dept_name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
<div style="text-align: center">
|
||||||
|
<el-link type="primary" @click="showMore"> 更多信息 </el-link>
|
||||||
|
</div>
|
||||||
|
<show-dialog v-if="rpjShow" ref="showDialog"></show-dialog>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-left: 10px; margin-bottom: 10px" v-if="type!=='show'">
|
<el-card style="margin-left: 10px; margin-bottom: 10px" v-if="type!=='show'">
|
||||||
<scTitle title="处理"></scTitle>
|
<scTitle title="处理"></scTitle>
|
||||||
|
|
@ -137,13 +139,15 @@
|
||||||
<script>
|
<script>
|
||||||
import workDetails from "./details.vue";
|
import workDetails from "./details.vue";
|
||||||
import workStep from "./steps.vue";
|
import workStep from "./steps.vue";
|
||||||
|
import showDialog from "./../rpm/rpj_show.vue";
|
||||||
import selectUser from '@/layout/components/userselect'
|
import selectUser from '@/layout/components/userselect'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
workDetails,
|
workDetails,
|
||||||
workStep,
|
workStep,
|
||||||
selectUser
|
selectUser,
|
||||||
|
showDialog
|
||||||
},
|
},
|
||||||
name: "visitdetail",
|
name: "visitdetail",
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -167,6 +171,7 @@
|
||||||
suggestion:'',
|
suggestion:'',
|
||||||
target_user:'',
|
target_user:'',
|
||||||
},
|
},
|
||||||
|
rpjShow:false,
|
||||||
limitedAdd:false,
|
limitedAdd:false,
|
||||||
limitedDeliver:false,
|
limitedDeliver:false,
|
||||||
limitedUserSelect:false,
|
limitedUserSelect:false,
|
||||||
|
|
@ -176,6 +181,12 @@
|
||||||
30: "面试",
|
30: "面试",
|
||||||
40: "开会"
|
40: "开会"
|
||||||
},
|
},
|
||||||
|
rpjType_: {
|
||||||
|
10: "建筑施工",
|
||||||
|
20: "设备设施检维修",
|
||||||
|
30: "保安保洁服务",
|
||||||
|
40: "其他",
|
||||||
|
},
|
||||||
state_: {
|
state_: {
|
||||||
10: "创建中",
|
10: "创建中",
|
||||||
20: "审批中",
|
20: "审批中",
|
||||||
|
|
@ -186,27 +197,28 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
this.ticketId = this.$route.query.id;
|
|
||||||
this.type = this.$route.query.type;
|
|
||||||
this.cateType = this.$route.query.catetype;
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.ticketId = this.$route.query.id;
|
this.ticketId = this.$route.query.id;
|
||||||
this.type = this.$route.query.type;
|
this.type = this.$route.query.type;
|
||||||
this.projectId = this.$route.query.projectId;
|
this.projectId = this.$route.query.projectId;
|
||||||
this.cateType = this.$route.query.catetype;
|
this.cateType = this.$route.query.catetype;
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
if(this.cateType==='visit'){
|
if(this.cateType==='visit'){
|
||||||
this.getVisit();
|
this.getVisit();
|
||||||
}else if(this.cateType==='rparty'){
|
}else if(this.cateType==='rparty'){
|
||||||
this.getVisit();
|
this.getRpj();
|
||||||
}
|
}
|
||||||
this.getticketItem();
|
this.getticketItem();
|
||||||
|
|
||||||
this.getBtns();
|
this.getBtns();
|
||||||
this.getRpj();
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showMore(){
|
||||||
|
this.rpjShow = true;
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.$refs.showDialog.open().setData({id:this.projectId});
|
||||||
|
})
|
||||||
|
},
|
||||||
//工单详情
|
//工单详情
|
||||||
getticketItem() {
|
getticketItem() {
|
||||||
this.$API.wf.ticket.ticketItem.req(this.ticketId).then((res) => {
|
this.$API.wf.ticket.ticketItem.req(this.ticketId).then((res) => {
|
||||||
|
|
@ -229,7 +241,8 @@
|
||||||
|
|
||||||
//入厂项目详情
|
//入厂项目详情
|
||||||
getRpj(){
|
getRpj(){
|
||||||
this.$API.rpmrpj.item.req(this.projectId).then((res) => {
|
this.$API.rpm.rpj.item.req(this.projectId).then((res) => {
|
||||||
|
debugger;
|
||||||
this.rpjDetail = res;
|
this.rpjDetail = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,13 +28,13 @@
|
||||||
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="220">
|
<el-table-column label="操作" fixed="right" align="center" width="220">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="workflowShow(scope.row)">配置</el-button>
|
<el-button link size="small" type="primary" @click="workflowShow(scope.row)">配置</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-button link size="small" @click="workflowEdit(scope.row)">编辑</el-button>
|
<el-button link size="small" type="primary" @click="workflowEdit(scope.row)">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="workflowDel(scope.row)">
|
<el-popconfirm title="确定删除吗?" @confirm="workflowDel(scope.row)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small">删除</el-button>
|
<el-button link size="small" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue