瀏覽代碼

no message

linwenxin 7 月之前
父節點
當前提交
945f403f93

+ 2 - 2
src/packageMaterial/pages/apply/index.vue

@@ -14,13 +14,13 @@
         <view class="label"><text>*</text>申领人员</view>
         <view class="value">{{ userInfo.nickName }}</view>
       </view>
-      <view class="item">
+      <!-- <view class="item">
         <view class="label"><text>*</text>产品类别</view>
         <u-radio-group v-model="type">
           <u-radio shape="circle" label="辅材" :name="'M'"></u-radio>
           <u-radio shape="circle" label="配件" :name="'P'"></u-radio>
         </u-radio-group>
-      </view>
+      </view> -->
     </view>
 
     <template slot="footer">

+ 34 - 5
src/packageMaterial/pages/index.vue

@@ -7,10 +7,10 @@
     @refresherrefresh="refresherrefresh"
   >
     <view class="all-container">
-      <view class="card">
+      <view class="card" v-if="type == 'M'">
         <view class="top">
           <text class="iconfont icon-kucun icon"></text>
-          <view class="title">辅材/配件库存</view>
+          <view class="title">辅材库存</view>
           <view class="right" @tap="navToPage('/packageMaterial/pages/stock/index')"
             >我的库存<text class="iconfont icon-jinru"></text
           ></view>
@@ -35,7 +35,7 @@
           </view>
         </view>
       </view>
-      <view class="card">
+      <view class="card" v-if="type == 'M'">
         <view class="top">
           <text class="iconfont icon-fucai icon"></text>
           <view class="title">辅材销售</view>
@@ -63,7 +63,35 @@
           </view>
         </view>
       </view>
-      <view class="card">
+      <view class="card" v-if="type == 'P'">
+        <view class="top">
+          <text class="iconfont icon-kucun icon"></text>
+          <view class="title">配件库存</view>
+          <view class="right" @tap="navToPage('/packageAttachment/pages/sparePartsInventory/index')"
+            >我的库存<text class="iconfont icon-jinru"></text
+          ></view>
+        </view>
+        <view class="center">
+          <view class="text">无辅材/配件库存可以申请购买</view>
+          <u-button
+            type="primary"
+            text="去购买"
+            shape="circle"
+            @click="navToPage(`/packageAttachment/pages/applicationParts/index`)"
+          ></u-button>
+        </view>
+        <view class="bottom">
+          <view class="it" @tap="navToPage(`/packageAttachment/pages/returnOfNewParts/index`)">
+            <view class="num">{{ count.newRefundCount || 0 }}</view>
+            <view class="text">新件待返还</view>
+          </view>
+          <view class="it" @tap="navToPage(`/packageAttachment/pages/returnOfOldParts/index`)">
+            <view class="num">{{ count.oldRefundCount || 0 }}</view>
+            <view class="text">旧件待返还</view>
+          </view>
+        </view>
+      </view>
+      <view class="card" v-if="type == 'P'">
         <view class="top">
           <text class="iconfont icon-peijian icon"></text>
           <view class="title">配件销售</view>
@@ -113,7 +141,8 @@ export default {
     }
   },
 
-  onLoad() {
+  onLoad({ type }) {
+    this.type = type
     this.getDetail();
   },
 

+ 140 - 124
src/packageMaterial/pages/stock/index.vue

@@ -1,42 +1,51 @@
 <template>
   <!-- #ifdef H5 -->
   <zj-page-layout :hasFooter="true">
-    <template slot="header">
+    <!-- <template slot="header">
       <view class="tab-container">
-      	<u-tabs
-      		:scrollable="false"
-      		:list="tabList"
-      		:current="tabCurrent"
-      		@click="changeTab"
-      		lineColor="#3D8FFD"
-      		:activeStyle="{
-      			color: '#3D8FFD'
-      		}"
-      		:inactiveStyle="{
-      			color: '#666666'
-      		}"
-      		itemStyle="padding-left: 0; padding-right: 0; height: 88rpx;">
-      	</u-tabs>
+        <u-tabs
+          :scrollable="false"
+          :list="tabList"
+          :current="tabCurrent"
+          @click="changeTab"
+          lineColor="#3D8FFD"
+          :activeStyle="{
+            color: '#3D8FFD'
+          }"
+          :inactiveStyle="{
+            color: '#666666'
+          }"
+          itemStyle="padding-left: 0; padding-right: 0; height: 88rpx;"
+        >
+        </u-tabs>
       </view>
-    </template>
+    </template> -->
 
-    <view class="main-container" v-if="(tabCurrent === 0 && leftList.length > 0) || (tabCurrent === 1 && rightList.length > 0)">
+    <view
+      class="main-container"
+      v-if="(tabCurrent === 0 && leftList.length > 0) || (tabCurrent === 1 && rightList.length > 0)"
+    >
       <view class="left-list" v-if="tabCurrent === 0">
-      	<block v-for="(item, index) in leftList" :key='index'>
-      		<view class="item ellipsis" :class="leftCurrent == item.categoryId ? 'current':''" @tap="changeLeft(item.categoryId)">{{item.categoryName}}</view>
-      	</block>
+        <block v-for="(item, index) in leftList" :key="index">
+          <view
+            class="item ellipsis"
+            :class="leftCurrent == item.categoryId ? 'current' : ''"
+            @tap="changeLeft(item.categoryId)"
+            >{{ item.categoryName }}</view
+          >
+        </block>
       </view>
       <view class="right-list">
-      	<block v-for="(item, index) in rightList" :key='index'>
-      		<view class="item" @tap="toStockDetail(item)">
+        <block v-for="(item, index) in rightList" :key="index">
+          <view class="item" @tap="toStockDetail(item)">
             <view class="left">
-              <view class="name">{{item.goodsName}}</view>
-              <view class="text">规格:{{item.goodsSpecification}}</view>
+              <view class="name">{{ item.goodsName }}</view>
+              <view class="text">规格:{{ item.goodsSpecification }}</view>
             </view>
-            <view class="right">库存{{item.qty}}</view>
-      		</view>
-      	</block>
-      	<Loading :type="2" :loadStatus="loadStatus" :dataList="rightList" />
+            <view class="right">库存{{ item.qty }}</view>
+          </view>
+        </block>
+        <Loading :type="2" :loadStatus="loadStatus" :dataList="rightList" />
       </view>
     </view>
 
@@ -48,39 +57,97 @@
     <template slot="footer">
       <view class="footer-btn-group">
         <!-- <block v-if="(tabCurrent === 0 && leftList.length > 0) || (tabCurrent === 1 && rightList.length > 0)"> -->
-          <u-button text="购买记录" @click="navToPage(`/packageMaterial/pages/stock/buyRecord`)"></u-button>
-          <u-button text="使用记录" @click="navToPage(`/packageMaterial/pages/stock/useRecord`)"></u-button>
+        <u-button text="购买记录" @click="navToPage(`/packageMaterial/pages/stock/buyRecord`)"></u-button>
+        <u-button text="使用记录" @click="navToPage(`/packageMaterial/pages/stock/useRecord`)"></u-button>
         <!-- </block> -->
 
-        <u-button type="primary" text="去购买" @click="navToPage(`/packageMaterial/pages/apply/index?type=${tabCurrent === 0 ? 'M' : 'P'}`)"></u-button>
+        <u-button
+          type="primary"
+          text="去购买"
+          @click="navToPage(`/packageMaterial/pages/apply/index?type=${tabCurrent === 0 ? 'M' : 'P'}`)"
+        ></u-button>
       </view>
     </template>
   </zj-page-layout>
   <!-- #endif -->
 
   <!-- #ifndef H5 -->
-  <web-view :src="webViewHref(`/packageMaterial/pages/stock/index`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
+  <web-view
+    :src="webViewHref(`/packageMaterial/pages/stock/index`, pam, crossPagePam)"
+    @message="crossPage.$listener"
+  ></web-view>
   <!-- #endif -->
 </template>
 
 <script>
-  // #ifdef H5
-  export default {
-    data() {
-      return {
-        tabList: [
-        	{name: '辅材库存', value: 0},
-        	{name: '配件库存', value: 1},
-        ],
-        tabCurrent: 0, // 当前选择值
-				leftList: [],
-				leftCurrent: 0,
-				rightList: [],
-        loadStatus: 0,
-      }
+// #ifdef H5
+export default {
+  data() {
+    return {
+      // tabList: [
+      // 	{name: '辅材库存', value: 0},
+      // 	{name: '配件库存', value: 1},
+      // ],
+      tabCurrent: 0, // 当前选择值
+      leftList: [],
+      leftCurrent: 0,
+      rightList: [],
+      loadStatus: 0,
+    }
+  },
+
+  onLoad() {
+    if(this.tabCurrent === 0) {
+      this.getLeftList();
+    }else {
+      this.getRightList();
+    }
+  },
+
+  methods: {
+    // 获取左侧分类
+    getLeftList() {
+    	this.$api.post('/material/worker/stock/category/list', {
+        goodsType: 'M',
+      }).then(res => {
+    		this.leftList = res.data;
+        if(res.data && res.data.length) {
+          this.leftCurrent = res.data[0].categoryId;
+          this.getRightList();
+        }
+    	})
+    },
+
+    // 获取右侧产品
+    getRightList() {
+    	this.loadStatus = 1;
+    	this.$api.post('/material/worker/stock/list', {
+        goodsType: this.tabCurrent === 0 ? 'M' : 'P',
+        categoryId: this.tabCurrent === 0 ? this.leftCurrent : '',
+        pageNum: 1,
+        pageSize: -1
+    	}).then(res => {
+    		this.loadStatus = 0;
+    		let list = res.data.records;
+    		if(list.length < 1){
+    			this.loadStatus = 2;
+    		}
+    		this.rightList = list;
+    	}).catch(() => {
+    		this.loadStatus = 2;
+    	})
     },
 
-    onLoad() {
+    // 切换一级菜单
+    changeLeft(pid) {
+    	this.leftCurrent = pid;
+    	this.getRightList();
+    },
+
+    changeTab(e) {
+      this.leftList = [];
+      this.rightList = [];
+    	this.tabCurrent = e.value;
       if(this.tabCurrent === 0) {
         this.getLeftList();
       }else {
@@ -88,92 +155,41 @@
       }
     },
 
-    methods: {
-      // 获取左侧分类
-      getLeftList() {
-      	this.$api.post('/material/worker/stock/category/list', {
-          goodsType: 'M',
-        }).then(res => {
-      		this.leftList = res.data;
-          if(res.data && res.data.length) {
-            this.leftCurrent = res.data[0].categoryId;
-            this.getRightList();
-          }
-      	})
-      },
-
-      // 获取右侧产品
-      getRightList() {
-      	this.loadStatus = 1;
-      	this.$api.post('/material/worker/stock/list', {
-          goodsType: this.tabCurrent === 0 ? 'M' : 'P',
-          categoryId: this.tabCurrent === 0 ? this.leftCurrent : '',
-          pageNum: 1,
-          pageSize: -1
-      	}).then(res => {
-      		this.loadStatus = 0;
-      		let list = res.data.records;
-      		if(list.length < 1){
-      			this.loadStatus = 2;
-      		}
-      		this.rightList = list;
-      	}).catch(() => {
-      		this.loadStatus = 2;
-      	})
-      },
-
-      // 切换一级菜单
-      changeLeft(pid) {
-      	this.leftCurrent = pid;
-      	this.getRightList();
-      },
-
-      changeTab(e) {
-        this.leftList = [];
-        this.rightList = [];
-      	this.tabCurrent = e.value;
-        if(this.tabCurrent === 0) {
-          this.getLeftList();
-        }else {
-          this.getRightList();
-        }
-      },
-
-      toStockDetail(item) {
-        this.navToPage(`/packageMaterial/pages/stock/stockDetail?id=${item.id}&goodsId=${item.goodsId}`)
-      },
-
-      navToPage(url) {
-        this.$navToPage({
-          url
-        })
-      }
+    toStockDetail(item) {
+      this.navToPage(`/packageMaterial/pages/stock/stockDetail?id=${item.id}&goodsId=${item.goodsId}`)
     },
-  }
 
-  // #endif
-  // #ifndef H5
-  export default {
-    data() {
-      return {
-        pam: {},
-      }
-    },
-    onLoad(pam) {
-      this.pam = pam;
+    navToPage(url) {
+      this.$navToPage({
+        url
+      })
+    }
+  },
+}
+
+// #endif
+// #ifndef H5
+export default {
+  data() {
+    return {
+      pam: {},
     }
+  },
+  onLoad(pam) {
+    this.pam = pam;
   }
-  // #endif
+}
+// #endif
 </script>
 
 <style lang="scss" scoped>
 .tab-container {
-  background: #FFFFFF;
+  background: #ffffff;
   padding-bottom: 20rpx;
 }
 .empty-container {
   height: 100%;
-  background: #FFFFFF;
+  background: #ffffff;
   display: flex;
   flex-direction: column;
   align-items: center;
@@ -203,15 +219,15 @@
       align-items: center;
       padding: 0 20rpx;
       &.current {
-        color: #FFFFFF;
+        color: #ffffff;
         background: $theme-color;
       }
     }
   }
   .right-list {
     flex: 1;
-    background: #FFFFFF;
-    background: #FFFFFF;
+    background: #ffffff;
+    background: #ffffff;
     height: 100%;
     overflow-y: scroll;
     box-sizing: border-box;

+ 132 - 122
src/packageMaterial/pages/stock/useRecord.vue

@@ -4,7 +4,8 @@
     :isScroll="true"
     :refresherTriggered="refresherTriggered"
     @refresherrefresh="refresherrefresh"
-    @scrolltolower="scrolltolower">
+    @scrolltolower="scrolltolower"
+  >
     <template slot="header">
       <view class="search-container">
         <u-search
@@ -16,25 +17,27 @@
           v-model="keyword"
           @search="searchSubmit"
           @custom="searchSubmit"
-          @clear="searchSubmit">
+          @clear="searchSubmit"
+        >
         </u-search>
       </view>
       <view class="tab-container">
-      	<u-tabs
-      		:scrollable="true"
-      		:list="tabList"
-      		@click="changeTab"
-      		lineColor="#3D8FFD"
-      		:activeStyle="{
-      			color: '#3D8FFD'
-      		}"
-      		:inactiveStyle="{
-      			color: '#666666'
-      		}"
-      		itemStyle="height: 88rpx;">
-      	</u-tabs>
+        <!-- <u-tabs
+          :scrollable="true"
+          :list="tabList"
+          @click="changeTab"
+          lineColor="#3D8FFD"
+          :activeStyle="{
+            color: '#3D8FFD'
+          }"
+          :inactiveStyle="{
+            color: '#666666'
+          }"
+          itemStyle="height: 88rpx;"
+        >
+        </u-tabs> -->
         <view class="date" @tap="isShowDatePicker = true">
-          <view class="text">{{date || '请选择月份'}}</view>
+          <view class="text">{{ date || '请选择月份' }}</view>
           <u-icon name="arrow-down" size="12"></u-icon>
         </view>
       </view>
@@ -44,35 +47,38 @@
       <view class="item" v-for="(item, index) in dataList" :key="index">
         <view class="row">
           <view class="label">工单编号</view>
-          <view class="value">{{item.orderId}}</view>
+          <view class="value">{{ item.orderId }}</view>
         </view>
         <view class="row">
           <view class="label">关联工单</view>
-          <view class="value">{{item.refOrder}}</view>
+          <view class="value">{{ item.refOrder }}</view>
         </view>
         <view class="row">
           <view class="label">客户电话</view>
-          <view class="value">{{item.phone}}</view>
+          <view class="value">{{ item.phone }}</view>
         </view>
         <view class="row">
           <view class="label">使用日期</view>
-          <view class="value">{{item.useTime}}</view>
+          <view class="value">{{ item.useTime }}</view>
         </view>
         <view class="row">
           <view class="label">商品名称</view>
-          <view class="value">{{item.goodsName}}</view>
+          <view class="value">{{ item.goodsName }}</view>
         </view>
         <view class="row">
           <view class="label">商品代码</view>
-          <view class="value">{{item.goodsCode}}</view>
+          <view class="value">{{ item.goodsCode }}</view>
         </view>
         <view class="row">
           <view class="label">使用数量</view>
-          <view class="value"><text>{{item.useQty}}</text>{{item.unit}}</view>
+          <view class="value"
+            ><text>{{ item.useQty }}</text
+            >{{ item.unit }}</view
+          >
         </view>
         <view class="row">
           <view class="label">销售金额</view>
-          <view class="value price">{{item.normAmount}}元</view>
+          <view class="value price">{{ item.normAmount }}元</view>
         </view>
       </view>
     </view>
@@ -92,127 +98,130 @@
   <!-- #endif -->
 
   <!-- #ifndef H5 -->
-  <web-view :src="webViewHref(`/packageMaterial/pages/stock/useRecord`, pam, crossPagePam)" @message="crossPage.$listener"></web-view>
+  <web-view
+    :src="webViewHref(`/packageMaterial/pages/stock/useRecord`, pam, crossPagePam)"
+    @message="crossPage.$listener"
+  ></web-view>
   <!-- #endif -->
 </template>
 
 <script>
-  // #ifdef H5
-  export default {
-    data() {
-      return {
-				dataList: [],
-				pageNum: 1,
-				loadStatus: 0,
-        refresherTriggered: false,
-        keyword: '',
-        tabList: [
-          {name: '全部', value: ''},
-          {name: '辅材记录', value: 'M'},
-          {name: '配件记录', value: 'P'},
-        ],
-        isShowDatePicker: false,
-        datePickerValue: Number(new Date()),
-        date: '',
-        type: '',
-      }
-    },
-
-    onLoad() {
-			this.getList();
-    },
+// #ifdef H5
+export default {
+  data() {
+    return {
+		dataList: [],
+		pageNum: 1,
+		loadStatus: 0,
+      refresherTriggered: false,
+      keyword: '',
+      // tabList: [
+      //   {name: '全部', value: ''},
+      //   {name: '辅材记录', value: 'M'},
+      //   {name: '配件记录', value: 'P'},
+      // ],
+      type: 'M',
+      isShowDatePicker: false,
+      datePickerValue: Number(new Date()),
+      date: '',
+    }
+  },
 
-    methods: {
-      getList() {
-      	this.loadStatus = 1;
-      	this.$api.post('/material/norm/record/list', {
-          pageNum: this.pageNum,
-          pageSize: 10,
-          goodsType: this.type,
-          yearMonth: this.date,
-          orderId: this.keyword
-      	}).then(res => {
-      		this.loadStatus = 0;
-      		let list = res.data.records;
-      		if (list.length < 10) {
-      		  this.loadStatus = 2;
-      		}
-      		this.dataList = this.dataList.concat(list);
-      	}).catch(() => {
-      		this.loadStatus = 2;
-      	}).finally(res => {
-      		this.refresherTriggered = false;
-      	})
-      },
+  onLoad() {
+	this.getList();
+  },
 
-      searchSubmit() {
-        this.refreshList();
-      },
+  methods: {
+    getList() {
+    	this.loadStatus = 1;
+    	this.$api.post('/material/norm/record/list', {
+        pageNum: this.pageNum,
+        pageSize: 10,
+        goodsType: this.type,
+        yearMonth: this.date,
+        orderId: this.keyword
+    	}).then(res => {
+    		this.loadStatus = 0;
+    		let list = res.data.records;
+    		if (list.length < 10) {
+    		  this.loadStatus = 2;
+    		}
+    		this.dataList = this.dataList.concat(list);
+    	}).catch(() => {
+    		this.loadStatus = 2;
+    	}).finally(res => {
+    		this.refresherTriggered = false;
+    	})
+    },
 
-      changeTab(e) {
-      	this.type = e.value;
-        this.refreshList();
-      },
+    searchSubmit() {
+      this.refreshList();
+    },
 
-      resetDate() {
-        this.isShowDatePicker = false;
-        this.date = '';
-        this.refreshList();
-      },
+    changeTab(e) {
+    	this.type = e.value;
+      this.refreshList();
+    },
 
-      confirmDate(e) {
-        this.isShowDatePicker = false;
-        let time = new Date(e.value)
-        let y = time.getFullYear();
-        let m = (time.getMonth()+1) < 10 ? '0' + (time.getMonth()+1) : time.getMonth()+1;
-        this.date = `${y}-${m}`;
-        this.refreshList();
-      },
+    resetDate() {
+      this.isShowDatePicker = false;
+      this.date = '';
+      this.refreshList();
+    },
 
-      refreshList() {
-      	this.dataList = [];
-      	this.pageNum = 1;
-      	this.getList();
-      },
+    confirmDate(e) {
+      this.isShowDatePicker = false;
+      let time = new Date(e.value)
+      let y = time.getFullYear();
+      let m = (time.getMonth()+1) < 10 ? '0' + (time.getMonth()+1) : time.getMonth()+1;
+      this.date = `${y}-${m}`;
+      this.refreshList();
+    },
 
-      // 滚动到底部
-      scrolltolower(e) {
-      	if (this.loadStatus === 0) {
-      		this.pageNum++;
-      		this.getList();
-      	}
-      },
+    refreshList() {
+    	this.dataList = [];
+    	this.pageNum = 1;
+    	this.getList();
+    },
 
-      // 触发下拉刷新
-      refresherrefresh(e) {
-      	this.refresherTriggered = true;
-      	this.refreshList();
-      },
+    // 滚动到底部
+    scrolltolower(e) {
+    	if (this.loadStatus === 0) {
+    		this.pageNum++;
+    		this.getList();
+    	}
     },
-  }
 
-  // #endif
-  // #ifndef H5
-  export default {
-    data() {
-      return {
-        pam: {},
-      }
+    // 触发下拉刷新
+    refresherrefresh(e) {
+    	this.refresherTriggered = true;
+    	this.refreshList();
     },
-    onLoad(pam) {
-      this.pam = pam;
+  },
+}
+
+// #endif
+// #ifndef H5
+export default {
+  data() {
+    return {
+      pam: {},
     }
+  },
+  onLoad(pam) {
+    this.pam = pam;
   }
-  // #endif
+}
+// #endif
 </script>
 
 <style lang="scss" scoped>
 .search-container {
-  background: #FFFFFF;
+  background: #ffffff;
   padding: 0 20rpx;
 }
 .tab-container {
-  background: #FFFFFF;
+  background: #ffffff;
   display: flex;
   align-items: center;
   padding: 0 20rpx;
@@ -224,7 +233,8 @@
     display: flex;
     align-items: center;
     justify-content: space-between;
-    margin-left: 40rpx;
+    // margin-left: 40rpx;
+    margin: 10rpx 0;
     padding: 0 12rpx 0 20rpx;
     border: 1px solid #eaeaea;
     border-radius: 8rpx;

+ 25 - 5
src/pages/index/index.vue

@@ -191,8 +191,8 @@
         <!-- 其他 -->
         <view class="other-container card" v-if="isWorkerUser && userInfo.moduleMaterialPart">
           <view class="home-title">
-            <view class="left">辅配件</view>
-            <view class="right" @tap="toPage(`/packageMaterial/pages/index`)">
+            <view class="left">辅</view>
+            <view class="right" @tap="toPage(`/packageMaterial/pages/index?type=M`)">
               <text class="text">查看详细</text>
               <text class="iconfont icon-jinru"></text>
             </view>
@@ -205,6 +205,22 @@
           </view>
         </view>
 
+        <view class="other-container card" v-if="isWorkerUser && userInfo.moduleMaterialPart">
+          <view class="home-title">
+            <view class="left">配件</view>
+            <view class="right" @tap="toPage(`/packageMaterial/pages/index?type=P`)">
+              <text class="text">查看详细</text>
+              <text class="iconfont icon-jinru"></text>
+            </view>
+          </view>
+          <view class="list">
+            <view class="item" v-for="(item, index) in otherList2" :key="index" @tap="toPage(item.url)">
+              <image :src="require(`@/static/images/home/other-icon${item.code}.png`)" mode=""></image>
+              <text>{{ item.title }}</text>
+            </view>
+          </view>
+        </view>
+
         <!-- 联系我们 -->
         <view class="contact-container card">
           <view class="home-title">
@@ -339,9 +355,13 @@ export default {
       ],
       otherList: [
         // 其他列表
-        { code: 1, title: '我的库存', url: `/packageMaterial/pages/stock/index` },
-        { code: 2, title: '辅材收款', url: `/packageMaterial/pages/sale/index?type=M` },
-        { code: 3, title: '配件收款', url: `/packageMaterial/pages/newSale/index?type=P` }
+        { code: 1, title: '辅材管理', url: `/packageMaterial/pages/stock/index` },
+        { code: 2, title: '辅材收款', url: `/packageMaterial/pages/sale/index?type=M` }
+      ],
+      otherList2: [
+        // 其他列表
+        { code: 1, title: '配件管理', url: `/packageAttachment/pages/fittingsManagement/index` },
+        { code: 2, title: '配件收款', url: `/packageMaterial/pages/newSale/index?type=P` }
       ],
       bannerList: [], // 轮播图列表
       couponList: [], // 可领取优惠券列表

+ 0 - 6
src/pages/mine/index.vue

@@ -350,12 +350,6 @@ export default {
           icon: 'icon-kehu',
           link: '/packageMine/pages/wodeanwei',
           show: this.isWorkerUser
-        },
-        {
-          name: '配件管理',
-          icon: 'icon-kehu',
-          link: '/packageAttachment/pages/fittingsManagement/index',
-          show: true
         }
       ]
     },