Jelajahi Sumber

1、修改选择数据字典到共通选择界面

zhoux 2 tahun lalu
induk
melakukan
d5cccf4c76

+ 1 - 1
api/pages/ivt/outbound.js

@@ -25,7 +25,7 @@ module.exports = {
       choosePurchaseOrder: { key: 'choosePurchaseOrder', url: '/package-purchase/pages/purchase-receipt/choose-purchase-order/choose-purchase-order' },
       openingInventory: { key: 'openingInventory', url: '/package-base-select/pages/select-data/select-data',type:'warehouse'  },
       chooseStorageObject: { key: 'chooseStorageObject',  url: '/package-base-select/pages/select-data/select-data',type:'objectType'  },
-      chooseStorageOutReason: { key: 'chooseStorageOutReason', url: '/package-base-select/pages/select-data-dictionary/select-data-dictionary'  },
+      chooseStorageOutReason: { key: 'chooseStorageOutReason', url:'/package-base-select/pages/select-data/select-data',type:'dictionary',dictCode:'基础资料-出库'  },
       selectSourceSaleOrder:{
         key:'selectSourceSaleOrder',url:'/package-base-select/pages/select-source-sale-order/select-source-sale-order'
       }

+ 1 - 1
api/pages/ivt/outboundOther.js

@@ -23,7 +23,7 @@ module.exports = {
       chooseOrg: { key: 'chooseOrg',url: '/package-base-select/pages/select-data/select-data',type:'org' }, 
       chooseWh: { key: 'chooseWh', url: '/package-base-select/pages/select-data/select-data',type:'warehouse'  },
       chooseStorageObject: { key: 'chooseStorageObject', url: '/package-base-select/pages/select-data/select-data',type:'objectType'  },
-      chooseStorageOutReason: { key: 'chooseStorageOutReason', url: '/package-base-select/pages/select-data-dictionary/select-data-dictionary'  },
+      chooseStorageOutReason: { key: 'chooseStorageOutReason',  url:'/package-base-select/pages/select-data/select-data',type:'dictionary',dictCode:'基础资料-出库' },
       openingInventory: { key: 'openingInventory', url: '/package-base-select/pages/select-data/select-data',type:'warehouse'  },
     }
   }

+ 0 - 1
app.json

@@ -188,7 +188,6 @@
             "name": "package-base-select",
             "pages": [
                 "pages/select-collection_confirm/select-collection_confirm",
-                "pages/select-data-dictionary/select-data-dictionary",
                 "pages/select-data/select-data",
                 "pages/select-staff-right/select-staff-right",
                 "pages/select-staff-purview/select-staff-purview",

+ 0 - 78
package-base-select/pages/select-data-dictionary/select-data-dictionary.js

@@ -1,78 +0,0 @@
-const Constants = require('@/utils/Constants.js')
-const mixins = require('@/mixins/index.js')
-
-Page({
-    mixins: [mixins],
-    /**
-     * 页面的初始数据
-     */
-    data: {
-        // 路由
-        routeObjName: 'common',
-        // 列表区(内容)
-        contentList: [
-            { name: 'dataCode', title: '数据编码' },
-            { name: 'dictCode', title: '字典项目' },
-        ],
-    },
-
-    /**
-     * @desc : 点击事件-返回数据
-     * @author : 姜永辉
-     * @date : 2022/5/23 15:16
-     */
-    toDetail(e) {
-        let item = e.detail.item
-        const eventChannel = this.getOpenerEventChannel();
-        eventChannel.emit('bindData', {
-            data: {
-                id: item.dataId,
-                name: item.dataValue,
-                dictCode: item.dictCode,
-                dataCode: item.dataCode,
-                flgDefault: item.flgDefault,
-            }
-        })
-        wx.navigateBack({
-            delta: 1
-        })
-    },
-
-    /** 
-   * @desc : 查询 入库单
-   * @date : 2024年3月8日
-   * @author : 姜永辉
-   */
-    getData(params) { 
-        // 从上一个页面的urlkeypara传入
-        params.dictCode = this.data.item.urlKeyParam
-        return this.excute(this.data.service, this.data.service.getDictionaryData, params);
-    },
- 
- /**
-   * @desc : 加载数据
-   * @date : 2024/2/1 15:49
-   * @author : 姜永辉
-   */
-  loadInit() { 
-    // 销售出库
-    if (this.data.item.outType == Constants.outType.sale) {
-      wx.setNavigationBarTitle({
-        title: mixins.$t('saleOutBound'),
-      })
-      
-
-    } else if (this.data.item.outType == Constants.outType.other) {
-      // 其他出库
-      wx.setNavigationBarTitle({
-        title: mixins.$t('otherOutWh'),
-      })
-     
-    } else {
-      
-      wx.setNavigationBarTitle({
-        title: mixins.$t('purReturnOutBound'),
-      })
-    }
-  },
-})

+ 0 - 4
package-base-select/pages/select-data-dictionary/select-data-dictionary.json

@@ -1,4 +0,0 @@
-{
-    "usingComponents": {},
-    "navigationBarTitleText":""
-  }

+ 0 - 11
package-base-select/pages/select-data-dictionary/select-data-dictionary.wxml

@@ -1,11 +0,0 @@
-<loading wx:if="{{loading}}"></loading>
-<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
-
-<!-- 暂无数据 -->
-<van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
-
-<!-- 列表区 -->
-<dk-list list="{{tableData}}"   title="dataValue"  flgPoint = "{{false}}"  titleImageFlag= "{{false}}" content="{{contentList}}"   bind:toDetail="toDetail"  ></dk-list>
-
-<van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}~</van-divider> 
-  

+ 0 - 1
package-base-select/pages/select-data-dictionary/select-data-dictionary.wxss

@@ -1 +0,0 @@
-/* package-base-select/pages/select-data-dictionary/select-data-dictionary.wxss */