|
@@ -1,10 +1,19 @@
|
|
|
<template>
|
|
<template>
|
|
|
<appResult :title="title">
|
|
<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>
|
|
</appResult>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import appResult from "@/components/app-result";
|
|
import appResult from "@/components/app-result";
|
|
|
|
|
+import { refundDetail } from "@/api/refund";
|
|
|
export default {
|
|
export default {
|
|
|
name: "commonSuccess",
|
|
name: "commonSuccess",
|
|
|
components: {
|
|
components: {
|
|
@@ -13,14 +22,23 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
title:'操作成功',
|
|
title:'操作成功',
|
|
|
|
|
+ info:[],
|
|
|
|
|
+ itemList:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
init(){
|
|
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() {
|
|
goBack() {
|
|
|
uni.navigateBack({})
|
|
uni.navigateBack({})
|
|
|
|
|
+ },
|
|
|
|
|
+ wastage(){
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|