|
@@ -37,7 +37,7 @@
|
|
|
:append="''"
|
|
|
:newTime="scope.row.newTime"
|
|
|
:size="'mini'"
|
|
|
- :disabled="!scope.row.edit"
|
|
|
+ :disabled="!scope.row.edit || sitem.create_source === '1'"
|
|
|
@reschange="num_change($event, 'min_num', scope.$index)"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -98,7 +98,7 @@
|
|
|
:append="''"
|
|
|
:newTime="scope.row.newTime"
|
|
|
:size="'mini'"
|
|
|
- :disabled="!scope.row.edit"
|
|
|
+ :disabled="!scope.row.edit || sitem.create_source === '1'"
|
|
|
@reschange="num_change($event, 'sale_price', scope.$index)"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -819,7 +819,10 @@ export default {
|
|
|
let { isok, price, message, new_cost_fee } = await this.get_new(
|
|
|
rowIndex
|
|
|
);
|
|
|
- if (isok === 0) {
|
|
|
+
|
|
|
+ if(this.sitem.create_source === "1"){
|
|
|
+ this.addrForm.good_ladder[rowIndex].edit = false;
|
|
|
+ }else if (isok === 0) {
|
|
|
this.addrForm.good_ladder[rowIndex].new_sale_price = price;
|
|
|
this.addrForm.good_ladder[rowIndex].new_cost_fee = new_cost_fee;
|
|
|
this.addrForm.good_ladder[rowIndex].edit = false;
|
|
@@ -930,14 +933,12 @@ export default {
|
|
|
{
|
|
|
edit: true,
|
|
|
min_num: this.sitem.nakelist[0].min_num,
|
|
|
- sale_price: "0",
|
|
|
- cost_fee: "0",
|
|
|
market_price: "0",
|
|
|
market_platform: "京东",
|
|
|
status: "1",
|
|
|
...(this.sitem.is_gold_price === "0"
|
|
|
- ? ({ new_sale_price: Number(this.sitem.nakelist[0].nake_fee), new_cost_fee: "0"})
|
|
|
- : ({ new_cost_fee: Number(this.sitem.nakelist[0].cost_fee) , new_sale_price: "0" }))
|
|
|
+ ? ({ new_sale_price: Number(this.sitem.nakelist[0].nake_fee), sale_price:Number(this.sitem.sale_price), cost_fee: "0", new_cost_fee: "0"})
|
|
|
+ : ({ new_cost_fee: Number(this.sitem.nakelist[0].cost_fee) , new_sale_price: "0" ,sale_price: "0", cost_fee: "0", new_cost_fee: Number(this.sitem.sale_price)}))
|
|
|
}
|
|
|
]
|
|
|
|