|
@@ -22,6 +22,7 @@ use crmeb\services\wechat\Payment;
|
|
use crmeb\services\FormBuilder as Form;
|
|
use crmeb\services\FormBuilder as Form;
|
|
use crmeb\services\WithdrawService;
|
|
use crmeb\services\WithdrawService;
|
|
use crmeb\traits\ServicesTrait;
|
|
use crmeb\traits\ServicesTrait;
|
|
|
|
+use FormBuilder\Factory\Iview;
|
|
use think\exception\ValidateException;
|
|
use think\exception\ValidateException;
|
|
use think\facade\Route as Url;
|
|
use think\facade\Route as Url;
|
|
|
|
|
|
@@ -300,6 +301,17 @@ class UserExtractServices extends BaseServices
|
|
return create_form('编辑', $f, Url::buildUrl('/finance/extract/' . $id), 'PUT');
|
|
return create_form('编辑', $f, Url::buildUrl('/finance/extract/' . $id), 'PUT');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ public function changeOrderStatusForm(int $id)
|
|
|
|
+ {
|
|
|
|
+ $f = array();
|
|
|
|
+ $f[] = Form::radio('status', '审核意见', '1')->setOptions([['label' => '通过', 'value' => '1'], ['label' => '拒绝', 'value' => '5'],]);
|
|
|
|
+ $field[] = Form::frameImage('icon', '具体结算清单', Url::buildUrl(config('admin.admin_prefix') . '/widget.images/index', array('fodder' => 'icon')))->icon('ios-add')->width('960px')->height('505px')->modal(['footer-hide' => true])->appendValidate(Iview::validateStr()->required()->message('请选择具体结算清单'));
|
|
|
|
+ $field[] = Form::frameImage('image', '公章图片', Url::buildUrl(config('admin.admin_prefix') . '/widget.images/index', array('fodder' => 'image')))->icon('ios-add')->width('960px')->height('505px')->modal(['footer-hide' => true])->appendValidate(Iview::validateStr()->required()->message('请选择公章图片'));
|
|
|
|
+ $f[] = Form::input('remarks', '备注')->type('textarea');
|
|
|
|
+ return create_form('编辑', $f, Url::buildUrl('/finance/extract/order/' . $id), 'PUT');
|
|
|
|
+ }
|
|
|
|
+
|
|
public function update(int $id, array $data)
|
|
public function update(int $id, array $data)
|
|
{
|
|
{
|
|
if (!$this->dao->update($id, $data))
|
|
if (!$this->dao->update($id, $data))
|