فهرست منبع

1.弘真医药增加拍单商品手机号解密导出

jzp 1 هفته پیش
والد
کامیت
a16e1caa25

+ 10 - 1
src/api/course/fsCourseProductOrder.js

@@ -51,6 +51,15 @@ export function exportFsCourseProductOrder(query) {
     params: query
   })
 }
+// 导出拍单商品订单(解密手机号)
+export function exportFsCourseProductOrderDecodePhone(query) {
+  return request({
+    url: '/course/fsCourseProductOrder/decodeExport',
+    method: 'get',
+    params: query
+  })
+}
+
 
 // 退款拍商品订单
 export function refund(data) {
@@ -67,4 +76,4 @@ export function getOrderUserPhone(courseOrderId) {
     url: '/course/fsCourseProductOrder/queryPhone/' + courseOrderId,
     method: 'get'
   })
-}
+}

+ 53 - 0
src/api/fastGpt/fastgptChatArtificialWords.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询转人工提示词列表
+export function listFastgptChatArtificialWords(query) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询转人工提示词详细
+export function getFastgptChatArtificialWords(id) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords/' + id,
+    method: 'get'
+  })
+}
+
+// 新增转人工提示词
+export function addFastgptChatArtificialWords(data) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改转人工提示词
+export function updateFastgptChatArtificialWords(data) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除转人工提示词
+export function delFastgptChatArtificialWords(id) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出转人工提示词
+export function exportFastgptChatArtificialWords(query) {
+  return request({
+    url: '/fastGpt/fastgptChatArtificialWords/export',
+    method: 'get',
+    params: query
+  })
+}

+ 63 - 13
src/views/course/fsCourseProductOrder/index.vue

@@ -10,7 +10,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      
+
       <el-form-item label="用户名称" prop="userName">
         <el-input
           v-model="queryParams.userName"
@@ -29,9 +29,9 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-     
-      
-      
+
+
+
       <el-form-item label="支付状态" prop="isPay">
         <!-- <el-input
           v-model="queryParams.isPay"
@@ -76,10 +76,10 @@
           style="width: 240px"
         />
       </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>
@@ -130,6 +130,17 @@
           v-hasPermi="['course:fsCourseProductOrder:export']"
         >导出</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleDecodeExport"
+          v-hasPermi="['course:fsCourseProductOrder:decodeExport']"
+        >解密手机号导出</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -146,8 +157,8 @@
       <el-table-column label="课程" align="center" :show-overflow-tooltip="true" prop="courseName" />
       <el-table-column label="视频" align="center" :show-overflow-tooltip="true" prop="title" />
       <el-table-column label="公司名称" align="center"  prop="companyName" />
-      <el-table-column label="销售" align="center"  prop="companyUserName" />  
-      <el-table-column label="企微外部联系人" align="center"  prop="extName" />      
+      <el-table-column label="销售" align="center"  prop="companyUserName" />
+      <el-table-column label="企微外部联系人" align="center"  prop="extName" />
       <el-table-column label="支付状态" align="center" prop="isPay">
         <template slot-scope="scope">
           <el-tag v-if="scope.row.isPay == 0">待支付</el-tag>
@@ -175,7 +186,7 @@
       </el-table-column>
       <el-table-column label="申请退款理由" :show-overflow-tooltip="true" align="center" prop="refundExplain" />
       <el-table-column label="核销码" align="center" prop="verifyCode" />
-      
+
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
@@ -278,7 +289,17 @@
 </template>
 
 <script>
-import { listFsCourseProductOrder, getFsCourseProductOrder, delFsCourseProductOrder, addFsCourseProductOrder, updateFsCourseProductOrder, exportFsCourseProductOrder, refund, getOrderUserPhone } from "@/api/course/fsCourseProductOrder";
+import {
+  listFsCourseProductOrder,
+  getFsCourseProductOrder,
+  delFsCourseProductOrder,
+  addFsCourseProductOrder,
+  updateFsCourseProductOrder,
+  exportFsCourseProductOrder,
+  refund,
+  getOrderUserPhone,
+  exportFsCourseProductOrderDecodePhone
+} from "@/api/course/fsCourseProductOrder";
 
 export default {
   name: "FsCourseProductOrder",
@@ -466,6 +487,35 @@ export default {
         }).catch(() => {});
     },
     /** 导出按钮操作 */
+    handleDecodeExport() {
+      if (this.payDateRange && this.payDateRange.length === 2) {
+        this.queryParams.payStartTime = this.payDateRange[0];
+        this.queryParams.payEndTime = this.payDateRange[1];
+      } else {
+        this.queryParams.payStartTime = null;
+        this.queryParams.payEndTime = null;
+      }
+      if (this.refundDateRange && this.refundDateRange.length === 2) {
+        this.queryParams.refundStartTime = this.refundDateRange[0];
+        this.queryParams.refundEndTime = this.refundDateRange[1];
+      } else {
+        this.queryParams.refundStartTime = null;
+        this.queryParams.refundEndTime = null;
+      }
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有拍单商品订单数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.exportLoading = true;
+        return exportFsCourseProductOrderDecodePhone(queryParams);
+      }).then(response => {
+        this.download(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
     handleExport() {
       if (this.payDateRange && this.payDateRange.length === 2) {
         this.queryParams.payStartTime = this.payDateRange[0];
@@ -516,7 +566,7 @@ export default {
     handlePhone(scope) {
       getOrderUserPhone(scope.row.courseOrderId).then(res=>{
         scope.row.userPhone = res.userPhone
-      }) 
+      })
     },
   }
 };

+ 341 - 0
src/views/fastGpt/fastgptChatArtificialWords/index.vue

@@ -0,0 +1,341 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="类型" prop="type">
+        <el-select v-model="queryParams.type" placeholder="请选择类型" clearable size="small">
+          <el-option
+            v-for="dict in typeOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="状态" prop="status">
+        <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
+          <el-option
+            v-for="dict in statusOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          />
+        </el-select>
+      </el-form-item>
+      <!--      <el-form-item label="排序" prop="sort">
+              <el-input
+                v-model="queryParams.sort"
+                placeholder="请输入排序"
+                clearable
+                size="small"
+                @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="['fastGpt:fastgptChatArtificialWords:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['fastGpt:fastgptChatArtificialWords:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['fastGpt:fastgptChatArtificialWords:remove']"
+        >删除</el-button>
+      </el-col>
+      <!--      <el-col :span="1.5">
+              <el-button
+                type="warning"
+                plain
+                icon="el-icon-download"
+                size="mini"
+                :loading="exportLoading"
+                @click="handleExport"
+                v-hasPermi="['fastGpt:fastgptChatArtificialWords:export']"
+              >导出</el-button>
+            </el-col>-->
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table border v-loading="loading" :data="fastgptChatArtificialWordsList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="id" align="center" prop="id" />
+      <el-table-column label="类型" align="center" prop="type">
+        <template slot-scope="scope">
+          <dict-tag :options="typeOptions" :value="scope.row.type"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="文本" align="center" prop="content" />
+      <el-table-column label="状态" align="center" prop="status">
+        <template slot-scope="scope">
+          <dict-tag :options="statusOptions" :value="scope.row.status"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="排序" align="center" prop="sort" />
+      <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="['fastGpt:fastgptChatArtificialWords:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['fastGpt:fastgptChatArtificialWords:remove']"
+          >删除</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-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="类型" prop="type">
+          <el-select v-model="form.type" placeholder="请选择类型">
+            <el-option
+              v-for="dict in typeOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="parseInt(dict.dictValue)"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="文本" prop="content">
+          <el-input v-model="form.content" placeholder="请输入文本内容"/>
+        </el-form-item>
+        <el-form-item label="状态">
+          <el-radio-group v-model="form.status">
+            <el-radio
+              v-for="dict in statusOptions"
+              :key="dict.dictValue"
+              :label="parseInt(dict.dictValue)"
+            >{{dict.dictLabel}}</el-radio>
+          </el-radio-group>
+        </el-form-item>
+        <el-form-item label="排序" prop="sort">
+          <el-input v-model="form.sort" placeholder="请输入排序" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFastgptChatArtificialWords, getFastgptChatArtificialWords, delFastgptChatArtificialWords, addFastgptChatArtificialWords, updateFastgptChatArtificialWords, exportFastgptChatArtificialWords } from "@/api/fastGpt/fastgptChatArtificialWords";
+
+export default {
+  name: "FastgptChatArtificialWords",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 转人工提示词表格数据
+      fastgptChatArtificialWordsList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 类型 1报错 2关键词字典
+      typeOptions: [],
+      // 状态字典
+      statusOptions: [],
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        type: null,
+        content: null,
+        status: null,
+        sort: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+        type: [
+          { required: true, message: "类型不能为空", trigger: "blur" }
+        ],
+        content: [
+          { required: true, message: "文本不能为空", trigger: "blur" }
+        ],
+        sort: [
+          { required: true, message: "排序不能为空", trigger: "blur" }
+        ],
+      }
+    };
+  },
+  created() {
+    this.getList();
+    this.getDicts("sys_artificial_words_type").then(response => {
+      this.typeOptions = response.data;
+    });
+    this.getDicts("sys_company_status").then(response => {
+      this.statusOptions = response.data;
+    });
+  },
+  methods: {
+    /** 查询转人工提示词列表 */
+    getList() {
+      this.loading = true;
+      listFastgptChatArtificialWords(this.queryParams).then(response => {
+        this.fastgptChatArtificialWordsList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        type: null,
+        content: null,
+        status: 0,
+        sort: null,
+        createTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加转人工提示词";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getFastgptChatArtificialWords(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改转人工提示词";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateFastgptChatArtificialWords(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addFastgptChatArtificialWords(this.form).then(response => {
+              this.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认删除转人工提示词编号为"' + ids + '"的数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(function() {
+        return delFastgptChatArtificialWords(ids);
+      }).then(() => {
+        this.getList();
+        this.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有转人工提示词数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.exportLoading = true;
+        return exportFastgptChatArtificialWords(queryParams);
+      }).then(response => {
+        this.download(response.msg);
+        this.exportLoading = false;
+      }).catch(() => {});
+    }
+  }
+};
+</script>