|
@@ -845,7 +845,7 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row class="ddiv">
|
|
<el-row class="ddiv">
|
|
<el-col :span="1" class="dtitle">
|
|
<el-col :span="1" class="dtitle">
|
|
- <ul>
|
|
|
|
|
|
+ <ul style="padding:0;">
|
|
<li>固</li>
|
|
<li>固</li>
|
|
<li>定</li>
|
|
<li>定</li>
|
|
<li>与</li>
|
|
<li>与</li>
|
|
@@ -930,7 +930,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="6">
|
|
|
|
|
|
+ <!-- <el-col :span="6">
|
|
<el-form-item label="启用阶梯" prop="is_step">
|
|
<el-form-item label="启用阶梯" prop="is_step">
|
|
<el-select
|
|
<el-select
|
|
v-model="ruleForm.is_step"
|
|
v-model="ruleForm.is_step"
|
|
@@ -948,7 +948,7 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
<el-col
|
|
<el-col
|
|
:span="6"
|
|
:span="6"
|
|
v-show="is_noble && ruleForm && ruleForm.is_gold_price === '1'"
|
|
v-show="is_noble && ruleForm && ruleForm.is_gold_price === '1'"
|
|
@@ -1176,11 +1176,11 @@ export default {
|
|
this.showModel = true;
|
|
this.showModel = true;
|
|
},
|
|
},
|
|
openCostEdit(index, sitem) {
|
|
openCostEdit(index, sitem) {
|
|
- const { is_step } = this.ruleForm;
|
|
|
|
- if (index === -1 && is_step === "0" && this.ladder_tableData.length > 0) {
|
|
|
|
- this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // const { is_step } = this.ruleForm;
|
|
|
|
+ // if (index === -1 && is_step === "0" && this.ladder_tableData.length > 0) {
|
|
|
|
+ // this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
this.costmodelIndex = index;
|
|
this.costmodelIndex = index;
|
|
this.costsitem = sitem;
|
|
this.costsitem = sitem;
|
|
this.costshowModel = true;
|
|
this.costshowModel = true;
|
|
@@ -1191,20 +1191,20 @@ export default {
|
|
openCostEditDelete(index) {
|
|
openCostEditDelete(index) {
|
|
this.ladder_tableData.splice(index, 1);
|
|
this.ladder_tableData.splice(index, 1);
|
|
},
|
|
},
|
|
- is_step_change() {
|
|
|
|
- const { is_step } = this.ruleForm;
|
|
|
|
- if (is_step === "0") {
|
|
|
|
- let res = [];
|
|
|
|
- let list =
|
|
|
|
- this.ladder_tableData.length === 0
|
|
|
|
- ? []
|
|
|
|
- : JSON.parse(JSON.stringify(this.ladder_tableData));
|
|
|
|
- if (list.length > 0) {
|
|
|
|
- res.push(list[0]);
|
|
|
|
- }
|
|
|
|
- this.ladder_tableData = res;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // is_step_change() {
|
|
|
|
+ // const { is_step } = this.ruleForm;
|
|
|
|
+ // if (is_step === "0") {
|
|
|
|
+ // let res = [];
|
|
|
|
+ // let list =
|
|
|
|
+ // this.ladder_tableData.length === 0
|
|
|
|
+ // ? []
|
|
|
|
+ // : JSON.parse(JSON.stringify(this.ladder_tableData));
|
|
|
|
+ // if (list.length > 0) {
|
|
|
|
+ // res.push(list[0]);
|
|
|
|
+ // }
|
|
|
|
+ // this.ladder_tableData = res;
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
async submitForm() {
|
|
async submitForm() {
|
|
this.sch_is_noble();
|
|
this.sch_is_noble();
|
|
this.good_type_change();
|
|
this.good_type_change();
|
|
@@ -1234,11 +1234,11 @@ export default {
|
|
}
|
|
}
|
|
const { noble_weight, weight, good_type, moq, is_step } =
|
|
const { noble_weight, weight, good_type, moq, is_step } =
|
|
this.ruleForm;
|
|
this.ruleForm;
|
|
- if (is_step === "0" && this.ladder_tableData.length > 1) {
|
|
|
|
- this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
|
|
|
|
- this.loading = false;
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (is_step === "0" && this.ladder_tableData.length > 1) {
|
|
|
|
+ // this.$message.warning("不启用阶梯成本,只能录入一条阶梯成本信息!");
|
|
|
|
+ // this.loading = false;
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
if (this.is_noble) {
|
|
if (this.is_noble) {
|
|
if (noble_weight * 1000 > weight * 1000) {
|
|
if (noble_weight * 1000 > weight * 1000) {
|
|
this.$message.warning("贵金属总重量不能大于商品总重量!");
|
|
this.$message.warning("贵金属总重量不能大于商品总重量!");
|
|
@@ -1615,7 +1615,7 @@ export default {
|
|
market_price: "0",
|
|
market_price: "0",
|
|
cgd_gold_price: "0",
|
|
cgd_gold_price: "0",
|
|
noble_price: "0",
|
|
noble_price: "0",
|
|
- is_step: "0",
|
|
|
|
|
|
+ // is_step: "0",
|
|
is_diff: "",
|
|
is_diff: "",
|
|
config: [],
|
|
config: [],
|
|
other_config: "",
|
|
other_config: "",
|
|
@@ -1683,7 +1683,7 @@ export default {
|
|
market_price, // string 市场价
|
|
market_price, // string 市场价
|
|
cgd_gold_price, // string 供应商采购金价
|
|
cgd_gold_price, // string 供应商采购金价
|
|
noble_price,
|
|
noble_price,
|
|
- is_step, // string 是否使用阶梯价
|
|
|
|
|
|
+ // is_step, // string 是否使用阶梯价
|
|
// is_online, // string 是否上线
|
|
// is_online, // string 是否上线
|
|
status, // string 状态
|
|
status, // string 状态
|
|
nakelist, //阶梯成本
|
|
nakelist, //阶梯成本
|
|
@@ -1800,7 +1800,7 @@ export default {
|
|
market_price: market_price || "",
|
|
market_price: market_price || "",
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
noble_price: noble_price || "0",
|
|
noble_price: noble_price || "0",
|
|
- is_step: is_step || "0",
|
|
|
|
|
|
+ // is_step: is_step || "0",
|
|
is_diff: is_diff || "",
|
|
is_diff: is_diff || "",
|
|
config: config ? config.split(",") : [],
|
|
config: config ? config.split(",") : [],
|
|
other_config: other_config || "",
|
|
other_config: other_config || "",
|
|
@@ -1843,7 +1843,7 @@ export default {
|
|
delete item["is_gold_price"];
|
|
delete item["is_gold_price"];
|
|
delete item["market_price"];
|
|
delete item["market_price"];
|
|
delete item["cgd_gold_price"];
|
|
delete item["cgd_gold_price"];
|
|
- delete item["is_step"];
|
|
|
|
|
|
+ // delete item["is_step"];
|
|
delete item["good_ladder"];
|
|
delete item["good_ladder"];
|
|
} else {
|
|
} else {
|
|
const {
|
|
const {
|
|
@@ -1854,7 +1854,7 @@ export default {
|
|
is_gold_price,
|
|
is_gold_price,
|
|
market_price,
|
|
market_price,
|
|
cgd_gold_price,
|
|
cgd_gold_price,
|
|
- is_step,
|
|
|
|
|
|
+ // is_step,
|
|
good_ladder,
|
|
good_ladder,
|
|
spuCode,
|
|
spuCode,
|
|
} = model;
|
|
} = model;
|
|
@@ -1866,7 +1866,7 @@ export default {
|
|
is_gold_price: is_gold_price || "",
|
|
is_gold_price: is_gold_price || "",
|
|
market_price: market_price || "",
|
|
market_price: market_price || "",
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
cgd_gold_price: cgd_gold_price || "",
|
|
- is_step: is_step || "",
|
|
|
|
|
|
+ // is_step: is_step || "",
|
|
good_ladder: good_ladder || [],
|
|
good_ladder: good_ladder || [],
|
|
spuCode: spuCode || "",
|
|
spuCode: spuCode || "",
|
|
};
|
|
};
|