MONSTER-ygh hai 1 ano
pai
achega
9666367ae6

+ 633 - 0
src/views/tourism/membershipManagement/physicalCard/formBox/physicalCardAllocationForm.vue

@@ -0,0 +1,633 @@
+<template>
+  <el-dialog 
+  :title="title" 
+  :visible.sync="open" 
+  width="70%" 
+  append-to-body 
+  :close-on-click-modal="false"
+    @close="cancel">
+    <div class="form-dialog-box" v-loading="loading" :element-loading-text="loadingText"
+      element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0)">
+      <div v-loading="loading" :element-loading-text="''" element-loading-spinner="''"
+        element-loading-background="rgba(0, 0, 0, 0.8)">
+        <el-form :model="form" ref="form" :rules="rules" label-width="150px">
+          <div class="form-title"><span>基本信息</span></div>
+          <el-form-item label="实体卡名称:" prop="goodsName">
+            <el-input style="width: 100%;" v-model="form.goodsName" placeholder="请输入实体卡名称" maxlength="50"
+              show-word-limit />
+          </el-form-item>
+          <el-form-item label="实体卡价格:" prop="goodsSnapshot">
+            <el-input-number v-model="form.goodsSnapshot" placeholder="请输入实体卡价格" controls-position="right">
+            </el-input-number>
+          </el-form-item>
+          <el-form-item label="消费日期:" prop="useExpireDateRadio">
+            <el-radio-group v-model="form.useExpireDateRadio" @input="radioInputs">
+              <div style="display: flex;flex-direction: column;padding-top: 10px;">
+                <div>
+                  <el-radio label="1">不限</el-radio>
+                </div>
+                <div style="display: flex;align-items: center;margin-top: 25px;">
+                  <el-radio style="display: flex;align-items: center;" label="2">
+                    <div style="display: flex;align-items: center;">
+                      <el-form-item label="" label-width="0" :prop="'useExpireDateDay'">
+                        <span>自购买后</span>
+                        <el-input-number :disabled="form.useExpireDateRadio != 2" v-model="form.useExpireDateDay"
+                          placeholder="请输入天数" controls-position="right">
+                        </el-input-number>
+                        <span>天可使用</span>
+                      </el-form-item>
+                    </div>
+                  </el-radio>
+                </div>
+                <div style="display: flex;align-items: center;margin-top: 25px;">
+                  <el-radio style="display: flex;align-items: center;" label="3">
+                    <div style="display: flex;align-items: center;">
+                      <el-form-item label="" label-width="0" :prop="'useExpireDateTime'">
+                        <span>指定</span>
+                        <el-date-picker :disabled="form.useExpireDateRadio != 3" v-model="form.useExpireDateTime"
+                          type="daterange" range-separator="至" start-placeholder="开始日期" value-format="yyyy-MM-dd"
+                          end-placeholder="结束日期">
+                        </el-date-picker>
+                        <span>日期范围内使用</span>
+                      </el-form-item>
+                    </div>
+                  </el-radio>
+
+                </div>
+              </div>
+            </el-radio-group>
+          </el-form-item>
+          <el-form-item label="生效日期:" prop="isAuth">
+            <el-radio-group v-model="form.isAuth">
+              <el-radio :label="1">制卡之日生效</el-radio>
+              <el-radio :label="2">激活之日生效</el-radio>
+            </el-radio-group>
+          </el-form-item>
+          <div class="form-title"><span>激活规则</span></div>
+          <el-form-item label="激活后完善信息:" prop="backStatus">
+            <el-checkbox-group>
+              <el-checkbox label="真实姓名"></el-checkbox>
+              <el-checkbox label="身份证号"></el-checkbox>
+              <el-checkbox label="需实名制认证"></el-checkbox>
+              <el-checkbox label="所在地区"></el-checkbox>
+              <el-checkbox label="手机号"></el-checkbox>
+              <el-checkbox label="需短信验证"></el-checkbox>
+            </el-checkbox-group>
+          </el-form-item>
+          <el-form-item label="提前退票" prop="backStatusRadio">
+            <div style="display: flex;align-items: center;">
+              <el-radio-group v-model="form.backStatusRadio" @input="radioInputss">
+                <el-radio label="-1">不限</el-radio>
+                <el-radio label="-2">{{ '' }}</el-radio>
+              </el-radio-group>
+              <div style="display: flex;align-items: center;">
+                需提前
+                <el-form-item label="" label-width="0" :prop="'backStatusDay'">
+                  <el-input-number :disabled="form.backStatusRadio != -2" v-model="form.backStatusDay" placeholder="请输入天数"
+                    controls-position="right">
+                  </el-input-number>
+                </el-form-item>
+                天,在
+                <el-form-item label="" label-width="0" :prop="'backStatusTime'">
+                  <el-time-picker :disabled="form.backStatusRadio != -2" v-model="form.backStatusTime"
+                    value-format="HH:mm" placeholder="任意时间点">
+                  </el-time-picker>
+                </el-form-item>
+                点前退票
+              </div>
+            </div>
+          </el-form-item>
+          <el-form-item label="过期未核销" prop="expiredProcess">
+            <el-radio-group v-model="form.expiredProcess">
+              <el-radio :label="1">自动退款</el-radio>
+              <el-radio :label="2">自动核销</el-radio>
+            </el-radio-group>
+          </el-form-item>
+          <div class="form-title"><span>特殊票种</span></div>
+          <el-form-item label="指定年龄" prop="ageRadio">
+            <div style="display: flex;align-items: center;">
+              <el-radio-group v-model="form.ageRadio" @input="radioInputsss">
+                <el-radio label="-1">不限</el-radio>
+                <el-radio label="-2">{{ '' }}</el-radio>
+              </el-radio-group>
+              <div style="display: flex;align-items: center;">
+                年龄限购
+                <el-form-item label="" label-width="0" prop="ageMin">
+                  <el-input-number :disabled="form.ageRadio != -2" v-model="form.ageMin" placeholder="请输入年龄"
+                    controls-position="right">
+                  </el-input-number>
+                </el-form-item>
+                至
+                <el-form-item label="" label-width="0" prop="ageMax">
+                  <el-input-number :disabled="form.ageRadio != -2" v-model="form.ageMax" placeholder="请输入年龄"
+                    controls-position="right">
+                  </el-input-number>
+                </el-form-item>
+              </div>
+            </div>
+          </el-form-item>
+          <el-form-item label="指定性别" prop="sex">
+            <el-radio-group v-model="form.sex">
+              <el-radio :label="-1">不限</el-radio>
+              <el-radio :label="1">男</el-radio>
+              <el-radio :label="2">女</el-radio>
+            </el-radio-group>
+          </el-form-item>
+          <el-form-item label="指定地点" prop="areaRadio">
+            <div style="display: flex;align-items: center;">
+              <el-radio-group v-model="form.areaRadio" @input="value => radioInput('area', value)">
+                <el-radio label="-1">不限</el-radio>
+                <el-radio label="-2">{{ '' }}</el-radio>
+              </el-radio-group>
+              <div style="display: flex;align-items: center;">
+                限定区域,区域身份证号
+                <el-form-item label="" label-width="0" prop="area">
+                  <el-input :disabled="form.areaRadio != -2" placeholder="请输入身份证号" v-model="form.area">
+                  </el-input>
+                </el-form-item>
+                <span style="">多个以,隔开</span>
+              </div>
+            </div>
+          </el-form-item>
+          <el-form-item>
+            <el-button @click="reset">重置表单</el-button>
+            <el-button v-if="form && form.goodsId" type="primary" @click="submitForm()" :loading="loading"
+              element-loading-text="提交中..." element-loading-spinner="el-icon-loading"
+              element-loading-background="rgba(0, 0, 0, 0.8)">
+              {{ loading ? '提交中...' : '保存编辑' }}
+            </el-button>
+            <el-button type="primary" @click="submitForm(true)" :loading="loading" element-loading-text="提交中..."
+              element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)">
+              {{ loading ? '提交中...' : '新增票种规格' }}
+            </el-button>
+          </el-form-item>
+        </el-form>
+      </div>
+    </div>
+    <span slot="footer" class="dialog-footer" v-if="formStatus == 1">
+      <el-button @click="cancel" :loading="loading">关闭</el-button>
+      <el-button 
+      type="primary" 
+      @click="submitForm(true)" 
+      :loading="loading">
+              {{ loading ? '提交中...' : '提交' }}
+      </el-button>
+    </span>
+    <!-- 添加或修改对话框 End -->
+  </el-dialog>
+</template>
+
+<script>
+import {
+  getTableDeatilsByIdApi,
+  updateTableApi,
+  addTableApi
+} from '@/api/CURD'
+
+export default {
+  name: "addAndEdit",
+  dicts: ['tourism_scenicAreaTickets_status', 'tourism_scenicAreaTickets_type', 'tourism_scenicAreaTickets_type'],
+  data() {
+    return {
+      title: "",
+      model: "", // EDIT: 编辑模式 ADD : 新增模式  EDITInit : 编辑模式(需要请求详情)
+      open: false,
+      loading: false,
+      loadingText: "拼命加载数据中...",
+      formStatus: null, // 0/null : 加载中 1 : 获取详情成功 2  : 获取详情失败 
+      configUrl: {
+        add: '/merchant/merchantPerformAuditorium/saveMerchantGoods', // 新增地址
+        details: '/merchant/merchantPerformAuditorium/merchantGoodsDetail', // 规格详情
+        list: '/merchant/merchantPerformAuditorium/merchantGoodsList',// 规格列表
+        edit: '/merchant/merchantPerformAuditorium/saveMerchantGoods', // 编辑地址
+        updateStatusById: '/goods/goods/updateStatus',
+      },
+      performId: null,
+      form: {
+        id: undefined,
+      },
+      rules: {
+        goodsName: [{ required: true, message: "请输入票种规格名称", trigger: ["change", "blur"] }],
+        goodsSnapshot: [{ required: true, message: "请输入规格描述", trigger: ["change", "blur"] }],
+
+        dayTypeRadio: [{ required: true, message: "请选择日期类型", trigger: ["change", "blur"] }],
+        dayType: [{ required: false, message: "请选择时间范围", trigger: ["change", "blur"] }],
+
+        useExpireDateRadio: [{ required: true, message: "请选择费日期", trigger: ["change", "blur"] }],
+        useExpireDateDay: [{ required: false, message: "请输入天数", trigger: ["change", "blur"] }],
+        useExpireDateTime: [{ required: false, message: "请选择时间", trigger: ["change", "blur"] }],
+
+        salePrice: [{ required: true, message: "请输入小程序价格", trigger: ["change", "blur"] }],
+        originalPrice: [{ required: true, message: "请输入规划价格", trigger: ["change", "blur"] }],
+
+        isAuth: [{ required: true, message: "请选择实名购票", trigger: ["change", "blur"] }],
+        oneMany: [{ required: true, message: "请选择实名要求", trigger: ["change", "blur"] }],
+        backStatus: [{ required: true, message: "请选择退票政策", trigger: ["change", "blur"] }],
+
+        backStatusRadio: [{ required: true, message: "请选择提前退票", trigger: ["change", "blur"] }],
+        backStatusDay: [{ required: false, message: "请输入时间", trigger: ["change", "blur"] }],
+        backStatusTime: [{ required: false, message: "请选择时间点", trigger: ["change", "blur"] }],
+
+        expiredProcess: [{ required: true, message: "请选择过期未核销", trigger: ["change", "blur"] }],
+        ageRadio: [{ required: true, message: "请选择指定年龄", trigger: ["change", "blur"] }],
+        ageMin: [{ required: false, message: "请输入年龄限购", trigger: ["change", "blur"] }],
+        ageMax: [{ required: false, message: "请输入年龄限购", trigger: ["change", "blur"] }],
+
+        sex: [{ required: true, message: "请选择指定性别", trigger: ["change", "blur"] }],
+
+        areaRadio: [{ required: true, message: "请选择指定地点", trigger: ["change", "blur"] }],
+        area: [{ required: false, message: "请输入身份证", trigger: ["change", "blur"] }],
+      },
+      tableList: [],// 景点产品关联
+    };
+  },
+  methods: {
+    async initData(title, model, row) {
+      this.title = title
+      this.open = true
+      this.loadingText = "拼命加载数据中..."
+      this.loading = true
+      this.actionUrlLoading = false
+      this.model = model
+      this.formStatus = 0
+      if(model=='ADD') { // 新增
+        this.$set(this,'form',row)
+        this.formStatus = 1
+      }else if(model=='EDIT') { // 新增
+        let obj = {
+          ...row
+        }
+        this.$set(this,'form',obj)
+        this.formStatus = 1
+      }else if(model=='EDITInit') { // 新增
+        await this.getTableDeatilsFun(row)
+      }
+      this.loading = false
+      this.$nextTick(()=>{
+        if(this.$refs["form"]) {
+          this.$refs["form"].clearValidate();
+        }
+      })
+    },
+    /** 获取详情 */
+    async getTableDeatilsFun(row) {
+      const id = row.goodsId
+      this.loading = true
+      try {
+        let res = await getTableDeatilsByIdApi(this.configUrl.details, { goodsId: id })
+        if (res.code == 200) {
+          let obj = {
+            ...res.data,
+          }
+          this.$set(this, 'form', JSON.parse(JSON.stringify(obj)))
+          this.formStatus = 1
+        } else {
+          this.$message.error('获取详情失败!!!');
+          this.formStatus = 2
+          this.loading = false
+          //this.open = false;
+        }
+        this.loading = false
+      } catch (error) {
+        console.error('获取详情失败!!!!', error)
+        this.formStatus = 2
+        this.loading = false
+        //this.open = false;
+      }
+    },
+    /**
+     * 保存
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    submitForm(type) {
+      console.log("dsfsfds=======", type, this.form)
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          this.loadingText = "提交数据中..."
+          this.loading = true
+          addTableApi(this.configUrl.edit, {
+            ...this.form,
+          }).then(response => {
+            this.$modal.msgSuccess(`${this.form.goodsId ? '编辑' : '新增'}成功`);
+            this.loading = false
+            this.$set(this, 'form', {})
+            this.$nextTick(() => {
+              this.$refs.form.clearValidate();
+            })
+            this.open = false;
+            this.$emit('refresh')
+          }).catch(() => {
+            this.$message.error(`${this.form.goodsId ? '编辑' : '新增'}失败!!!`);
+            this.loading = false
+          })
+        }
+      });
+    },
+    resetFormData(type) {
+      let params = JSON.parse(JSON.stringify(this.form))
+
+      if (params.dayTypeRadio == -1) { // 日期类型
+        params.dayType = null
+      } else {
+        params.dayType = params.dayType ? params.dayType.join('~') : null
+      }
+
+      if (params.useExpireDateRadio == 1) { // 消费日期
+        params['useExpireDate'] = JSON.stringify({
+          type: 1,
+          value: null
+        })
+      } else if (params.useExpireDateRadio == 2) {
+        params['useExpireDate'] = JSON.stringify({
+          type: 2,
+          value: params.useExpireDateDay
+        })
+      } else if (params.useExpireDateRadio == 3) {
+        params['useExpireDate'] = JSON.stringify({
+          type: 3,
+          value: params.useExpireDateTime ? params.useExpireDateTime.join('~') : null
+        })
+      }
+
+      if (params.backStatusRadio == -1) { // 提前退票
+        params['goodsPerformRefundRule'] = null
+      } else if (params.backStatusRadio == -2) {
+        params['goodsPerformRefundRule'] = {
+          days: params.backStatusDay,
+          hour: params.backStatusTime,
+        }
+      }
+      params['goodsPerformSpecial'] = {}
+      params.goodsPerformSpecial['sex'] = params.sex == -1 ? null : params.sex
+      if (params.ageRadio == -1) { // 指定年龄
+        params.goodsPerformSpecial['age'] = null
+      } else if (params.ageRadio == -2) {
+        params.goodsPerformSpecial['age'] = params.ageMin + "~" + params.ageMax
+      }
+      if (params.areaRadio == -1) { // 指定年龄
+        params.goodsPerformSpecial['area'] = null
+      } else if (params.areaRadio == -2) {
+        params.goodsPerformSpecial['area'] = params.area
+      }
+      if (type) {
+        params['goodsId'] = null
+      } else {
+        params['goodsId'] = params.goodsId
+      }
+      delete params.dayTypeRadio
+      delete params.useExpireDateRadio
+      delete params.backStatusRadio
+      delete params.ageRadio
+      delete params.areaRadio
+      delete params.useExpireDateTime
+      delete params.useExpireDateDay
+      delete params.ageMax
+      delete params.ageMin
+      delete params.backStatusDay
+      delete params.backStatusTime
+      delete params.sex
+      return params
+    },
+    /**
+     * 重置
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    reset() {
+      if (this.$refs["form"]) {
+        //this.$refs["form"].resetFields();
+        this.$set(this, 'form', {})
+        this.$nextTick(() => {
+          this.$refs["form"].clearValidate();
+        })
+      }
+    },
+    /**
+     * 关闭弹框
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    cancel() {
+      this.reset();
+      this.open = false;
+    },
+    handleAdd() {
+      this.$set(this, 'form', {})
+      this.$nextTick(() => {
+        this.$refs["form"].clearValidate();
+      })
+    },
+    /**    */
+    radioInput(key, value) {
+      console.log('key,value===', key, value)
+      if (value == -2) {
+        this.rules[key][0].required = true
+      } else {
+        this.rules[key][0].required = false
+      }
+    },
+    /** */
+    radioInputs(value) {
+      if (value == 1) {
+        this.rules.useExpireDateDay[0].required = false
+        this.rules.useExpireDateTime[0].required = false
+        this.$refs.form.clearValidate('useExpireDateTime');
+        this.$refs.form.clearValidate('useExpireDateDay');
+      } else if (value == 2) {
+        this.rules.useExpireDateDay[0].required = true
+        this.rules.useExpireDateTime[0].required = false
+        this.$refs.form.clearValidate('useExpireDateTime');
+      } else if (value == 3) {
+        this.rules.useExpireDateDay[0].required = false
+        this.rules.useExpireDateTime[0].required = true
+        this.$refs.form.clearValidate('useExpireDateDay');
+      }
+    },
+    /** */
+    radioInputss(value) {
+      if (value == -1) {
+        this.rules.backStatusDay[0].required = false
+        this.rules.backStatusTime[0].required = false
+        this.$refs.form.clearValidate('backStatusDay');
+        this.$refs.form.clearValidate('backStatusTime');
+      } else if (value == -2) {
+        this.rules.backStatusDay[0].required = true
+        this.rules.backStatusTime[0].required = true
+      }
+    },
+    /** */
+    radioInputsss(value) {
+      if (value == -1) {
+        this.rules.ageMin[0].required = false
+        this.rules.ageMax[0].required = false
+        this.$refs.form.clearValidate('ageMin');
+        this.$refs.form.clearValidate('ageMax');
+      } else if (value == -2) {
+        this.rules.ageMin[0].required = true
+        this.rules.ageMax[0].required = true
+      }
+    }
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.form-dialog-box {
+  padding: 0 30px;
+  padding: 0 30px;
+  min-height: 50vh;
+  max-height: 65vh;
+  overflow-y: auto;
+
+  >div {
+    width: 100%;
+    min-height: 50vh;
+  }
+
+  .form-title {
+    padding: 0 0 10px 0;
+
+    span {
+      display: flex;
+      color: rgba(65, 80, 88, 1);
+      font-size: 16px;
+      font-family: SourceHanSansSC;
+      font-weight: 700;
+      line-height: 23px;
+      border-left: 4px solid rgb(22, 132, 252);
+      padding-left: 10px;
+    }
+
+  }
+
+  ::v-deep .ql-editor {
+    height: 400px;
+  }
+
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+
+    &-text {
+      margin-top: -10px;
+    }
+  }
+
+  .avatar {
+    cursor: pointer;
+  }
+}
+
+.el-table {
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+
+    &-text {
+      margin-top: -10px;
+    }
+  }
+
+  .avatar {
+    cursor: pointer;
+  }
+}
+
+.area-container {
+  min-height: 400px;
+}
+
+::v-deep .area-wrap-city.el-cascader {
+  line-height: normal;
+
+  .el-input {
+    cursor: pointer;
+    width: 100% !important;
+    height: 28px !important;
+
+    .el-input__inner {
+      display: none !important;
+    }
+
+    span.el-input__suffix {
+      position: inherit !important;
+
+      i.el-input__icon {
+        line-height: inherit;
+        margin-left: 5px;
+      }
+    }
+
+    .el-input__wrapper {
+      box-shadow: none;
+
+      input {
+        display: none;
+      }
+    }
+  }
+
+  .el-cascader__tags {
+    display: none;
+  }
+}
+
+.area-city-popper {
+  .el-cascader-panel {
+    .el-scrollbar.el-cascader-menu {
+      .el-cascader-menu__wrap.el-scrollbar__wrap {
+        height: 315px;
+      }
+    }
+  }
+}
+
+::v-deep .avatar-uploader .el-upload {
+  border: 1px dashed #d9d9d9;
+  border-radius: 6px;
+  cursor: pointer;
+  position: relative;
+  overflow: hidden;
+}
+
+::v-deep .avatar-uploader .el-upload:hover {
+  border-color: #409EFF;
+}
+
+::v-deep .avatar-uploader-icon {
+  font-size: 28px;
+  color: #8c939d;
+  width: 100px;
+  height: 100px;
+  line-height: 100px;
+  text-align: center;
+}
+
+::v-deep .avatar {
+  width: 100px;
+  height: 100px;
+  display: block;
+}
+</style>
+<style>
+.custom-class-box {
+  z-index: 999999 !important;
+}
+</style>

+ 271 - 0
src/views/tourism/membershipManagement/physicalCard/physicalCardAllocation.vue

@@ -0,0 +1,271 @@
+<template>
+    <div class="app-container">
+      <el-row :gutter="20">
+        <!--用户数据-->
+        <el-col :span="24" :xs="24">
+            <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+                <el-form-item label="实体卡名称" prop="name">
+                    <el-input
+                    v-model="queryParams.name"
+                    placeholder="请输入实体卡名称"
+                    clearable
+                    style="width: 240px"
+                    @keyup.enter.native="handleQuery"
+                    />
+                </el-form-item>
+                <el-form-item>
+                    <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+                    <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+                </el-form-item>
+            </el-form>
+          <el-row :gutter="10" class="mb8">
+            <el-col :span="1.5">
+              <el-button
+                type="primary"
+                plain
+                icon="el-icon-plus"
+                size="mini"
+                @click="handleAdd"
+                v-hasPermi="configPermi.add"
+              >添加新卡</el-button>
+            </el-col>
+            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
+          </el-row>
+  
+          <el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
+            <el-table-column type="index" label="序号" align="center"  />
+            <el-table-column label="实体卡名称" align="center" key="name" prop="name" v-if="columns[0].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="实体卡价格" align="center" key="name1" prop="name1" v-if="columns[1].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="使用期限" align="center" key="name2" prop="name2" v-if="columns[2].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="生效日期" align="center" key="name3" prop="name3" v-if="columns[3].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="支持储值" align="center" key="name4" prop="name4" v-if="columns[4].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="支持积分" align="center" key="name5" prop="name5" v-if="columns[5].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="创捷时间" align="center" key="name6" prop="name6" v-if="columns[6].visible" :show-overflow-tooltip="true" />
+            <el-table-column
+              label="操作"
+              align="center"
+              class-name="small-padding fixed-width"
+            >
+              <template slot-scope="scope" >
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-edit"
+                  @click="handleUpdate(scope.row)"
+                  v-hasPermi="configPermi.edit"
+                >详情</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-edit"
+                  @click="handleUpdate(scope.row)"
+                  v-hasPermi="configPermi.edit"
+                >编辑</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDelete(scope.row)"
+                  v-hasPermi="configPermi.delect"
+                >删除</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+  
+          <pagination
+            v-show="total>0"
+            :total="total"
+            :page.sync="queryParams.pageNum"
+            :limit.sync="queryParams.pageSize"
+            @pagination="getList"
+          />
+        </el-col>
+      </el-row>
+      <!--  新增或修改  -->
+      <addAndEdit ref="addAndEdit" @refresh="getList" />
+    </div>
+  </template>
+  
+  <script>
+  import { 
+    listTableApi, 
+    delTableParamsApi
+    } from "@/api/CURD";
+  import addAndEdit from "./formBox/physicalCardAllocationForm.vue"
+  export default {
+    name: "User",
+    dicts: [],
+    components: {addAndEdit},
+    data() {
+      return {
+        title: "景区门票",// 通用标题
+        configPermi: {
+          add: ['system:user:edit'], // 新增权限
+          details: ['system:user:details'], // 详情权限
+          delect: ['system:user:remove'], // 删除权限
+          edit: ['system:user:edit'], // 编辑权限
+          upload: ['system:user:upload'],// 导入权限
+          export: ['system:user:export'],// 导出权限
+          release: ['system:user:release']
+        },
+        configUrl: {
+          list: '/merchant/merchantPerformAuditorium/merchantPerformList', // 列表地址
+          delect: '', // 删除地址
+          upload: '',// 导入地址
+          download:'', // 下载模板地址
+          export: '',// 导出地址
+          updateStatusById: '',
+        },
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        tableList: null,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+        },
+        dateRange: [],
+        // 控制列表是否显示
+        columns: [
+          { key: 0, label: `实体卡名称`, visible: true },
+          { key: 2, label: `实体卡价格`, visible: true },
+          { key: 3, label: `使用期限`, visible: true },
+          { key: 4, label: `生效日期`, visible: true },
+          { key: 5, label: `支持储值`, visible: true },
+          { key: 6, label: `支持积分`, visible: true },
+          { key: 7, label: `创捷时间`, visible: true },
+        ],
+      };
+    },
+    created() {
+      this.getList();
+    },
+    methods: {
+      /** 查询用户列表 */
+      getList() {
+        this.loading = true;
+        listTableApi(
+          this.configUrl.list,
+          this.addDateRange(
+            this.queryParams, 
+            this.dateRange)).then(response => {
+              this.tableList = response.data.rows;
+              this.total = response.data.total;
+              this.loading = false;
+          }
+        ).catch (error=>{
+          console.error('获取列表失败!!!!',error)
+          this.tableList = [];
+          this.total = 0;
+          this.loading = false
+        }) 
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.queryParams = {
+          pageNum: 1,
+          pageSize: 10,
+        }
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id);
+        this.single = selection.length != 1;
+        this.multiple = !selection.length;
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        if(this.$refs.addAndEdit) {
+          this.$refs.addAndEdit.initData(this.title + '新增', "ADD",{})
+        }
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        if(this.$refs.addAndEdit) {
+          this.$refs.addAndEdit.initData(this.title + '基本信息编辑', "EDIT",{...row})
+        }
+      },
+      handleUpdate(row) {
+        if(this.$refs.addAndEdit) {
+          this.$refs.addAndEdit.initData(this.title + '规格信息编辑', "EDITInit",{...row})
+        }
+      },
+      handleDetails(row){
+        if(this.$refs.detailsBox) {
+          this.$refs.detailsBox.initData(this.title + '详情',"DEATILSInit", row)
+        }
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$modal.confirm('是否确认删除数据项?').then( () => {
+          return delTableParamsApi(this.configUrl.delect,{
+            id: ids
+          });
+        }).then(() => {
+          this.getList();
+          this.$modal.msgSuccess("删除成功");
+        }).catch((e) => {
+          console.error("删除失败====",e)
+        });
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        this.download(this.configUrl.export, {
+          ...this.queryParams
+        }, `${this.title }_${new Date().getTime()}.xlsx`)
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        if(this.$refs.upload) {
+          this.$refs.upload.initData({
+            width: '400px',
+            // 弹出层标题(用户导入)
+            title: this.title + "导入",
+            // 下载模板地址
+            importTemplate: this.configUrl.download,
+            // 上传的地址
+            url: this.configUrl.upload
+          })
+        }
+      },
+      /**
+       * 修改状态
+       * @date 2023-11-22
+       * @returns {any}
+       */
+      openAttraction(row) {
+        this.$modal.confirm(`是否确认${row.status == 1 ? '上架' : '下架'} ${row.name}点位吗?`).then( () => {
+          return listTableApi(this.configUrl.updateStatusById,{
+            id: row.performId,
+            status: row.status == 1 ? 0 : 1
+          });
+        }).then(() => {
+          this.getList()
+          this.$modal.msgSuccess(`${row.status == 1 ? '上架' : '下架'}成功`);
+        }).catch((e) => {
+          console.error("失败====",e)
+        });
+      },
+    }
+  };
+  </script>
+  

+ 0 - 0
src/views/tourism/membershipManagement/physicalCard/physicalCardManagement.vue


+ 299 - 0
src/views/tourism/popularCheck/contentManagement.vue

@@ -0,0 +1,299 @@
+<template>
+    <div class="app-container">
+      <el-row :gutter="20">
+        <!--用户数据-->
+        <el-col :span="24" :xs="24">
+          <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+            <el-form-item label="用户昵称">
+                <el-input
+                v-model="queryParams.refundTransactionId"
+                placeholder="请输入用户昵称"
+                clearable
+                style="width: 240px;"
+                @keyup.enter.native="handleQuery"
+                />
+            </el-form-item>
+            <el-form-item label="标题">
+                <el-input
+                v-model="queryParams.orderId"
+                placeholder="请输入标题"
+                clearable
+                style="width: 240px;"
+                @keyup.enter.native="handleQuery"
+                />
+            </el-form-item>
+            <el-form-item label="状态">
+                <el-select
+                v-model="queryParams.status"
+                placeholder="状态"
+                clearable
+                style="width: 100%"
+                >
+                <el-option
+                    v-for="dict in dict.type.tourism_orderRefund_status"
+                    :key="dict.value"
+                    :label="dict.label"
+                    :value="dict.value"
+                />
+                </el-select>
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+              <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+            </el-form-item>
+          </el-form>
+  
+          <el-row :gutter="10" class="mb8">
+            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
+          </el-row>
+  
+          <el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
+            <el-table-column type="index" label="序号" align="center"  />
+            <el-table-column label="用户昵称" align="center" key="orderNum" prop="orderNum" v-if="columns[0].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="标题" align="center" key="refundTransactionId" prop="refundTransactionId" v-if="columns[1].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="详情" align="center" key="transactionId" prop="transactionId" v-if="columns[2].visible" :show-overflow-tooltip="true">
+              <template slot-scope="scope">
+                <span 
+                style="cursor: pointer;color: #409eff"
+                @click="handleDetails(scope.row)"
+                >查看</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="提交时间" align="center" key="refundMobile" prop="refundMobile" v-if="columns[3].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="状态" align="center" key="source" prop="source" v-if="columns[4].visible" :show-overflow-tooltip="true">
+                <template slot-scope="scope">
+                    <dict-tag :options="dict.type.tourism_ticketOrders_source" :value="scope.row.source"/>
+                </template>
+            </el-table-column>
+            <el-table-column label="审核时间" align="center" key="refundTime" prop="refundTime" v-if="columns[5].visible" :show-overflow-tooltip="true" />
+            <el-table-column label="点赞量(人/次)" align="center" key="refundAmount" prop="refundAmount" v-if="columns[6].visible" :show-overflow-tooltip="true" />
+            <el-table-column
+              label="操作"
+              align="center"
+              width="160"
+              class-name="small-padding fixed-width"
+            >
+              <template slot-scope="scope" >
+                <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-coordinate"
+                v-if="scope.row.status == 0"
+                @click="refundAuditFun(scope.row,)"
+                v-hasPermi="['refundMr:refundMr:delete']"
+                >审核</el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-delete"
+                  @click="handleDelete(scope.row)"
+                  v-hasPermi="configPermi.delect"
+                >删除</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+  
+          <pagination
+            v-show="total>0"
+            :total="total"
+            :page.sync="queryParams.pageNum"
+            :limit.sync="queryParams.pageSize"
+            @pagination="getList"
+          />
+        </el-col>
+      </el-row>
+      <!--  详情  -->
+      <detailsBox ref="detailsBox" @refresh="getList" />
+    </div>
+  </template>
+  
+  <script>
+  import { 
+    listTableApi, 
+    delTableParamsApi, 
+    updateTableApi
+  } from "@/api/CURD";
+  import detailsBox from "./detailsBox/ticketRefundOrderDetails.vue"
+  export default {
+    name: "User",
+    dicts: ['tourism_orderRefund_status','tourism_ticketOrders_source'],
+    components: {detailsBox},
+    data() {
+      return {
+        title: "门票退款管理",// 通用标题
+        configPermi: {
+          add: ['system:user:edit'], // 新增权限
+          details: ['system:user:details'], // 详情权限
+          delect: ['system:user:remove'], // 删除权限
+          edit: ['system:user:edit'], // 编辑权限
+          upload: ['system:user:upload'],// 导入权限
+          export: ['system:user:export'],// 导出权限
+        },
+        configUrl: {
+          list: '/order/orderRefund/pageList', // 列表地址
+          delect: '', // 删除地址
+          upload: '',// 导入地址
+          download:'', // 下载模板地址
+          export: '',// 导出地址
+          edit: '/merchant/merchantTourRoute/updateStatus', // 编辑地址
+        },
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        tableList: null,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+        },
+        dateRange: [],
+        // 控制列表是否显示
+        columns: [
+          { key: 0, label: `用户昵称`, visible: true },
+          { key: 1, label: `标题`, visible: true },
+          { key: 2, label: `详情`, visible: true },
+          { key: 3, label: `提交时间`, visible: true },
+          { key: 4, label: `状态`, visible: true },
+          { key: 5, label: `规格`, visible: true },
+          { key: 6, label: `购票渠道`, visible: true },
+          { key: 7, label: `审核时间`, visible: true },
+          { key: 8, label: `点赞量(人/次)`, visible: true },
+        ],
+      };
+    },
+    created() {
+      this.getList();
+    },
+    methods: {
+      /** 查询用户列表 */
+      getList() {
+        this.loading = true;
+        let params = JSON.parse(JSON.stringify({
+            ...this.queryParams,
+            refundBeginCreateTime: this.queryParams.time&&this.queryParams.time[0]?this.queryParams.time[0]:null,
+            refundEndCreateTime: this.queryParams.time&&this.queryParams.time[1]?this.queryParams.time[1]:null,
+        }))
+        delete params.time;
+        listTableApi(
+          this.configUrl.list,
+          this.addDateRange(
+            params,
+            this.dateRange)).then(response => {
+              this.tableList = response.data.rows;
+              this.total = response.data.total;
+              this.loading = false;
+          }
+        ).catch (error=>{
+          console.error('获取列表失败!!!!',error)
+          this.tableList = [];
+          this.total = 0;
+          this.loading = false
+        }) 
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.queryParams = {
+          pageNum: 1,
+          pageSize: 10,
+        }
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id);
+        this.single = selection.length != 1;
+        this.multiple = !selection.length;
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        if(this.$refs.addAndEdit) {
+          this.$refs.addAndEdit.initData(this.title + '新增', "ADD",{})
+        }
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        if(this.$refs.addAndEdit) {
+          this.$refs.addAndEdit.initData(this.title + '编辑', "EDITInit",{...row})
+        }
+      },
+      /**    */
+      handleDetails(row){
+        if(this.$refs.detailsBox) {
+          this.$refs.detailsBox.initData(this.title + '详情',"DEATILS", row)
+        }
+      },
+      /**    */
+      refundAuditFun(row){
+        if(this.$refs.detailsBox) {
+          this.$refs.detailsBox.initData(this.title + '审核',"DEATILSADD", row)
+        }
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$modal.confirm('是否确认删除数据项?').then( () => {
+          return delTableParamsApi(this.configUrl.delect,{
+            id: ids
+          });
+        }).then(() => {
+          this.getList();
+          this.$modal.msgSuccess("删除成功");
+        }).catch((e) => {
+          console.error("删除失败====",e)
+        });
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        this.download(this.configUrl.export, {
+          ...this.queryParams
+        }, `${this.title }_${new Date().getTime()}.xlsx`)
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        if(this.$refs.upload) {
+          this.$refs.upload.initData({
+            width: '400px',
+            // 弹出层标题(用户导入)
+            title: this.title + "导入",
+            // 下载模板地址
+            importTemplate: this.configUrl.download,
+            // 上传的地址
+            url: this.configUrl.upload
+          })
+        }
+      },
+      /** 开/闭 园 */
+      openAttraction(row) {
+        console.log("row======",row)
+        this.$modal.confirm(`是否确认${row.status == 1 ? '关闭' : '打开'} ${row.titleName}吗?`).then( () => {
+          return updateTableApi(this.configUrl.edit,{
+            ...row,
+            status: row.status == 1 ? 0 : 1
+          });
+        }).then(() => {
+          this.getList();
+          this.$modal.msgSuccess(`${row.status == 1 ? '打开' : '关闭'}成功`);
+        }).catch((e) => {
+          console.error("失败====",e)
+        });
+      },
+    }
+  };
+  </script>
+  

+ 389 - 0
src/views/tourism/popularCheck/detailsBox/ticketRefundOrderDetails.vue

@@ -0,0 +1,389 @@
+<template>
+  <el-dialog
+    :title="title"
+    :visible.sync="open"
+    width="70%"
+    append-to-body
+    :close-on-click-modal="false"
+    @close="cancel"
+  >
+    <div class="form-dialog-box"
+    v-loading="loading"
+    :element-loading-text="loadingText"
+    element-loading-spinner="el-icon-loading"
+    element-loading-background="rgba(0, 0, 0, 0)">
+      <div
+        v-loading="loading"
+        :element-loading-text="''"
+        element-loading-spinner="''"
+        element-loading-background="rgba(0, 0, 0, 0.8)"
+        >
+        <el-form :model="form" ref="form" :rules="rules" label-width="120px">
+          <div class="form-title"><span>订单信息</span></div>
+          <div style="display: flex;">
+            <el-form-item label="订单号:">
+              <span style="display: block; min-width: 250px;">{{ form.orderNum }}</span>
+            </el-form-item>
+            <el-form-item label="支付单号:">
+              <span style="display: block; min-width: 250px;">{{ form.transactionId }}</span>
+            </el-form-item>
+            <el-form-item label="原订单号:">
+              <span style="display: block;min-width: 250px;">{{ form.orderId }}</span>
+            </el-form-item>
+          </div>
+          <div style="display: flex;">
+            <el-form-item label="原订单金额:">
+              <span style="display: block;min-width: 250px;">{{ form.orderAmount }}</span>
+            </el-form-item>
+            <el-form-item label="规格:">
+              <span style="display: block;min-width: 250px;">{{ form.goodsName }}</span>
+            </el-form-item>
+            <el-form-item label="订单来源:">
+              <span style="display: block;min-width: 250px;">
+                <dict-tag :options="dict.type.tourism_ticketOrders_source" :value="form.source"/>
+              </span>
+            </el-form-item>  
+          </div>
+          <div style="display: flex;">
+            <el-form-item label="门票名称:">
+              <span style="display: block; min-width: 250px;">{{ form.performName }}</span>
+            </el-form-item>
+            <el-form-item label="下单时间:">
+              <span style="display: block;min-width: 250px;">{{ form.createTime }}</span>
+            </el-form-item>
+          </div>
+          <div class="form-title"><span>购票人信息</span></div>
+          <div style="display: flex;">
+            <el-form-item label="购票人名称:">
+              <span style="display: block;min-width: 250px;">{{ form.refundName }}</span>
+            </el-form-item>
+            <el-form-item label="购票人手机号:">
+              <span style="display: block;min-width: 250px;">{{ form.refundMobile }}</span>
+            </el-form-item>
+          </div>
+          <div class="form-title"><span>退款信息</span></div>
+          <div style="display: flex;">
+            <el-form-item label="退款单号:">
+              <span style="display: block;min-width: 250px;">{{ form.refundTransactionId }}</span>
+            </el-form-item>
+            <el-form-item label="退款金额:">
+              <span style="display: block;min-width: 250px;">{{ form.refundAmount }}</span>
+            </el-form-item>
+            <el-form-item label="退款原因:">
+              <span style="display: block;min-width: 250px;">{{ form.refundReason }}</span>
+            </el-form-item>
+          </div>
+          <div style="display: flex;">
+            <el-form-item label="退款申请时间:">
+              <span style="display: block;min-width: 250px;">{{ form.refundTime }}</span>
+            </el-form-item>
+            <el-form-item label="退款状态:">
+              <span style="display: block;min-width: 250px;">
+                <dict-tag :options="dict.type.tourism_orderRefund_status" :value="form.status"/>
+              </span>
+            </el-form-item>
+            <el-form-item label="退款成功时间:">
+              <span style="display: block;min-width: 250px;">{{ form.refundSuccessTime }}</span>
+            </el-form-item>
+          </div>
+          <!-- <div style="display: flex;">
+            <el-form-item label="备注:">
+              <span style="display: block;min-width: 250px;">{{ form.remark }}</span>
+            </el-form-item>
+          </div> -->
+          <div v-if="model=='DEATILSADD'">
+            <div class="form-title"><span>审核操作</span></div>
+              <div>
+                <el-form-item label="审核备注:" label-width="100px"></el-form-item>
+                <div>
+                  <el-input
+                    type="textarea"
+                    :rows="2"
+                    placeholder="请输入审核备注"
+                    v-model="form.remark">
+                  </el-input>
+                </div>
+              </div>
+              <div style="display: flex;margin-top: 10px;justify-content: center;">
+                <el-button 
+                type="danger" 
+                @click="refundAudit(2)"
+                :loading="loading"
+                >驳回退款</el-button>
+                <el-button type="primary" :loading="loading" @click="refundAudit(1)">同意退款</el-button>
+              </div>
+          </div>
+        </el-form>
+      </div>
+    </div>
+    <!-- <span slot="footer" class="dialog-footer" v-if="formStatus==1">
+      <el-button @click="cancel">关闭</el-button>
+    </span> -->
+    <!-- 添加或修改对话框 End -->
+  </el-dialog>
+</template>
+
+<script>
+import { 
+  getTableDeatilsByIdApi,
+  addTableApi
+ } from '@/api/CURD'
+
+export default {
+  name: "addAndEdit",
+  dicts: ['tourism_orderRefund_status','tourism_ticketOrders_source'],
+  data() {
+    return {
+      title: "",
+      model: "", // EDIT: 编辑模式 ADD : 新增模式  EDITInit : 编辑模式(需要请求详情)
+      open: false,
+      loading: false,
+      loadingText: "拼命加载数据中...",
+      formStatus: null, // 0/null : 加载中 1 : 获取详情成功 2  : 获取详情失败 
+      configUrl: {
+        add: '', // 新增地址
+        details: '/member/memberInfo/detail', // 详情地址
+        edit: '', // 编辑地址
+        refundAudit: '/order/orderInfo/refundAudit',// 审核接口
+      },
+      form: {
+        id: undefined,
+      },
+      rules: {},
+      scenicAreaProducts: [],// 景点产品关联
+    };
+  },
+  methods: {
+    async initData(title , model, row){
+      this.title = title
+      this.open = true
+      this.loadingText = "拼命加载数据中..."
+      this.loading = true
+      this.actionUrlLoading = false
+      this.model = model
+      this.formStatus = 0
+      if(model=='DEATILSADD') { // 新增
+        this.$set(this,'form',{...row})
+        this.formStatus = 1
+      }else if(model=='DEATILS') { // 新增
+        let obj = {
+          ...row
+        }
+        this.$set(this,'form',obj)
+        this.formStatus = 1
+      }else if(model=='DEATILSInit') { // 新增
+        await this.getTableDeatilsFun(row)
+      }
+      this.loading = false
+      this.$nextTick(()=>{
+        if(this.$refs["form"]) {
+          this.$refs["form"].clearValidate();
+        }
+      })
+    },
+    /** 获取详情 */
+    async getTableDeatilsFun(row) {
+      const id = row.id
+      this.loading = true
+      try {
+        let res = await getTableDeatilsByIdApi(this.configUrl.details,{id})
+        if(res.code == 200) {
+          let obj = {
+            ...res.data,
+            imgUrl: res.data.imgUrl?res.data.imgUrl.split(','):[],
+        }
+          this.$set(this,'form',JSON.parse(JSON.stringify(obj)))
+          this.formStatus = 1
+        }else {
+          this.$message.error('获取详情失败!!!');
+          this.formStatus = 2
+          this.loading = false
+          this.open = false;
+        }
+        this.loading = false
+      } catch (error) {
+        console.error('获取详情失败!!!!',error)
+        this.formStatus = 2
+        this.loading = false
+        this.open = false;
+      }
+    },
+    /**
+     * 重置
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    reset() {
+      if(this.$refs["form"]) {
+        this.$refs["form"].clearValidate();
+      }
+    },
+    /**
+     * 关闭弹框
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    cancel() {
+      this.reset();
+      this.open = false;
+    },
+    /**  审核操作  */
+    refundAudit(type){
+      addTableApi(
+        this.configUrl.refundAudit,{
+          refundId: this.form.id,// 退款ID-列表ID
+          status: type,
+          remark: this.form.remark,
+          errReason: ''
+        }).then(response => {
+          this.$modal.msgSuccess(`提交成功`);
+          this.loading = false
+          this.open = false;
+          this.$emit('refresh')
+        }).catch(()=>{
+          this.$message.error("提交失败!!!");
+          this.loading = false
+        })
+    }
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.form-dialog-box {
+  padding: 0 30px;
+  padding: 0 30px;
+  min-height: 50vh;
+  max-height: 80vh;
+  overflow-y: auto;
+  >div {
+    width: 100%;
+    min-height: 50vh;
+  }
+  .form-title {
+    padding: 0 0 10px 0;
+    span {
+      display: flex;
+      color: rgba(65,80,88,1);
+      font-size: 16px;
+      font-family: SourceHanSansSC;
+      font-weight: 700;
+      line-height: 23px;
+      border-left: 4px solid rgb(22, 132, 252);
+      padding-left: 10px;
+    }
+    
+  }
+  ::v-deep .ql-editor {
+    height: 400px;
+  }
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+    &-text {
+      margin-top: -10px;
+    }
+  }
+  .avatar {
+    cursor: pointer;
+  }
+}
+.el-table{
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+    &-text {
+      margin-top: -10px;
+    }
+  }
+  .avatar {
+    cursor: pointer;
+  }
+}
+
+.area-container {
+  min-height: 400px;
+}
+
+::v-deep .area-wrap-city.el-cascader {
+  line-height: normal;
+  .el-input {
+    cursor: pointer;
+    width: 100% !important;
+    height: 28px !important;
+    .el-input__inner {
+      display: none !important;
+    }
+    span.el-input__suffix {
+      position: inherit !important;
+      i.el-input__icon {
+        line-height: inherit;
+        margin-left: 5px;
+      }
+    }
+
+    .el-input__wrapper {
+      box-shadow: none;
+      input {
+        display: none;
+      }
+    }
+  }
+
+  .el-cascader__tags {
+    display: none;
+  }
+}
+
+.area-city-popper {
+  .el-cascader-panel {
+    .el-scrollbar.el-cascader-menu {
+      .el-cascader-menu__wrap.el-scrollbar__wrap {
+        height: 315px;
+      }
+    }
+  }
+}
+::v-deep .avatar-uploader .el-upload {
+    border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+  }
+  ::v-deep .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  ::v-deep .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 100px;
+    height: 100px;
+    line-height: 100px;
+    text-align: center;
+  }
+  ::v-deep .avatar {
+    width: 100px;
+    height: 100px;
+    display: block;
+  }
+</style>
+<style>
+.custom-class-box {
+  z-index: 999999 !important;
+}
+</style>

+ 5 - 5
src/views/tourism/productManagement/formBox/scenicAreaTicketsForm.vue

@@ -23,7 +23,7 @@
           <el-form-item label="门票名称:" prop="name">
             <el-input style="width: 350px;" v-model="form.name" placeholder="请输入门票名称" maxlength="50" show-word-limit />
           </el-form-item>
-          <el-form-item label="详情图片:" prop="posterUrl">
+          <el-form-item label="详情图片:" prop="showlmg">
 
             <div
             style="width: 120px;"
@@ -46,7 +46,7 @@
                 :disabled="actionUrlLoading"
                 :on-error="handleAvatarError"
                 >
-                <img v-if="form.posterUrl" style="width: 100px;height: 100px;" :src="form.posterUrl" class="avatar">
+                <img v-if="form.showlmg" style="width: 100px;height: 100px;" :src="form.showlmg" class="avatar">
                 <i v-else class="el-icon-plus avatar-uploader-icon"></i>
               </el-upload>
             </div>
@@ -115,7 +115,7 @@ export default {
       },
       rules: {
         name: [{ required: true, message: "请输入门票名称", trigger: ["change","blur"] }],
-        posterUrl: [{ required: true, message: "请上传图片", trigger: ["change","blur"] }],
+        showlmg: [{ required: true, message: "请上传图片", trigger: ["change","blur"] }],
         performSnapshot: [{ required: true, message: "请输产品介绍", trigger: ["change","blur"] }],
         performNotice: [{ required: true, message: "请输购票须知", trigger: ["change","blur"] }],
       },
@@ -244,9 +244,9 @@ export default {
       console.log("res, file",res, file)
       this.actionUrlLoading = false
       if(res.code != 200) {
-        this.$set(this.form,'posterUrl',null) 
+        this.$set(this.form,'showlmg',null) 
       }else {
-        this.$set(this.form,'posterUrl',res.data.url) 
+        this.$set(this.form,'showlmg',res.data.url) 
       }
       
     },

+ 8 - 8
src/views/tourism/productManagement/scenicAreaTickets.vue

@@ -20,13 +20,13 @@
           <el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
             <el-table-column type="index" label="序号" align="center"  />
             <el-table-column label="门票名称" align="center" key="name" prop="name" v-if="columns[0].visible" :show-overflow-tooltip="true" />
-            <el-table-column label="门票图片" align="center" key="sliderImg" v-if="columns[1].visible">
+            <el-table-column label="门票图片" align="center" key="showlmg" v-if="columns[1].visible">
               <template slot-scope="scope">
                 <el-image 
-                v-if="scope.row.posterUrl"
+                v-if="scope.row.showlmg"
                   style="width: 100px; height: 100px"
-                  :src="scope.row.posterUrl" 
-                  :preview-src-list="[scope.row.posterUrl]">
+                  :src="scope.row.showlmg" 
+                  :preview-src-list="[scope.row.showlmg]">
                 </el-image>
                 <span v-else>暂无图片</span>
               </template>
@@ -58,8 +58,8 @@
                   v-model="scope.row.status" 
                   @changeFun="openAttraction(scope.row)" 
                   :disabled="false"
-                  :active-value="0"
-                  :inactive-value="1"
+                  :active-value="1"
+                  :inactive-value="0"
                   />
                 </template>
               </el-table-column>
@@ -275,14 +275,14 @@
        * @returns {any}
        */
       openAttraction(row) {
-        this.$modal.confirm(`是否确认${row.status == 1 ? '上架' : '下架'} ${row.name}点位吗?`).then( () => {
+        this.$modal.confirm(`是否确认${row.status == 0 ? '上架' : '下架'} ${row.name}点位吗?`).then( () => {
           return listTableApi(this.configUrl.updateStatusById,{
             id: row.performId,
             status: row.status == 1 ? 0 : 1
           });
         }).then(() => {
           this.getList()
-          this.$modal.msgSuccess(`${row.status == 1 ? '上架' : '下架'}成功`);
+          this.$modal.msgSuccess(`${row.status == 0 ? '上架' : '下架'}成功`);
         }).catch((e) => {
           console.error("失败====",e)
         });