This commit is contained in:
JIAL 2024-03-13 11:22:04 +08:00
parent 899eb8af45
commit 4c986cb5ba
2 changed files with 9 additions and 9 deletions

View File

@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select a.material_id AS uid, a.material_xingh AS model,a.material_guig AS specification,a.material_diany AS voltLevel,
a.material_dw AS measureUnit,c.type_name AS prodCategory,
b.price matCostPrice, d.factory_total_ratio/100 manuCost,d.factory_pj_ratio/100 wdFSurcharge,
cc.红本价格 AS redBookPrice,cc.红本价格*0.8 rbFacPrice, dd.成本价格 AS redBookCost
cc.material_rb_price AS redBookPrice,cc.material_rb_price*0.8 rbFacPrice, dd.material_cb_price AS redBookCost
from c_material a
left join
(select a.cost_material_id,sum((isnull(a.cost_cl_qty,0)+isnull(a.cost_cl_qty_2,0))*b.material_price) price from c_material_cost a
@ -59,12 +59,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join c_material_type_factory c on a.material_type_id = c.type_no
left join c_material_type e on e.type_no = c.type_no
left join c_factory d on d.factory_no = c.factory_id
left join(select 型号,规格,电压等级,红本价格 from c_rb_product_price
)as cc on cc.型号=a.material_xingh and cc.规格 = a.material_guig
and cc.电压等级 = a.material_diany
left join(select 型号,规格,电压等级,成本价格 from c_rb_productbase_price
)as dd on dd.型号=a.material_xingh and dd.规格 = a.material_guig
and dd.电压等级= a.material_diany
left join(select material_xingh,material_guig,material_diany,convert(decimal(18,2),material_rb_price ) material_rb_price from c_rb_product_price
)as cc on cc.material_xingh=a.material_xingh and cc.material_guig = a.material_guig
and cc.material_diany = a.material_diany
left join(select material_xingh,material_guig,material_diany,convert(decimal(18,2),material_cb_price) material_cb_price from c_rb_productbase_price
)as dd on dd.material_xingh=a.material_xingh and dd.material_guig = a.material_guig
and dd.material_diany= a.material_diany
<where>
a.material_state='0' and e.type_state ='0'
<if test="precMaterialName != null and precMaterialName != ''"> and a.material_xingh like concat('', #{precMaterialName}, '%')</if>

View File

@ -381,7 +381,7 @@
prop="wdFSurcharge"
label="盘具运费">
<template slot-scope="scope">
{{ parseFloat(scope.row.wdFSurcharge).toFixed(2) + '%' }}
{{ (parseFloat(scope.row.wdFSurcharge) * 100).toFixed(3) + '%' }}
</template>
</el-table-column>
<el-table-column
@ -389,7 +389,7 @@
prop="manuCost"
label="制造成本">
<template slot-scope="scope">
{{ (parseFloat(scope.row.manuCost) * 100).toFixed(2) + '%' }}
{{ (parseFloat(scope.row.manuCost) * 100).toFixed(3) + '%' }}
</template>
</el-table-column>
<el-table-column