🎨refactor:修改二催字段名

main
LiaoYijun 8 months ago
parent 354ec5337f
commit f6c8fc1df7

@ -60,8 +60,7 @@ export const useOrderStore = create(
},
fetchOrderDetail: (colisn) => {
// return fetchJSON(`${API_HOST}/getorderinfo`, { colisn }).then((json) => {
return fetchJSON(`http://202.103.68.144:8888/v2/getorderinfo`, { colisn }).then((json) => {
return fetchJSON(`${API_HOST}/getorderinfo`, { colisn }).then((json) => {
if (json.errcode === 0 && json.result.length > 0) {
const orderResult = json.result[0]
@ -300,7 +299,7 @@ const transferRemind2Checklist = (remindstate) => {
remindValueList.push('FirstRemind')
}
if (remindstate.SendFirstRemind) {
remindValueList.push('SendFirstRemind')
remindValueList.push('SecondRemind')
}
if (remindstate.ThirdRemind) {
remindValueList.push('ThirdRemind')
@ -321,7 +320,7 @@ const transferRemind2Checklist = (remindstate) => {
export const setRemindStateAction = async (orderId, checkedValue) => {
const finalState = {
'FirstRemind': checkedValue.includes('FirstRemind') ? 1 : 0,
'SendFirstRemind': checkedValue.includes('SendFirstRemind') ? 1 : 0,
'SecondRemind': checkedValue.includes('SendFirstRemind') ? 1 : 0,
'ThirdRemind': checkedValue.includes('ThirdRemind') ? 1 : 0,
'important': checkedValue.includes('important') ? 1 : 0,
'sendsurvey': checkedValue.includes('sendsurvey') ? 1 : 0,

Loading…
Cancel
Save