shish пре 2 година
родитељ
комит
287ad0d214

+ 1 - 1
ghsApp/src/admin/home/order.vue

@@ -134,7 +134,7 @@ export default {
       searchTime:'',
       startTime:'',
       endTime:'',
-      fromDetail:{status:0}
+      fromDetail:{status:1}
     };
   },
   onPullDownRefresh() {

+ 6 - 0
ghsApp/src/admin/order/itemOrder.vue

@@ -57,6 +57,12 @@ export default {
   },
   onLoad() {
     this.getOrderList()
+
+		//返回上一页时不需要刷新
+		let pages = getCurrentPages();
+		let prevPage = pages[ pages.length - 2 ];
+		prevPage.$vm.fromDetail = {status:1}
+
   },
   methods: {
     init(){

+ 6 - 3
ghsApp/src/pagesOrder/detail.vue

@@ -4,9 +4,6 @@
 		<view v-if="!$util.isEmpty(detailInfo)" class="info-content_box">
 			<view class="flex-space title">
 				客户
-				<view class="flex" style="color: #3385ff;font-weight:bold;font-size:32upx;">
-					<view @click="backBefore()" style="margin-left:50upx;">返回上级</view>
-				</view>
 			</view>
 			<view class="address-des_bx content-box" @click="copyCustom(detailInfo)">
 				<view>
@@ -404,6 +401,12 @@ export default {
 
 		this.init();
 	},
+	onLoad(){
+		//返回上一页时不需要刷新
+		let pages = getCurrentPages();
+		let prevPage = pages[ pages.length - 2 ];
+		prevPage.$vm.fromDetail = {status:1}
+	},
 	computed: {
 		...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" }),
 	},

+ 159 - 0
ghsApp/src/pagesStore/me/la.vue

@@ -0,0 +1,159 @@
+<template>
+  <div class="app-content">
+    <div v-show="showStaffArea">
+      <form @submit="formSubmit">
+        <div class="module-com input-line-wrap">
+          
+          <tui-list-cell class="line-cell" :hover="false">
+            <div class="tui-title required">姓名</div>
+            <input
+              v-model="form.cashName"
+              placeholder-class="phcolor"
+              class="tui-input"
+              name="cashName"
+              placeholder="请输入姓名或公司名"
+              maxlength="50"
+              type="text"
+            />
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :hover="false">
+            <div class="tui-title required">银行卡号</div>
+            <input
+              v-model="form.cashAccount"
+              placeholder-class="phcolor"
+              class="tui-input"
+              name="cashAccount"
+              placeholder="请输入"
+              maxlength="50"
+              type="number"
+            />
+          </tui-list-cell>
+
+          <tui-list-cell class="line-cell" :hover="false">
+            <div class="tui-title required">开户行</div>
+            <input v-model="form.cashBank" placeholder-class="phcolor" class="tui-input" name="cashBank" placeholder="如:建设银行厦门瑞景支行" maxlength="50" type="text" />
+          </tui-list-cell>
+
+        </div>
+
+        <view style="color:red;font-weight:bold;margin:20upx 0 10upx 25upx;font-size:27upx;">注意:提现账号若要修改,请先告知管理员,否则修改无效</view>
+
+        <div class="confirm-btn">
+          <button class="admin-button-com big blue" formType="submit"> 提交 </button>
+        </div>
+      </form>
+    </div>
+  </div>
+</template>
+
+<script>
+import TuiListCell from "@/components/plugin/list-cell";
+import AppAvatarModule from "@/components/module/app-avatar";
+const form = require("@/utils/formValidation.js");
+import { cashUpdate } from "@/api/cash";
+import { getMainInfo } from "@/api/main";
+export default {
+  name: "cashSet",
+  components: {
+    TuiListCell,
+    AppAvatarModule,
+  },
+  data() {
+    return {
+      form: {
+        cashAccount: "",
+        cashName: "",
+        cashBank:"",
+      },
+      roleList: [],
+      roleSelData: {},
+      showStaffArea: true,
+      miniCodeSrc: "",
+      memberData: {},
+    };
+  },
+  methods: {
+    init() {
+        getMainInfo().then(res=>{
+          if(res.code == 1){
+            this.form.cashAccount = res.data.info.cashAccount ? res.data.info.cashAccount : ''
+            this.form.cashName = res.data.info.cashName ? res.data.info.cashName : ''
+            this.form.cashBank = res.data.info.cashBank ? res.data.info.cashBank : ''
+            this.$forceUpdate();
+          }
+        })
+    },
+    confirmFn() {
+      cashUpdate(this.form).then((res) => {
+        this.$msg("操作成功");
+        setTimeout(() => {
+          uni.navigateBack();
+        }, 1300)
+      });
+    },
+    formSubmit(e) {
+      let rules = [
+        {
+          name: "cashName",
+          rule: ["required"],
+          msg: ["请输入姓名"],
+        },
+        {
+          name: "cashAccount",
+          rule: ["required"],
+          msg: ["请输入卡号"],
+        },
+        {
+          name: "cashBank",
+          rule: ["required"],
+          msg: ["请输入开户行"],
+        },
+      ];
+      let formData = e.detail.value;
+      let checkRes = form.validation(formData, rules);
+      if (!checkRes) {
+        this.confirmFn();
+      } else {
+        this.$msg(checkRes);
+      }
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.app-content {
+  min-height: calc(100vh - 20upx);
+  padding-top: 20upx;
+}
+.prompt-text {
+  color: $fontColor3;
+  padding-left: 30upx;
+  margin-bottom: 30upx;
+}
+// ---
+.module-com {
+  margin-bottom: 20upx;
+  .member-wrap {
+    .member-det {
+      font-size: 24upx;
+      margin-left: 20upx;
+    }
+  }
+  .remark-wrap {
+    align-items: flex-start;
+    .remark {
+      height: 240upx;
+    }
+  }
+}
+// 按钮
+.confirm-btn {
+  width: calc(100% - 60upx);
+  margin: 60upx 30upx 20upx;
+  .admin-button-com {
+    width: 100%;
+  }
+}
+</style>