Sfoglia il codice sorgente

Merge branch 'master' of http://git.dongkesoft.com:9001/iBOSS-2.0-Mini/iboss_wx_app

wangyingjie 2 anni fa
parent
commit
abaead05f5

+ 25 - 0
api/pages/mac/account.js

@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright(c) 2024 dongke All rights reserved. / Confidential
+ * 类的信息:
+ *		1.程序名称:
+ *		2.功能描述:账款对象-应收应付款单据
+ * 编辑履历:
+ *		作者				日期					版本				修改内容
+ *		姜永辉		  	    2024-1-19       		1.00		       	新建
+ *******************************************************************************/
+module.exports = {
+	accountService: {
+		// 前缀
+		prefix: 'mdm-server/mac/account/',
+	},
+
+	routeUrl: {
+		account: {
+			add: { key: 'add', url: '/package-accounts-manage/pages/receipt/add/add' },
+			edit: { key: 'edit', url: '/package-accounts-manage/pages/receipt/detail/detail' },
+			detail: {
+				key: 'detail', url: '/package-purchase/pages/purchase-return/detail/detail'
+			},
+		}
+	}
+}; 

+ 2 - 2
app.js

@@ -36,7 +36,7 @@ const customerMst = require('./api/pages/mst/customer.js');
 const purchase = require('./api/pages/pur/purchase.js');
 
 
-
+const account = require('./api/pages/mac/account.js');
 const receiptPayment = require('./api/pages/mac/receiptPayment.js');
 
 const inbound = require('./api/pages/ivt/inbound.js');
@@ -58,7 +58,7 @@ const transfer = require('./api/pages/mac/transfer.js');
 const order = require('./api/pages/sale/order.js');
 
 // api服务路由文件
-var apiList = [common, oauth,setting, company, wechatPay,user, staff, staffRight, staffPurview, settingValue, customer, role, roleFun, org, roleSensitive, goodsBrand, goodsCategory, goodsSeries, unit, supplier, warehouse, saleChannel, goodsSku, basicData,customerMst,purchase,
+var apiList = [common, oauth,setting, company, wechatPay,user, staff, staffRight, staffPurview, settingValue, customer, role, roleFun, org, roleSensitive, goodsBrand, goodsCategory, goodsSeries, unit, supplier, warehouse, saleChannel, goodsSku, basicData,customerMst,purchase,account,
   receiptPayment,inbound,inboundOther,inboundProcessing,inboundPurchaseReturn,outbound,outboundOther,outboundProcessing,outboundSaleReturn,inventory,moneyAccount,intoReturn,intoReturnItem,cusFollow,order,transfer]
 
 const util = require('./utils/util.js')

+ 435 - 111
package-base-select/pages/select-bill/select-bill.js

@@ -1,132 +1,456 @@
-// package-base-select/pages/select-bill/select-bill.js
+/*******************************************************************************
+ * Copyright(c) 2021 dongke All rights reserved. / Confidential
+ * 类的信息:
+ *		1.程序名称:
+ *		2.功能描述:单据列表-应收单据 -应付单据
+ * 编辑履历:
+ *		作者				日期					版本				修改内容
+ *		jyh		     2022-5-25		        1.00		   	    新建
+ *******************************************************************************/
+const Constants = require('@/utils/Constants.js');
+const mixins = require('@/mixins/index.js')
 Page({
+  mixins: [mixins],
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    returnTotalAmount: 0,
+    allChecked: false,
 
-    /**
-     * 页面的初始数据
-     */
-    data: {
-      statusItem: {
-        text: '日期降序'
-      },
-      statusItem2: {
-        text: '金额降序'
-      },
-      statusItem3: {
-        text: '单据类型'
-      },
-    },
-    chooseData(e) {
-      console.log('ff', e);
-      let index = e.currentTarget.dataset.index
-      let tableData = this.data.tableData
-      tableData[index].checked = !tableData[index].checked
-      this.setData({
-        tableData: tableData
-      })
-      return
-      var pages = getCurrentPages();
-      var prevPage = pages[pages.length - 2]; //上一个页面
-      let formData = prevPage.data.formData
-      let form = {}
-      if (formData) {
-        form = JSON.parse(formData)
-      }
-      let item = e.currentTarget.dataset.item;
-      let objInfo = {}
-      objInfo.title = item.name
-      objInfo.subTitle = item.phone
-      objInfo.amountCol = '应收金额'
-      objInfo.amount = item.number
-      form.objInfo = objInfo
-      console.log('fff1', objInfo);
-      prevPage.setData({
-        form: form,
-        formData: JSON.stringify(form)
-      })
-        wx.navigateBack({
-          delta: 1
-        })
-    },
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad(options) {
-      this.setData({
-        tableData:[
+    tableData: [
+      {
+        "addressArea": null,
+        "addressFull": null,
+        "addressGcj02": null,
+        "addressName": null,
+        "addressNo": null,
+        "annexPaths": null,
+        "channelName": null,
+        "contactName": null,
+        "contactPhone": null,
+        "cpId": 1,
+        "cusCode": null,
+        "cusFromName": null,
+        "cusId": null,
+        "cusName": null,
+        "cusPhone": null,
+        "flgValid": true,
+        "fromId": "10112024-0320-0000-0000-0000157d995e",
+        "fromNo": "PO240320048T995E",
+        "goodsList": null,
+        "inboundItemList": [
           {
-            code1:'555668598989',
-            code2:'销售订单',
-            code3:'6000.00',
-            code4:'4000.00 丨 2000.00',
-            code5:'2024.12.11',
-            checked:false
+            "costAmt": 0,
+            "costPrice": 0,
+            "cpId": 1,
+            "fromId": "10112024-0320-0000-0000-0000157d995e",
+            "fromItemId": "10112024-0320-0000-0000-0000157e51f1",
+            "intoAmt": 0,
+            "intoId": "10112024-0320-0000-0000-00001581e811",
+            "intoItemId": "10112024-0320-0000-0000-00001582320f",
+            "intoQty": 0,
+            "intoStatus": "入库状态-入库中",
+            "intoType": "入库类型-采购入库",
+            "intoingAmt": 2,
+            "intoingQty": 2,
+            "invId": null,
+            "invQty": 0,
+            "itemId": "10112024-0320-0000-0000-00001582320f",
+            "itemIndex": 1,
+            "nonStdCode": "-",
+            "outQty": 0,
+            "priceInto": 1,
+            "pricePurchase": 1,
+            "priceStd": 2,
+            "rejectQty": 0,
+            "remarks": null,
+            "returnAmt": 0,
+            "returnQty": 0,
+            "skuCode": "A00Z01S7",
+            "skuId": "10112024-0304-0000-0000-00000907f868",
+            "skuImages": {
+              "path": "https://lingtui-1315959497.cos.ap-beijing.myqcloud.com/20240306152837.jpg"
+            },
+            "skuModel": "112",
+            "skuName": "SSS"
           },
           {
-            code1:'555668598978',
-            code2:'其他收款',
-            code3:'3000.00',
-            code4:'1000.00 丨 2000.00',
-            code5:'2024.12.11',
-            checked:false
+            "costAmt": 0,
+            "costPrice": 0,
+            "cpId": 1,
+            "fromId": "10112024-0320-0000-0000-0000157d995e",
+            "fromItemId": "10112024-0320-0000-0000-0000157f4b6a",
+            "intoAmt": 0,
+            "intoId": "10112024-0320-0000-0000-00001581e811",
+            "intoItemId": "10112024-0320-0000-0000-00001583b1c5",
+            "intoQty": 0,
+            "intoStatus": "入库状态-入库中",
+            "intoType": "入库类型-采购入库",
+            "intoingAmt": 20.44,
+            "intoingQty": 2,
+            "invId": null,
+            "invQty": 0,
+            "itemId": "10112024-0320-0000-0000-00001583b1c5",
+            "itemIndex": 2,
+            "nonStdCode": "-",
+            "outQty": 0,
+            "priceInto": 10.22,
+            "pricePurchase": 10.22,
+            "priceStd": 798,
+            "rejectQty": 0,
+            "remarks": null,
+            "returnAmt": 0,
+            "returnQty": 0,
+            "skuCode": "AAA1",
+            "skuId": "10112024-0228-0000-0000-000001c3cc7e",
+            "skuImages": {
+              "path": "https://lingtui-1315959497.cos.ap-beijing.myqcloud.com/20240306152837.jpg"
+            },
+            "skuModel": "AAA",
+            "skuName": "AAA"
           },
           {
-            code1:'555668598990',
-            code2:'销售退款',
-            code3:'-6000.00',
-            code4:'-6000.00 丨 0',
-            code5:'2024.12.11',
-            checked:false
+            "costAmt": 0,
+            "costPrice": 0,
+            "cpId": 1,
+            "fromId": "10112024-0320-0000-0000-0000157d995e",
+            "fromItemId": "10112024-0320-0000-0000-000015800512",
+            "intoAmt": 0,
+            "intoId": "10112024-0320-0000-0000-00001581e811",
+            "intoItemId": "10112024-0320-0000-0000-00001584c494",
+            "intoQty": 0,
+            "intoStatus": "入库状态-入库中",
+            "intoType": "入库类型-采购入库",
+            "intoingAmt": 20000,
+            "intoingQty": 2,
+            "invId": null,
+            "invQty": 0,
+            "itemId": "10112024-0320-0000-0000-00001584c494",
+            "itemIndex": 3,
+            "nonStdCode": "-",
+            "outQty": 0,
+            "priceInto": 10000,
+            "pricePurchase": 10000,
+            "priceStd": 2000,
+            "rejectQty": 0,
+            "remarks": null,
+            "returnAmt": 0,
+            "returnQty": 0,
+            "skuCode": "HE900AB",
+            "skuId": "10112024-0306-0000-0000-00000a70e010",
+            "skuImages": null,
+            "skuModel": "智能一体机盖板HE900A ",
+            "skuName": "智能一体机盖板HE900A "
+          }
+        ],
+        "intoAmt": 0,
+        "intoDate": null,
+        "intoId": "10112024-0320-0000-0000-00001581e811",
+        "intoNo": "AA240320048XE811",
+        "intoQty": 0,
+        "intoReason": null,
+        "intoReasonName": null,
+        "intoStatus": "入库状态-入库中",
+        "intoStatusName": null,
+        "intoType": "入库类型-采购入库",
+        "intoTypeName": null,
+        "intoingAmt": 10011.22,
+        "intoingQty": 6,
+        "makeStaff": "10112024-0315-0000-0000-000012034444",
+        "makeStaffName": null,
+        "makeTime": "2024-03-20 13:52:52",
+        "orgId": "10112024-0221-0000-0000-000000011b47",
+        "orgName": null,
+        "payableId": null,
+        "receivableId": null,
+        "remarks": null,
+        "returnAmt": 0,
+        "returnQty": 0,
+        "staffId": "10112024-0315-0000-0000-000012034444",
+        "staffName": null,
+        "sumAmount": null,
+        "sumQuantity": null,
+        "supId": "10112024-0307-0000-0000-00000c81ca28",
+        "supplierName": null,
+        "whId": null,
+        "whName": null
+      },
+      {
+        "addressArea": null,
+        "addressFull": null,
+        "addressGcj02": null,
+        "addressName": null,
+        "addressNo": null,
+        "annexPaths": null,
+        "channelName": null,
+        "contactName": null,
+        "contactPhone": null,
+        "cpId": 1,
+        "cusCode": null,
+        "cusFromName": null,
+        "cusId": null,
+        "cusName": null,
+        "cusPhone": null,
+        "flgValid": true,
+        "fromId": "10112024-0320-0000-0000-0000157d995e",
+        "fromNo": "PO240320048T995E",
+        "goodsList": null,
+        "inboundItemList": [
+          {
+            "costAmt": 0,
+            "costPrice": 0,
+            "cpId": 1,
+            "fromId": "10112024-0320-0000-0000-0000157d995e",
+            "fromItemId": "10112024-0320-0000-0000-0000157e51f1",
+            "intoAmt": 0,
+            "intoId": "10112024-0320-0000-0000-0000159171f9",
+            "intoItemId": "10112024-0320-0000-0000-000015922409",
+            "intoQty": 0,
+            "intoStatus": "入库状态-入库中",
+            "intoType": "入库类型-采购入库",
+            "intoingAmt": 2,
+            "intoingQty": 2,
+            "invId": null,
+            "invQty": 0,
+            "itemId": "10112024-0320-0000-0000-000015922409",
+            "itemIndex": 1,
+            "nonStdCode": "-",
+            "outQty": 0,
+            "priceInto": 1,
+            "pricePurchase": 1,
+            "priceStd": 2,
+            "rejectQty": 0,
+            "remarks": null,
+            "returnAmt": 0,
+            "returnQty": 0,
+            "skuCode": "A00Z01S7",
+            "skuId": "10112024-0304-0000-0000-00000907f868",
+            "skuImages": {
+              "path": "https://lingtui-1315959497.cos.ap-beijing.myqcloud.com/20240306152837.jpg"
+            },
+            "skuModel": "112",
+            "skuName": "SSS"
           },
-        ]
-      })
-    },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
-
-    },
+          {
+            "costAmt": 0,
+            "costPrice": 0,
+            "cpId": 1,
+            "fromId": "10112024-0320-0000-0000-0000157d995e",
+            "fromItemId": "10112024-0320-0000-0000-0000157f4b6a",
+            "intoAmt": 0,
+            "intoId": "10112024-0320-0000-0000-0000159171f9",
+            "intoItemId": "10112024-0320-0000-0000-00001593290f",
+            "intoQty": 0,
+            "intoStatus": "入库状态-入库中",
+            "intoType": "入库类型-采购入库",
+            "intoingAmt": 20.44,
+            "intoingQty": 2,
+            "invId": null,
+            "invQty": 0,
+            "itemId": "10112024-0320-0000-0000-00001593290f",
+            "itemIndex": 2,
+            "nonStdCode": "-",
+            "outQty": 0,
+            "priceInto": 10.22,
+            "pricePurchase": 10.22,
+            "priceStd": 798,
+            "rejectQty": 0,
+            "remarks": null,
+            "returnAmt": 0,
+            "returnQty": 0,
+            "skuCode": "AAA1",
+            "skuId": "10112024-0228-0000-0000-000001c3cc7e",
+            "skuImages": {
+              "path": "https://lingtui-1315959497.cos.ap-beijing.myqcloud.com/20240306152837.jpg"
+            },
+            "skuModel": "AAA",
+            "skuName": "AAA"
+          }
+        ],
+        "intoAmt": 0,
+        "intoDate": null,
+        "intoId": "10112024-0320-0000-0000-0000159171f9",
+        "intoNo": "AA240320049D71F9",
+        "intoQty": 0,
+        "intoReason": null,
+        "intoReasonName": null,
+        "intoStatus": "入库状态-入库中",
+        "intoStatusName": null,
+        "intoType": "入库类型-采购入库",
+        "intoTypeName": null,
+        "intoingAmt": 20022.44,
+        "intoingQty": 6,
+        "makeStaff": "10112024-0315-0000-0000-000012034444",
+        "makeStaffName": null,
+        "makeTime": "2024-03-20 13:55:56",
+        "orgId": "10112024-0221-0000-0000-000000011b47",
+        "orgName": null,
+        "payableId": null,
+        "receivableId": null,
+        "remarks": null,
+        "returnAmt": 0,
+        "returnQty": 0,
+        "staffId": "10112024-0315-0000-0000-000012034444",
+        "staffName": null,
+        "sumAmount": null,
+        "sumQuantity": null,
+        "supId": "10112024-0307-0000-0000-00000c81ca28",
+        "supplierName": null,
+        "whId": null,
+        "whName": null
+      }
+    ],
+    choooseInboundItemList: [],
+    // 路由
+    routeObjName: 'account',
+    formMode: Constants.formMode.index,
+  },
+  /**
+   * @desc :   加载数据源
+   * @date : 2024/2/1 15:49
+   * @author : 姜永辉
+   */
+  getData(params) { 
+    return this.excute(this.data.service, this.data.service.selectInboundAndItem, params);
+  },
 
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow() {
+  /**
+  * @desc :   设置查询参数
+  * @date : 2024/2/1 15:49
+  * @author : 姜永辉
+  */
+  setSearchParams(params) {
+    params.intoType = Constants.intoType.pur
+    params.fromId = this.data.id
+    console.log(params);
+    return params
+  },
+  /**
+   * @desc :   父级商品信息选择
+   * @date : 2024/2/1 15:49
+   * @author : 姜永辉
+   */
+  onListItemChange(e) {
+    let tableData = this.data.tableData
+    let index = e.currentTarget.dataset.index
+    tableData[index].checked = !tableData[index].checked
+    let inboundItemList = tableData[index].inboundItemList
+    if (inboundItemList && inboundItemList.length > 0) {
+      inboundItemList.forEach(res => {
+        res.checked = tableData[index].checked
+      })
+    }
 
-    },
+    this.setData({
+      tableData: tableData
+    })
+    this.calculateTotal()
+  },
+  /**
+   * @desc :   子级商品信息选择
+   * @date : 2024/2/1 15:49
+   * @author : 姜永辉
+   */
+  onChangeItemCheckbox(e) {
+    let tableData = this.data.tableData
+    let index = e.currentTarget.dataset.index
+    let index_ = e.currentTarget.dataset.index_
+    console.log(index, index_)
+    tableData[index].inboundItemList[index_].checked = !tableData[index].inboundItemList[index_].checked
 
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
+    this.setData({
+      tableData: tableData
+    })
 
-    },
+    this.calculateTotal()
+  },
 
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
+  /**
+    * @desc :  全退
+    * @date : 2024/2/1 15:49
+    * @author : 姜永辉
+    */
+  onCheckboxChange(e) {
+    console.log(e.detail.checked)
+    let checked = e.detail.checked
+    let tableData = this.data.tableData
+    tableData.forEach(res => {
+      res.checked = checked
+      if (res.inboundItemList && res.inboundItemList.length > 0) {
+        res.inboundItemList.forEach(item => {
+          item.checked = checked
+        })
+      }
+    })
+    this.setData({
+      tableData: tableData
+    })
+    this.calculateTotal()
+  },
 
-    },
+  /**
+    * @desc :   计算金额/过滤出已选数据
+    * @date : 2024/2/1 15:49
+    * @author : 姜永辉
+    */
+  calculateTotal() {
+    let tableData = this.data.tableData
+    let choooseInboundItemList = []
+    let returnTotalAmount = Number(0)
+    //过滤出已选数据
+    tableData.forEach(res => {
+      if (res.inboundItemList && res.inboundItemList.length > 0) {
+        res.inboundItemList.forEach(item => {
+          if (item.checked) {
+            item.itemQty = Number(item.rejectQty * -1)
+            item.itemQtyMax = Number(item.rejectQty * -1)
+            item.priceReturn = Number(item.priceInto * -1)
+            item.itemAmt = Number(item.rejectQty * item.priceInto * -1)
+            choooseInboundItemList.push(item)
+          }
+        })
+      }
+    })
+    if (choooseInboundItemList && choooseInboundItemList.length > 0) {
+      choooseInboundItemList.forEach(res => {
+        returnTotalAmount += Number(res.rejectQty * res.priceInto)
+      })
+    }
 
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
 
-    },
 
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
+    this.setData({
+      choooseInboundItemList: choooseInboundItemList,
+      returnTotalAmount: returnTotalAmount.toFixed(2),
+    })
+  },
+  /**
+  * @desc :   跳转退货页
+  * @date : 2024/2/1 15:49
+  * @author : 姜永辉
+  */
+  returnData() {
+    let item = e.detail.item
+    const eventChannel = this.getOpenerEventChannel();
+    eventChannel.emit('bindData', {
+      data: {
+        choooseInboundItemList: choooseInboundItemList,
+        goodsRejectedAmount: that.data.returnTotalAmount,
+        item: JSON.stringify(item)
+      }
+    })
+    wx.navigateBack({
+      delta: 1
+    })
 
-    },
+  },
 
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
+  /**
+    * 生命周期函数--监听页面加载
+    */
+  onLoad(options) {
+    console.log("onLoad");
+  },
 
-    }
 })

+ 52 - 83
package-base-select/pages/select-bill/select-bill.wxml

@@ -1,96 +1,65 @@
-<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="statusItem" title="{{ statusItem.text }}">
-      <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdowncommit'></dk-dropdown-switch>
-    </van-dropdown-item>
-
-    <van-dropdown-item id="statusItem2" title="{{ statusItem2.text }}">
-      <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdowncommit'></dk-dropdown-switch>
-    </van-dropdown-item>
-
-    <van-dropdown-item id="statusItem3" title="{{ statusItem3.text }}">
-      <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdowncommit'></dk-dropdown-switch>
-    </van-dropdown-item>
-
-  </van-dropdown-menu>
-
-</van-sticky>
-
-
-<view style="margin: 20rpx 34rpx 26rpx 34rpx;border-radius: 15rpx;box-shadow:2px 2px 5px #e5e5e6;">
-  <view style="flex-direction: column;justify-content: left;align-items: flex-start;background: linear-gradient(90.12deg, #718AC6 0.84%, #4A5E98 99.43%);border-radius: 15rpx;">
-    <view style="color:#FFFFFF;padding:20rpx;padding-top: 40rpx;padding-bottom: 40rpx;">
-      <view style="width: 100%;text-align: left;display: flex;">
-        <view style="padding-left: 32rpx;padding-top: 19rpx;width: 39rpx;">
-                <view catchtap="toCustomer" style="width: 39rpx;height: 39rpx;background-color: #95A8CB;border-radius:50%;">
-                    <view style="width: 39rpx; height: 39rpx;text-align: center;">
-                        <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
-                    </view>
-                </view>
-            </view>
-            <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
-                {{'王暖暖'}}
-            </view>
-
+<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
+<loading wx:if="{{loading}}"></loading>
 
-            <view style="padding-left: 22rpx;padding-top: 19rpx;font-size: 26rpx;line-height: 36rpx;color: #FFFFFF;">
-                {{'156 5678 5643'}}
+<van-sticky scroll-top="0">
+  <!-- 查询条件 -->
+  <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['orderNo'])}}">
+  </dk-dropdown-menu>
+  <!-- 总的应收收款 -->
+  <view class="top-class">
+    <view class="top-class-2">
+      <view style="display: flex;padding: 10rpx;color: #FFFFFF;">
+        <view style="padding-left: 30rpx;padding-top: 19rpx;width: 30rpx;">
+          <view catchtap="toCustomer" style="width: 30rpx;height: 30rpx;background-color: #95A8CB;border-radius:50%;">
+            <view style="width: 30rpx; height: 30rpx;text-align: center;">
+              <van-image round width="28rpx" height="28rpx" src="/static/img/purchase-order-icon.png" />
             </view>
+          </view>
+        </view>
+        <view style="padding-left: 14rpx;padding-top: 19rpx;font-size: 28rpx;line-height: 36rpx; ">
+          fsdfsdfsfsd;kl 134444444
+          <!-- {{item.supplierName?item.supplierName:item.cusName}} -->
+        </view>
       </view>
 
-
-      <view style="width: 100%;text-align: left;color:#FFFFFF;display: flex;margin-top: 20rpx;margin-left: 30rpx;">
-        <view style="font-size: 15px;width: 50%;">总应收收款</view>
-        <view style="font-weight: 600;font-size: 16px;">3002.00</view>
+      <view style="display: flex; justify-content: space-around;color: #FFFFFF;">
+        <view style=" padding-top: 15rpx;font-size: 26rpx;line-height: 36rpx; ">
+          总应收收款
+        </view>
+        <view style=" padding-top: 15rpx;font-size: 36rpx;line-height: 36rpx; ">
+          东方饭店谁说的
+        </view>
       </view>
-
     </view>
-
-
-
   </view>
-</view>
-
-<view style="margin: 10px 32rpx 10px 32rpx;margin-top: 10px;border-radius: 15rpx;">
-  <view wx:for="{{tableData}}"  catchtap="chooseData"  data-item="{{item}}" data-index="{{index}}"    wx:key="index" class="dk-card-class" style="margin-bottom: 20rpx;padding:10rpx;display: flex;justify-content: left;align-items: center;{{item.checked? 'border: 1px solid #1B365D;':''}}">
-
-    <view style="width: 10%;">
-      <van-checkbox value="{{item.checked}}" data-index="{{index}}" data-item="{{item}}" checked-color="#1989FA" />
-    </view>
-    <view style="width: 90%;">
-
-
-      <van-field label-class="nomal-label" value="{{ item.code1 }}" input-align="left" label="单据单号" placeholder="" data-type='name' readonly="{{true}}" autosize border="{{ false }}" bind:change="fieldChange">
-      </van-field>
-
-      <van-field label-class="nomal-label" value="{{ item.code2 }}" input-align="left" label="单据类型" placeholder="" data-type='name' readonly="{{true}}" autosize border="{{ false }}" bind:change="fieldChange">
-      </van-field>
-
-      <van-field label-class="nomal-label" value="{{ item.code3 }}" input-align="left" label="单据金额" placeholder="" data-type='name' readonly="{{true}}" autosize border="{{ false }}" bind:change="fieldChange">
-      </van-field>
-
-      <van-field label-class="nomal-label" value="{{ item.code4 }}" input-align="left" label="未/已核销" placeholder="" data-type='name' readonly="{{true}}" autosize border="{{ false }}" bind:change="fieldChange">
-      </van-field>
-
-      
-      <van-field label-class="nomal-label" value="{{ item.code5 }}" input-align="left" label="账务日期" placeholder="" data-type='name' readonly="{{true}}" autosize border="{{ false }}" bind:change="fieldChange">
-      </van-field>
-    </view>
-
-
-
+</van-sticky>
+<!-- 列表数据 -->
+<view wx:for="{{tableData}}" data-item="{{item}}" wx:key="index" class="main-class">
+  <view class="main-foot" style="border-radius: 15rpx;">
+    <view class="table-content" data-item="{{item}}">
+      <view style="padding:16rpx;">
+        <view style="display:flex;justify-content: left;align-items: center;">
+          <view style="width: 10%;">
+            <van-checkbox checked-color="#E4002B" value="{{ item.checked }}" data-index="{{index}}" data-index_="{{index_}}" bind:change="onListItemChange"></van-checkbox>
+          </view>
+          <view style="width: 90%;font-size: 28rpx;color:#1B365D;padding: 20rpx;">
+            <view style="margin-top: 20rpx;">单据单号: {{item.intoNo}}</view>
+            <view style="margin-top: 20rpx;">单据类型: {{item.intoNo}}</view>
+            <view style="margin-top: 20rpx;">单据金额: {{item.intoNo}}</view>
+            <view style="margin-top: 20rpx;">未/已核销: {{item.intoNo}}</view>
+            <view style="margin-top: 20rpx;"> 账务日期: {{item.intoNo}}</view>
+          </view>
+
+        </view>
+      </view>
 
-    <view>
     </view>
   </view>
-
-
-  <view style="height: 220rpx;"></view>
 </view>
 
+<!-- 暂无数据 -->
+<van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
 
-<!-- 底部信息 -->
-<dk-save-bottom flagTypeName="document-list" selectlength="2" selectTotallength="4" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />
+<view style="height: 200rpx;"></view>
+<!--  底部工具栏-保存 -->
+<dk-save-bottom checked="{{allChecked}}" totallength="{{returnTotalAmount}}" flagTypeName="select-source-purchase-order" bottomClass="{{true}}" bind:onCheckboxChange="onCheckboxChange" bind:allClean="returnData" />

+ 68 - 3
package-base-select/pages/select-bill/select-bill.wxss

@@ -1,4 +1,69 @@
-
-.van-cell{
-	padding: 8rpx !important;
+.fontSizeStyle {
+	font-size: 15px;
+  }
+ 
+ 
+ 
+ 
+  .choose-item {
+	display: flex;
+	background: #FFFFFF;
+	box-shadow: 0px 10rpx 20rpx rgba(225, 229, 238, 0.6);
+	border-radius: 15rpx;
+	margin-top: 25rpx;
+  }
+ 
+  /* 选中的样式 */
+  .choose-item-select {
+	height: 255rpx;
+	background: #FFFFFF;
+	border: 2rpx solid #606EB2;
+	box-shadow: 0px 10rpx 20rpx rgba(225, 229, 238, 0.6);
+	border-radius: 15rpx;
+  }
+ 
+ 
+  /* 没有选中的样式 */
+  .choose-item-unchecked {
+	height: 255rpx;
+  }
+ 
+ 
+ 
+  .red-checkbox {
+	color: #95A8CB;
+	font-size: 28rpx;
+	padding-left: 10rpx;
+  }
+ 
+  .border-solid {
+	border: solid 1rpx #D3D3D3;
+  }
+ 
+ 
+  .van-card {
+	width: 100% !important;
+  }
+ 
+  .font {
+	font-family: PingFang HK;
+	font-size: 28rpx;
+	font-weight: 600;
+	line-height: 34rpx;
+	letter-spacing: 0em;
+	text-align: left;
+ 
+  }
+  .top-class{
+   margin: 30rpx; 
+   border-radius: 15rpx; 
+  }
+ 
+  .top-class-2{
+   flex-direction: column;
+   justify-content: center;
+   align-items: flex-start;
+   height: 160rpx;
+   background: linear-gradient(90.12deg, #718AC6 0.84%, #4A5E98 99.43%);
+   border-radius: 15rpx;
   }