storeDetail.vue 5.3 KB
Newer Older
xd's avatar
xd committed
1 2 3
<template>
  <div class="ct">
    <el-dialog
xd's avatar
xd committed
4
      :visible.sync="detailDialog"
xd's avatar
xd committed
5 6 7 8 9 10 11 12 13 14 15
      width="65%"
      :show-close="false"
    >
      <div class="choose">
        <div class="title">
          <div class="cg">门店详情</div>
          <div class="circle" @click="handleClose">
            <d2-icon-svg name="close" class="icon" />
          </div>
        </div>
        <div class="br">
xd's avatar
xd committed
16 17 18 19 20 21 22
          <el-form
            class="searchzone"
            :model="formData"
            label-width="auto"
            disabled
          >
            <el-form-item label="柜组名称:">
xd's avatar
xd committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
              <el-input
                size="small"
                v-model="formData.name"
                style="width:240px"
                placeholder="请输入门店名称"
              />
            </el-form-item>
            <el-form-item label="门店类型:">
              <el-select
                size="small"
                v-model="formData.type"
                placeholder="请选择门店类型"
                style="width:240px"
              >
                <el-option
                  v-for="item in personList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
xd's avatar
xd committed
45
            <el-form-item label="所属柜组:">
xd's avatar
xd committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59
              <el-select
                size="small"
                v-model="formData.counter"
                placeholder="请选择所属柜组"
                style="width:240px"
              >
                <el-option
                  v-for="item in counter"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
xd's avatar
xd committed
60
            <el-form-item label="柜组负责人:">
xd's avatar
xd committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
              <el-select
                size="small"
                v-model="formData.people"
                placeholder="请选择柜组负责人"
                style="width:240px"
              >
                <el-option
                  v-for="item in personList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="门牌号:">
              <el-input
                size="small"
                v-model="formData.number"
                style="width:240px"
                placeholder="请输入门牌号"
              />
            </el-form-item>
            <el-form-item label="位置:">
              <el-input
                size="small"
                v-model="formData.area"
                style="width:240px"
                placeholder="请输入位置"
              />
            </el-form-item>
xd's avatar
xd committed
91 92
            <div class="tb">
              <el-form-item label="绑定店员:"> </el-form-item>
xd's avatar
xd committed
93 94 95 96 97 98 99 100
              <el-table
                stripe
                class="list"
                ref="multipleTable table"
                :data="tableData"
                tooltip-effect="dark"
                style="width: 100%"
              >
xd's avatar
xd committed
101 102 103 104 105
                <el-table-column
                  type="index"
                  label="序号"
                  width="60"
                ></el-table-column>
xd's avatar
xd committed
106 107 108 109 110 111 112 113 114 115 116
                <el-table-column
                  prop="taskName"
                  label="门店名称"
                  align="center"
                ></el-table-column>
                <el-table-column
                  prop="number"
                  label="门牌号"
                  align="center"
                ></el-table-column>
              </el-table>
xd's avatar
xd committed
117
            </div>
xd's avatar
xd committed
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
          </el-form>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formData: {
        name: "",
        code: "",
        people: "",
        type: "",
        number: "",
        area: ""
      },
      personList: [
        {
          id: "1",
          name: "张三"
        },
        {
          id: "2",
          name: "李四"
        }
      ],
xd's avatar
xd committed
147 148 149 150 151 152 153 154 155 156
      counter: [
        {
          id: "1",
          name: "张三"
        },
        {
          id: "2",
          name: "李四"
        }
      ],
xd's avatar
xd committed
157 158
      tableData: [],
      detailDialog: false
xd's avatar
xd committed
159 160 161 162
    };
  },
  methods: {
    handleClose() {
xd's avatar
xd committed
163
      this.detailDialog = false
xd's avatar
xd committed
164 165 166 167 168 169
    }
  }
};
</script>

<style scoped>
xd's avatar
xd committed
170 171 172
.tb {
  display: flex;
}
xd's avatar
xd committed
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
.choose {
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  color: rgba(56, 56, 56, 1);
  box-sizing: border-box;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border-bottom: 1px solid #f8f8f8; */
  padding-bottom: 10px;
}
.transfer-footer {
  margin-left: 20px;
  padding: 6px 5px;
}
.ct >>> .el-dialog__header {
  padding: 0 !important;
}
.ct >>> .el-dialog__body {
  padding: 0;
}
.ct >>> .el-transfer-panel {
  width: 250px;
}
.circle {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(208, 2, 27, 1);
  position: relative;
}
.circle >>> .icon {
  width: 28px;
  height: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.br {
  border-top: 1px solid #f8f8f8;
  border-bottom: 1px solid #f8f8f8;
  padding: 24px 60px;
}
</style>