소스 검색

商品属性相关

于继渤 2 년 전
부모
커밋
231ff4139c
21개의 변경된 파일1086개의 추가작업 그리고 49개의 파일을 삭제
  1. 4 0
      app.json
  2. 66 0
      package2/pages/product-attribute/metering-unit/metering-unit.js
  3. 3 0
      package2/pages/product-attribute/metering-unit/metering-unit.json
  4. 2 0
      package2/pages/product-attribute/metering-unit/metering-unit.wxml
  5. 1 0
      package2/pages/product-attribute/metering-unit/metering-unit.wxss
  6. 404 45
      package2/pages/product-attribute/product-attribute.js
  7. 2 1
      package2/pages/product-attribute/product-attribute.json
  8. 322 2
      package2/pages/product-attribute/product-attribute.wxml
  9. 66 1
      package2/pages/product-attribute/product-attribute.wxss
  10. 66 0
      package2/pages/product-attribute/product-brand/product-brand.js
  11. 3 0
      package2/pages/product-attribute/product-brand/product-brand.json
  12. 2 0
      package2/pages/product-attribute/product-brand/product-brand.wxml
  13. 1 0
      package2/pages/product-attribute/product-brand/product-brand.wxss
  14. 66 0
      package2/pages/product-attribute/product-series/product-series.js
  15. 3 0
      package2/pages/product-attribute/product-series/product-series.json
  16. 2 0
      package2/pages/product-attribute/product-series/product-series.wxml
  17. 1 0
      package2/pages/product-attribute/product-series/product-series.wxss
  18. 66 0
      package2/pages/product-attribute/product-types/product-types.js
  19. 3 0
      package2/pages/product-attribute/product-types/product-types.json
  20. 2 0
      package2/pages/product-attribute/product-types/product-types.wxml
  21. 1 0
      package2/pages/product-attribute/product-types/product-types.wxss

+ 4 - 0
app.json

@@ -22,6 +22,10 @@
                 "pages/product-file/metering-unit/metering-unit",
                 "pages/product-file/warehouse-archives/warehouse-archives",
                 "pages/product-attribute/product-attribute",
+                "pages/product-attribute/product-brand/product-brand",
+                "pages/product-attribute/product-types/product-types",
+                "pages/product-attribute/product-series/product-series",
+                "pages/product-attribute/metering-unit/metering-unit",
                 "pages/customer-list/customer-list",
                 "pages/customer-reception/customer-reception",
                 "pages/customer-follow-up/customer-follow-up",

+ 66 - 0
package2/pages/product-attribute/metering-unit/metering-unit.js

@@ -0,0 +1,66 @@
+// package2/pages/product-attribute/metering-unit/metering-unit.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
package2/pages/product-attribute/metering-unit/metering-unit.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
package2/pages/product-attribute/metering-unit/metering-unit.wxml

@@ -0,0 +1,2 @@
+<!--package2/pages/product-attribute/metering-unit/metering-unit.wxml-->
+<text>package2/pages/product-attribute/metering-unit/metering-unit.wxml</text>

+ 1 - 0
package2/pages/product-attribute/metering-unit/metering-unit.wxss

@@ -0,0 +1 @@
+/* package2/pages/product-attribute/metering-unit/metering-unit.wxss */

+ 404 - 45
package2/pages/product-attribute/product-attribute.js

@@ -1,66 +1,425 @@
-// package2/pages/product-attribute/product-attribute.js
+/*******************************************************************************
+ * Copyright(c) 2022 dongke All rights reserved. / Confidential
+ * 类的信息:
+ *		1.程序名称:
+ * 编辑履历:
+ *		作者				日期					版本				修改内容
+ *		于继渤		 2024-1-23			1.00		    商品属性
+ *******************************************************************************/
 Page({
 
-    /**
-     * 页面的初始数据
-     */
-    data: {
-
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    sideKey: 0,
+    listTitle: '',
+    showPopup: false,
+    leftData: [],
+    showPopupItem: {},
+    fieldData: {},
+    statusItem: {
+      text: '全部',
+      value: -1
     },
+    statusList: [
+      { checked: false, text: '有效', value: 1 },
+      { checked: false, text: '无效', value: 0 },
+      { checked: true, text: '全部', value: -1 },
+    ], //状态
+    fieldList: [
+      {
+        typeName: '商品品牌',
+        code: '品牌编码',
+        name: '品牌名称',
+        supplierName: '供应商'
+      },
+      {
+        typeName: '商品种类',
+        channelCode: '渠道编码',
+        channelName: '渠道名称'
+      },
+      {
+        typeName: '商品系列',
+        incomeCode: '收入编码',
+        incomeName: '收入名称'
+      },
+      {
+        typeName: '计量单位',
+        expenditureCode: '支出编码',
+        expenditureName: '支出名称'
+      },
+      {
+        typeName: '入库原因',
+        reasonCode: '原因编码',
+        reasonName: '原因名称'
+      }
 
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad(options) {
 
+    ], //字段渲染
+    // 渲染数据
+    test00: [{
+      code: 'PP00001',
+      name: '蒙娜丽莎瓷砖',
+      supplierName: '广东蒙娜丽莎新型材料集团有限公司',
+      flagValue: true
+    },
+    {
+      code: 'PP00002',
+      name: '箭牌卫浴',
+      supplierName: 'ARROW箭牌家居集团',
+      flagValue: true
     },
+    {
+      code: 'PP00003',
+      name: '恒洁卫浴',
+      supplierName: '恒洁卫浴集团有限公司',
+      flagValue: true
+    },
+    ],
+    test01: [
+      {
+        name: '陶瓷类',
+        code: 'PP00001',
+        supplierName: '广东蒙娜丽莎新型材料集团有限公司',
+        flagValue: true,
+        arrow_1: false,
+        arrow_1_list: []
+      },
+      {
+        name: '浴室柜类',
+        code: 'PP00002',
+        flagValue: true,
+        arrow_1: true,
+        arrow_1_list: [
+          {
+            name: '原木柜',
+            code: 'PP00002',
+            flagValue: true,
+            arrow_2: true,
+            arrow_2_list: [
+              {
+                name: '原木柜(主柜)',
+                code: 'PP00002',
+                flagValue: true,
+              }
+            ]
+          },
+          {
+            name: '古典柜',
+            code: 'PP00002',
+            flagValue: false,
+            arrow_2: true,
+            arrow_2_list: [
+              {
+                name: '金属柜',
+                code: 'PP00002',
+                flagValue: false,
+              }
+            ]
+          }
+        ]}
+    ],
+    test02: [
+      {
+        name: '原木系列',
+        flagValue: true
+      },
+      {
+        name: '金属系列',
+        flagValue: true
+      },
+      {
+        name: '古典系列',
+        flagValue: true
+      },
+      {
+        name: '沐浴系列',
+        flagValue: false
+      },
+    ],
+    test03: [
+      {
+        name: '米',
+        decimal: '2',
+        flagValue: true
+      },
+      {
+        name: '箱',
+        decimal: '0',
+        flagValue: true,
+        list:[
+          {
+            name: '包*5',
+            decimal: '0',
+            flagValue: true
+          },
+          {
+            name: '片*3',
+            decimal: '0',
+            flagValue: false
+          },
+        ]
+      },
+      {
+        name: '平方米',
+        decimal: '6',
+        flagValue: false
+      },
+      {
+        name: '个',
+        decimal: '0',
+        flagValue: false
+      },
+    ],
+    test04: [
+      {
+        reasonCode: 'RK00001',
+        reasonName: '期初入库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'RK00002',
+        reasonName: '其他入库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'RK00003',
+        reasonName: '采购入库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'RK00004',
+        reasonName: '销售回库',
+        flagValue: true
+      }
+    ],
+    test05: [
+      {
+        reasonCode: 'CK00001',
+        reasonName: '销售出库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'CK00002',
+        reasonName: '其他出库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'CK00003',
+        reasonName: '采购退货出库',
+        flagValue: true
+      },
+      {
+        reasonCode: 'CK00004',
+        reasonName: '调货出库',
+        flagValue: true
+      }
+    ],
+    test06: [
+      {
+        paymentCode: 'SF00001',
+        paymentName: '微信',
+        flagValue: true
+      },
+      {
+        paymentCode: 'SF00002',
+        paymentName: '现金',
+        flagValue: true
+      },
+      {
+        paymentCode: 'SF00003',
+        paymentName: '银行转账',
+        flagValue: true
+      },
+      {
+        paymentCode: 'SF00004',
+        paymentName: '支付宝',
+        flagValue: true
+      }
+    ],
+  },
 
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
+  dropdownSwitchCommit(e) {
+    console.log(e)
+  },
 
-    },
 
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow() {
 
-    },
+  /**
+   * @desc : 分类切换
+   * @author : 于继渤
+   * @date : 2022/5/26 20:16
+   */
+  changeSidebar(e) {
+    console.log(e)
+    let id = this.data.leftData[e.detail].id
+    let name = this.data.leftData[e.detail].name
+    let fieldList = this.data.fieldList
+    let tableData = this.data.tableData
+    console.log('name', name)
+    // let sidebarList = fieldList.filter(res => {
+    //   return res.typeName == name
+    // })
+    if (name == '商品品牌') {
+      tableData = this.data.test00
+    }
+    if (name == '商品种类') {
+      tableData = this.data.test01
+    }
+    if (name == '商品系列') {
+      tableData = this.data.test02
+    }
+    if (name == '计量单位') {
+      tableData = this.data.test03
+    }
 
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
+    this.setData({
+      sideKey: e.detail,
+      tableData: tableData,
+      listTitle: name,
+      searchText: ''
+    })
 
-    },
+    // 查询
+    // this.doSearch()
+  },
+  /**
+   * @desc : 左滑功能
+   * @author : 于继渤
+   * @date : 2024/1/23 9:16
+   */
+  onCloseDel(e) {
+    console.log(e)
+  },
 
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
+  /**
+   * @desc : 列表对象点击
+   * @author : 于继渤
+   * @date : 2024/1/23 9:16
+   */
+  toDetail(e) {
+    console.log(e)
+    let index = e.currentTarget.dataset.index
+    let tableData = this.data.tableData
+    this.setData({
+      showPopup: true,
+      showPopupItem: tableData[index]
+    })
+  },
+  /**
+ * @desc : 关闭弹窗
+ * @author : 于继渤
+ * @date : 2024/1/23 9:16
+ */
+  onClosePopup() {
+    this.setData({
+      showPopup: false
+    })
+  },
+  /**
+   * @desc : 新建
+   * @author : 于继渤
+   * @date : 2024/1/23 9:16
+   */
+  toAdd() {
+    this.setData({
+      showPopupItem: {},
+      showPopup: true
+    })
+  },
 
-    },
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+    let _this = this;
+    wx.getSystemInfo({
+      success: function (res) {
+        _this.setData({
+          windowHeight: res.windowHeight,
+          windowWidth: res.windowWidth
+        })
+      }
+    })
 
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
 
-    },
 
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
+    let leftData = [
+      {
+        id: 1,
+        name: '商品品牌'
+      },
+      {
+        id: 2,
+        name: '商品种类'
+      },
+      {
+        id: 3,
+        name: '商品系列'
+      },
+      {
+        id: 4,
+        name: '计量单位'
+      }
 
-    },
+    ]
+    let tableData = this.data.test00
+    this.setData({
+      leftData: leftData,
+      tableData: tableData,
+      listTitle: leftData[0].name,
+      fieldData: this.data.fieldList[0]
 
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
+    })
+  },
 
-    }
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
 })

+ 2 - 1
package2/pages/product-attribute/product-attribute.json

@@ -1,3 +1,4 @@
 {
-    "usingComponents": {}
+    "usingComponents": {},
+    "navigationBarTitleText": "商品属性"
 }

+ 322 - 2
package2/pages/product-attribute/product-attribute.wxml

@@ -1,2 +1,322 @@
-<!--package2/pages/product-attribute/product-attribute.wxml-->
-<text>package2/pages/product-attribute/product-attribute.wxml</text>
+<!-- 顶部信息 -->
+<van-sticky scroll-top="0">
+  <van-search model:value="{{ searchText }}" bind:change="onSearchText" bind:search="doSearch" placeholder="输入要素名称/备注"> </van-search>
+  <van-dropdown-menu active-color="#1B365D">
+
+    <van-dropdown-item id="status" title="{{statusItem.text }}">
+      <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdownSwitchCommit'></dk-dropdown-switch>
+    </van-dropdown-item>
+  </van-dropdown-menu>
+
+</van-sticky>
+<view style="display: flex;">
+  <!-- 左侧菜单列表 -->
+  <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class">
+    <view style="height:calc({{windowHeight+'px'}} - {{'220rpx'}});overflow: scroll;">
+      <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.name}}" data-id="{{item.id}}" wx:for="{{leftData}}" />
+    </view>
+  </van-sidebar>
+  <!-- 内容列表 -->
+  <view style="margin-left: 140rpx;width: 100%;">
+    <view wx:for="{{tableData}}" wx:key="index" class="main-class">
+      <van-swipe-cell right-width="{{ 65 }}">
+        <view bind:tap="toDetail" data-index="{{index}}" class="main-foot" style="border-radius:15rpx;">
+          <view class="table-content">
+            <view wx:if="{{listTitle == '商品品牌'}}">
+              <view class="table-content-row">
+                <view style="display: flex;">
+                  <view style="font-size: 15px;font-weight: 600;width: 80%;">
+                    {{fieldData.typeName}}
+                  </view>
+                  <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                    <text style=" font-size: 13px;color:  #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
+                  </view>
+                </view>
+
+              </view>
+              <view class="table-row">
+                <view class="table-content-row">
+                  <view style="display: flex;">
+                    <view class="table-content-row-font">
+                      <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="品牌编码" copyValue="{{item.code}}"></dk-text>
+                    </view>
+                    <view class="table-content-class">
+                      {{item.code}}
+                    </view>
+                  </view>
+                </view>
+              </view>
+              <view class="table-row">
+                <view class="table-content-row">
+                  <view style="display: flex;">
+                    <view class="table-content-row-font">
+                      <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="品牌名称" copyValue="{{item.name}}"></dk-text>
+                    </view>
+                    <view class="table-content-class">
+                      {{item.name}}
+                    </view>
+                  </view>
+                </view>
+              </view>
+
+              <view class="table-row">
+                <view class="table-content-row">
+                  <view style="display: flex;">
+                    <view class="table-content-row-font">
+                      <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="供应商" copyValue="{{item.supplierName}}"></dk-text>
+                    </view>
+                    <view class="table-content-class">
+                      {{item.supplierName}}
+                    </view>
+                  </view>
+                </view>
+              </view>
+            </view>
+
+            <view wx:if="{{listTitle == '商品种类'}}">
+              <view class="table-content">
+                <view class="table-content-row">
+                  <view style="display: flex;">
+                    <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
+                      <van-icon name="{{item.arrow_1 ? 'arrow-down':'arrow'}}" color="#1B365D" />
+                    </view>
+
+
+                    <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{index}}">
+                      {{item.name}}
+                    </view>
+
+
+                    <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                      <text style=" font-size: 13px;color:  #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
+                    </view>
+
+                  </view>
+
+                </view>
+
+                <view style="width: 80%;flex-direction: row;margin-top: 0px;" wx:if="{{item.arrow_1}}">
+                  <view wx:for="{{item.arrow_1_list}}" wx:for-index="arrow_1_index" wx:for-item="arrow_1_item" class="table-content-row" style="width:100%;margin-left: 20rpx;">
+                    <view style="display: flex;">
+                      <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
+                        <van-icon name="{{arrow_1_item.arrow_2 ? 'arrow-down':'arrow'}}" color="#1B365D" />
+                      </view>
+                      <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{arrow_1_index}}">
+                        {{arrow_1_item.name}}
+                      </view>
+                      <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ arrow_1_item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                        <text style=" font-size: 13px;color:  #FFFFFF;">{{arrow_1_item.flagValue ? '启用' : '停用'}}</text>
+                      </view>
+                    </view>
+
+                    <view class="table-row" style="width: 100%;" wx:if="{{arrow_1_item.arrow_2}}">
+                      <view wx:for="{{arrow_1_item.arrow_2_list}}" wx:for-index="arrow_2_index" wx:for-item="arrow_2_item" class="table-content-row" style="width:100%;padding-left:10px;padding-right: 2rpx;">
+                        <view style="display: flex;">
+                          <view style="width: 10%;" bind:tap="openArrow" data-index="{{index}}">
+                            <van-icon name="{{arrow_2_item.arrow_2 ? 'arrow-down':'arrow'}}" color="#1B365D" />
+                          </view>
+                          <view style="font-size: 14px;font-weight: 600;width: 80%;" bind:tap="openArrow" data-index="{{arrow_2_index}}">
+                            {{arrow_2_item.name}}
+                          </view>
+                          <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ arrow_2_item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                            <text style=" font-size: 13px;color:  #FFFFFF;">{{arrow_2_item.flagValue ? '启用' : '停用'}}</text>
+                          </view>
+                        </view>
+                      </view>
+                    </view>
+                  </view>
+                </view>
+
+
+
+              </view>
+            </view>
+
+            <view wx:if="{{listTitle == '商品系列'}}">
+              <view class="table-content-row">
+                <view style="display: flex;">
+                  <view style="font-size: 15px;font-weight: 600;width: 80%;">
+                    {{item.name}}
+                  </view>
+                  <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                    <text style=" font-size: 13px;color:  #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
+                  </view>
+                </view>
+
+              </view>
+
+            </view>
+
+            <view wx:if="{{listTitle == '计量单位'}}">
+              <view class="table-content">
+                <view class="table-content-row">
+                  <view style="display: flex;">
+
+                    <view style="font-size: 14px;font-weight: 600;width: 50%;">
+                      {{item.name}}
+                    </view>
+                    <view style="font-size: 14px;font-weight: 600;width: 30%;margin-left: 20rpx;">
+                      {{'小数:' +item.decimal}}
+                    </view>
+                    <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                      <text style=" font-size: 13px;color:  #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
+                    </view>
+                  </view>
+
+                </view>
+                <view wx:if="{{item.list && item.list.length > 0}}">
+                  <view class="table-content-row" wx:for="{{item.list}}" wx:for-index="index_" wx:for-item="item_">
+                    <view style="display: flex;">
+
+                      <view style="font-size: 14px;font-weight: 600;width: 50%;margin-left: 20rpx;">
+                        {{item_.name}}
+                      </view>
+                      <view style="font-size: 14px;font-weight: 600;width: 30%;margin-left: 20rpx;">
+                        {{'小数:' +item_.decimal}}
+                      </view>
+
+                      <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item_.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
+                        <text style=" font-size: 13px;color:  #FFFFFF;">{{item_.flagValue ? '启用' : '停用'}}</text>
+                      </view>
+                    </view>
+                  </view>
+                </view>
+
+
+
+
+
+              </view>
+            </view>
+
+
+
+
+
+
+
+          </view>
+        </view>
+        <view data-index="{{index}}" bind:tap="onCloseDel" slot="right">{{item.flagValue ? '停用' : '启用'}}</view>
+      </van-swipe-cell>
+
+    </view>
+    <!-- 保留高度 -->
+    <view style="height: 220rpx;"></view>
+  </view>
+</view>
+
+
+<!-- 弹窗 编辑/新建-->
+<van-popup show="{{showPopup}}" position="bottom" bind:close="onClosePopup" custom-class="function-pop-class">
+
+  <view style="background-color:#F8F9FD;color:#1B365D;font-size: 17px;font-weight: 600;display: flex;justify-content: left;align-items: center;padding: 40rpx;">
+    <view>{{listTitle}}</view>
+  </view>
+
+  <view wx:if="{{listTitle == '商品品牌'}}">
+    <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" input-align="right" label="品牌编码" placeholder="{{'请输入' + '品牌编码'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" maxlength="50" value="{{'蒙娜丽莎瓷砖'}}" input-align="right" label="品牌名称" placeholder="{{'请输入' + '品牌名称'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="product-types" maxlength="25" type="text" value="{{'' }}" label="供应商" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
+    </van-field>
+  </view>
+
+  <view wx:if="{{listTitle == '商品种类'}}">
+    <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'ZL00001'}}" input-align="right" label="种类编码" placeholder="{{'请输入' + '种类编码'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" maxlength="50" value="{{'浴室柜'}}" input-align="right" label="种类名称" placeholder="{{'请输入' + '种类名称'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="product-types" maxlength="25" type="text" value="{{'' }}" label="父级" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
+    </van-field>
+  </view>
+
+  <view wx:if="{{listTitle == '商品系列'}}">
+    <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'ZL00001'}}" input-align="right" label="系列编码" placeholder="{{'请输入' + '系列编码'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" maxlength="50" value="{{'浴室柜'}}" input-align="right" label="系列名称" placeholder="{{'请输入' + '系列名称'}}" autosize border="{{ false }}">
+    </van-field>
+
+  </view>
+
+
+  <view wx:if="{{listTitle == '计量单位'}}">
+    <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" input-align="right" label="单位编码" placeholder="{{'请输入' + '单位编码'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" maxlength="50" value="{{'蒙娜丽莎瓷砖'}}" input-align="right" label="单位名称" placeholder="{{'请输入' + '单位名称'}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" maxlength="50" value="{{'0'}}" input-align="right" label="小数位数" placeholder="{{'请输入' + '品牌名称'}}" autosize border="{{ false }}">
+    </van-field>
+
+    <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="" input-align="right" label="备注" placeholder="{{'请输入' + '备注'}}" autosize border="{{ false }}"></van-field>
+
+    <view style="height: 40rpx;color:#95A8CB;font-size: 12px;text-align: center;">添加辅助单位</view>
+
+    <van-field input-width="200rpx" disabled="{{true}}" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ 'JL00001' }}" input-align="right" label="辅助单位编码" placeholder="" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+    </van-field>
+
+
+
+    <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ '浴室柜' }}" input-align="right" label="辅助单位名称" placeholder="" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+    </van-field>
+
+
+    <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ '0' }}" input-align="right" label="小数位数" placeholder="" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+    </van-field>
+
+    <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ '1' }}" input-align="right" label="单位换算" placeholder="" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+    </van-field>
+
+   
+  </view>
+
+  <!-- <view wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value" wx:if="{{'typeName' != key}}">
+
+    <van-field wx:if="{{key == 'warehouseCode' || key == 'channelCode' || key =='incomeCode' || key =='expenditureCode' || key =='reasonCode'|| key =='paymentCode' }}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
+    </van-field>
+    <van-field wx:if="{{key !== 'warehouseCode' &&  key !== 'channelCode' &&  key !=='incomeCode' && key !=='expenditureCode' &&  key !=='reasonCode' && key !=='paymentCode' }}" disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="{{(key == 'warehouseName' || key == 'channelName' || key =='incomeName' &&  key =='expenditureName' || key =='reasonName'|| key =='paymentName' ) ? 'red-label':'' }}" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
+    </van-field>
+
+
+
+  </view> -->
+
+  <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="" input-align="right" label="备注" placeholder="{{'请输入' + '备注'}}" autosize border="{{ false }}">
+  </van-field>
+
+
+
+  <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.name }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+  </van-field>
+
+  <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="仓库主管" placeholder="请输入仓库主管" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+  </van-field>
+
+  <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="主管电话" placeholder="请输入主管电话" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+  </van-field>
+
+  <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.remark }}" input-align="right" label="备注" placeholder="请输入备注" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+  </van-field> -->
+
+  <!-- 保留 -->
+  <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ form.customerForm.addressNo }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
+  </van-field> -->
+
+
+
+  <view style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;">
+    <view style="width:48%">
+      <van-button size="large" plain round color="#1B365D" custom-style="height:88rpx;" bind:click="onClosePopup" type="default">取消
+      </van-button>
+    </view>
+    <view style="width: 4%;"></view>
+    <view style="width:48%;">
+      <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">保存
+      </van-button>
+    </view>
+  </view>
+</van-popup>
+
+<!-- 底部信息 -->
+<dk-save-bottom flagTypeName="basic-data" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />

+ 66 - 1
package2/pages/product-attribute/product-attribute.wxss

@@ -1 +1,66 @@
-/* package2/pages/product-attribute/product-attribute.wxss */
+page{
+  background-color: white;
+}
+.left-class{
+  color:#0072ff;
+  position: fixed;
+  left:20rpx;
+  top: 196rpx;
+  width:130rpx !important;
+  
+}
+.sidebar-item{
+  padding: 30rpx 25rpx 20rpx 35rpx !important;
+  font-size:13px !important;
+  background: #ECF2FF !important;
+  color: #95A8CB !important;
+  
+}
+
+.sidebar-item-before{
+  padding: 30rpx 25rpx 20rpx 35rpx !important;
+  font-size:13px !important;
+  background: #ECF2FF !important;
+  border-bottom-right-radius: 30rpx;
+  color: #95A8CB !important;
+  
+}
+
+.sidebar-item-next{
+  padding: 30rpx 25rpx 20rpx 35rpx !important;
+  font-size:13px !important;
+  background: #ECF2FF !important;
+  border-top-right-radius: 30rpx;
+  color: #95A8CB !important;
+  box-shadow: 0px 10px 20px 0px rgba(225, 229, 238, 0.6);
+
+}
+
+.van-sidebar-item--selected{
+  position: relative;
+  background: #fff !important;
+  border-radius: 15rpx 30rpx 30rpx 15rpx !important;
+  border: 0 !important;
+  color: black  !important;
+  /* border-top-left-radius: 0;
+  border-top-right-radius: 30rpx;
+  border-bottom-left-radius: 0;
+  border-bottom-right-radius: 30rpx; */
+}
+
+/**左侧字体样式*/
+.van-sidebar-item__text{
+  width: 70rpx !important;
+}
+
+.van-sidebar-item--selected::after{
+  content: '';
+  position: absolute;
+  left: 0;
+  height: 40rpx;
+  width: 6rpx;
+  background-color: #1B365D;
+  top: calc((100% - 40rpx)/2);
+}
+
+

+ 66 - 0
package2/pages/product-attribute/product-brand/product-brand.js

@@ -0,0 +1,66 @@
+// package2/pages/product-attribute/product-brand/product-brand.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
package2/pages/product-attribute/product-brand/product-brand.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
package2/pages/product-attribute/product-brand/product-brand.wxml

@@ -0,0 +1,2 @@
+<!--package2/pages/product-attribute/product-brand/product-brand.wxml-->
+<text>package2/pages/product-attribute/product-brand/product-brand.wxml</text>

+ 1 - 0
package2/pages/product-attribute/product-brand/product-brand.wxss

@@ -0,0 +1 @@
+/* package2/pages/product-attribute/product-brand/product-brand.wxss */

+ 66 - 0
package2/pages/product-attribute/product-series/product-series.js

@@ -0,0 +1,66 @@
+// package2/pages/product-attribute/product-series/product-series.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
package2/pages/product-attribute/product-series/product-series.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
package2/pages/product-attribute/product-series/product-series.wxml

@@ -0,0 +1,2 @@
+<!--package2/pages/product-attribute/product-series/product-series.wxml-->
+<text>package2/pages/product-attribute/product-series/product-series.wxml</text>

+ 1 - 0
package2/pages/product-attribute/product-series/product-series.wxss

@@ -0,0 +1 @@
+/* package2/pages/product-attribute/product-series/product-series.wxss */

+ 66 - 0
package2/pages/product-attribute/product-types/product-types.js

@@ -0,0 +1,66 @@
+// package2/pages/product-attribute/product-types/product-types.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
package2/pages/product-attribute/product-types/product-types.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
package2/pages/product-attribute/product-types/product-types.wxml

@@ -0,0 +1,2 @@
+<!--package2/pages/product-attribute/product-types/product-types.wxml-->
+<text>package2/pages/product-attribute/product-types/product-types.wxml</text>

+ 1 - 0
package2/pages/product-attribute/product-types/product-types.wxss

@@ -0,0 +1 @@
+/* package2/pages/product-attribute/product-types/product-types.wxss */