|
|
@@ -0,0 +1,95 @@
|
|
|
+<template>
|
|
|
+ <div class="app-content">
|
|
|
+ <div>
|
|
|
+ <form @submit="formSubmit" @reset="formReset">
|
|
|
+ <div class="module-com input-line-wrap">
|
|
|
+
|
|
|
+
|
|
|
+<view class="list" v-for="(item, index) in shopList" :key="index">
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">门店:</div>
|
|
|
+
|
|
|
+
|
|
|
+ <view>{{item.sjId}}-{{item.shopName}}</view> <view style="margin-left:30px;" @click="changeShop(item.id)">选择</view>
|
|
|
+
|
|
|
+
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+</view>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import TuiListCell from "@/components/plugin/list-cell";
|
|
|
+import { getPtGhsShop,switchGhsShop } from "@/api/shop";
|
|
|
+export default {
|
|
|
+ name: "changeShop",
|
|
|
+ components: {
|
|
|
+ TuiListCell,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ shopList:[]
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init(){
|
|
|
+ getPtGhsShop().then(res=>{
|
|
|
+ this.shopList=res.data.list
|
|
|
+ con
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeShop(id){
|
|
|
+ switchGhsShop({shopId:id}).then(res=>{
|
|
|
+ this.$msg(res.msg);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.app-content {
|
|
|
+ min-height: calc(100vh - 20px);
|
|
|
+ padding-top: 20px;
|
|
|
+}
|
|
|
+.prompt-text {
|
|
|
+ color: $fontColor3;
|
|
|
+ padding-left: 30px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+}
|
|
|
+.module-com {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .member-wrap {
|
|
|
+ .member-det {
|
|
|
+ font-size: 24px;
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .remark-wrap {
|
|
|
+ align-items: flex-start;
|
|
|
+ .remark {
|
|
|
+ height: 240px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+// 按钮
|
|
|
+.confirm-btn {
|
|
|
+ width: calc(100% - 60px);
|
|
|
+ margin: 60px 30px 20px;
|
|
|
+ .admin-button-com {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|