123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <template>
- <!-- <el-dialog
- title="查看"
- width="70%"
- :close-on-click-modal="false"
- :visible.sync="visible"> -->
- <div>
- <div class="my-title">查看</div>
- <div style="margin-left: 20px; margin-right: 20px">
- <e-desc title="基本信息" column="3">
- <e-desc-item label="沟通编码">{{ dataForm.coCode }}</e-desc-item>
- <e-desc-item label="客户名称">{{ dataForm.customerName }}</e-desc-item>
- <e-desc-item label="客户联系人">{{ dataForm.contact }}</e-desc-item>
- <e-desc-item label="客户联系电话">{{ dataForm.contactTel }}</e-desc-item>
- <e-desc-item label="沟通方式">{{ dataForm.way }}</e-desc-item>
- <e-desc-item label="沟通类别">{{ dataForm.coTypeValue }}</e-desc-item>
- <e-desc-item label="沟通主要内容" span="3">{{ dataForm.content }}</e-desc-item>
- <e-desc-item label="备注说明" span="3">{{
- dataForm.notes
- }}</e-desc-item>
- </e-desc>
- <e-desc title="技术资料">
- <upload-component
- :display="true"
- :display-title="false"
- :accept="'*'"
- :file-obj-list="dataForm.attachListTechnical || []"
- />
- </e-desc>
- <e-desc title="数模/图纸">
- <upload-component
- :display="true"
- :display-title="false"
- :accept="'*'"
- :file-obj-list="dataForm.attachListDrawing || []"
- />
- </e-desc>
- <e-desc title="沟通表原件">
- <upload-component
- :display="true"
- :display-title="false"
- :accept="'*'"
- :file-obj-list="dataForm.attachList || []"
- />
- </e-desc>
- <e-desc title="其他附件">
- <upload-component
- :display="true"
- :display-title="false"
- :accept="'*'"
- :file-obj-list="dataForm.attachListOther || []"
- />
- </e-desc>
- <e-desc title="沟通物料明细">
- <el-table :data="cusRCommProductVOS" border style="width: 100%">
- <el-table-column label="序号" type="index" width="50" align="center">
- </el-table-column>
- <el-table-column
- prop="productName"
- header-align="center"
- align="center"
- min-width="120"
- :show-tooltip-when-overflow="true"
- label="物料名称"
- >
- </el-table-column>
- <el-table-column
- prop="productSpecifications"
- header-align="center"
- align="center"
- :show-tooltip-when-overflow="true"
- label="规格"
- >
- </el-table-column>
- <el-table-column
- prop="cnt"
- header-align="center"
- align="center"
- label="数量"
- >
- </el-table-column>
- <el-table-column
- prop="deliveryDate"
- header-align="center"
- align="center"
- min-width="100"
- width="150"
- label="交付日期"
- >
- </el-table-column>
- <el-table-column
- prop="notes"
- header-align="center"
- align="center"
- min-width="180"
- :show-tooltip-when-overflow="true"
- label="备注"
- >
- </el-table-column>
- </el-table>
- </e-desc>
- <e-desc title="任务工单派发">
- <el-table :data="dataForm.workInfoList" border style="width: 100%">
- <el-table-column
- label="序号"
- type="index"
- width="50"
- align="center"
- >
- </el-table-column>
- <el-table-column
- prop="taskType"
- header-align="center"
- align="center"
- min-width="100"
- width="120"
- label="工单类型"
- >
- <template slot-scope="scope">
- <span>{{ scope.row.taskTypeName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="taskName"
- header-align="center"
- align="center"
- :show-tooltip-when-overflow="true"
- label="工单名称"
- >
- </el-table-column>
- <el-table-column
- prop="ranks"
- header-align="center"
- align="center"
- width="120"
- label="级别"
- >
- <template slot-scope="scope">
- <span>{{ scope.row.rankTypeName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="content"
- header-align="center"
- align="center"
- min-width="100"
- label="工单内容"
- :show-tooltip-when-overflow="true"
- >
- </el-table-column>
- <el-table-column
- prop="receiver"
- header-align="center"
- align="center"
- width="150"
- label="任务接收人"
- >
- <template slot-scope="scope">
- <span>{{ scope.row.receiverName }}</span>
- </template>
- </el-table-column>
- <el-table-column
- prop="attachListVo"
- header-align="center"
- align="center"
- width="150"
- label="任务附件"
- >
- <template slot-scope="scope">
- <el-button
- :disabled="
- !scope.row.attachListVo || scope.row.attachListVo.length === 0
- "
- type="text"
- size="small"
- @click="attachDetails(scope.row.attachListVo)"
- >查看</el-button
- >
- </template>
- </el-table-column>
- <el-table-column
- prop="notes"
- header-align="center"
- align="center"
- :show-tooltip-when-overflow="true"
- label="备注"
- >
- </el-table-column>
- </el-table>
- </e-desc>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="onChose">返回</el-button>
- </span>
- <attach-detail-dialog ref="attachDetail" @onChose="onChose" />
- </div>
- <!-- </el-dialog> -->
- </template>
- <script>
- import EDesc from "../common/e-desc";
- import EDescItem from "../common/e-desc-item";
- import { getCoDetail } from "@/api/cus";
- import uploadComponent from "../common/upload-component-v2";
- import AttachDetailDialog from "../common/attach-detail-dialog";
- export default {
- name: "communicate-detail",
- components: {
- EDesc,
- EDescItem,
- uploadComponent,
- AttachDetailDialog
- },
- data() {
- return {
- visible: false,
- id: 0,
- dataForm: {},
- cusRCommProductVOS: [],
- fileList: [],
- };
- },
- methods: {
- onChose() {
- this.$emit("onChose");
- },
- async init(id) {
- this.visible = true;
- this.id = id || 0;
- this.dataForm = {};
- this.cusRCommProductVOS = [];
- this.fileList = [];
- this.getDetails();
- },
- getDetails() {
- getCoDetail(this.id).then(({ data }) => {
- if (data && data.code === "200") {
- this.dataForm = data.data;
- // 附件显示
- this.fileList = [];
- if (this.dataForm.attachListTechnical) {
- this.dataForm.attachListTechnical.forEach((item) => {
- item.name = item.fileName;
- item.id = item.url;
- });
- }
- if (this.dataForm.attachListDrawing) {
- this.dataForm.attachListDrawing.forEach((item) => {
- item.name = item.fileName;
- item.id = item.url;
- });
- }
- if (this.dataForm.attachList) {
- this.dataForm.attachList.forEach((item) => {
- item.name = item.fileName;
- item.id = item.url;
- });
- }
- if (this.dataForm.attachListOther) {
- this.dataForm.attachListOther.forEach((item) => {
- item.name = item.fileName;
- item.id = item.url;
- });
- }
- if (data.data.cusRCommProductVOS) {
- data.data.cusRCommProductVOS.forEach((item) => {
- this.cusRCommProductVOS.push({
- ...item,
- });
- });
- }
- }
- });
- },
- attachDetails(attachList) {
- this.$refs.attachDetail.init(attachList);
- },
- },
- };
- </script>
- <style scoped>
- .my-line {
- border-bottom: 1px solid #c0c4cc;
- margin-bottom: 10px;
- }
- .title {
- padding: 10px 0;
- }
- </style>
|