Browse Source

供应商页面修改

jiandexin1 1 year ago
parent
commit
d03b201a1c

+ 72 - 0
src/api/distribution/storeappoint.js

@@ -0,0 +1,72 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/distribution/appoint/storeList',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/distribution/appoint/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/distribution/appoint/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/distribution/appoint/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/distribution/appoint/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const shipments = (ids) => {
+  return request({
+    url: '/api/distribution/appoint/shipments',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const goodsList = (current, size, arrivalCode) => {
+  return request({
+    url: '/api/finance/appointgoods/appointGoodsList',
+    method: 'get',
+    params: {
+      arrivalCode,
+      current,
+      size,
+    }
+  })
+}
+

+ 168 - 0
src/api/mall/storegoodsinfo.js

@@ -0,0 +1,168 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/mall/goodsinfo/storePage',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/mall/goodsinfo/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const tree = () => {
+  return request({
+    url: '/api/mall/categoryinfo/tree',
+    method: 'get'
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/mall/goodsinfo/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const modifyState = (ids, state) => {
+  return request({
+    url: '/api/mall/goodsinfo/modifyState',
+    method: 'post',
+    params: {
+      ids,
+      state
+    }
+  })
+}
+
+export const audit = (param) => {
+  return request({
+    url: '/api/mall/goodsinfo/audit',
+    method: 'post',
+    params: {
+        ...param
+    }
+  })
+}
+
+export const modifyCategory = (ids, categoryIds) => {
+  return request({
+    url: '/api/mall/goodsinfo/modifyCategory',
+    method: 'post',
+    params: {
+      ids,
+      categoryIds
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/mall/goodsinfo/storeSubmit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/mall/goodsinfo/update',
+    method: 'post',
+    data: row
+  })
+}
+
+export const modifySaleState = (row) => {
+  return request({
+    url: '/api/mall/goodsinfo/modifySaleState',
+    method: 'post',
+    data: row
+  })
+}
+
+export const modifyGrossRate = (ids, grossRate) => {
+  return request({
+    url: '/api/mall/goodsinfo/modifyGrossRate',
+    method: 'post',
+    params: {
+      ids,
+      grossRate
+    }
+  })
+}
+
+export const modifyZoneType = (ids, zoneType, activityDate) => {
+  return request({
+    url: '/api/mall/goodsinfo/modifyZoneType',
+    method: 'post',
+    params: {
+      ids,
+      zoneType,
+      activityDate
+    }
+  })
+}
+
+export const setActivityGoods = (ids, activityDate) => {
+  return request({
+    url: '/api/mall/goodsinfo/setActivityGoods',
+    method: 'post',
+    params: {
+      ids,
+      activityDate
+    }
+  })
+}
+
+export const zoneTypeOption = () => {
+  return request({
+    url: '/api/blade-system/dict-biz/dictionary?code=zone_type',
+    method: 'get',
+  })
+}
+
+export const getSpecList = (current, size, params) => {
+  return request({
+    url: '/api/mall/goodsspec/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size
+    }
+  })
+}
+
+
+export const getRoundList = () => {
+  return request({
+    url: '/api/mall/seckillround/round',
+    method: 'get'
+  })
+}
+
+export const syncFull = (ids) => {
+  return request({
+    url: '/api/mall/goodsinfo/sync/full',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+

+ 1 - 1
src/lang/zh.js

@@ -67,7 +67,7 @@ export default {
   },
   login: {
     title: '登录 ',
-    info: '中意购运营后台',
+    info: '中意购供应商后台',
     tenantId: '请输入租户ID',
     username: '请输入账号',
     password: '请输入密码',

+ 8 - 7
src/views/store/storeappoint.vue → src/views/store/storeappoint/index.vue

@@ -23,7 +23,6 @@
         <el-button type="primary"
                    size="small"
                    plain
-                   v-if="permission.appoint_delete"
                    @click="handleDelete">确认发货
         </el-button>
       </template>
@@ -53,9 +52,9 @@
 </template>
 
 <script>
-  import {getList, getDetail, add, update, shipments, goodsList} from "@/api/distribution/appoint";
+  import {getList, getDetail, add, update, shipments, goodsList} from "@/api/distribution/storeappoint";
   import {mapGetters} from "vuex";
-  import {appointGoodsOption} from "../../option/mall/appointGoodsOption"
+  import {appointGoodsOption} from "../../../option/mall/appointGoodsOption"
 
   export default {
     data() {
@@ -85,11 +84,13 @@
           },
           height:'auto',
           calcHeight: 30,
+          addBtn: false,
           tip: false,
           searchShow: true,
           searchMenuSpan: 6,
           border: true,
           index: true,
+          editBtn: false,
           viewBtn: true,
           delBtn: false,
           selection: true,
@@ -176,10 +177,10 @@
       ...mapGetters(["permission"]),
       permissionList() {
         return {
-          addBtn: this.vaildData(this.permission.appoint_add, false),
-          viewBtn: this.vaildData(this.permission.appoint_view, false),
-          delBtn: this.vaildData(this.permission.appoint_delete, false),
-          editBtn: this.vaildData(this.permission.appoint_edit, false)
+          // addBtn: this.vaildData(this.permission.appoint_add, false),
+          // viewBtn: this.vaildData(this.permission.appoint_view, false),
+          // delBtn: this.vaildData(this.permission.appoint_delete, false),
+          // editBtn: this.vaildData(this.permission.appoint_edit, false)
         };
       },
       ids() {

+ 6 - 35
src/views/store/storegoods.vue → src/views/store/storegoods/index.vue

@@ -86,9 +86,9 @@
 
 
 <script>
-  import {getList, getDetail, add, update, remove, modifyState, audit} from "@/api/mall/goodsinfo";
+  import {getList, getDetail, add, update, remove, modifyState, audit} from "@/api/mall/storegoodsinfo";
   import {mapGetters} from "vuex";
-  import {getByParentId} from "../../api/mall/categoryinfo";
+  import {getByParentId} from "../../../api/mall/categoryinfo";
 
   export default {
 
@@ -156,35 +156,6 @@
                 trigger: "blur"
               }]
             },
-            {
-              label: "供应商",
-              prop: "supplierId",
-              editDisplay: true,
-              viewDisplay: false,
-              remote: true,
-              hide: true,
-              type: "select",
-              dicUrl: "/api/mall/store/list?name={{key}}&state=1&auditState=1&size=30",
-              props: {
-                label: "name",
-                value: "id"
-              },
-              dicFormatter: function (res) {
-                return res.data.records;
-              },
-              rules: [{
-                required: true,
-                message: "请选择供应商",
-                trigger: "blur"
-              }]
-            },
-            {
-              label: "供应商",
-              prop: "supplierName",
-              search: true,
-              addDisplay: false,
-              editDisplay: false,
-            },
             {
               label: "品牌",
               prop: "brandDesc",
@@ -486,10 +457,10 @@
       ...mapGetters(["permission"]),
       permissionList() {
         return {
-          addBtn: this.vaildData(this.permission.goodsinfo_add, false),
-          viewBtn: this.vaildData(this.permission.goodsinfo_view, false),
-          delBtn: this.vaildData(this.permission.goodsinfo_delete, false),
-          editBtn: this.vaildData(this.permission.goodsinfo_edit, false)
+          // addBtn: this.vaildData(this.permission.goodsinfo_add, false),
+          // viewBtn: this.vaildData(this.permission.goodsinfo_view, false),
+          // delBtn: this.vaildData(this.permission.goodsinfo_delete, false),
+          // editBtn: this.vaildData(this.permission.goodsinfo_edit, false)
         };
       },
       ids() {