UNPKG

ttk-app-core

Version:
80 lines (78 loc) 1.64 kB
import moment from 'moment' export function getMeta() { return { name: 'root', component: '::div', className: 'ttk-scm-app-collect', children: { name: 'mail', component: 'Spin', delay: 1, tip: '{{data.other.tip}}', spinning: '{{data.loading}}', children: // [ { name: 'date', component: 'Form.Item', label: '采集发票月份', children: { name: 'date', component: 'DatePicker.MonthPicker', allowClear: false, className: 'collectDate-picker', value: '{{data.date}}', onChange: '{{$dateChange}}', disabledDate: '{{$disabledRangePicker}}' } }, // { // name: 'foot', // component: '::div', // style: { // marginTop: '20px', // textAlign: 'right' // }, // children: [ // { // component: 'Button', // children: '取消', // onClick: '{{$onCancel}}', // style: { // textAlign: 'center', // }, // }, // { // component: 'Button', // type: 'primary', // children: '确认', // onClick: '{{$onOk}}', // style: { // textAlign: 'center', // }, // } // ] // } //] }, } } export function getInitState() { return { data: { //date: moment().subtract(1, "months").startOf('month'),//采集发票月份 date:null, accountDate: null,//记账日期 loading: true, enableddate:null, other: { bankAccount: [ ], tip:'正在获取采集日期...' }, form: { bankAccountId: '暂未付款' } } } }