对接售后列表订单状态

This commit is contained in:
2022-06-29 19:48:59 +08:00
parent 8c6392c90e
commit ed90e50092
14 changed files with 253 additions and 58 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ export default memo(({orderInfo, onClick}:Param) => {
//退款
const {fetchData: fetchDataApplyRefund} = ApplyRefundApi()
const applyRefund = async () => {
if(!orderInfo?.av_return_roll) return alert.none('该订单没有可退条数')
// if(!orderInfo?.av_return_roll) return alert.none('该订单没有可退条数')
Taro.showModal({
title: '确定退款?',
success: async function async (res) {
+3 -2
View File
@@ -7,9 +7,10 @@ import classnames from "classnames";
type Param = {
title?: string,
onChange?: (val: string) => void,
placeholder?: string
placeholder?: string,
defaultValue?: string
}
export default memo(({onChange, title = '', placeholder = '请输入'}:Param) => {
export default memo(({onChange, title = '', placeholder = '请输入', defaultValue}:Param) => {
const [descData, setDescData] = useState({
number: 0,
value: '',