✨ feat:根据客户传递id接口获得商品价格

This commit is contained in:
Haiyi
2022-11-08 18:54:48 +08:00
parent eedc18db75
commit 3c18710b91
10 changed files with 64 additions and 27 deletions
+7 -4
View File
@@ -37,7 +37,6 @@
width: 260px;
height: 30px;
font-size: 24px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #000000;
margin-bottom: 16px;
@@ -48,10 +47,16 @@
.productNums {
font-size: 24px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #000000;
}
.productName {
font-size: 24px;
font-weight: 400;
color: #000000;
height: 40px;
}
}
.rightFontsbox {
@@ -59,7 +64,6 @@
display: flex;
justify-content: flex-end;
font-size: 28px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #F41A39;
margin-bottom: 14px;
@@ -94,7 +98,6 @@
align-items: center;
justify-content: center;
font-size: 24px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #000000;
text-align: center;
+4 -3
View File
@@ -20,7 +20,8 @@ interface props {
name?: string,
roll?: number | string,
buyNums?: number | string,
id?: number
id?: number,
weight_error?: number | string
},
goodList?: any[],
onBlur?: (a: any, c: any) => void
@@ -68,8 +69,8 @@ export default memo((props: props) => {
<View className={styles.rightGoodbox}>
<View className={styles.leftFontsbox}>
<View className={styles.title}>{props.value?.code} {props.value?.name}</View>
{/* <View className={styles.productName}>0681# 26S全棉平纹</View> */}
<View className={styles.productNums}>剩:{props.value?.roll}件</View>
<View className={styles.productNums}>剩:{props.value?.roll}件</View>
<View className={styles.productName}>空差:{props?.value?.weight_error as number / 1000}Kg</View>
</View>
<View className={styles.rightFontsbox}>
<View className={styles.money}>¥{props?.modeFont === 0 ? Number(props.value?.bulk_price) / 100 : props.modeFont === 1 ? Number(props.value?.length_cut_price) / 100 : Number(props.value?.weight_cut_price) / 100}{props.modeFont != 1 ? '/Kg' : '/m'}</View>