|
@@ -16,6 +16,53 @@
|
|
|
>
|
|
|
<show-data-table
|
|
|
style="margin: -20px 0 0 0"
|
|
|
+ v-if="infoSitem && infoSitem.id"
|
|
|
+ :sitem="infoSitem"
|
|
|
+ :columns="infoColumns"
|
|
|
+ >
|
|
|
+ <template slot="status">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (options0.find((item) => item.id == infoSitem.status) || {}).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="company">
|
|
|
+ <span>{{ infoSitem.company }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>销售方公司编号:</span><span>{{ infoSitem.companyNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="khName">
|
|
|
+ <span>{{ infoSitem.khname }}</span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <span>购买方公司编号:</span><span>{{ infoSitem.khNo }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i class="el-icon-warning-outline fr" slot="reference"></i>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template slot="is_addrs">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ v-text="
|
|
|
+ (is_addrs_options.find((item) => item.value == infoSitem.is_addrs) || {})
|
|
|
+ .label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ </show-data-table>
|
|
|
+ <show-data-table
|
|
|
+ v-if="sitem && sitem.id"
|
|
|
:sitem="sitem"
|
|
|
:columns="costColumns"
|
|
|
:border="true"
|
|
@@ -61,8 +108,7 @@
|
|
|
<el-tag
|
|
|
:size="'mini'"
|
|
|
v-text="
|
|
|
- (options1.find((item) => item.id == sitem.good_type) || {}).name ||
|
|
|
- '--'
|
|
|
+ (options1.find((item) => item.id == sitem.good_type) || {}).name || '--'
|
|
|
"
|
|
|
/>
|
|
|
<span v-if="sitem.good_type === '1'" style="padding: 0 0 0 5px"
|
|
@@ -72,31 +118,25 @@
|
|
|
<template slot="pay_way">
|
|
|
<el-tag
|
|
|
:size="'mini'"
|
|
|
- v-text="
|
|
|
- (options9.find((item) => item.id == sitem.pay_way) || {}).name ||
|
|
|
- '--'
|
|
|
- "
|
|
|
+ v-text="(options9.find((item) => item.id == sitem.pay_way) || {}).name || '--'"
|
|
|
/>
|
|
|
</template>
|
|
|
<template slot="supply_area">
|
|
|
<el-tag
|
|
|
:size="'mini'"
|
|
|
v-text="
|
|
|
- (options6.find((item) => item.id == sitem.supply_area) || {})
|
|
|
- .name || '--'
|
|
|
+ (options6.find((item) => item.id == sitem.supply_area) || {}).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
|
|
|
+ >{{ 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>
|
|
@@ -127,19 +167,23 @@ import {
|
|
|
options8,
|
|
|
options9,
|
|
|
costColumns,
|
|
|
+ infoColumns,
|
|
|
+ is_addrs_options,
|
|
|
+ options0,
|
|
|
} from "./columns";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import asyncRequest from "@/apis/service/purchaseIn/recovery";
|
|
|
export default {
|
|
|
name: "showData",
|
|
|
- props: ["showModel", "bidNo"],
|
|
|
+ props: ["showModel", "bidNo", "infoNo"],
|
|
|
mixins: [resToken],
|
|
|
data() {
|
|
|
return {
|
|
|
newTime: "",
|
|
|
loading: true,
|
|
|
showModelThis: this.showModel,
|
|
|
- sitem: "",
|
|
|
+ sitem: null,
|
|
|
+ infoSitem: null,
|
|
|
options1,
|
|
|
options2,
|
|
|
options3,
|
|
@@ -150,13 +194,16 @@ export default {
|
|
|
options8,
|
|
|
options9,
|
|
|
costColumns,
|
|
|
+ infoColumns,
|
|
|
+ is_addrs_options,
|
|
|
+ options0,
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
showModel: function (val) {
|
|
|
this.showModelThis = val;
|
|
|
if (val) {
|
|
|
- this.initData();
|
|
|
+ this.initInfoData();
|
|
|
}
|
|
|
},
|
|
|
showModelThis(val) {
|
|
@@ -167,6 +214,24 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ async initInfoData() {
|
|
|
+ this.loading = true;
|
|
|
+ const { code, message, data } = await asyncRequest.info_detail({
|
|
|
+ infoNo: this.infoNo,
|
|
|
+ });
|
|
|
+ if (code === 0) {
|
|
|
+ this.infoSitem = data;
|
|
|
+ console.log(this.infoSitem);
|
|
|
+ await this.initData();
|
|
|
+ } else if (code >= 100 && code <= 104) {
|
|
|
+ await this.logout();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(message);
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //
|
|
|
+
|
|
|
async initData() {
|
|
|
this.loading = true;
|
|
|
const { code, message, data } = await asyncRequest.good_detail({
|
|
@@ -174,23 +239,16 @@ export default {
|
|
|
});
|
|
|
if (code === 0) {
|
|
|
this.sitem = data;
|
|
|
- // const { good_img } = this.sitem;
|
|
|
- // if (good_img) {
|
|
|
- // this.sitem.good_img = good_img.split(",");
|
|
|
- // } else {
|
|
|
- // this.sitem.good_img = [];
|
|
|
- // }
|
|
|
-
|
|
|
this.loading = false;
|
|
|
} else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
|
this.$message.warning(message);
|
|
|
+ this.loading = false;
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-</style>
|
|
|
+<style></style>
|