|
|
@@ -0,0 +1,253 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <basicDetails
|
|
|
+ ref="details"
|
|
|
+ :titleText="mainData.billno"
|
|
|
+ :editData="mainData"
|
|
|
+ :mainAreaData="mainAreaData"
|
|
|
+ turnPageId="2026051510000003"
|
|
|
+ idname="sc_serviceformid"
|
|
|
+ ownertable="sc_serviceform"
|
|
|
+ tags=""
|
|
|
+ :tabs="['服务预约', '关联工单']"
|
|
|
+ :column="5"
|
|
|
+ @pageChange="pageChange"
|
|
|
+ @onEditSuccess="queryMainData($route.query.id)"
|
|
|
+ >
|
|
|
+ <div slot="tags"></div>
|
|
|
+ <template slot="customOperation">
|
|
|
+ <changeBill
|
|
|
+ v-if="
|
|
|
+ mainData.status == '待处理' &&
|
|
|
+ tool.checkAuth($route.name, 'changeBill')
|
|
|
+ "
|
|
|
+ class="inline-16"
|
|
|
+ btnType="primary"
|
|
|
+ @onSuccess="queryMainData"
|
|
|
+ :data="mainData"
|
|
|
+ ></changeBill>
|
|
|
+ <assignAgent
|
|
|
+ v-if="
|
|
|
+ mainData.status == '待处理' &&
|
|
|
+ tool.checkAuth($route.name, 'assignAgent')
|
|
|
+ "
|
|
|
+ class="inline-16"
|
|
|
+ btnType="primary"
|
|
|
+ @onSuccess="queryMainData"
|
|
|
+ :data="mainData"
|
|
|
+ ></assignAgent>
|
|
|
+ </template>
|
|
|
+ <div slot="slot0">
|
|
|
+ <base-info
|
|
|
+ v-if="detailInfo"
|
|
|
+ :detailInfo="detailInfo"
|
|
|
+ ></base-info>
|
|
|
+ </div>
|
|
|
+ <div slot="slot1"></div>
|
|
|
+ </basicDetails>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import BaseInfo from "@/bgj/headquartersServiceMaterial/modules/baseInfo";
|
|
|
+import changeBill from "./changeBill";
|
|
|
+import assignAgent from "./assignAgent";
|
|
|
+export default {
|
|
|
+ name: "detail",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ mainData: {},
|
|
|
+ mainAreaData: {},
|
|
|
+ detailInfo: "",
|
|
|
+ btnLoading: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ components: { BaseInfo, changeBill, assignAgent },
|
|
|
+ methods: {
|
|
|
+ async queryMainData() {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ id: 2026052013170002,
|
|
|
+ content: {
|
|
|
+ nocache: true,
|
|
|
+ sc_serviceformid: this.$route.query.id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ this.mainData = res.data;
|
|
|
+ this.changeDataStructure();
|
|
|
+ console.log("this.mainData", this.mainData);
|
|
|
+ },
|
|
|
+ changeDataStructure() {
|
|
|
+ let that = this;
|
|
|
+ this.mainAreaData = [
|
|
|
+ {
|
|
|
+ label: "预约单号",
|
|
|
+ value: this.mainData.billno,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(
|
|
|
+ that.mainData.status
|
|
|
+ );
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "服务类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "客户姓名",
|
|
|
+ value: this.mainData.name,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "客户电话",
|
|
|
+ value: this.mainData.phonenumber,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "省市县",
|
|
|
+ value:
|
|
|
+ this.mainData.province +
|
|
|
+ this.mainData.city +
|
|
|
+ this.mainData.county,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "详细地址",
|
|
|
+ value: this.mainData.address,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "厨房数",
|
|
|
+ value: this.mainData.kitchen,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "卫生间数",
|
|
|
+ value: this.mainData.toilet,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "阳台数",
|
|
|
+ value: this.mainData.balcony,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "经销商",
|
|
|
+ value: this.mainData.enterprisename,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "创建时间",
|
|
|
+ value: this.mainData.createdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "完成时间",
|
|
|
+ value: this.mainData.finishdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ value: this.mainData.remarks,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.detailInfo = {
|
|
|
+ baseInfo: [
|
|
|
+ {
|
|
|
+ label: "预约单号",
|
|
|
+ value: this.mainData.billno,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "服务类型",
|
|
|
+ value: this.mainData.type,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ value: this.$t(this.mainData.status),
|
|
|
+ style: function () {
|
|
|
+ let style = that.tool.getStatusColor(
|
|
|
+ that.mainData.status
|
|
|
+ );
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "客户姓名",
|
|
|
+ value: this.mainData.name,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "客户电话",
|
|
|
+ value: this.mainData.phonenumber,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "省市县",
|
|
|
+ value:
|
|
|
+ this.mainData.province +
|
|
|
+ this.mainData.city +
|
|
|
+ this.mainData.county,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "详细地址",
|
|
|
+ value: this.mainData.address,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "厨房数",
|
|
|
+ value: this.mainData.kitchen,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "卫生间数",
|
|
|
+ value: this.mainData.toilet,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "阳台数",
|
|
|
+ value: this.mainData.balcony,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "现场联系人",
|
|
|
+ value: this.mainData.scenecontact,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "现场联系人电话",
|
|
|
+ value: this.mainData.scenecontactphonenumber,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "经销商",
|
|
|
+ value: this.mainData.enterprisename,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ systemInfo: [
|
|
|
+ {
|
|
|
+ label: "创建时间",
|
|
|
+ value: this.mainData.createdate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "创建人",
|
|
|
+ value: this.mainData.createby,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "指派时间",
|
|
|
+ value: this.mainData.assigndate,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "转单人",
|
|
|
+ value: this.mainData.transformby,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "转单时间",
|
|
|
+ value: this.mainData.transformdate,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ // 监听切换数据,上一页,下一页
|
|
|
+ pageChange(id, rowindex, tabIndex) {
|
|
|
+ this.flag = false;
|
|
|
+ tabIndex = this.$route.query.tabIndex;
|
|
|
+ this.$router.replace({
|
|
|
+ path: "/ourServiceMaterialDetail",
|
|
|
+ query: { id: id, rowindex: rowindex, tabIndex: tabIndex },
|
|
|
+ });
|
|
|
+ this.queryMainData(id);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.queryMainData(this.$route.query.id);
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped></style>
|