价格参数修改2

This commit is contained in:
zzyuan 2025-07-04 14:01:05 +08:00
parent 3b9c006730
commit d5f384ff56
1 changed files with 5 additions and 3 deletions

View File

@ -672,7 +672,7 @@
<span v-if="scope.row.salesMode==2">称重</span>
</template>
</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">
<template slot-scope="scope">
<span v-if="scope.row.sizeType==1">标准</span>
@ -703,7 +703,7 @@
<span v-if="scope.row.salesMode==2">称重</span>
</template>
</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">
<template slot-scope="scope">
<span v-if="scope.row.sizeType==1">标准</span>
@ -1179,11 +1179,13 @@
});
this.$set(this.baseForm,"salesMode",this.baseForm.salesMode)
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,"materialCost",Number(this.baseForm.materialCost)/100)
this.$set(this,"dishesMaterialList",this.baseForm.dishesMaterialList||[])
}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,"largePrice",Number(this.baseForm.largePrice)/100)
this.$set(this.baseForm,"littleMaterialCost",Number(this.baseForm.littleMaterialCost)/100)