wanshenmean
2025-04-10 62b606314f8530c4e42d98ad7ef9c6e9eceb00d8
´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/½ÐÁÏ/¸º¼«½ÐÁÏ.vue
@@ -92,22 +92,34 @@
            }
         },
         submit(cb) {
            this.$t.message.loading();
            let formDataParam = {
               current: this.current,
               size: this.size
            };
            // ä½¿ç”¨åˆ›æ™ºå®Œæ•´æŽ¥å£
            this.$u.post('http://192.168.31.240:9090/makerwit/selectKHWareType', null).then(res => {
               console.log(res);
               this.$t.message.closeLoading();
               cb && cb();
               if (cb != null) this.listData = [];
               this.listData = [...this.listData, ...res.data];
               console.log(this.listData);
            }).catch((err) => {
               this.$t.message.toast(err.message);
            uni.getStorage({
               key: 'storage_key_ipAddress',
               success: (res) => {
                  this.$t.message.loading();
                  let formDataParam = {
                     current: this.current,
                     size: this.size
                  };
                  // ä½¿ç”¨åˆ›æ™ºå®Œæ•´æŽ¥å£
                  this.$u.post(res.data.CZFJiP + '/api/PDA/AGVPage', null).then(res => {
                     console.log(res);
                     this.$t.message.closeLoading();
                     cb && cb();
                     if (cb != null) this.listData = [];
                     this.listData = [...this.listData, ...res.data];
                     console.log(this.listData);
                  }).catch((err) => {
                     this.$t.message.toast(err.message);
                  });
               },
               fail: (err) => {
                  this.$t.message.toast('请先设置IP地址');
                  uni.navigateTo({
                     url: '/pages/SetAddress/SetAddress',
                  });
               },
            });
         },
         clickLoadMore(e) {
            this.status = 'loading';
@@ -146,13 +158,20 @@
               orderNo: orderNo,
               number: availableQuantity > 4 ? 4 : availableQuantity,
               inputValue: inputValue,
               DTaskId: this.generateUUID(),
               ProductCode: productCode,
               OrderNo: orderNo,
               Number: availableQuantity > 4 ? 4 : availableQuantity,
               InputValue: inputValue,
               TaskType: "负极"
               // ...其他需要传递的参数
            };
            // ä½¿ç”¨åˆ›æ™ºå®Œæ•´æŽ¥å£
            this.$u.post('/api/PDA/AddCZTask', formDataParam).then(res => {
               if (res.status) {
                  this.$u.post('http://192.168.31.240:9090/makerwit/insertTask', formDataParam).then(res => {
                  const value = uni.getStorageSync('storage_key_ipAddress');
                  // ä½¿ç”¨åˆ›æ™ºå®Œæ•´æŽ¥å£
                  this.$u.post(value.CZFJiP + '/api/PDA/insertTask', formDataParam).then(res => {
                     this.$t.message.closeLoading();
                     console.log(formDataParam);
                     if (res.code == 200) {