Jelajahi Sumber

【报价单】页面bug

lxf 1 tahun lalu
induk
melakukan
2edc1a3c2f

+ 1 - 1
src/views/processApproval/components/PriceSheet.vue

@@ -716,7 +716,7 @@ const handleChangeAmount = () => {
 const handleSubmit = async () => {
   const flag = await formDom1.value.validateForm().then((status) => {
     if (status) {
-      active.value = 3;
+      active.value = 0;
       return false;
     } else {
       if (!(formData.data.quotationProductList && formData.data.quotationProductList.length > 0)) {

+ 4 - 4
src/views/processApproval/processDtl.vue

@@ -163,7 +163,6 @@ const handleSelectUser = () => {
 }
 const handleSubmit = async (_type) => {
 	const childrenData = await makeDom.value.handleSubmit()
-	console.log(childrenData,'www');
 	if (childrenData) {
 		if (route.query.processType == 10 || route.query.processType == 30) {
 			proxy
@@ -175,7 +174,8 @@ const handleSubmit = async (_type) => {
 					flowId: route.query.id,
 				})
 				.then((res) => {
-					handleResult(res.data)
+					// handleResult(res.data)
+					proxy.$router.go(-1)
 				})
 			if (_type && _type == 1) {
 				proxy
@@ -193,11 +193,11 @@ const handleSubmit = async (_type) => {
 					data: childrenData,
 				})
 				.then((res) => {
-					handleResult(res.data)
+					// handleResult(res.data)
+					proxy.$router.go(-1)
 				})
 		}
 	}
-	proxy.$router.go(-1)
 }
 
 const nextFn = () => {

+ 2 - 1
src/views/salesContract/priceSheet/index.vue

@@ -5,7 +5,7 @@
   <van-search v-model="req.keyword" :placeholder="$t('common.pleaseEnterKeywords')" @search="onRefresh" />
   <van-pull-refresh v-model="loading" @refresh="onRefresh">
     <div class="list">
-      <van-list v-model:loading="loading" :finished="finished" :finished-text="$t('common.noMore')" @load="getList" style="margin-bottom: 60px">
+      <van-list v-model:loading="loading" :finished="finished" :finished-text="$t('common.noMore')" @load="getList('load')" style="margin-bottom: 60px">
         <commonList :data="listData" @onClick="toDtl" :config="listConfig"></commonList>
       </van-list>
     </div>
@@ -84,6 +84,7 @@ const getList = (type) => {
           };
         });
       }
+      console.log(type);
       listData.value = type === "refresh" ? res.data.rows : listData.value.concat(res.data.rows);
       if (req.value.pageNum * 10 >= res.data.total) {
         finished.value = true;