|
|
@@ -402,12 +402,13 @@ class _ExpenseCreatePageState extends ConsumerState<ExpenseCreatePage> {
|
|
|
'BX_DD': _today(),
|
|
|
'DEP': _selectedDeptId,
|
|
|
'USR_NO': _selEmployee?.salNo ?? '',
|
|
|
- 'PAY_ID': expense.paymentMethod,
|
|
|
+ // TODO: 支付方式、币别暂时隐藏
|
|
|
+ //'PAY_ID': expense.paymentMethod,
|
|
|
//'PRT_SW': 'N',
|
|
|
'USR': HostAppChannel.usr,
|
|
|
'REM': expense.remark,
|
|
|
- 'CUR_ID': expense.currencyCode,
|
|
|
- 'EXC_RTO': expense.excRto,
|
|
|
+ //'CUR_ID': expense.currencyCode,
|
|
|
+ //'EXC_RTO': expense.excRto,
|
|
|
'REASON': expense.purpose,
|
|
|
'VOH_ID': expense.isGenerateVoucher ? 'T' : 'F',
|
|
|
},
|
|
|
@@ -600,28 +601,29 @@ class _ExpenseCreatePageState extends ConsumerState<ExpenseCreatePage> {
|
|
|
backgroundColor: colors.bgPage,
|
|
|
onChanged: (_) => controller.updatePurpose(_purposeController.text),
|
|
|
),
|
|
|
- const SizedBox(height: 16),
|
|
|
- FormFieldRow(
|
|
|
- label: l10n.get('paymentMethod'),
|
|
|
- value: expense.paymentMethod,
|
|
|
- hint: l10n.get('pleaseEnter'),
|
|
|
- onTap: () => _showTextInput(
|
|
|
- l10n.get('paymentMethod'),
|
|
|
- (v) => controller.updatePaymentMethod(v),
|
|
|
- initialText: expense.paymentMethod,
|
|
|
- ),
|
|
|
- onClear: () => controller.updatePaymentMethod(''),
|
|
|
- ),
|
|
|
- const SizedBox(height: 16),
|
|
|
- FormFieldRow(
|
|
|
- label: l10n.get('currency'),
|
|
|
- value: expense.currencyCode.isNotEmpty
|
|
|
- ? _currencyLabel(expense.currencyCode)
|
|
|
- : null,
|
|
|
- hint: l10n.get('selectCurrency'),
|
|
|
- onTap: () => _showCurrencyPicker(controller, expense.currencyCode),
|
|
|
- onClear: () => controller.updateCurrencyCode('', 1.0),
|
|
|
- ),
|
|
|
+ // TODO: 支付方式、币别暂时隐藏
|
|
|
+ // const SizedBox(height: 16),
|
|
|
+ // FormFieldRow(
|
|
|
+ // label: l10n.get('paymentMethod'),
|
|
|
+ // value: expense.paymentMethod,
|
|
|
+ // hint: l10n.get('pleaseEnter'),
|
|
|
+ // onTap: () => _showTextInput(
|
|
|
+ // l10n.get('paymentMethod'),
|
|
|
+ // (v) => controller.updatePaymentMethod(v),
|
|
|
+ // initialText: expense.paymentMethod,
|
|
|
+ // ),
|
|
|
+ // onClear: () => controller.updatePaymentMethod(''),
|
|
|
+ // ),
|
|
|
+ // const SizedBox(height: 16),
|
|
|
+ // FormFieldRow(
|
|
|
+ // label: l10n.get('currency'),
|
|
|
+ // value: expense.currencyCode.isNotEmpty
|
|
|
+ // ? _currencyLabel(expense.currencyCode)
|
|
|
+ // : null,
|
|
|
+ // hint: l10n.get('selectCurrency'),
|
|
|
+ // onTap: () => _showCurrencyPicker(controller, expense.currencyCode),
|
|
|
+ // onClear: () => controller.updateCurrencyCode('', 1.0),
|
|
|
+ // ),
|
|
|
const SizedBox(height: 16),
|
|
|
Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|