skyouc
2025-05-08 5908d9ea8bde5f80d966585e2433ef5737785a85
pages/rece/other.vue
@@ -203,7 +203,9 @@
      },
      computed: {
         ...mapState('user', ['dynamicFields']),
         ...mapState('user', {
            dynFields: state => state.dynamicFields
         }),
         allCount() {
            return this.list.reduce((acc, row) => +row.receiptQty + acc, 0)
         }
@@ -211,7 +213,6 @@
      },
      mounted() {
         this.getRece()
         console.log(dynamicFields)
         this.whAreaId = uni.getStorageSync('whAreaId')
      },
      methods: {
@@ -270,8 +271,6 @@
            this.isconfirm = false
         },
         selChange(val) {
            console.log('-------->')
            console.log(val)
            uni.setStorageSync('whAreaId', val)
         },
         async complete(id) {
@@ -301,13 +300,19 @@
                  title: '请选择收货区'
               })
            } else {
               console.log(this.dynFields)
               const newArr = this.list.map(item => {
                  return {
                     ...item,
                     receiptQty: item.receiptQty === null ? 0 : +item.receiptQty
                     receiptQty: item.receiptQty === null ? 0 : +item.receiptQty,
                     extendFields: this.dynFields.filter(el => el.unique == 1).map(exf => {
                        return {
                           [`${exf.fields}`]: item[exf.fields]
                        }
                     }).filter(field => Object.values(field)[0] != undefined)
                  };
               }).filter(el => el.receiptQty !== 0);
               console.log(newArr)
               const {
                  code,