价格参数修改2
This commit is contained in:
parent
3b9c006730
commit
d5f384ff56
|
|
@ -672,7 +672,7 @@
|
||||||
<span v-if="scope.row.salesMode==2">称重</span>
|
<span v-if="scope.row.salesMode==2">称重</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="称重单位" align="center" prop="unitPrice" :show-overflow-tooltip="true"/>
|
<el-table-column label="成本价" align="center" prop="unitPrice" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="规格类型" align="center" prop="sizeType" :show-overflow-tooltip="true">
|
<el-table-column label="规格类型" align="center" prop="sizeType" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.sizeType==1">标准</span>
|
<span v-if="scope.row.sizeType==1">标准</span>
|
||||||
|
|
@ -703,7 +703,7 @@
|
||||||
<span v-if="scope.row.salesMode==2">称重</span>
|
<span v-if="scope.row.salesMode==2">称重</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="称重单位" align="center" prop="unitPrice" :show-overflow-tooltip="true"/>
|
<el-table-column label="成本价" align="center" prop="unitPrice" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="规格类型" align="center" prop="sizeType" :show-overflow-tooltip="true">
|
<el-table-column label="规格类型" align="center" prop="sizeType" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.sizeType==1">标准</span>
|
<span v-if="scope.row.sizeType==1">标准</span>
|
||||||
|
|
@ -1180,10 +1180,12 @@
|
||||||
this.$set(this.baseForm,"salesMode",this.baseForm.salesMode)
|
this.$set(this.baseForm,"salesMode",this.baseForm.salesMode)
|
||||||
this.$set(this.baseForm,"sizeType",this.baseForm.sizeType+'')
|
this.$set(this.baseForm,"sizeType",this.baseForm.sizeType+'')
|
||||||
if(this.baseForm.sizeType==1){
|
if(this.baseForm.sizeType==1){
|
||||||
|
this.$set(this.baseForm,"unitPrice",Number(this.baseForm.unitPrice)/100)
|
||||||
this.$set(this.baseForm,"price",Number(this.baseForm.price)/100)
|
this.$set(this.baseForm,"price",Number(this.baseForm.price)/100)
|
||||||
this.$set(this.baseForm,"materialCost",Number(this.baseForm.materialCost)/100)
|
this.$set(this.baseForm,"materialCost",Number(this.baseForm.materialCost)/100)
|
||||||
this.$set(this,"dishesMaterialList",this.baseForm.dishesMaterialList||[])
|
this.$set(this,"dishesMaterialList",this.baseForm.dishesMaterialList||[])
|
||||||
}else{
|
}else{
|
||||||
|
this.$set(this.baseForm,"unitPrice",Number(this.baseForm.unitPrice)/100)
|
||||||
this.$set(this.baseForm,"littlePrice",Number(this.baseForm.littlePrice)/100)
|
this.$set(this.baseForm,"littlePrice",Number(this.baseForm.littlePrice)/100)
|
||||||
this.$set(this.baseForm,"largePrice",Number(this.baseForm.largePrice)/100)
|
this.$set(this.baseForm,"largePrice",Number(this.baseForm.largePrice)/100)
|
||||||
this.$set(this.baseForm,"littleMaterialCost",Number(this.baseForm.littleMaterialCost)/100)
|
this.$set(this.baseForm,"littleMaterialCost",Number(this.baseForm.littleMaterialCost)/100)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue