Commit a3bae0cd by huyue

提交收入测算

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