|
@@ -50,13 +50,16 @@
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-
|
|
|
|
<template slot="packing_spec">
|
|
<template slot="packing_spec">
|
|
- <el-tag size="mini">{{ ( options6.find(({id}) => id === sitem.supply_area) || {}).name || '--' }}</el-tag>
|
|
|
|
|
|
+ <el-tag
|
|
|
|
+ size="mini"
|
|
|
|
+ >{{ ( options6.find(({id}) => id === sitem.supply_area) || {}).name || '--' }}</el-tag>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot="is_auth">
|
|
<template slot="is_auth">
|
|
- <el-tag size="mini">{{ ( options3.find(({id}) => id === sitem.is_auth) || {}).name || '--' }}</el-tag>
|
|
|
|
|
|
+ <el-tag
|
|
|
|
+ size="mini"
|
|
|
|
+ >{{ ( options3.find(({id}) => id === sitem.is_auth) || {}).name || '--' }}</el-tag>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot="good_info_img">
|
|
<template slot="good_info_img">
|
|
@@ -71,9 +74,9 @@
|
|
|
|
|
|
<template slot="cat_info">
|
|
<template slot="cat_info">
|
|
{{
|
|
{{
|
|
- sitem.cat_info
|
|
|
|
- ? sitem.cat_info.map(({ name }) => name).join("_")
|
|
|
|
- : "--"
|
|
|
|
|
|
+ sitem.cat_info
|
|
|
|
+ ? sitem.cat_info.map(({ name }) => name).join("_")
|
|
|
|
+ : "--"
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -84,7 +87,7 @@
|
|
style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
class="fl"
|
|
class="fl"
|
|
:src="sitem.good_thumb_img"
|
|
:src="sitem.good_thumb_img"
|
|
- alt=""
|
|
|
|
|
|
+ alt
|
|
/>
|
|
/>
|
|
<span>{{ sitem.good_name }}</span>
|
|
<span>{{ sitem.good_name }}</span>
|
|
<span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
|
|
<span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
|
|
@@ -95,7 +98,8 @@
|
|
<el-popover placement="top" width="300" trigger="hover">
|
|
<el-popover placement="top" width="300" trigger="hover">
|
|
<ul>
|
|
<ul>
|
|
<li v-if="newTime !== '' && isDisplayPrivateField('1')">
|
|
<li v-if="newTime !== '' && isDisplayPrivateField('1')">
|
|
- <span>商品成本编号:</span><span>{{ sitem.spuCode }}</span>
|
|
|
|
|
|
+ <span>商品成本编号:</span>
|
|
|
|
+ <span>{{ sitem.spuCode }}</span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<i slot="reference" class="el-icon-warning-outline fr" />
|
|
<i slot="reference" class="el-icon-warning-outline fr" />
|
|
@@ -103,34 +107,36 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot="noble">
|
|
<template slot="noble">
|
|
- <span v-if="sitem.noble_metal"
|
|
|
|
- >{{ sitem.noble_weight ? sitem.noble_weight : "0" }}g-{{
|
|
|
|
- sitem.noble_name
|
|
|
|
|
|
+ <span v-if="sitem.noble_metal">
|
|
|
|
+ {{ sitem.noble_weight ? sitem.noble_weight : "0" }}g-{{
|
|
|
|
+ sitem.noble_name
|
|
}}-{{ sitem.gold_price ? sitem.gold_price : "0" }}元/g-{{
|
|
}}-{{ sitem.gold_price ? sitem.gold_price : "0" }}元/g-{{
|
|
- sitem.is_gold_price + "" === "0" ? "不" : ""
|
|
|
|
|
|
+ sitem.is_gold_price + "" === "0" ? "不" : ""
|
|
}}启用实时金价-{{ sitem.is_diff + "" === "1" ? "有" : "无" }}工差-{{
|
|
}}启用实时金价-{{ sitem.is_diff + "" === "1" ? "有" : "无" }}工差-{{
|
|
- sitem.config
|
|
|
|
- }}-{{ sitem.other_config }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ sitem.config
|
|
|
|
+ }}-{{ sitem.other_config }}
|
|
|
|
+ </span>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <template slot="weight"> {{ sitem.weight }}g </template>
|
|
|
|
- <template slot="tax"> {{ sitem.tax }}% </template>
|
|
|
|
- <template slot="is_stock">
|
|
|
|
- {{ String(sitem.is_stock) === "0" ? "非库存品" : "库存品" }}
|
|
|
|
- </template>
|
|
|
|
- <template slot="is_exclusive">
|
|
|
|
- {{ String(sitem.is_exclusive) === "0" ? "非泰康" : "泰康" }}
|
|
|
|
- </template>
|
|
|
|
|
|
+ <template slot="weight">{{ sitem.weight }}g</template>
|
|
|
|
+ <template slot="tax">{{ sitem.tax }}%</template>
|
|
|
|
+ <template slot="is_stock">{{ String(sitem.is_stock) === "0" ? "非库存品" : "库存品" }}</template>
|
|
|
|
+ <template
|
|
|
|
+ slot="is_exclusive"
|
|
|
|
+ >{{ String(sitem.is_exclusive) === "0" ? "非泰康" : "泰康" }}</template>
|
|
<template slot="noble_weight">{{ sitem.noble_weight }}g</template>
|
|
<template slot="noble_weight">{{ sitem.noble_weight }}g</template>
|
|
- <template slot="is_gold_price">{{
|
|
|
|
|
|
+ <template slot="is_gold_price">
|
|
|
|
+ {{
|
|
String(sitem.is_gold_price) === "1" ? "是" : "否"
|
|
String(sitem.is_gold_price) === "1" ? "是" : "否"
|
|
- }}</template>
|
|
|
|
- <template slot="is_diff">{{
|
|
|
|
|
|
+ }}
|
|
|
|
+ </template>
|
|
|
|
+ <template slot="is_diff">
|
|
|
|
+ {{
|
|
String(sitem.is_diff) === "1" ? "有公差" : "无工差"
|
|
String(sitem.is_diff) === "1" ? "有公差" : "无工差"
|
|
- }}</template>
|
|
|
|
|
|
+ }}
|
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="packing_weight"> {{ sitem.packing_weight }}g </template>
|
|
|
|
|
|
+ <template slot="packing_weight">{{ sitem.packing_weight }}g</template>
|
|
|
|
|
|
<template slot="delivery_day">{{ sitem.delivery_day }}天</template>
|
|
<template slot="delivery_day">{{ sitem.delivery_day }}天</template>
|
|
<template slot="lead_time">{{ sitem.lead_time }}天</template>
|
|
<template slot="lead_time">{{ sitem.lead_time }}天</template>
|
|
@@ -140,17 +146,12 @@
|
|
</show-data-table>
|
|
</show-data-table>
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
|
|
|
- <el-collapse-item
|
|
|
|
- title="固定与阶梯成本"
|
|
|
|
- name="2"
|
|
|
|
- v-if="isDisplayPrivateField('1')"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-collapse-item title="固定与阶梯成本" name="2" v-if="isDisplayPrivateField('1')">
|
|
<show-data-table :columns="ladderColumns" :sitem="sitem">
|
|
<show-data-table :columns="ladderColumns" :sitem="sitem">
|
|
<template slot="demo_fee">{{ sitem.demo_fee }}元</template>
|
|
<template slot="demo_fee">{{ sitem.demo_fee }}元</template>
|
|
<template slot="open_fee">{{ sitem.open_fee }}元</template>
|
|
<template slot="open_fee">{{ sitem.open_fee }}元</template>
|
|
<template slot="sample_fee">{{ sitem.sample_fee }}元</template>
|
|
<template slot="sample_fee">{{ sitem.sample_fee }}元</template>
|
|
<template slot="market_price">{{ sitem.market_price }}元</template>
|
|
<template slot="market_price">{{ sitem.market_price }}元</template>
|
|
-
|
|
|
|
<template slot="data_table">
|
|
<template slot="data_table">
|
|
<el-table size="mini" :data="sitem.nakelist">
|
|
<el-table size="mini" :data="sitem.nakelist">
|
|
<el-table-column prop="min_num" label="起订量(>=)" />
|
|
<el-table-column prop="min_num" label="起订量(>=)" />
|
|
@@ -188,14 +189,11 @@
|
|
</template>
|
|
</template>
|
|
</el-collapse>
|
|
</el-collapse>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+
|
|
<el-tab-pane label="最近修改记录" name="2" v-if="queryType !== 'add'">
|
|
<el-tab-pane label="最近修改记录" name="2" v-if="queryType !== 'add'">
|
|
- <type-change-item
|
|
|
|
- v-if="newTime !== ''"
|
|
|
|
- :newTime="newTime"
|
|
|
|
- :type="'3'"
|
|
|
|
- :code="queryId"
|
|
|
|
- />
|
|
|
|
|
|
+ <type-change-item v-if="newTime !== ''" :newTime="newTime" :type="'3'" :code="queryId" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+
|
|
<el-tab-pane label="审批记录" name="3" v-if="queryType !== 'add'">
|
|
<el-tab-pane label="审批记录" name="3" v-if="queryType !== 'add'">
|
|
<process-time-line
|
|
<process-time-line
|
|
v-if="newTime !== ''"
|
|
v-if="newTime !== ''"
|
|
@@ -239,22 +237,30 @@ export default {
|
|
components: {
|
|
components: {
|
|
ShowDataTable,
|
|
ShowDataTable,
|
|
baseForm,
|
|
baseForm,
|
|
- costForm,
|
|
|
|
|
|
+ costForm
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field", "originLevel"]),
|
|
|
|
|
|
+ ...mapGetters([
|
|
|
|
+ "tablebtnSize",
|
|
|
|
+ "searchSize",
|
|
|
|
+ "size",
|
|
|
|
+ "private_field",
|
|
|
|
+ "originLevel"
|
|
|
|
+ ]),
|
|
powers() {
|
|
powers() {
|
|
const { btnList } = this.$store.getters;
|
|
const { btnList } = this.$store.getters;
|
|
- const tran = btnList.find((item) => item.menu_route == "goodsCostDetail") || {};
|
|
|
|
|
|
+ const tran =
|
|
|
|
+ btnList.find(item => item.menu_route == "goodsCostDetail") || {};
|
|
const { action } = tran ?? {};
|
|
const { action } = tran ?? {};
|
|
return action ?? [];
|
|
return action ?? [];
|
|
},
|
|
},
|
|
ppowers() {
|
|
ppowers() {
|
|
const tran =
|
|
const tran =
|
|
- this.$store.getters.roleProcess.find((i) => i.process_type === "SPCB") || {};
|
|
|
|
|
|
+ this.$store.getters.roleProcess.find(i => i.process_type === "SPCB") ||
|
|
|
|
+ {};
|
|
const { action } = tran ?? {};
|
|
const { action } = tran ?? {};
|
|
return action ?? [];
|
|
return action ?? [];
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
@@ -277,7 +283,7 @@ export default {
|
|
status: "",
|
|
status: "",
|
|
sitem: null,
|
|
sitem: null,
|
|
delivery_place: "",
|
|
delivery_place: "",
|
|
- origin_place: "",
|
|
|
|
|
|
+ origin_place: ""
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -325,7 +331,9 @@ export default {
|
|
async getArea(prop = "delivery_place") {
|
|
async getArea(prop = "delivery_place") {
|
|
const chunks = this.sitem[prop].split(",");
|
|
const chunks = this.sitem[prop].split(",");
|
|
let { data: province } = await asyncRequest.province();
|
|
let { data: province } = await asyncRequest.province();
|
|
- province = province.find(({ province_code }) => province_code === chunks[0]);
|
|
|
|
|
|
+ province = province.find(
|
|
|
|
+ ({ province_code }) => province_code === chunks[0]
|
|
|
|
+ );
|
|
let { data: city } = await asyncRequest.city({ code: chunks[0] });
|
|
let { data: city } = await asyncRequest.city({ code: chunks[0] });
|
|
city = city.find(({ city_code }) => city_code === chunks[1]);
|
|
city = city.find(({ city_code }) => city_code === chunks[1]);
|
|
let { data: area } = await asyncRequest.area({ code: chunks[1] });
|
|
let { data: area } = await asyncRequest.area({ code: chunks[1] });
|
|
@@ -336,19 +344,19 @@ export default {
|
|
await this.$confirm(`确定要${detail}?`, {
|
|
await this.$confirm(`确定要${detail}?`, {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning",
|
|
|
|
|
|
+ type: "warning"
|
|
})
|
|
})
|
|
.then(async () => {
|
|
.then(async () => {
|
|
let _model = {
|
|
let _model = {
|
|
spuCode: this.queryId,
|
|
spuCode: this.queryId,
|
|
status: type,
|
|
status: type,
|
|
- remark: remark,
|
|
|
|
|
|
+ remark: remark
|
|
};
|
|
};
|
|
let res = await asyncRequest.status(_model);
|
|
let res = await asyncRequest.status(_model);
|
|
if (res && res.code === 0) {
|
|
if (res && res.code === 0) {
|
|
this.$notify.success({
|
|
this.$notify.success({
|
|
title: "提交成功!",
|
|
title: "提交成功!",
|
|
- message: "",
|
|
|
|
|
|
+ message: ""
|
|
});
|
|
});
|
|
await this.initForm();
|
|
await this.initForm();
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
@@ -357,7 +365,9 @@ export default {
|
|
this.$message.warning(res.message);
|
|
this.$message.warning(res.message);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(() => {console.log("取消");});
|
|
|
|
|
|
+ .catch(() => {
|
|
|
|
+ console.log("取消");
|
|
|
|
+ });
|
|
},
|
|
},
|
|
handleClick(row) {
|
|
handleClick(row) {
|
|
console.log(row);
|
|
console.log(row);
|
|
@@ -368,7 +378,7 @@ export default {
|
|
async initData() {
|
|
async initData() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
const { code, message, data } = await asyncRequest.detail({
|
|
const { code, message, data } = await asyncRequest.detail({
|
|
- spuCode: this.queryId,
|
|
|
|
|
|
+ spuCode: this.queryId
|
|
});
|
|
});
|
|
this.loading = false;
|
|
this.loading = false;
|
|
if (code === 0) {
|
|
if (code === 0) {
|
|
@@ -384,8 +394,8 @@ export default {
|
|
},
|
|
},
|
|
getNewTime() {
|
|
getNewTime() {
|
|
this.newTime = new Date().valueOf();
|
|
this.newTime = new Date().valueOf();
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|