This commit is contained in:
parent
899eb8af45
commit
4c986cb5ba
|
@ -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,
|
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,
|
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,
|
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
|
from c_material a
|
||||||
left join
|
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
|
(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_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_material_type e on e.type_no = c.type_no
|
||||||
left join c_factory d on d.factory_no = c.factory_id
|
left join c_factory d on d.factory_no = c.factory_id
|
||||||
left join(select 型号,规格,电压等级,红本价格 from c_rb_product_price
|
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.型号=a.material_xingh and cc.规格 = a.material_guig
|
)as cc on cc.material_xingh=a.material_xingh and cc.material_guig = a.material_guig
|
||||||
and cc.电压等级 = a.material_diany
|
and cc.material_diany = a.material_diany
|
||||||
left join(select 型号,规格,电压等级,成本价格 from c_rb_productbase_price
|
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.型号=a.material_xingh and dd.规格 = a.material_guig
|
)as dd on dd.material_xingh=a.material_xingh and dd.material_guig = a.material_guig
|
||||||
and dd.电压等级= a.material_diany
|
and dd.material_diany= a.material_diany
|
||||||
<where>
|
<where>
|
||||||
a.material_state='0' and e.type_state ='0'
|
a.material_state='0' and e.type_state ='0'
|
||||||
<if test="precMaterialName != null and precMaterialName != ''"> and a.material_xingh like concat('', #{precMaterialName}, '%')</if>
|
<if test="precMaterialName != null and precMaterialName != ''"> and a.material_xingh like concat('', #{precMaterialName}, '%')</if>
|
||||||
|
|
|
@ -381,7 +381,7 @@
|
||||||
prop="wdFSurcharge"
|
prop="wdFSurcharge"
|
||||||
label="盘具运费">
|
label="盘具运费">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ parseFloat(scope.row.wdFSurcharge).toFixed(2) + '%' }}
|
{{ (parseFloat(scope.row.wdFSurcharge) * 100).toFixed(3) + '%' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -389,7 +389,7 @@
|
||||||
prop="manuCost"
|
prop="manuCost"
|
||||||
label="制造成本">
|
label="制造成本">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ (parseFloat(scope.row.manuCost) * 100).toFixed(2) + '%' }}
|
{{ (parseFloat(scope.row.manuCost) * 100).toFixed(3) + '%' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
Loading…
Reference in New Issue