shish 3 yıl önce
ebeveyn
işleme
acc2ad13dc

+ 0 - 1
ghsApp/src/admin/billing/result.vue

@@ -21,7 +21,6 @@
         <button class="admin-button-com middle" style="margin:10upx auto 0 auto;" @click="partOne(item)">拆1份</button>
       </view>
     </block>
-    
   </view>
   </appResult>
 

+ 2 - 3
ghsApp/src/pagesOrder/refundDetail.vue

@@ -27,7 +27,7 @@
 	</view>
 </template>
 <script>
-import { refundDetail } from "@/api/refund/index";
+import { refundDetail } from "@/api/refund";
 export default {
 	data() {
 		return {
@@ -47,8 +47,7 @@ export default {
 				this.refundPrice = res.data.info.refundPrice ? parseFloat(res.data.info.refundPrice) : 0
 				this.remark = res.data.info.remark;
 			})
-
-		},
+		}
 	}
 };
 </script>

+ 20 - 2
ghsApp/src/pagesOrder/refundSuccess.vue

@@ -1,10 +1,19 @@
 <template>
   <appResult :title="title">
-	<button class="admin-button-com big blue" style="width:80%;margin-top:50upx;" @click="goBack">返回</button>
+    <button class="admin-button-com big blue" style="width:80%;" @click="goBack">返回</button>
+    <view v-if="!$util.isEmpty(itemList)" style="margin-top:20upx;">
+      <block v-for="(item, index) in itemList" :key="index">
+        <view style="text-align:center;margin-bottom:10upx;">
+          <text style="font-size:30upx;">{{item.name}} 已退{{item.xhNum}}{{item.xhUnitName}}</text>
+          <button class="admin-button-com middle" style="margin:10upx auto 0 auto;" @click="wastage(item)">报损</button>
+        </view>
+      </block>
+    </view>
   </appResult>
 </template>
 <script>
 import appResult from "@/components/app-result";
+import { refundDetail } from "@/api/refund";
 export default {
   name: "commonSuccess",
   components: {
@@ -13,14 +22,23 @@ export default {
 	data() {
 		return {
 			title:'操作成功',
+      info:[],
+      itemList:[]
 		};
 	},
 	methods: {
     init(){
-
+      let that = this
+			refundDetail({ id: this.option.id }).then(res=>{
+        that.info = res.data.info ? res.data.info : []
+        that.itemList = res.data.itemList ? res.data.itemList : []
+			})
     },
     goBack() {
         uni.navigateBack({})
+    },
+    wastage(){
+
     }
   },
 };