doum
2025-09-03 dbccd6b83b9e30f9fdcb2c7900a16cb038648c62
small-program/pages/freight/freight.vue
@@ -140,7 +140,7 @@
               <view class="list-item-row">
                  <view class="list-item-row-label">费用标准<b>*</b></view>
                  <view class="list-item-row-val">
                     <input type="number" @blur="getPrice" v-model="form.price" placeholder="请输入" />
                     <input type="digit" @blur="getPrice"  v-model="form.price" placeholder="请输入" />
                     <text>{{form.priceUnit}}</text>
                  </view>
               </view>
@@ -285,7 +285,7 @@
            ],
            dw: [['个', '斤']],
            carArr: [],
            viewStatus: false
            viewStatus: true
         };
      },
      watch: {
@@ -341,6 +341,13 @@
         this.getCategoryLists()
      },
      methods: {
          handleInputPrice(e) {
             try{
                this.form.price = Number(this.form.price).toFixed(3)
             }catch(e){
                this.form.price =null
             }
         },
         confirmDw(e) {
            this.form.transportUnit = e.value[0]
            this.show4 = false
@@ -368,7 +375,7 @@
            }
            if (!that.form.id) {
               uni.requestSubscribeMessage({
                  tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg'],
                  tmplIds: ['oVjOBLcHxIlGzOMJsdInmgI5CHGXh-UTvMzQqfFOnIg','AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'],
                  success(res) {
                     that.$u.api.release({
                        ...that.form,
@@ -396,9 +403,9 @@
                  }
               })
            } else {
               uni.requestSubscribeMessage({
                  tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk'],
                  success(res) {
               // uni.requestSubscribeMessage({
                  // tmplIds: ['3YSC7gouRlSjHXz4CrWOGFzPmGwEBtFj4snwdfMvKHk','AA97cHjvlPiNO4viMkVe4JifCf9TD5b5Eb7s6El3VS8'],
                  // success(res) {
                     that.$u.api.updateOrder({
                        ...that.form,
                        price: Number(that.form.price) * 100,
@@ -429,8 +436,8 @@
                           }, 1500)
                        }
                     })
                  }
               })
               //    }
               // })
            }
         },
         uploadImg() {
@@ -463,7 +470,7 @@
         getPrice() {
            if (this.form.price && this.form.priceNum1 && this.form.priceNum2) {
               this.$u.api.getTotal({
                  price: Number(this.form.price) * 100,
                  price: Number(this.form.price).toFixed(2) * 100,
                  priceUnit: this.form.priceUnit,
                  priceNum1: this.form.priceNum1,
                  priceNum2: this.form.priceNum2,
@@ -943,13 +950,14 @@
                  }
               }
               .list-item-row-val {
                  width: 100%;
                  // width: 100%;
                  padding: 30rpx 0;
                  box-sizing: border-box;
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  text {
                     // width: 80%;
                     flex-shrink: 0;
                     font-weight: 400;
                     font-size: 30rpx;