✨ feat:修改确认订单选择后无法渲染的问题,顶input框的高度问题
This commit is contained in:
@@ -60,11 +60,15 @@ export default memo((props: prosObj) => {
|
||||
const canBuy = useMemo(() => {
|
||||
if (
|
||||
(obj.sale_mode === 0 && obj.status === 7 && obj.collect_status == 1) ||
|
||||
(obj.sale_mode === 0 && obj.status === 3 && obj.collect_status == 1) ||
|
||||
(obj.sale_mode === 0 && obj.status === 3 && (obj.payment_method == 3 || obj.payment_method == 5)) ||
|
||||
(obj.sale_mode === 0 && obj.status === 8 && (obj.payment_method == 3 || obj.payment_method == 5 || obj.collect_status == 1)) ||
|
||||
(obj.sale_mode === 0 && obj.status === 9 && (obj.payment_method == 3 || obj.payment_method == 5 || obj.collect_status == 1)) ||
|
||||
(obj.sale_mode === 0 && obj.status === 7 && obj.collect_status == 0) ||
|
||||
(obj.sale_mode === 0 && obj.status === 7 && obj.settle_mode == 3) ||
|
||||
(obj.sale_mode === 0 && obj.status === 3 && obj.collect_status == 1) ||
|
||||
(obj.sale_mode === 0 && obj.status === 3 && obj.collect_status == 0) ||
|
||||
(obj.sale_mode === 0 && obj.status === 8 && obj.collect_status == 1) ||
|
||||
(obj.sale_mode === 0 && obj.status === 8 && obj.collect_status == 0) ||
|
||||
(obj.sale_mode === 0 && obj.status === 9 && obj.collect_status == 1) ||
|
||||
(obj.sale_mode === 0 && obj.status === 9 && obj.collect_status == 0) ||
|
||||
(obj.sale_mode === 2 && obj.status === 2) ||
|
||||
(obj.sale_mode === 2 && obj.status === 7)
|
||||
) {
|
||||
return true
|
||||
|
||||
@@ -33,8 +33,8 @@ export default memo((props: props) => {
|
||||
const onInputEven = (e) => {
|
||||
let res = e.detail.value
|
||||
if (props.modeFont == 0) {
|
||||
if (Number(res) < 0) {
|
||||
setValue({ count: 1 })
|
||||
if (Number(res) < 1) {
|
||||
setValue({ count: '' })
|
||||
}
|
||||
}
|
||||
if (props.modeFont == 1) {
|
||||
@@ -80,7 +80,7 @@ export default memo((props: props) => {
|
||||
</View>
|
||||
</View>
|
||||
<View className={styles.numsBox}>
|
||||
<Input type={type as any} value={value.count} onInput={onInputEven} onBlur={(e) => props.onBlur?.(e, props.value.id)}></Input>
|
||||
<Input cursorSpacing={100} adjustPosition type={type as any} value={value.count} onInput={onInputEven} onBlur={(e) => props.onBlur?.(e, props.value.id)}></Input>
|
||||
|
||||
{/* <Input type={type as any} value={value.count} onInput={($event) => onInputEven($event, props.value)}></Input> */}
|
||||
</View>
|
||||
|
||||
@@ -23,7 +23,8 @@ type Params = {
|
||||
customRightSlot?: ReactNode
|
||||
adjustPosition?: boolean,
|
||||
showScan?: boolean
|
||||
handScan?: () => void
|
||||
handScan?: () => void,
|
||||
cursorSpacing?: Number
|
||||
}
|
||||
|
||||
export default memo(
|
||||
@@ -45,7 +46,8 @@ export default memo(
|
||||
children,
|
||||
customRightSlot,
|
||||
showScan = false,
|
||||
handScan
|
||||
handScan,
|
||||
cursorSpacing = 0
|
||||
}: Params,
|
||||
ref,
|
||||
) => {
|
||||
@@ -94,6 +96,7 @@ export default memo(
|
||||
)}
|
||||
<View className={styles.input_bar}>
|
||||
<Input
|
||||
cursorSpacing={cursorSpacing as any}
|
||||
adjustPosition={adjustPosition}
|
||||
placeholderStyle='color:#ABABAB; font-size:26rpx'
|
||||
onConfirm={onSearch}
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
.scrollviewBig {
|
||||
.scrollview {
|
||||
height: 300px;
|
||||
// height: 300px;
|
||||
|
||||
.kongBox {
|
||||
height: 181px;
|
||||
|
||||
@@ -141,7 +141,7 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
<View className={styles.danwei}>{modeFont == 0 ? '大货' : modeFont == 1 ? '剪版' : '散剪'}单位:{showModefont}</View>
|
||||
</View>
|
||||
<View className={styles.searchBox}>
|
||||
<Search placeholder='请输入搜索布料' showBtn={false} changeOnSearch={getSearchData} debounceTime={300} adjustPosition={true} />
|
||||
<Search cursorSpacing={100} placeholder='请输入搜索布料' showBtn={false} changeOnSearch={getSearchData} debounceTime={300} adjustPosition={true} />
|
||||
</View>
|
||||
{
|
||||
goodList.length > 0 && <>
|
||||
|
||||
Reference in New Issue
Block a user