소스 검색

fix:“修复汇付地址参数经常丢失问题”

soobin 1 년 전
부모
커밋
d7bdbde5a0
2개의 변경된 파일17개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/device/deviceOper.vue
  2. 16 1
      src/views/settlement/index.vue

+ 1 - 1
src/views/device/deviceOper.vue

@@ -91,7 +91,7 @@
         </div>
         <div class="operText">{{ $t("device.equipmentRecharge") }}</div>
       </div> -->
-      <div class="operItem" @click="paramSetPush()" v-if="device.equimentType != 'SI320'">
+      <div class="operItem" @click="paramSetPush()" v-if="device.equimentType != 'SI320' && device.machineType === '0'">
         <div class="operIcon">
           <img class="operImg" src="../../assets/device/operIcon/paramsSet.png" />
         </div>

+ 16 - 1
src/views/settlement/index.vue

@@ -729,6 +729,8 @@ export default {
       huifuParams.areaId = selectedOptions[1]?.value || '';
       huifuParams.districtId = selectedOptions[2]?.value || '';
       huifuParams.detailAddr = addParams.manageAddr;
+      fieldUpdate();
+      console.log("huifuMch", huifuParams);
     };
     const onConfirmBankAddress = ({ selectedOptions }) => {
       showBankAddress.value = false;
@@ -736,6 +738,8 @@ export default {
         + selectedOptions[1]?.text;
       huifuParams.cardProvId = selectedOptions[0]?.value || '';
       huifuParams.cardAreaId = selectedOptions[1]?.value || '';
+      fieldUpdate();
+      console.log("huifuMch", huifuParams);
     };
     const onConfirmReAddress = ({ selectedOptions }) => {
       showReAddress.value = false;
@@ -745,10 +749,13 @@ export default {
       huifuParams.regAreaId = selectedOptions[1]?.value || '';
       huifuParams.regDistrictId = selectedOptions[2]?.value || '';
       huifuParams.regDetail = addParams.registeredAddress;
-      console.log("详细地址", huifuParams.regDetail);
+      // console.log("详细地址", huifuParams.regDetail);
+      fieldUpdate();
+      console.log("huifuMch", huifuParams);
     };
     onMounted(async () => {
       styleUrl('joinpayMch');
+      console.log("huifuMch", huifuParams);
       getOneJoinPayMchFun();
       getHuifuMchFun();
       verCodeTime.time = getLocal('registerVerCodeTime');
@@ -925,12 +932,19 @@ export default {
     // 记忆表单
     const memoryForm = () => {
       const formDataString = localStorage.getItem('joinPayMchForm');
+      const huifuMchFormData = localStorage.getItem('huifuMchForm');
       if (formDataString) {
         const formData = JSON.parse(formDataString);
         Object.keys(formData).forEach(key => {
           addParams[key] = formData[key];
         });
       }
+      if (huifuMchFormData) {
+        const huifuFormData = JSON.parse(huifuMchFormData);
+        Object.keys(huifuFormData).forEach(key => {
+          huifuParams[key] = huifuFormData[key];
+        });
+      }
     };
     // 发送验证码
     const sendCode = async () => {
@@ -1146,6 +1160,7 @@ export default {
       }
       if (isMemoryFormType) {
         localStorage.setItem('joinPayMchForm', JSON.stringify(addParams));
+        localStorage.setItem("huifuMchForm", JSON.stringify(huifuParams));
       }
     };
     // 图片上传状态,0:未上传 1:已上传