qymljy 1 год назад
Родитель
Сommit
3fd689c0d4

+ 3 - 0
src/Form/salerIncome/add.vue

@@ -208,6 +208,7 @@ export default {
       }
     },
     onSubmit(){
+      console.log(this.form,'form111')
       this.$refs.formRef.validate(async (valid)=>{
         if (!valid) return false
         const res = await this.$api.requested({
@@ -251,6 +252,8 @@ export default {
         //将当前选中行改为选中状态
         this.$refs.tableRef.$refs.table.toggleRowSelection(selection[0]);
         this.form.sa_orderid = selection[0].sa_orderid
+      }else {
+        this.form.sa_orderid = selection[0].sa_orderid
       }
     }
   },

+ 1 - 1
src/SDrpManagement/salerIncome/detail/components/commissionDetails.vue

@@ -152,7 +152,7 @@ export default {
       if (data.amount < 0){
         data.amount = -Math.abs(data.amount).toFixed(4)
       }else {
-        data.amount = data.amount.toFixed(4)
+        data.amount = Math.abs(data.amount).toFixed(4)
       }
       const res = await this.$api.requested({
         "id": 20240111131204,