Commit 83d4a589 by peii

feat: 查询单据时默认只查询最新1个月

parent 6da86323
......@@ -88,7 +88,7 @@ class FilterModel extends Component {
ship_to_site_code: '', // 收货地点
doctor_name: '', // 主治医生
// surgery_type_code: '', // 手术类型 -- 不用此参数
surgery_date_from: '', // 手术时间开始
surgery_date_from: moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD'), // 手术时间开始
surgery_date_to: '', // 手术时间结束
order_type_code: '', // 订单类型
department_code: '', // 部门
......@@ -101,7 +101,7 @@ class FilterModel extends Component {
customer_code: '', // 客户名称
patient_name: '', // 患者姓名
patient_id: '', // 病历号
consume_date_from: '', // 消耗时间开始
consume_date_from: moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD'), // 消耗时间开始
consume_date_to: '', // 消耗时间结束
patient_bed: '', // 床位
hospitalization_number: '', // 住院号
......@@ -179,7 +179,7 @@ class FilterModel extends Component {
id: '8',
title: '手术时间',
name: '开始时间',
value: '',
value: moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD'), // 手术时间开始,
dateValue: new Date(),
},
{
......@@ -245,7 +245,7 @@ class FilterModel extends Component {
id: '6',
title: '消耗时间',
name: '开始时间',
value: '',
value: moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD'), // 手术时间开始'',
dateValue: new Date(),
},
{
......@@ -1647,7 +1647,7 @@ class FilterModel extends Component {
tempSubOption.doctor_name = borrowListOptionData[6].value
}
// tempSubOption.surgery_type_code = borrowListOptionData[7].value
tempSubOption.surgery_date_from = borrowListOptionData[8].value
tempSubOption.surgery_date_from = borrowListOptionData[8].value || moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD')
tempSubOption.surgery_date_to = borrowListOptionData[9].value
tempSubOption.order_type_code = borrowListOptionData[10].value
tempSubOption.department_code = borrowListOptionData[11].value
......@@ -1669,7 +1669,7 @@ class FilterModel extends Component {
tempSubOption.customer_code = consumeListOptionData[3].value
tempSubOption.patient_name = consumeListOptionData[4].value
tempSubOption.patient_id = consumeListOptionData[5].value
tempSubOption.consume_date_from = consumeListOptionData[6].value
tempSubOption.consume_date_from = consumeListOptionData[6].value || moment(new Date()).subtract(1, 'month').format('YYYY-MM-DD')
tempSubOption.consume_date_to = consumeListOptionData[7].value
tempSubOption.patient_bed = consumeListOptionData[8].value
tempSubOption.hospitalization_number = consumeListOptionData[9].value
......
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 sign in to comment