浏览代码

预托书增加金额小数限制,预托书列表去除托书号查询条件

jbb 2 年之前
父节点
当前提交
f96a7abcaf
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      src/views/pre-book/addPreBookDrawer.vue
  2. 4 2
      src/views/pre-book/preBookList.vue

+ 1 - 1
src/views/pre-book/addPreBookDrawer.vue

@@ -671,7 +671,7 @@ export default {
         for (var i=0; i<this.addPreBook.syLetterDepositItemList.length; i++){
           money += this.addPreBook.syLetterDepositItemList[i].totalPrice;
         }
-        this.addPreBook.money = money;
+        this.addPreBook.money = money.toFixed(2);
       }
     
   },

+ 4 - 2
src/views/pre-book/preBookList.vue

@@ -37,11 +37,11 @@
                 </a-form-item>
               </a-col>
 
-              <a-col :md="6" :sm="8">
+              <!-- <a-col :md="6" :sm="8">
                 <a-form-item label="预托书号">
                   <a-input placeholder="请输入预托书号" v-model="queryParam.depositaryReceiptNo"></a-input>
                 </a-form-item>
-              </a-col>
+              </a-col> -->
             </template>
             
             <a-col :md="6" :sm="8">
@@ -303,6 +303,7 @@ export default {
         if (res.success) {
           // 把通过id查询到的对象,赋值给子组件
           this.$refs.detailsPreBookDrawer.preBookDetails = res.result; //主表
+          res.result.money = res.result.money.toFixed(2)
           res.result.syLetterDepositItemList.map(item =>{
              var str =item.hod
               var n=str.split(" ");
@@ -322,6 +323,7 @@ export default {
       preBookById({ id: record.id }).then(res => {
         if (res.success) {
           res.result.consigneeAll = res.result.consignee+"+"+res.result.consigneeAddress+"+"+res.result.notifyParty+"+"+res.result.notifyPartyAddress;
+          res.result.money = res.result.money.toFixed(2)
           this.$refs.addPreBookDrawer.addPreBook = res.result;
           this.$refs.addPreBookDrawer.defultMethod = 'edit';
           res.result.syLetterDepositItemList.map(item =>{