嘀嘀嘀 пре 1 година
родитељ
комит
70021cfa39

+ 0 - 1
README.md

@@ -1 +0,0 @@
-#moxuan_takeaway_manage

Разлика између датотеке није приказан због своје велике величине
+ 1 - 8
src/icons/svg/icon-xiazai.svg


Разлика између датотеке није приказан због своје велике величине
+ 0 - 1
src/icons/svg/icon-xiazai2.svg


+ 6 - 1
src/router/index.js

@@ -521,6 +521,7 @@ const router = new Router({
 router.beforeEach((to, from, next) => {
   let userId = Vue.cookie.get("userId");
   let menuList = sessionStorage.getItem("menuList");
+
   // 添加动态(菜单)路由
   // 1. 已经添加 or 全局路由, 直接访问
   // 2. 获取菜单列表, 添加并保存本地存储
@@ -533,6 +534,8 @@ router.beforeEach((to, from, next) => {
       params: http.adornParams()
     })
       .then(({ data }) => {
+        // console.log(data);
+
         if (data && data.code === 0) {
           fnAddDynamicMenuRoutes(data.menuList);
           router.options.isAddDynamicMenuRoutes = true;
@@ -574,6 +577,8 @@ router.beforeEach((to, from, next) => {
     })
       .then(({ data }) => {
         if (data && data.code === 0) {
+          console.log(data);
+
           fnAddDynamicMenuRoutes(data.menuList);
           router.options.isAddDynamicMenuRoutes = true;
           sessionStorage.setItem(
@@ -627,7 +632,7 @@ function fnCurrentRouteType(route, globalRoutes = []) {
  */
 function fnAddDynamicMenuRoutes(menuList = [], routes = []) {
   var temp = [];
-  // console.log(menuList, "list列表");
+  console.log(menuList, "list列表");
   for (var i = 0; i < menuList.length; i++) {
     if (menuList[i].list && menuList[i].list.length >= 1) {
       temp = temp.concat(menuList[i].list);

+ 16 - 88
src/views/downLoad/downList.vue

@@ -14,40 +14,7 @@
           :value="item.value"
         >
         </el-option> </el-select
-      >&nbsp;&nbsp;
-      <div style="position: relative;display: inline-block;">
-        <span>订单id:</span>
-        <el-input
-          style="width: 200px;"
-          @keydown.enter.native="select"
-          placeholder="请输入订单编号"
-          v-model="orderId"
-        >
-        </el-input
-        >&nbsp;&nbsp;
-      </div>
-      <div style="position: relative;display: inline-block;">
-        <span>发送商户:</span>
-        <el-input
-          style="width: 200px;"
-          @keydown.enter.native="select"
-          placeholder="请输入发送商户手机号"
-          v-model="fromTo"
-        >
-        </el-input
-        >&nbsp;&nbsp;
-      </div>
-      <div style="position: relative;display: inline-block;">
-        <span>接收人:</span>
-        <el-input
-          style="width: 200px;"
-          @keydown.enter.native="select"
-          placeholder="请输入接收人手机号"
-          v-model="sendTo"
-        >
-        </el-input
-        >&nbsp;&nbsp;
-      </div>
+      >
       <div style="margin:5px;display: inline-block;">
         <span>开始时间:</span>
         <el-date-picker
@@ -91,69 +58,43 @@
         @click="cleans"
         >重置
       </el-button>
-      <!-- <el-button style='margin:0 0 20px 20px;' v-if="isAuth('autonym:tongguo')" size="mini" type="primary"
-				icon="document" @click="passClick()" :disabled="checkBoxData.length <= 0">通过</el-button> -->
     </div>
     <el-table v-loading="tableDataLoading" :data="duanxinData.list">
-      <el-table-column fixed prop="complaintId" label="编号" width="80">
+      <el-table-column fixed prop="complaintId" label="编号" width="100">
         <template slot-scope="scope">
           <span>{{ scope.$index + 1 }}</span>
         </template>
       </el-table-column>
-      <el-table-column prop="orderId" label="订单id" width="200" align="center">
+      <el-table-column prop="orderId" label="任务名称" align="center">
       </el-table-column>
-      <el-table-column prop="goodsCover" label="图片" width="150">
-        <template slot-scope="scope">
-          <div
-            v-for="(item, index) in scope.row.imgs"
-            :key="index"
-            style="display: inline-block; margin: 3px;"
-          >
-            <el-popover placement="top-start" title="" trigger="hover">
-              <img
-                style="width: 50px; height: 50px"
-                :src="item"
-                alt=""
-                slot="reference"
-              />
-              <img style="width: 300px; height: auto" :src="item" alt="" />
-            </el-popover>
-          </div>
-        </template>
-      </el-table-column>
-      <el-table-column prop="successFlag" label="发送状态" width="150">
-        <template slot-scope="scope">
-          <div v-if="scope.row.successFlag == 0">发送失败</div>
-          <div v-if="scope.row.successFlag == 1">发送成功</div>
-        </template>
+      <el-table-column prop="successFlag" label="导出时间" align="center">
       </el-table-column>
       <el-table-column
         prop="sendContent"
-        label="短信内容"
-        width="180"
+        label="导出id"
+        align="center"
       ></el-table-column>
       <el-table-column
         prop="sendResult"
-        label="发送结果"
-        width="120"
+        label="导出条件"
         align="center"
       >
       </el-table-column>
       <el-table-column
         prop="sendTo"
-        label="接受人"
-        width="180"
+        label="文件大小"
+        align="center"
       ></el-table-column>
       <el-table-column
         prop="sendFromShopName"
-        label="发送商户"
-        width="180"
-      ></el-table-column>
-      <el-table-column
-        prop="sendTime"
-        label="发送时间"
-        width="100"
+        label="状态"
+        align="center"
       ></el-table-column>
+      <el-table-column label="操作" width="150" align="center">
+        <template slot-scope="scope">
+          <span>下载</span>
+        </template>
+      </el-table-column>
     </el-table>
     <div style="text-align: center;margin-top: 10px;">
       <el-pagination
@@ -223,19 +164,6 @@ export default {
       // },
     };
   },
-  watch: {
-  // 监听路由参数的变化
-    '$route.query.indentId': {
-      immediate: true, // 如果需要在组件创建时立即触发,设置为true
-      handler(newVal, oldVal) {
-        // 当路由参数变化时,这里会被调用
-        // 你可以在这里根据新的参数执行你的逻辑
-        console.log(newVal,oldVal);
-        this.orderId = newVal
-        // this.dataSelect();
-      }
-    }
-  },
   methods: {
     handleSizeChange(val) {
       this.limit = val;

+ 1 - 1
src/views/main-navbar.vue

@@ -26,7 +26,7 @@
         </el-menu-item> -->
         <el-menu-item index="10" style="position: relative;" @click="$router.push({ name: 'downList' })">
           <template slot="title">
-            <icon-svg name="xiazai2" class="el-icon-setting" style="font-size: 20px;"></icon-svg>
+            <icon-svg name="xiazai" class="el-icon-setting" style="font-size: 22px;"></icon-svg>
           </template>
         </el-menu-item>
         <el-menu-item index="1" style="position: relative;" @click="$router.push({ name: 'vueMchat' })">

+ 17 - 1
src/views/shopsList/shopsList.vue

@@ -249,6 +249,20 @@
             ></el-input-number>
           </template>
         </el-table-column>
+        <el-table-column label="是否供货商" width="120">
+          <template slot-scope="scope">
+            <el-switch
+              v-model="scope.row.isSupplier"
+              @change="changeTj(scope.row)"
+              :disabled="!isAuth('userList:updateMoney')"
+              :active-value="0"
+              :inactive-value="1"
+              active-color="#13ce66"
+              inactive-color="#ff4949"
+            >
+            </el-switch>
+          </template>
+        </el-table-column>
         <el-table-column label="店铺二维码" width="100">
           <template slot-scope="scope">
             <el-button
@@ -1915,6 +1929,7 @@ export default {
       datas.userId = this.shopUserId;
       datas.phone = this.shopPhone;
 
+      // datas.isSupplier=1; // 是否为供货商
       datas.shopTypeId = this.shopType;
       datas.shopLable = this.labels.toString();
       datas.bannedFlag = this.bannedFlag;
@@ -3294,7 +3309,8 @@ export default {
         method: "post",
         data: this.$http.adornData({
           isRecommend: row.isRecommend,
-          shopId: row.shopId
+          shopId: row.shopId,
+          isSupplier:row.isSupplier
         })
       }).then(({ data }) => {
         if (data.code == 0) {

+ 22 - 10
src/views/user/userDetail.vue

@@ -48,8 +48,9 @@
                   <th>余额</th>
                   <td style="color: rgb(245, 108, 108)">
                     {{ tablemoney.money ? `${tablemoney.money}元` : '0元' }}
+                    <!-- :disabled="!isAuth('userList:updateMoney')" -->
                     <el-button size="mini" type="danger" style="color: #4f9dec;background: #fff;border: none;"
-                      :disabled="!isAuth('userList:updateMoney')" @click="rechargenone(tableData.userId,1)">修改余额
+                       @click="rechargenone(tableData.userId,1)">修改余额
                     </el-button>
                   </td>
                   <th>本月提现金额</th>
@@ -1357,8 +1358,9 @@
         </div>
         <div style="margin-bottom: 10px;">
           <span style="width: 200px;display: inline-block;text-align: right;">金额:</span>
-          <el-input style="width:50%;" v-model.number="money" @input="validateNumber" type="number" :min="0" :max="100" :controls="false"
-            placeholder="请输入金额"></el-input>
+          <!-- type="number"  :min="0" :max="100" :controls="false" -->
+          <el-input style="width:50%;" v-model="money"
+            placeholder="请输入金额" @change="moneyChange"></el-input>
         </div>
         <div slot="footer" class="dialog-footer">
           <el-button @click="dialogFormVisible1 = false">取 消</el-button>
@@ -1637,15 +1639,25 @@
         },
 				pinglunsData:{},
 				campus:'',
+        homeData1:'',
       }
     },
     methods: {
-      validateNumber(event) {
-        // 使用正则表达式来判断输入是否为数字
-        const regex = /^[0-9]*$/;
-        if (!regex.test(event.target.value)) {
-          // 如果不是数字,则将输入值重置为上一个值
-          this.money = event.target.value.slice(0, -1);
+      moneyChange(val){
+        console.log(val);
+        let reg=/^(([1-9]\d*)|\d)(\.\d{1,2})?$/
+        if(val==''){
+
+        }
+        else if(reg.test(val)){
+
+        }else{
+          // this.$message({
+          //   message: "输入金额有误,请重新输入",
+          //   type: "warning",
+          //   duration: 1500
+          // });
+          this.money=''
         }
       },
       // 返回上一级
@@ -2096,7 +2108,7 @@
           this.$notify({
             title: '提示',
             duration: 1800,
-            message: '请输入金额',
+            message: '请输入正确金额',
             type: 'warning'
           })
           return