Bläddra i källkod

工具借用单个借用逻辑调整

qymljy 1 år sedan
förälder
incheckning
0cf3654ea8

+ 1 - 0
src/HDrpManagement/toolBorrowingMag/modules/add.vue

@@ -127,6 +127,7 @@ export default {
     submitForm() {
       this.$refs['form'].validate(async valid => {
         if (!valid) return
+        this.radio == 3 ? this.form.typemx = '合同借用':this.form.typemx = ''
         const res = await this.$api.requested({
           "id": 20230116092702,
           "content":this.form

+ 1 - 0
src/SDrpManagement/salerToolBorrowing/modules/add.vue

@@ -131,6 +131,7 @@ export default {
     submitForm() {
       this.$refs['form'].validate(async valid => {
         if (!valid) return
+        this.radio == 3 ? this.form.typemx = '合同借用':this.form.typemx = ''
         const res = await this.$api.requested({
           "id": 20230116092702,
           "content":this.form

+ 4 - 3
src/SDrpManagement/toolBorrowing/modules/add.vue

@@ -118,11 +118,12 @@ export default {
       this.$nextTick(()=>{
         this.$refs['contract'].listData()
       })
-      
+
     },
     submitForm() {
       this.$refs['form'].validate(async valid => {
         if (!valid) return
+        this.radio == 3 ? this.form.typemx = '合同借用':this.form.typemx = ''
         const res = await this.$api.requested({
           "id": 20230116092702,
           "content":this.form
@@ -133,7 +134,7 @@ export default {
           }
 
           this.drawer = false
-         
+
           this.$store.dispatch('changeDetailDrawer',true)
           this.$router.push({path:'/toolBorrowingDetail',query:{id:res.data.sa_orderid,rowindex:res.data.rowindex}})
         })
@@ -214,4 +215,4 @@ export default {
 
 </script>
 <style>
-</style>
+</style>