|
@@ -1,179 +1,177 @@
|
|
|
<template>
|
|
|
<div class="filingDetail">
|
|
|
<div class="filingDetail-main">
|
|
|
- <el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
- <el-collapse-item :title="'报备单详情'" name="1">
|
|
|
- <show-data-table
|
|
|
- style="padding: -5px 0 10px 0"
|
|
|
- :newTime="newTime"
|
|
|
- v-if="newTime !== ''"
|
|
|
- :sitem="sitem"
|
|
|
- :columns="editColumns"
|
|
|
- >
|
|
|
- <template slot="status">
|
|
|
- <el-tag
|
|
|
- :size="tablebtnSize"
|
|
|
- :type="
|
|
|
- (statusOptions.find((item) => item.value == sitem.status) || {}).type ||
|
|
|
- ''
|
|
|
- "
|
|
|
- v-text="
|
|
|
- (statusOptions.find((item) => item.value == sitem.status) || {}).label ||
|
|
|
- '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
+ <el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
+ <el-collapse-item :title="'报备单详情'" name="1">
|
|
|
+ <show-data-table
|
|
|
+ style="padding: -5px 0 10px 0"
|
|
|
+ :newTime="newTime"
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ :sitem="sitem"
|
|
|
+ :columns="editColumns"
|
|
|
+ >
|
|
|
+ <template slot="status">
|
|
|
+ <el-tag
|
|
|
+ :size="tablebtnSize"
|
|
|
+ :type="
|
|
|
+ (statusOptions.find((item) => item.value == sitem.status) || {}).type ||
|
|
|
+ ''
|
|
|
+ "
|
|
|
+ v-text="
|
|
|
+ (statusOptions.find((item) => item.value == sitem.status) || {})
|
|
|
+ .label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="expect_service_proportion">
|
|
|
- <span>{{sitem.expect_service_proportion}}%</span>
|
|
|
- </template>
|
|
|
+ <template slot="expect_service_proportion">
|
|
|
+ <span>{{ sitem.expect_service_proportion }}%</span>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="service_proportion">
|
|
|
- <span>{{sitem.service_proportion}}%</span>
|
|
|
- </template>
|
|
|
+ <template slot="service_proportion">
|
|
|
+ <span>{{ sitem.service_proportion }}%</span>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="supplierName">
|
|
|
- <span>{{ sitem.supplierName }}</span>
|
|
|
- <el-popover placement="top" width="300" trigger="hover">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span>供应商编号:</span><span>{{ sitem.supplierNo }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- <template slot="customerName">
|
|
|
- <span>{{ sitem.customerName }}</span>
|
|
|
- <el-popover placement="top" width="300" trigger="hover">
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span>业务公司编号:</span><span>{{ sitem.customerNo }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- <template slot="companyName">
|
|
|
- <span>{{ sitem.companyName }}</span>
|
|
|
- <el-popover
|
|
|
- placement="top"
|
|
|
- width="300"
|
|
|
- trigger="hover"
|
|
|
- v-if="sitem.companyCode"
|
|
|
- >
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span>企业客户编号:</span><span>{{ sitem.companyCode }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
+ <template slot="supplierName">
|
|
|
+ <span>{{ sitem.supplierName }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>供应商编号:</span><span>{{ sitem.supplierNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="customerName">
|
|
|
+ <span>{{ sitem.customerName }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>业务公司编号:</span><span>{{ sitem.customerNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="companyName">
|
|
|
+ <span>{{ sitem.companyName }}</span>
|
|
|
+ <el-popover
|
|
|
+ placement="top"
|
|
|
+ width="300"
|
|
|
+ trigger="hover"
|
|
|
+ v-if="sitem.companyCode"
|
|
|
+ >
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>企业客户编号:</span><span>{{ sitem.companyCode }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="is_determine_price">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- v-text="
|
|
|
- (
|
|
|
- is_determine_price_options.find(
|
|
|
- (item) => item.id == sitem.is_determine_price + ''
|
|
|
- ) || {}
|
|
|
- ).label || '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
- </show-data-table>
|
|
|
- </el-collapse-item>
|
|
|
- <el-collapse-item title="商品信息" name="20">
|
|
|
- <show-data-table
|
|
|
- :newTime="newTime"
|
|
|
- v-if="newTime !== ''"
|
|
|
- :columns="coveColumns"
|
|
|
- :sitem="sitem"
|
|
|
+ <template slot="is_determine_price">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ is_determine_price_options.find(
|
|
|
+ (item) => item.id == sitem.is_determine_price + ''
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ </show-data-table>
|
|
|
+ </el-collapse-item>
|
|
|
+ <el-collapse-item title="商品信息" name="20">
|
|
|
+ <show-data-table
|
|
|
+ :newTime="newTime"
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ :columns="coveColumns"
|
|
|
+ :sitem="sitem"
|
|
|
+ >
|
|
|
+ <template slot="good_name">
|
|
|
+ <span>{{ sitem.good_name }}</span>
|
|
|
+ <span v-for="(si, i) in sitem.specinfo" :key="si.spec_id + i">
|
|
|
+ <span v-if="i !== 0">-</span>
|
|
|
+ <span v-else>_</span>
|
|
|
+ <span>{{ si.spec_name }}[{{ si.spec_value_name }}]</span>
|
|
|
+ </span>
|
|
|
+ <el-popover
|
|
|
+ v-if="sitem.spuCode"
|
|
|
+ placement="top"
|
|
|
+ width="300"
|
|
|
+ trigger="hover"
|
|
|
>
|
|
|
- <template slot="good_name">
|
|
|
- <span>{{ sitem.good_name }}</span>
|
|
|
- <span v-for="(si, i) in sitem.specinfo" :key="si.spec_id + i">
|
|
|
- <span v-if="i !== 0">-</span>
|
|
|
- <span v-else>_</span>
|
|
|
- <span>{{ si.spec_name }}[{{ si.spec_value_name }}]</span>
|
|
|
- </span>
|
|
|
- <el-popover
|
|
|
- v-if="sitem.spuCode"
|
|
|
- placement="top"
|
|
|
- width="300"
|
|
|
- trigger="hover"
|
|
|
- >
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <span>商品编号:</span><span>{{ sitem.spuCode }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>商品编号:</span><span>{{ sitem.spuCode }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="send_way">
|
|
|
- <span>{{ sitem.send_way === "1" ? "供应商包邮" : "公司自提" }}</span>
|
|
|
- </template>
|
|
|
+ <template slot="send_way">
|
|
|
+ <span>{{ sitem.send_way === "1" ? "供应商包邮" : "公司自提" }}</span>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="good_type">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- v-text="
|
|
|
- (options1.find((item) => item.id == sitem.good_type) || {}).name ||
|
|
|
- '--'
|
|
|
- "
|
|
|
- />
|
|
|
- <span v-if="sitem.good_type === '1'" style="padding: 0 0 0 5px"
|
|
|
- >{{ sitem.moq }}起订/工期{{ sitem.customized }}天</span
|
|
|
- >
|
|
|
- </template>
|
|
|
- <template slot="supply_area">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- v-text="
|
|
|
- (options6.find((item) => item.id === sitem.supply_area) || {})
|
|
|
- .name || '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
+ <template slot="good_type">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options1.find((item) => item.id == sitem.good_type) || {}).name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <span v-if="sitem.good_type === '1'" style="padding: 0 0 0 5px"
|
|
|
+ >{{ sitem.moq }}起订/工期{{ sitem.customized }}天</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template slot="supply_area">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options6.find((item) => item.id === sitem.supply_area) || {}).name ||
|
|
|
+ '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="pay_way">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- v-text="
|
|
|
- (options13.find((item) => item.id == sitem.pay_way) || {}).name ||
|
|
|
- '--'
|
|
|
- "
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template slot="noble">
|
|
|
- <span v-if="sitem.noble_name"
|
|
|
- >{{ sitem.noble_weight ? sitem.noble_weight : "0" }}g-{{
|
|
|
- sitem.noble_name
|
|
|
- }}-{{ sitem.gold_price ? sitem.gold_price : "0" }}元/g-{{
|
|
|
- sitem.is_gold_price === "0" ? "不" : ""
|
|
|
- }}启用实时金价-{{ sitem.is_diff === "1" ? "有" : "无" }}工差-{{
|
|
|
- sitem.config
|
|
|
- }}-{{ sitem.other_config }}</span
|
|
|
- >
|
|
|
- <span v-else>--</span>
|
|
|
- </template>
|
|
|
- <template slot="good_img">
|
|
|
- <img
|
|
|
- v-viewer
|
|
|
- style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
|
- class="fl"
|
|
|
- v-for="(si, sii) in sitem.good_img"
|
|
|
- :key="si + sii"
|
|
|
- :src="si"
|
|
|
- alt=""
|
|
|
- /> </template
|
|
|
- ></show-data-table>
|
|
|
- </el-collapse-item>
|
|
|
- </el-collapse>
|
|
|
+ <template slot="pay_way">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options13.find((item) => item.id == sitem.pay_way) || {}).name || '--'
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ <template slot="noble">
|
|
|
+ <span v-if="sitem.noble_name"
|
|
|
+ >{{ sitem.noble_weight ? sitem.noble_weight : "0" }}g-{{
|
|
|
+ sitem.noble_name
|
|
|
+ }}-{{ sitem.gold_price ? sitem.gold_price : "0" }}元/g-{{
|
|
|
+ sitem.is_gold_price === "0" ? "不" : ""
|
|
|
+ }}启用实时金价-{{ sitem.is_diff === "1" ? "有" : "无" }}工差-{{
|
|
|
+ sitem.config
|
|
|
+ }}-{{ sitem.other_config }}</span
|
|
|
+ >
|
|
|
+ <span v-else>--</span>
|
|
|
+ </template>
|
|
|
+ <template slot="good_img">
|
|
|
+ <img
|
|
|
+ v-viewer
|
|
|
+ style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
|
+ class="fl"
|
|
|
+ v-for="(si, sii) in sitem.good_img"
|
|
|
+ :key="si + sii"
|
|
|
+ :src="si"
|
|
|
+ alt=""
|
|
|
+ /> </template
|
|
|
+ ></show-data-table>
|
|
|
+ </el-collapse-item>
|
|
|
+ </el-collapse>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -182,7 +180,6 @@ import asyncRequest from "@/apis/report";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { mapGetters } from "vuex";
|
|
|
|
|
|
-
|
|
|
import {
|
|
|
editColumns,
|
|
|
costArr,
|
|
@@ -198,10 +195,8 @@ import {
|
|
|
options9,
|
|
|
options10,
|
|
|
options11,
|
|
|
- options12,
|
|
|
options13,
|
|
|
statusOptions,
|
|
|
- rate_status_options,
|
|
|
coveColumns,
|
|
|
is_determine_price_options,
|
|
|
} from "../config/columns";
|
|
@@ -231,10 +226,8 @@ export default {
|
|
|
options9,
|
|
|
options10,
|
|
|
options11,
|
|
|
- options12,
|
|
|
options13,
|
|
|
statusOptions,
|
|
|
- rate_status_options,
|
|
|
is_determine_price_options,
|
|
|
coveColumns,
|
|
|
projectTabs: "1",
|
|
@@ -290,12 +283,12 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
this.sitem.cat = cat;
|
|
|
- const { status,num ,orderCode} = this.sitem;
|
|
|
+ const { status, num, orderCode } = this.sitem;
|
|
|
this.status = status;
|
|
|
|
|
|
- this.$emit('change-status',status);
|
|
|
- this.$emit('change-num', num);
|
|
|
- this.$emit('change-order-code', orderCode);
|
|
|
+ this.$emit("change-status", status);
|
|
|
+ this.$emit("change-num", num);
|
|
|
+ this.$emit("change-order-code", orderCode);
|
|
|
this.getNewTime();
|
|
|
} else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|