24 lines
1.8 KiB
Plaintext
24 lines
1.8 KiB
Plaintext
<!--pages/add-affairs/add-affairs.wxml-->
|
|
<t-message id="t-message" />
|
|
<wxs module="times" src="../../utils/time.wxs" />
|
|
<wxs module="dict" src="../../utils/dict.wxs" />
|
|
<wxs module="utils" src="../../utils/utils.wxs" />
|
|
<view class="add-affairs">
|
|
<view class="add-affairs-form">
|
|
<t-input label="事项" bind:change="onChange" data-field="event" value="{{form.event}}" align="right" placeholder="请输入事项"></t-input>
|
|
<t-cell title="选择类别" hover note="{{dict.getDictLabel(form.type[0], types) || ''}}" arrow data-mode="type" bindtap="showTypePicker" class="test" t-class="panel-item" />
|
|
<t-cell title="选择日期" hover note="{{times.formatDate(form.date) || ''}}" arrow data-mode="date" bindtap="showTimePicker" class="test" t-class="panel-item" />
|
|
<t-input label="对方账户" bind:change="onChange" data-field="oppositeCompany" value="{{form.oppositeCompany}}" align="right" placeholder="请输入对方账户"></t-input>
|
|
<t-input label="金额" type="number" bind:change="onChange" data-field="amount" value="{{form.amount}}" align="right" placeholder="请输入金额"></t-input>
|
|
</view>
|
|
<view wx:if="{{utils.hasPermission('finance:detail:edit', permissions)}}" class="submit-button">
|
|
<t-button bind:tap="handleSubmitFinance" theme="primary" block>确认提交</t-button>
|
|
</view>
|
|
|
|
<!-- 年月日 -->
|
|
<t-date-time-picker title="选择日期" visible="{{dateVisible}}" mode="date" defaultValue="{{form.date || defaultTime}}" format="YYYY-MM-DD HH:mm:ss" bindchange="handleConfirmTime" bindcancel="hideTimePicker" />
|
|
|
|
<t-picker visible="{{pickerVisible}}" value="{{form.type}}" data-key="type" title="选择类别" cancelBtn="取消" confirmBtn="确认" bindchange="onPickerChange" bindpick="onColumnChange" bindcancel="onPickerCancel">
|
|
<t-picker-item options="{{types}}" />
|
|
</t-picker>
|
|
</view> |