MrShi
2025-08-21 0b33a3dcc3a7592c476d992e1b79a3bc837afb25
small-program/pages/using-workers/using-workers.vue
@@ -195,18 +195,22 @@
            this.$u.api.getDetail({
               orderId: option.id
            }).then(res => {
               this.info = res.data
               for (const key in this.form) {
                  this.form[key] = res.data[key]
               if (res.code === 200) {
                  this.info = res.data
                  for (const key in this.form) {
                     this.form[key] = res.data[key]
                  }
                  this.form.days = res.data.totalDays
                  this.form.price = Number(this.form.price) / 100
                  if (!this.form.multifileList) {
                     this.form.multifileList = []
                  }
               }
               this.form.days = res.data.totalDays
               this.form.price = Number(this.form.price) / 100
               if (!this.form.multifileList) {
                  this.form.multifileList = []
               }
            })
         } else {
            this.form.linkPhone = this.userInfo.telephone
            this.form.linkName = this.userInfo.name
            this.form.days = option.days
            this.form.startDate = option.startDate
            this.form.endDate = option.endDate
@@ -253,7 +257,7 @@
                        })
                        setTimeout(() => {
                           uni.navigateBack({ delta: 1 });
                           uni.$emit('refresh')
                           // uni.$emit('refresh')
                        }, 1500)
                        
                     }
@@ -271,8 +275,10 @@
                  type: this.form.type,
                  workType: this.form.workType
               }).then(res => {
                  this.modify = true
                  this.form.estimatedAccount = res.data
                  if (res.code === 200) {
                     this.modify = true
                     this.form.estimatedAccount = res.data
                  }
               })
            }
         },
@@ -300,7 +306,9 @@
            this.$u.api.getCategoryList({
               type: 0
            }).then(res => {
               this.cateList = [res.data]
               if (res.code === 200) {
                  this.cateList = [res.data]
               }
            })
         },
         uploadImg() {