Commit 68a6c0f8 authored by 郑娟's avatar 郑娟

fix:报价计算增加参数

parent 09737ab8
...@@ -1165,6 +1165,11 @@ export default { ...@@ -1165,6 +1165,11 @@ export default {
vm.saveInfo.penalty_rate = e.penalty_rate vm.saveInfo.penalty_rate = e.penalty_rate
vm.saveInfo.deposit_ratio = e.deposit_ratio vm.saveInfo.deposit_ratio = e.deposit_ratio
vm.saveInfo.deposit_ratio_n = e.deposit_ratio_n.replace('%', '') vm.saveInfo.deposit_ratio_n = e.deposit_ratio_n.replace('%', '')
//冬歇/雨歇起止日期
vm.saveInfo.fallow_date_f = e.fallow_date_f ? vm.dateFormat(e.fallow_date_f) : ''
vm.saveInfo.fallow_date_t = e.fallow_date_t ? vm.dateFormat(e.fallow_date_t) : ''
//首X期-期数
vm.saveInfo.lease_times_x = e.lease_times_x ? e.lease_times_x : ''
// vm.saveInfo.lease_times = e.lease_times // vm.saveInfo.lease_times = e.lease_times
vm.saveInfo.lease_times = '' vm.saveInfo.lease_times = ''
...@@ -1949,6 +1954,11 @@ export default { ...@@ -1949,6 +1954,11 @@ export default {
name: 'CreateEnclosureInfo', name: 'CreateEnclosureInfo',
}) })
}, },
dateFormat (timestamp) {
if (!timestamp) return '';
var newDate = /\d{4}-\d{1,2}-\d{1,2}/g.exec(timestamp);
return newDate[0];
}
} }
, ,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment