|
@@ -14,119 +14,132 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="商品成本详情" name="1" v-if="queryType !== 'add'">
|
|
|
<el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
- <tempalte v-if="queryType === 'editCoin' || queryType === 'editBase' || queryType === 'edit'">
|
|
|
+ <tempalte
|
|
|
+ v-if="queryType === 'editCoin' || queryType === 'editBase' || queryType === 'edit'"
|
|
|
+ >
|
|
|
<el-collapse-item title="商品成本详情" name="0">
|
|
|
- <base-form
|
|
|
- v-if="newTime !== ''"
|
|
|
- :type="queryType"
|
|
|
- :id="queryId"
|
|
|
- :newTime="newTime"
|
|
|
- :sitem="sitem"
|
|
|
- @refresh="refresh"
|
|
|
- />
|
|
|
- </el-collapse-item>
|
|
|
+ <base-form
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ :type="queryType"
|
|
|
+ :id="queryId"
|
|
|
+ :newTime="newTime"
|
|
|
+ :sitem="sitem"
|
|
|
+ @refresh="refresh"
|
|
|
+ />
|
|
|
+ </el-collapse-item>
|
|
|
</tempalte>
|
|
|
-
|
|
|
|
|
|
<template v-else>
|
|
|
<el-collapse-item title="基础信息" name="1">
|
|
|
- <show-data-table :columns="basicColumns" :sitem="sitem">
|
|
|
- <template slot="noble">
|
|
|
- <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.is_gold_price + '' === "0" ? "不" : ""
|
|
|
- }}启用实时金价-{{ sitem.is_diff + '' === "1" ? "有" : "无" }}工差-{{
|
|
|
- sitem.config
|
|
|
- }}-{{ sitem.other_config }}</span>
|
|
|
+ <show-data-table :columns="basicColumns" :sitem="sitem">
|
|
|
+ <template slot="noble">
|
|
|
+ <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.is_gold_price + '' === "0" ? "不" : ""
|
|
|
+ }}启用实时金价-{{ sitem.is_diff + '' === "1" ? "有" : "无" }}工差-{{
|
|
|
+ sitem.config
|
|
|
+ }}-{{ sitem.other_config }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
|
|
|
<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 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 slot="cat_info">
|
|
|
- {{sitem.cat_info ? sitem.cat_info.map(({name}) => name).join('_') : '--' }}
|
|
|
- </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="cat_info"
|
|
|
+ >{{sitem.cat_info ? sitem.cat_info.map(({name}) => name).join('_') : '--' }}</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="good_img">
|
|
|
- <template v-if="sitem.good_img">
|
|
|
- <el-image style="height: 20px;width: 20px;margin-right: 10px" v-for="(img,index) in sitem.good_img.split(',')" :src="img" :preview-src-list="sitem.good_img.split(',')" :key="index" />
|
|
|
+ <template slot="is_combind">
|
|
|
+ {{
|
|
|
+ String(sitem.is_combind) === '1' ? '是组合商品' : '非组合商品'
|
|
|
+ }}
|
|
|
</template>
|
|
|
- </template>
|
|
|
|
|
|
- <template slot="good_info_img">
|
|
|
- <el-image style="height: 20px;width: 20px" :src="sitem.good_info_img" :preview-src-list="[sitem.good_info_img]" />
|
|
|
- </template>
|
|
|
-
|
|
|
- <template slot="good_name">
|
|
|
- <img
|
|
|
- v-if="sitem.good_thumb_img"
|
|
|
- v-viewer
|
|
|
- style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
|
- class="fl"
|
|
|
- :src="sitem.good_thumb_img"
|
|
|
- alt=""
|
|
|
- >
|
|
|
- <span>{{ sitem.good_name }}</span>
|
|
|
- <span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
|
|
|
- <span v-if="i !== 0">-</span>
|
|
|
- <span v-else>_</span>
|
|
|
- <span>{{ si.spec_name }}[{{ si.spec_value }}]</span>
|
|
|
- </span>
|
|
|
- <el-popover placement="top" width="300" trigger="hover">
|
|
|
- <ul>
|
|
|
- <li
|
|
|
- v-if=" newTime !== '' && isDisplayPrivateField('1')"
|
|
|
- >
|
|
|
- <span>商品成本编号:</span><span>{{ sitem.spuCode }}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <i slot="reference" class="el-icon-warning-outline fr" />
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
+ <template
|
|
|
+ slot="is_exclusive"
|
|
|
+ >{{String(sitem.is_exclusive) === '0' ? '非泰康' : '泰康'}}</template>
|
|
|
|
|
|
- <template slot="noble_weight">{{sitem.noble_weight}}g</template>
|
|
|
- <template slot="is_gold_price">{{String(sitem.is_gold_price) === '1' ? '是' : '否'}}</template>
|
|
|
- <template slot="is_diff">{{String(sitem.is_diff) === '1' ? '有公差' : '无工差'}}</template>
|
|
|
+ <template slot="good_img">
|
|
|
+ <template v-if="sitem.good_img">
|
|
|
+ <el-image
|
|
|
+ style="height: 20px;width: 20px;margin-right: 10px"
|
|
|
+ v-for="(img,index) in sitem.good_img.split(',')"
|
|
|
+ :src="img"
|
|
|
+ :preview-src-list="sitem.good_img.split(',')"
|
|
|
+ :key="index"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
|
|
|
- <template slot="delivery_day">{{sitem.delivery_day}}天</template>
|
|
|
- <template slot="lead_time">{{sitem.lead_time}}天</template>
|
|
|
- <template slot="sample_day">{{sitem.sample_day}}天</template>
|
|
|
- <template slot="delivery_place">{{delivery_place}}</template>
|
|
|
- <template slot="origin_place">{{origin_place}}</template>
|
|
|
- <template slot="packing_weight">
|
|
|
- {{sitem.packing_weight}}g
|
|
|
- </template>
|
|
|
- </show-data-table>
|
|
|
- </el-collapse-item>
|
|
|
+ <template slot="good_info_img">
|
|
|
+ <el-image
|
|
|
+ style="height: 20px;width: 20px"
|
|
|
+ :src="sitem.good_info_img"
|
|
|
+ :preview-src-list="[sitem.good_info_img]"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- <el-collapse-item title="规格信息" name="2">
|
|
|
+ <template slot="good_name">
|
|
|
+ <img
|
|
|
+ v-if="sitem.good_thumb_img"
|
|
|
+ v-viewer
|
|
|
+ style="width: 23px; height: 23px; margin: 0 5px 0 0"
|
|
|
+ class="fl"
|
|
|
+ :src="sitem.good_thumb_img"
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ <span>{{ sitem.good_name }}</span>
|
|
|
+ <span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
|
|
|
+ <span v-if="i !== 0">-</span>
|
|
|
+ <span v-else>_</span>
|
|
|
+ <span>{{ si.spec_name }}[{{ si.spec_value }}]</span>
|
|
|
+ </span>
|
|
|
+ <el-popover placement="top" width="300" trigger="hover">
|
|
|
+ <ul>
|
|
|
+ <li v-if=" newTime !== '' && isDisplayPrivateField('1')">
|
|
|
+ <span>商品成本编号:</span>
|
|
|
+ <span>{{ sitem.spuCode }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <i slot="reference" class="el-icon-warning-outline fr" />
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template slot="noble_weight">{{sitem.noble_weight}}g</template>
|
|
|
+ <template slot="is_gold_price">{{String(sitem.is_gold_price) === '1' ? '是' : '否'}}</template>
|
|
|
+ <template slot="is_diff">{{String(sitem.is_diff) === '1' ? '有公差' : '无工差'}}</template>
|
|
|
+
|
|
|
+ <template slot="delivery_day">{{sitem.delivery_day}}天</template>
|
|
|
+ <template slot="lead_time">{{sitem.lead_time}}天</template>
|
|
|
+ <template slot="sample_day">{{sitem.sample_day}}天</template>
|
|
|
+ <template slot="delivery_place">{{delivery_place}}</template>
|
|
|
+ <template slot="origin_place">{{origin_place}}</template>
|
|
|
+ <template slot="packing_weight">{{sitem.packing_weight}}g</template>
|
|
|
+ </show-data-table>
|
|
|
+ </el-collapse-item>
|
|
|
+
|
|
|
+ <!-- <el-collapse-item title="规格信息" name="2">
|
|
|
<el-table :data="sitem.speclist" :size="'mini'" border style="width: 100%">
|
|
|
<el-table-column prop="spec_name" label="规格类型" />
|
|
|
<el-table-column prop="spec_value" label="规格值" />
|
|
|
</el-table>
|
|
|
- </el-collapse-item> -->
|
|
|
+ </el-collapse-item>-->
|
|
|
|
|
|
- <!-- <el-collapse-item title="包装信息" name="3">
|
|
|
+ <!-- <el-collapse-item title="包装信息" name="3">
|
|
|
<show-data-table :columns="packingColumns" :sitem="sitem">
|
|
|
<template slot="packing_weight">
|
|
|
{{sitem.packing_weight}}g
|
|
@@ -142,9 +155,9 @@
|
|
|
<template slot="delivery_place">{{delivery_place}}</template>
|
|
|
<template slot="origin_place">{{origin_place}}</template>
|
|
|
</show-data-table>
|
|
|
- </el-collapse-item> -->
|
|
|
+ </el-collapse-item>-->
|
|
|
|
|
|
- <!-- <el-collapse-item title="图片信息" name="5">
|
|
|
+ <!-- <el-collapse-item title="图片信息" name="5">
|
|
|
<show-data-table :columns="imageColumns" :sitem="sitem">
|
|
|
<template slot="good_thumb_img">
|
|
|
<el-image style="height: 40px;width: 40px" :src="sitem.good_thumb_img" :preview-src-list="[sitem.good_thumb_img]" />
|
|
@@ -160,47 +173,47 @@
|
|
|
<el-image style="height: 40px;width: 40px" :src="sitem.good_info_img" :preview-src-list="[sitem.good_info_img]" />
|
|
|
</template>
|
|
|
</show-data-table>
|
|
|
- </el-collapse-item> -->
|
|
|
+ </el-collapse-item>-->
|
|
|
|
|
|
- <el-collapse-item title="固定与阶梯成本" name="6" v-if="displayCostField">
|
|
|
- <show-data-table :columns="ladderColumns" :sitem="sitem">
|
|
|
- <template slot="demo_fee">{{sitem.demo_fee}}元</template>
|
|
|
- <template slot="open_fee">{{sitem.open_fee}}元</template>
|
|
|
- <template slot="sample_fee">{{sitem.sample_fee}}元</template>
|
|
|
- <template slot="market_price">{{sitem.market_price}}元</template>
|
|
|
- <template slot="data_table">
|
|
|
- <el-table size="mini" :data="sitem.nakelist">
|
|
|
- <el-table-column prop="min_num" label="起订量(>=)" />
|
|
|
- <el-table-column prop="nake_fee" label="成本单价" />
|
|
|
- <el-table-column prop="cost_fee" label="工艺费" />
|
|
|
- <el-table-column prop="delivery_fee" label="物流费" />
|
|
|
- <el-table-column prop="cert_fee" label="证书费" />
|
|
|
- <el-table-column prop="mark_fee" label="加标费" />
|
|
|
- <el-table-column prop="package_fee" label="包装费" />
|
|
|
- <el-table-column prop="other_fee" label="其他费用" />
|
|
|
- <el-table-column prop="nake_total" label="成本合计" />
|
|
|
- </el-table>
|
|
|
- </template>
|
|
|
- </show-data-table>
|
|
|
- </el-collapse-item>
|
|
|
+ <el-collapse-item title="固定与阶梯成本" name="6" v-if="displayCostField">
|
|
|
+ <show-data-table :columns="ladderColumns" :sitem="sitem">
|
|
|
+ <template slot="demo_fee">{{sitem.demo_fee}}元</template>
|
|
|
+ <template slot="open_fee">{{sitem.open_fee}}元</template>
|
|
|
+ <template slot="sample_fee">{{sitem.sample_fee}}元</template>
|
|
|
+ <template slot="market_price">{{sitem.market_price}}元</template>
|
|
|
+ <template slot="data_table">
|
|
|
+ <el-table size="mini" :data="sitem.nakelist">
|
|
|
+ <el-table-column prop="min_num" label="起订量(>=)" />
|
|
|
+ <el-table-column prop="nake_fee" label="成本单价" />
|
|
|
+ <el-table-column prop="cost_fee" label="工艺费" />
|
|
|
+ <el-table-column prop="delivery_fee" label="物流费" />
|
|
|
+ <el-table-column prop="cert_fee" label="证书费" />
|
|
|
+ <el-table-column prop="mark_fee" label="加标费" />
|
|
|
+ <el-table-column prop="package_fee" label="包装费" />
|
|
|
+ <el-table-column prop="other_fee" label="其他费用" />
|
|
|
+ <el-table-column prop="nake_total" label="成本合计" />
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
+ </show-data-table>
|
|
|
+ </el-collapse-item>
|
|
|
|
|
|
- <el-collapse-item
|
|
|
- title="采购部门审批"
|
|
|
- v-if="
|
|
|
+ <el-collapse-item
|
|
|
+ title="采购部门审批"
|
|
|
+ v-if="
|
|
|
((status + '' === '0' && ppowers.some((i) => i == '0')) ||
|
|
|
(status + '' === '2' && ppowers.some((i) => i == '2')) ||
|
|
|
(status + '' === '3' && ppowers.some((i) => i == '3'))) &&
|
|
|
queryType === 'view'
|
|
|
"
|
|
|
- >
|
|
|
- <exam-form
|
|
|
- :statusList="statusList"
|
|
|
- :newTime="newTime"
|
|
|
- :disabled="false"
|
|
|
- :isMust="false"
|
|
|
- @searchChange="examForm"
|
|
|
- />
|
|
|
- </el-collapse-item>
|
|
|
+ >
|
|
|
+ <exam-form
|
|
|
+ :statusList="statusList"
|
|
|
+ :newTime="newTime"
|
|
|
+ :disabled="false"
|
|
|
+ :isMust="false"
|
|
|
+ @searchChange="examForm"
|
|
|
+ />
|
|
|
+ </el-collapse-item>
|
|
|
</template>
|
|
|
</el-collapse>
|
|
|
</el-tab-pane>
|
|
@@ -213,10 +226,9 @@
|
|
|
/>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
-
|
|
|
<el-tab-pane label="流程图" name="3" v-if="queryType !== 'add'">
|
|
|
<flow-chart process_id="15" type="SPCB" :orderCode="queryId" />
|
|
|
- </el-tab-pane>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
<div v-else>
|
|
@@ -229,9 +241,17 @@ import asyncRequest from "@/apis/service/goodStore/goodsCost";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import baseForm from "./components/baseForm";
|
|
|
-import costForm from './components/costDetail'
|
|
|
-import ShowDataTable from '@/views/standingBook/components/detail-data-table.vue'
|
|
|
-import { basicColumns, packingColumns, sendColumns, imageColumns, ladderColumns, options6 , options3} from './columns'
|
|
|
+import costForm from "./components/costDetail";
|
|
|
+import ShowDataTable from "@/views/standingBook/components/detail-data-table.vue";
|
|
|
+import {
|
|
|
+ basicColumns,
|
|
|
+ packingColumns,
|
|
|
+ sendColumns,
|
|
|
+ imageColumns,
|
|
|
+ ladderColumns,
|
|
|
+ options6,
|
|
|
+ options3
|
|
|
+} from "./columns";
|
|
|
import privateField from "@/mixins/privateField";
|
|
|
|
|
|
export default {
|
|
@@ -243,22 +263,34 @@ export default {
|
|
|
costForm
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(["tablebtnSize", "searchSize", "size", "private_field", "originLevel"]),
|
|
|
- displayCostField(){
|
|
|
- return (["1", '3']).includes(this.originLevel) || this.private_field.includes('1')
|
|
|
+ ...mapGetters([
|
|
|
+ "tablebtnSize",
|
|
|
+ "searchSize",
|
|
|
+ "size",
|
|
|
+ "private_field",
|
|
|
+ "originLevel"
|
|
|
+ ]),
|
|
|
+ displayCostField() {
|
|
|
+ return (
|
|
|
+ ["1", "3"].includes(this.originLevel) ||
|
|
|
+ this.private_field.includes("1")
|
|
|
+ );
|
|
|
},
|
|
|
powers() {
|
|
|
- const { btnList } = this.$store.getters
|
|
|
- const tran = btnList.find((item) => item.menu_route == "supplierGoodsCostDetail") || {};
|
|
|
+ const { btnList } = this.$store.getters;
|
|
|
+ const tran =
|
|
|
+ btnList.find(item => item.menu_route == "supplierGoodsCostDetail") ||
|
|
|
+ {};
|
|
|
const { action } = tran ?? {};
|
|
|
return action ?? [];
|
|
|
},
|
|
|
ppowers() {
|
|
|
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 ?? {};
|
|
|
return action ?? [];
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
data() {
|
|
@@ -280,8 +312,8 @@ export default {
|
|
|
queryId: "",
|
|
|
status: "",
|
|
|
sitem: null,
|
|
|
- delivery_place: '',
|
|
|
- origin_place: ''
|
|
|
+ delivery_place: "",
|
|
|
+ origin_place: ""
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -299,8 +331,8 @@ export default {
|
|
|
this.getNewTime();
|
|
|
} else {
|
|
|
await this.initData();
|
|
|
- await this.getArea('delivery_place');
|
|
|
- await this.getArea('origin_place');
|
|
|
+ await this.getArea("delivery_place");
|
|
|
+ await this.getArea("origin_place");
|
|
|
}
|
|
|
|
|
|
this.loading = false;
|
|
@@ -311,48 +343,50 @@ export default {
|
|
|
console.log(e);
|
|
|
if (!this.loading) {
|
|
|
let type = "";
|
|
|
- if (e.state + '' === "1") {
|
|
|
+ if (e.state + "" === "1") {
|
|
|
type = "1";
|
|
|
} else {
|
|
|
type =
|
|
|
- this.status + '' === "0"
|
|
|
+ this.status + "" === "0"
|
|
|
? "6"
|
|
|
- : this.status + '' === "2"
|
|
|
+ : this.status + "" === "2"
|
|
|
? "4"
|
|
|
- : this.status + '' === "3"
|
|
|
+ : this.status + "" === "3"
|
|
|
? "5"
|
|
|
: "";
|
|
|
}
|
|
|
await this.setstatus(type, "提交采购部门审核", e.remark);
|
|
|
}
|
|
|
},
|
|
|
- async getArea(prop = 'delivery_place'){
|
|
|
- const chunks = this.sitem[prop].split(',');
|
|
|
+ async getArea(prop = "delivery_place") {
|
|
|
+ const chunks = this.sitem[prop].split(",");
|
|
|
let { data: province } = await asyncRequest.province();
|
|
|
- province = province.find(({province_code}) => province_code === chunks[0])
|
|
|
- let { data: city } = await asyncRequest.city({code: chunks[0]})
|
|
|
- city = city.find(({city_code}) => city_code === chunks[1])
|
|
|
- let { data: area } = await asyncRequest.area({code: chunks[1]})
|
|
|
- area = area.find(({area_code}) => area_code === chunks[2])
|
|
|
- this[prop] = [province,city,area].map(({name}) => name).join("_")
|
|
|
+ province = province.find(
|
|
|
+ ({ province_code }) => province_code === chunks[0]
|
|
|
+ );
|
|
|
+ let { data: city } = await asyncRequest.city({ code: chunks[0] });
|
|
|
+ city = city.find(({ city_code }) => city_code === chunks[1]);
|
|
|
+ let { data: area } = await asyncRequest.area({ code: chunks[1] });
|
|
|
+ area = area.find(({ area_code }) => area_code === chunks[2]);
|
|
|
+ this[prop] = [province, city, area].map(({ name }) => name).join("_");
|
|
|
},
|
|
|
async setstatus(type, detail, remark) {
|
|
|
await this.$confirm(`确定要${detail}?`, {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
.then(async () => {
|
|
|
let _model = {
|
|
|
spuCode: this.queryId,
|
|
|
status: type,
|
|
|
- remark: remark,
|
|
|
+ remark: remark
|
|
|
};
|
|
|
let res = await asyncRequest.status(_model);
|
|
|
if (res && res.code === 0) {
|
|
|
this.$notify.success({
|
|
|
title: "提交成功!",
|
|
|
- message: "",
|
|
|
+ message: ""
|
|
|
});
|
|
|
await this.initForm();
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
@@ -374,7 +408,7 @@ export default {
|
|
|
async initData() {
|
|
|
this.loading = true;
|
|
|
const { code, message, data } = await asyncRequest.detail({
|
|
|
- spuCode: this.queryId,
|
|
|
+ spuCode: this.queryId
|
|
|
});
|
|
|
this.loading = false;
|
|
|
if (code === 0) {
|
|
@@ -390,8 +424,8 @@ export default {
|
|
|
},
|
|
|
getNewTime() {
|
|
|
this.newTime = new Date().valueOf();
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|