Commit a3bae0cd by huyue

提交收入测算

1 parent d5285f34
...@@ -98,6 +98,12 @@ export const rangePickerOptions = { ...@@ -98,6 +98,12 @@ export const rangePickerOptions = {
} }
} }
/** 时间空间-限制只能选昨天之前的时间 */
export const yesterdayPicker = {
disabledDate(date) {
return date.getTime() > Date.now() - 8.64e7
}
}
/** /**
* 时间控件-限制只能选当前及之后的日期 * 时间控件-限制只能选当前及之后的日期
*/ */
......
...@@ -73,13 +73,14 @@ ...@@ -73,13 +73,14 @@
</template> </template>
<script> <script>
import { rangePickerOptions } from '@/common/format' import { rangePickerOptions, yesterdayPicker } from '@/common/format'
export default { export default {
name: 'D2Search', name: 'D2Search',
data() { data() {
return { return {
pickerOption: { pickerOption: {
rangePickerOptions: rangePickerOptions rangePickerOptions: rangePickerOptions,
yesterdayPicker: yesterdayPicker
} }
} }
}, },
......
...@@ -380,8 +380,8 @@ export default { ...@@ -380,8 +380,8 @@ export default {
const r2 = await getRecordPage(params2) const r2 = await getRecordPage(params2)
console.log(r2); console.log(r2);
this.tableTotal = r2.total; this.tableTotal = r2.total;
// this.activeName = this.tabList[0].key; this.activeName = this.tabList[0].key;
if (this.activeName == 0) this.activeName = this.tabList[0].key // if (this.activeName == 0) this.activeName = this.tabList[0].key
console.log(this.activeName, this.activeName == 0, 'active'); console.log(this.activeName, this.activeName == 0, 'active');
this.recordData = r2.list; this.recordData = r2.list;
this.changeTable(isSort); this.changeTable(isSort);
......
...@@ -81,7 +81,8 @@ export default { ...@@ -81,7 +81,8 @@ export default {
type: 'select', type: 'select',
optionId: 'goodsId', optionId: 'goodsId',
optionLabel: 'goodsName', optionLabel: 'goodsName',
optionList: [] optionList: [],
isClear: true
}, },
{ {
label: '品牌', label: '品牌',
...@@ -110,7 +111,7 @@ export default { ...@@ -110,7 +111,7 @@ export default {
type: 'datePicker', type: 'datePicker',
dateType: 'date', dateType: 'date',
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'yesterdayPicker'
} }
], ],
getListApi: getIncomePage, getListApi: getIncomePage,
...@@ -157,8 +158,13 @@ export default { ...@@ -157,8 +158,13 @@ export default {
} }
}, },
{ {
label: '产品名称',
prop: 'showGoodsTypeName'
},
{
label: '应触客台数', label: '应触客台数',
prop: 'shouldToShopCount' prop: 'shouldToShopCount',
width: '100px',
}, },
{ {
label: '产值', label: '产值',
...@@ -192,7 +198,8 @@ export default { ...@@ -192,7 +198,8 @@ export default {
}, },
{ {
label: '客单价提成系数', label: '客单价提成系数',
prop: 'avgCustomerOrderPriceCalculateValue' prop: 'avgCustomerOrderPriceCalculateValue',
width: '150px',
}, },
{ {
label: '提成金额', label: '提成金额',
...@@ -200,7 +207,8 @@ export default { ...@@ -200,7 +207,8 @@ export default {
}, },
{ {
label: '测算收入日期', label: '测算收入日期',
prop: 'calculationDay' prop: 'calculationDay',
width: '120px',
}, },
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!