|
@@ -361,9 +361,7 @@
|
|
|
<el-select
|
|
|
v-model="ruleForm.good_type"
|
|
|
filterable
|
|
|
- :disabled="
|
|
|
- type === 'view' ||type === 'editCoin'
|
|
|
- "
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
clearable
|
|
|
style="width: 100%"
|
|
|
placeholder="是否定制"
|
|
@@ -385,7 +383,7 @@
|
|
|
:placeholder="'定制起订量'"
|
|
|
:name="'ruleForm.moq'"
|
|
|
:min="0"
|
|
|
- :disabled="type === 'view' ||type === 'editCoin'"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
:max="100000000000"
|
|
|
:position="'right'"
|
|
|
:precision="0"
|
|
@@ -403,7 +401,7 @@
|
|
|
:placeholder="'定制工期'"
|
|
|
:name="'ruleForm.customized'"
|
|
|
:min="0"
|
|
|
- :disabled="type === 'view' ||type === 'editCoin'"
|
|
|
+ :disabled="type === 'view' || type === 'editCoin'"
|
|
|
:max="100000000000"
|
|
|
:position="'right'"
|
|
|
:precision="0"
|
|
@@ -845,7 +843,7 @@
|
|
|
</el-row>
|
|
|
<el-row class="ddiv">
|
|
|
<el-col :span="1" class="dtitle">
|
|
|
- <ul style="padding:0;">
|
|
|
+ <ul style="padding: 0">
|
|
|
<li>固</li>
|
|
|
<li>定</li>
|
|
|
<li>与</li>
|
|
@@ -1467,24 +1465,46 @@ export default {
|
|
|
package_fee,
|
|
|
other_fee,
|
|
|
} = item;
|
|
|
+ let isok = true;
|
|
|
let ffindex = -1;
|
|
|
- this.ladder_tableData.forEach((i, findex) => {
|
|
|
- if (findex === parseInt(index + "")) {
|
|
|
- ffindex = findex;
|
|
|
- this.ladder_tableData[findex].id = id;
|
|
|
- this.ladder_tableData[findex].min_num = min_num;
|
|
|
- this.ladder_tableData[findex].cost_fee = cost_fee;
|
|
|
- this.ladder_tableData[findex].delivery_fee = delivery_fee;
|
|
|
- this.ladder_tableData[findex].nake_fee = nake_fee;
|
|
|
- this.ladder_tableData[findex].cert_fee = cert_fee;
|
|
|
- this.ladder_tableData[findex].mark_fee = mark_fee;
|
|
|
- this.ladder_tableData[findex].package_fee = package_fee;
|
|
|
- this.ladder_tableData[findex].other_fee = other_fee;
|
|
|
- }
|
|
|
- });
|
|
|
- if (ffindex === -1) {
|
|
|
+ if (this.ladder_tableData && this.ladder_tableData.length === 0) {
|
|
|
this.ladder_tableData.push(item);
|
|
|
+ } else {
|
|
|
+ this.ladder_tableData.forEach((i, findex) => {
|
|
|
+ if (parseInt(min_num + "") === parseInt(i.min_num + "")) {
|
|
|
+ isok = false;
|
|
|
+ this.ladder_tableData[findex].id = id;
|
|
|
+ this.ladder_tableData[findex].min_num = min_num;
|
|
|
+ this.ladder_tableData[findex].cost_fee = cost_fee;
|
|
|
+ this.ladder_tableData[findex].delivery_fee = delivery_fee;
|
|
|
+ this.ladder_tableData[findex].nake_fee = nake_fee;
|
|
|
+ this.ladder_tableData[findex].cert_fee = cert_fee;
|
|
|
+ this.ladder_tableData[findex].mark_fee = mark_fee;
|
|
|
+ this.ladder_tableData[findex].package_fee = package_fee;
|
|
|
+ this.ladder_tableData[findex].other_fee = other_fee;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (isok) {
|
|
|
+ this.ladder_tableData.forEach((i, findex) => {
|
|
|
+ if (findex === parseInt(index + "")) {
|
|
|
+ ffindex = findex;
|
|
|
+ this.ladder_tableData[findex].id = id;
|
|
|
+ this.ladder_tableData[findex].min_num = min_num;
|
|
|
+ this.ladder_tableData[findex].cost_fee = cost_fee;
|
|
|
+ this.ladder_tableData[findex].delivery_fee = delivery_fee;
|
|
|
+ this.ladder_tableData[findex].nake_fee = nake_fee;
|
|
|
+ this.ladder_tableData[findex].cert_fee = cert_fee;
|
|
|
+ this.ladder_tableData[findex].mark_fee = mark_fee;
|
|
|
+ this.ladder_tableData[findex].package_fee = package_fee;
|
|
|
+ this.ladder_tableData[findex].other_fee = other_fee;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (ffindex === -1) {
|
|
|
+ this.ladder_tableData.push(item);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
await this.get_all_fee();
|
|
|
this.showModel = false;
|
|
|
},
|
|
@@ -1817,7 +1837,7 @@ export default {
|
|
|
"is_diff",
|
|
|
"config",
|
|
|
"other_config",
|
|
|
- 'cgd_gold_price'
|
|
|
+ "cgd_gold_price",
|
|
|
];
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
if (list[i] === "cgd_gold_price") {
|