shish 7 ヶ月 前
コミット
c9a4b0ae3b
2 ファイル変更62 行追加69 行削除
  1. 7 5
      ghsApp/src/admin/part/confirm.vue
  2. 55 64
      ghsApp/src/admin/part/result.vue

+ 7 - 5
ghsApp/src/admin/part/confirm.vue

@@ -53,7 +53,7 @@
     </view>
     </view>
     <view class="under-bar">
     <view class="under-bar">
       <view class="price-view"></view>
       <view class="price-view"></view>
-      <button class="admin-button-com blue big" style="width:200upx;" @click="affirmFormSubmit">提交</button>
+      <button class="admin-button-com blue big" style="width:200upx;" @click="affirmFormSubmit">确认</button>
     </view>
     </view>
 
 
     <view v-if="isScanEnv" @click="changeGet" style="width:125upx;height:125upx;display:flex;justify-content:center;align-items:center;font-size:60upx;
     <view v-if="isScanEnv" @click="changeGet" style="width:125upx;height:125upx;display:flex;justify-content:center;align-items:center;font-size:60upx;
@@ -232,10 +232,12 @@ export default {
       });
       });
       that.$util.confirmModal({content:'确认拆散?'},() => {
       that.$util.confirmModal({content:'确认拆散?'},() => {
           partItem({product:JSON.stringify(product),remark:that.form.remark}).then((res) => {
           partItem({product:JSON.stringify(product),remark:that.form.remark}).then((res) => {
-            that.removeFromSaveDirect()
-            const {data: { id, orderSn },} = res;
-            that.pageTo({url: '/admin/part/result',type:2})
-          });
+            if(res.code == 1){
+              that.removeFromSaveDirect()
+              const {data: { id, orderSn },} = res;
+              that.pageTo({url: '/admin/part/result?orderSn='+orderSn+'&id='+id,type:2})
+            }
+          })
       })
       })
     },
     },
     gobackEvent () {
     gobackEvent () {

+ 55 - 64
ghsApp/src/admin/part/result.vue

@@ -1,73 +1,64 @@
 <template>
 <template>
-	<view class="app-content">
-		<view class="billing_box_bg">
-			<view class="top-view"> </view>
-			<view class="result-view">
-				<view class="iconfont iconchenggong"></view>
-				<view class="result-title">拆散成功</view>
-				<button class="admin-button-com big blue" style="width:45vw;" @click="goBackHome">返回</button>
-			</view>
-		</view>
-	</view>
-</template>
+<appResult :title="title">
+
+  	<button class="admin-button-com big blue" @click="goDetail()">查看详情</button>
+    <button class="admin-button-com big blue" @click="goOn()">继续入库</button>
+	<button class="admin-button-com big" @click="goList">入库记录</button>
+    <button class="admin-button-com big" @click="goBackHome">返回</button>
+
+    <!-- #ifdef MP-WEIXIN -->
+    <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
+    <ad-custom unit-id="adunit-42a99bd9e25e3626" v-if="currentEnv=='production'" style="width:688upx;"></ad-custom>
+    <ad-custom unit-id="adunit-9523c840341ccb1f" v-else style="width:688upx;"></ad-custom>
+    <!-- #endif -->
+
+</appResult>
 
 
+</template>
 <script>
 <script>
+import appResult from "@/components/app-result"
+import { CURRENT_ENV } from "@/config"
 export default {
 export default {
-    name: "success",
-	methods: {
-		init(){
-
-		},
-		goBackHome() {
-			uni.navigateBack({})
-		}
-	}
+  name: "result",
+  components: {
+    appResult
+  },
+  mixins: [],
+  data() {
+    return {
+      title:'拆散成功',
+      currentEnv:'production'
+    };
+  },
+  onLoad() {
+    //当前环境
+    this.currentEnv = CURRENT_ENV
+  },
+  methods: {
+    init() {
+      if(this.option.title!=''){
+        this.title = this.option.title
+      }
+    },
+    goDetail() {
+        let orderSn = this.option.orderSn?this.option.orderSn:''
+        this.$util.pageTo({url: "/admin/part/info?orderSn="+orderSn,type:2})
+    },
+    goOn(){
+        this.$util.pageTo({url: "/admin/part/index",type:2})
+    },
+    goList(){
+        this.$util.pageTo({url: "/admin/part/list",type:2})
+    },
+    goBackHome() {
+      uni.navigateBack({ delta: 1 });
+    }
+  },
 };
 };
 </script>
 </script>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
-.go-back{
-	width: 80%;
-	height: 80upx;
-	color: #FFFFFF;
-	margin-top: 50upx;
-	background: #3385FF;
-	border-radius: 10upx;
-	font-size:30upx;
-}
-.billing_box_bg {
-	position: relative;
-	padding: 60upx 30upx;
-	display: flex;
-	background: white;
-	flex-direction: column;
-    background-color: #f5f5f5;
-	.top-view {
-		position: absolute;
-		top: 0;
-		left: 0;
-		width: 100%;
-		height: 299upx;
-		background: #3385ff;
-		border-radius: 0upx 0upx 83upx 83upx;
-	}
-	.result-view {
-		position: relative;
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-		padding: 70upx;
-		width: 100%;
-		background: #ffffff;
-		border-radius: 20upx;
-		z-index: 1;
-		.iconchenggong {
-			font-size: 170upx;
-			color: $mainColor1;
-		}
-		.result-title {
-			margin: 50upx 0 70upx;
-			font-size: 32upx;
-		}
-	}
+.admin-button-com {
+  margin-bottom:30upx;
+  width: 100%;
 }
 }
 </style>
 </style>