lilei 1 month ago
parent
commit
513308960f
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/views/financialManagement/accountStatement/edit.vue

+ 13 - 3
src/views/financialManagement/accountStatement/edit.vue

@@ -156,7 +156,11 @@
         <div><span>余额:</span>{{ toThousands(detailData.totalAmount) }}</div>
         <div>
           <span style="width:70px;">备注:</span>
-          <a-textarea :rows="6" :maxLength="300" placeholder="请输入备注(最多300个字符)" v-model="detailData.remarks"></a-textarea>
+          <a-textarea :rows="6" :maxLength="300" placeholder="请输入备注(最多300个字符)" v-model="remarks"></a-textarea>
+        </div>
+        <div style="color:red">
+          <span style="width:60px;"></span>
+          请修改备注信息。若无需修改可直接提交!
         </div>
       </div>
     </commonModal>
@@ -250,7 +254,8 @@ export default {
       addMoreLoading: false, // 批量添加动画
       verifyAccountBillSn: undefined, // 单据sn
       itemSn: null,
-      showTipModal: false
+      showTipModal: false,
+      remarks: ''
     }
   },
   computed: {
@@ -423,6 +428,7 @@ export default {
       // 通过校验提交
       if (noList.length == 0) {
         this.showTipModal = true
+        this.remarks = this.detailData.remarks
       } else {
         // 提示不能参与的单子
         const _this = this
@@ -439,8 +445,12 @@ export default {
     },
     // 提交单据
     handleSubmit () {
+      if (!this.remarks) {
+        this.$message.error('请输入备注信息')
+        return
+      }
       this.spinning = true
-      verifyAcountBillSubmit({ verifyAccountBillSn: this.verifyAccountBillSn, remarks: this.detailData.remarks }).then(res => {
+      verifyAcountBillSubmit({ verifyAccountBillSn: this.verifyAccountBillSn, remarks: this.remarks }).then(res => {
         if (res.status == 200) {
           this.handleBack()
           this.$message.success(res.message)