Bläddra i källkod

shoukuantuihuan

liuhj 2 veckor sedan
förälder
incheckning
99afaf75c5

+ 25 - 1
src/components/Finance/ConferenceCost.vue

@@ -346,7 +346,31 @@ export default {
                 }
                 // return sum + (Number(item.baoJiaPrice) || 0);
             }, 0).toFixed(2);
-        }
+        },
+        //保存api
+        ConferenceAffairsSave(){
+            var url = "/api/Groups/ConferenceAffairsSave"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + that.token
+                },
+                data: {
+                    conferenceAffairsCost: that.conferenceAffairsCost,
+                    conferenceAffairsCostChild: that.tableDatas,
+                    userId: that.userId,
+                    groupId: that.conferenceid,
+                }
+            }).then(function (res) {
+                let AffairsInIt=res.data.data;
+                that.options=AffairsInIt.currenyList.teamRates;
+                that.tableDatas=AffairsInIt.conferenceAffairsCostChi;
+                that.typearr=AffairsInIt.typeData;
+                that.units=AffairsInIt.units;
+            })
+        },
     },
     mounted(){
         this.token = JSON.parse(localStorage.getItem('userinif')).token;

+ 1 - 1
src/components/Finance/Sendack.vue

@@ -133,7 +133,7 @@
                         </el-form-item>
                         <el-form-item label="费用金额" prop="price" :label-width="formLabelWidth">
                             <el-input-number class="fyjeinput" :controls="false" :precision="2" v-model="form.price"></el-input-number>
-                            <el-select disabled filterable class="fyjeselect" v-model="form.currencyId" placeholder="请选择币种">
+                            <el-select filterable class="fyjeselect" v-model="form.currencyId" placeholder="请选择币种">
                                 <el-option v-for="(item,index) in currencyDatas" :key="index" :label="item.currencyCode" :value="item.currencyId">
                                     <span>{{item.currencyCode}}</span>
                                     <span>{{item.currencyName}}</span>

+ 9 - 8
src/components/OP/SuppliesInventory.vue

@@ -712,6 +712,7 @@
     </div>
 </template>
 <script>
+import { debounce } from '../../store/statice'
 export default {
     data() {
         return {
@@ -1531,16 +1532,16 @@ export default {
             this.$refs[formName].resetFields();
         },
         //领用
-        ClaimsubmitForm(formName) {
+        ClaimsubmitForm: debounce(function (formName)  {
             this.$refs[formName].validate((valid) => {
-            if (valid) {
-                this.GoodsReceiveOP();
-            } else {
-                console.log('error submit!!');
-                return false;
-            }
+                if (valid) {
+                } else {
+                    console.log('error submit!!');
+                    return false;
+                }
             });
-        },
+                    this.GoodsReceiveOP();
+        }, 1000, true),
 
         ClaimresetForm(formName) {
             this.Claimitemlabel="";