浏览代码

Merge branch 'feature/Feature-sales' into develop

莫绍宝 3 年之前
父节点
当前提交
e0400f1802

+ 22 - 1
src/api/user.js

@@ -1,3 +1,4 @@
+
 import request from '@/utils/request'
 
 // 登录
@@ -41,4 +42,24 @@ export function getCode() {
     url: '/admin/user/imageVerification',
     method: 'get',
   })
-}
+}
+
+// 获取轮播图
+
+
+export function getList() {
+  return request({
+    url: '/record/list',
+    method: 'get',
+  })
+}
+
+// 公司列表
+
+
+export function getCompanyList() {
+  return request({
+    url: '/record/company/list',
+    method: 'get',
+  })
+}

+ 31 - 91
src/views/login/index.vue

@@ -1,9 +1,6 @@
 <template>
   <div class="login-container">
-    <div class="flexBox">
-      <div>
-
-      <el-form
+    <el-form
       ref="loginForm"
       :model="loginForm"
       :rules="loginRules"
@@ -11,30 +8,21 @@
       auto-complete="on"
       label-position="left"
     >
-      <div class="flex">
-          <div class="image-container">
-        <div class="empty-height" >
-                     <img class="logo" src="@/assets/login/logo.png" alt="">
-        </div>
-        <el-carousel :interval="5000" arrow="always" height="440px" class="carousel">
-          <el-carousel-item v-for="item in 4" :key="item">
-            <h3>{{ item }}</h3>
-          </el-carousel-item>
-        </el-carousel>
+      <!-- <div class="title-container">
+        <img src="@/assets/login/title.png" alt="">
+      </div> -->
+      <div class="image-container">
+        <img src="@/assets/login/image.png" alt="" />
       </div>
       <div class="right-container">
         <div class="empty-height" />
         <div class="form-container">
-          <!-- <div class="title">供应链管理系统</div> -->
+          <div class="title">供应链管理系统</div>
           <!--      <div class="logo">-->
           <!--        <img src="@/assets/login/logo.png" alt="">-->
           <!--      </div>-->
-            <div class="flex title">
-              <div style="margin-right: 80px;">密码登录</div>
-              <div>微信登录</div>
-            </div>
-            <div>
-               <el-form-item prop="username">
+
+          <el-form-item prop="username">
             <span class="svg-container">
               <svg-icon icon-class="user" />
             </span>
@@ -100,21 +88,9 @@
               >登录</el-button
             >
           </div>
-            </div>
-            <div>
-
-            </div>
         </div>
       </div>
-      </div>
-      </el-form>
-
-      </div>
-      <div class="info">
-        <div>粤ICP备2020090308号 | 粤公网安备44010602008477号</div>
-        <div>本站由广州众炬科技有限公司提供技术支持服务</div>
-      </div>
-    </div>
+    </el-form>
   </div>
 </template>
 
@@ -225,8 +201,11 @@ export default {
             .dispatch("user/login", this.loginForm)
             .then(() => {
               console.log(this.redirect);
+
               this.$router.push({ path: this.redirect || "/" });
+              this.$store.commit("user/showMessage", "yes");
               this.saveUnAndPw();
+
               this.loading = false;
             })
             .catch(() => {
@@ -337,14 +316,7 @@ $back: #333;
       }
     }
   }
-  .el-carousel__arrow--left,.el-carousel__arrow--right{
-    display: none;
-  }
-    .carousel{
-     border-top-left-radius: 15px;
-     border-bottom-left-radius: 15px;
-     overflow: hidden;
-    }
+
   .el-form-item {
     border: 1px solid rgba(255, 255, 255, 0.1);
     // background: rgba(0, 0, 0, 0.1);
@@ -368,39 +340,7 @@ $back: #333;
 $bg: #2d3a4b;
 $dark_gray: #889aa4;
 $light_gray: #eee;
-.info{
-  margin-top: 50px;
-  line-height: 30px;
-  text-align: center;
-  text-align-last: center;
-  color: #fff;
-}
-.flexBox{
-  display: flex;
-   padding-top: calc(50vh - 230px);
-  justify-content: space-between;
-  flex-direction: column;
- align-items: center
-}
-.flex{
-  display: flex;
-  flex-direction: row;
-}
-.empty-height{
-  height: 46px;
-  margin: 15px 0;
-}
-.logo{
-  height:46px;
-  width:460px ;
-}
-.el-carousel__item:nth-child(2n) {
-  background-color: #99a9bf;
-}
 
-.el-carousel__item:nth-child(2n + 1) {
-  background-color: #d3dce6;
-}
 .login-container {
   min-height: 100%;
   width: 100%;
@@ -408,34 +348,35 @@ $light_gray: #eee;
   overflow: hidden;
 
   .login-form {
-    // position: relative;
-    // width: 1920px;
-    // max-width: 100%;
-    // height: 100%;
-
-    // display: flex;
-    // flex-direction: column;
-    // align-items: center;
-
+    position: relative;
+    width: 1070px;
+    max-width: 100%;
+    padding: 0 35px 0;
+    padding-top: calc(50vh - 230px);
+    margin: 0 auto;
+    overflow: hidden;
+    display: flex;
   }
 
   .image-container {
-   width: 700px;
-   height: 516px;
-  //  overflow: hidden;
+    img {
+      width: 560px;
+      height: 460px;
+    }
   }
 
   .right-container {
     width: 440px;
-    height: 516px;
+    height: 460px;
+    .empty-height {
+      height: 77px;
+    }
     .form-container {
-      height: 440px;
       padding: 20px 30px 27px 40px;
       background: #fff;
       border-radius: 0 15px 15px 0;
       .title {
-
-        justify-content: center;
+        font-size: 24px;
         font-weight: bold;
         letter-spacing: 4px;
         text-align: center;
@@ -517,4 +458,3 @@ $light_gray: #eee;
   }
 }
 </style>
-

+ 41 - 30
src/views/supply/policy/components/retail_detail.vue

@@ -141,19 +141,22 @@
           min-width="100"
           show-overflow-tooltip
         ></el-table-column>
-         <el-table-column
+        <el-table-column
           align="center"
           label="返利类型"
           prop="rebateWallets"
           min-width="100"
           show-overflow-tooltip
         >
-        <template slot-scope="scope">
-          <el-tag type="success" size="small" v-for="item in scope.row.rebateWallets">
-          {{item.name}}
-          </el-tag>
-
-        </template>
+          <template slot-scope="scope">
+            <el-tag
+              type="success"
+              size="small"
+              v-for="item in scope.row.rebateWallets"
+            >
+              {{ item.name }}
+            </el-tag>
+          </template>
         </el-table-column>
         <el-table-column
           align="center"
@@ -169,7 +172,7 @@
           min-width="100"
           show-overflow-tooltip
         ></el-table-column>
-       <el-table-column
+        <el-table-column
           align="center"
           label="现金钱包"
           prop="wallets"
@@ -177,15 +180,18 @@
           show-overflow-tooltip
         >
           <template slot-scope="scope">
-          <el-tag type="success" size="small" v-for="item in scope.row.wallets">
-          {{item.name}}
-          </el-tag>
-
-        </template>
+            <el-tag
+              type="success"
+              size="small"
+              v-for="item in scope.row.wallets"
+            >
+              {{ item.name }}
+            </el-tag>
+          </template>
         </el-table-column>
         <el-table-column
           align="center"
-          label="金额"
+          label="实付金额"
           prop="payAmount"
           min-width="100"
           show-overflow-tooltip
@@ -208,6 +214,20 @@
           min-width="100"
           show-overflow-tooltip
         ></el-table-column>
+          <el-table-column
+          align="center"
+          label="实付金额"
+          prop="payAmount"
+          min-width="100"
+          show-overflow-tooltip
+        ></el-table-column>
+          <el-table-column
+          align="center"
+          label="已退数量"
+          prop="retiredQty"
+          min-width="100"
+          show-overflow-tooltip
+        ></el-table-column>
         <el-table-column
           align="center"
           label="原订单数量"
@@ -412,18 +432,12 @@
             show-overflow-tooltip
           >
             <template slot-scope="scope">
-
-              <template v-if="scope.row.isDirectTransfer == '是'">
               <el-input
                 v-model="scope.row.adjustNum"
                 size="small"
                 type="number"
+                :disabled="!scope.row.isDirectTransfer"
               ></el-input>
-              </template>
-              <template v-else>
-                {{scope.row.adjustNum || 0 }}
-              </template>
-
             </template>
           </el-table-column>
           <el-table-column
@@ -447,13 +461,7 @@
             min-width="100"
             show-overflow-tooltip
           ></el-table-column>
-          <el-table-column
-            align="center"
-            label="实付金额"
-            prop="payAmount"
-            min-width="100"
-            show-overflow-tooltip
-          ></el-table-column>
+payAmount
           <el-table-column
             align="center"
             label="备注"
@@ -612,7 +620,10 @@ export default {
       this.$refs.deliverForm.validate((valid) => {
         if (valid) {
           for (let i = 0; i < this.goodsList.length; i++) {
-            if (!this.goodsList[i].adjustNum) {
+            if (
+              !this.goodsList[i].adjustNum &&
+              this.goodsList[i].isDirectTransfer
+            ) {
               this.$errorMsg("请输入直调数量");
               return;
             }
@@ -620,7 +631,7 @@ export default {
           let goodsList = this.goodsList.map((item) => {
             return {
               itemId: item.id,
-              qty: item.adjustNum,
+              qty: item.adjustNum || 0,
             };
           });
           let params = {

+ 7 - 0
src/views/supply/policy/components/retail_examine.vue

@@ -168,6 +168,13 @@
           min-width="100"
           show-overflow-tooltip
         ></el-table-column>
+          <el-table-column
+          align="center"
+          label="已退数量"
+          prop="retiredQty"
+          min-width="100"
+          show-overflow-tooltip
+        ></el-table-column>
         <el-table-column
           align="center"
           label="是否直调"

+ 8 - 0
src/views/supply/policy/components/retail_form2.vue

@@ -234,6 +234,13 @@
             {{ scope.row.qty * scope.row.discAmount }}
           </template>
         </el-table-column>
+          <el-table-column
+          align="center"
+          label="已退数量"
+          prop="retiredQty"
+          min-width="100"
+          show-overflow-tooltip
+        ></el-table-column>
         <el-table-column
           align="center"
           label="现金钱包"
@@ -877,6 +884,7 @@ export default {
       policyList({
         pageNum: 1,
         pageSize: -1,
+        status:true
       }).then((res) => {
         this.screenForm.policyId = res.data.records[0].code;
         this.handlePolicy(this.screenForm.policyId);

+ 1 - 7
src/views/supply/policy/policy_list.vue

@@ -381,13 +381,7 @@
                   v-if="scope.row.examineStatus === 'OK'"
                   >退订</el-button
                 >
-
-                <el-popconfirm
-                  style="margin-left: 10px"
-                  title="确定关闭吗?"
-                  @onConfirm="handleClose(scope.row.id)"
-                  v-if="!scope.row.closeTime"
-                >
+   <el-popconfirm style="margin-left: 10px;" title="确定关闭吗?" @onConfirm="handleClose(scope.row.id)" v-if="!scope.row.closeTime" >
                   <el-button slot="reference" type="text">关闭</el-button>
                 </el-popconfirm>
               </template>