ソースを参照

货代付费 2023-12-27

caojunjie 1 年間 前
コミット
1de6ffa94f

+ 5 - 18
src/views/iosBasicData/PaymentApplication/finstlbillsDetails.vue

@@ -536,16 +536,6 @@
             editCustomer(){
                 this.$refs.form.validate((valid) => {
                     if (!valid) return
-                    // // 对账单位
-                    // if (!this.form.corpId) {
-                    //     this.$message.warning('请选择结算单位');
-                    //     return
-                    // }
-                    // 业务类型
-                    // if (!this.form.businessTypes) {
-                    //     this.$message.warning('请选择业务类型');
-                    //     return
-                    // }
                     if (!this.form.id) {
                         // 是否选择从表数据
                         if (this.handleSelectionData.length == 0) {
@@ -558,10 +548,6 @@
                             this.$message.warning('请选择本次结算币种');
                             return;
                         }
-                        // if (!item.currentStlAmount) {
-                        //     this.$message.warning('请选择本次结算金额');
-                        //     return;
-                        // }
                     }
                     this.saveLoading = true // 打开按钮动画
                     if(this.form.estimatedTime) {
@@ -571,7 +557,6 @@
                     this.form.billNoFormat = 'FFSQ'
                     this.form.businessTypeCode = 'FFSQ'
                     this.form.businessType = 'FFSQ' // 结算单
-                    this.form.dc = 'C' // 付
                     this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
                     this.form.finStlBillsItemsList = this.handleSelectionData.map((item,index)=>{
                         if (item.currentStlCurCode == 'CNY') {
@@ -579,9 +564,11 @@
                         }else {
                             item.currentStlAmount = item.currentStlAmountUSD
                         }
-                        delete item.businessType
-                        delete item.billDate
-                        delete item.accountDc
+                        if (!this.form.id) {
+                            delete item.businessType
+                            delete item.billDate
+                            delete item.accountDc
+                        }
                         return item
                     })
                     finstlbillsSubmit(this.form).then(res=>{