@@ -2,7 +2,9 @@ | |||||
namespace app\admin\controller; | namespace app\admin\controller; | ||||
use app\admin\command\Util; | |||||
use app\admin\dao\GroupDao; | use app\admin\dao\GroupDao; | ||||
use app\admin\model\AuthGroup; | |||||
use app\admin\service\PaymentOrderService; | use app\admin\service\PaymentOrderService; | ||||
use app\common\controller\Backend; | use app\common\controller\Backend; | ||||
@@ -70,6 +72,12 @@ class PaymentOrder extends Backend | |||||
* @return \think\response\Json | * @return \think\response\Json | ||||
*/ | */ | ||||
public function setStatus(){ | public function setStatus(){ | ||||
$groupIds = $this->auth->getGroupIds(); | |||||
$authGroup = new AuthGroup(); | |||||
$cnt = $authGroup->where(["id" => ["in",$groupIds], "finance_flag" => 1])->count("*"); | |||||
if ($cnt==0) { | |||||
return json(Util::returnArrEr("未获取财务部门权限")); | |||||
} | |||||
$params=$this->request->post(); | $params=$this->request->post(); | ||||
$service = new PaymentOrderService(); | $service = new PaymentOrderService(); | ||||
$result = $service->setStatus($params['id'],$params['status']); | $result = $service->setStatus($params['id'],$params['status']); | ||||
@@ -2,7 +2,9 @@ | |||||
namespace app\admin\controller; | namespace app\admin\controller; | ||||
use app\admin\command\Util; | |||||
use app\admin\dao\GroupDao; | use app\admin\dao\GroupDao; | ||||
use app\admin\model\AuthGroup; | |||||
use app\admin\service\ReceiptOrderDao; | use app\admin\service\ReceiptOrderDao; | ||||
use app\admin\service\ReceiptOrderService; | use app\admin\service\ReceiptOrderService; | ||||
use app\common\controller\Backend; | use app\common\controller\Backend; | ||||
@@ -74,6 +76,12 @@ class ReceiptOrder extends Backend | |||||
* @return \think\response\Json | * @return \think\response\Json | ||||
*/ | */ | ||||
public function setStatus(){ | public function setStatus(){ | ||||
$groupIds = $this->auth->getGroupIds(); | |||||
$authGroup = new AuthGroup(); | |||||
$cnt = $authGroup->where(["id" => ["in",$groupIds], "finance_flag" => 1])->count("*"); | |||||
if ($cnt==0) { | |||||
return json(Util::returnArrEr("未获取财务部门权限")); | |||||
} | |||||
$params=$this->request->post(); | $params=$this->request->post(); | ||||
$service = new ReceiptOrderService(); | $service = new ReceiptOrderService(); | ||||
$result = $service->setStatus($params['id'],$params['status']); | $result = $service->setStatus($params['id'],$params['status']); | ||||
@@ -440,7 +440,7 @@ | |||||
}, | }, | ||||
memoList:[], | memoList:[], | ||||
showMemo:false, | showMemo:false, | ||||
isExpand: true, | |||||
isExpand: false, | |||||
showTable:true | showTable:true | ||||
} | } | ||||
}, | }, | ||||
@@ -699,7 +699,7 @@ | |||||
</script> | </script> | ||||
<style lang="scss" scoped> | <style lang="scss" scoped> | ||||
.el-table .success-row { | .el-table .success-row { | ||||
background: #f6fbf6; | |||||
background: #f9ebeb; | |||||
} | } | ||||
/*修改展开按钮的样式 start*/ | /*修改展开按钮的样式 start*/ | ||||
/*1.取消原本展开的旋转动效*/ | /*1.取消原本展开的旋转动效*/ | ||||
@@ -77,7 +77,7 @@ | |||||
<el-button type="primary" size="mini" @click="edit(scope.row)" icon="el-icon-edit" style="margin: 5px;">编辑</el-button> | <el-button type="primary" size="mini" @click="edit(scope.row)" icon="el-icon-edit" style="margin: 5px;">编辑</el-button> | ||||
<el-button type="success" size="mini" @click="editOrderDivShow(scope.row)" icon="el-icon-share" style="margin: 5px;">订单</el-button> | <el-button type="success" size="mini" @click="editOrderDivShow(scope.row)" icon="el-icon-share" style="margin: 5px;">订单</el-button> | ||||
<el-button type="danger" size="mini" v-if="scope.row.status==0" icon="el-icon-delete" @click="delAll(scope.row.id)" style="margin: 5px;">删除</el-button> | <el-button type="danger" size="mini" v-if="scope.row.status==0" icon="el-icon-delete" @click="delAll(scope.row.id)" style="margin: 5px;">删除</el-button> | ||||
<el-button type="danger" size="mini" icon="el-icon-search" @click="showFile(scope.row.id)" style="margin: 5px;">附件</el-button> | |||||
<el-button type="primary" size="mini" icon="el-icon-search" @click="showFile(scope.row.id)" style="margin: 5px;">附件</el-button> | |||||
</el-button-group> | </el-button-group> | ||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
@@ -68,7 +68,7 @@ | |||||
<el-button type="primary" size="mini" @click="edit(scope.row)" icon="el-icon-edit" style="margin: 5px;">编辑</el-button> | <el-button type="primary" size="mini" @click="edit(scope.row)" icon="el-icon-edit" style="margin: 5px;">编辑</el-button> | ||||
<el-button type="success" size="mini" @click="editOrderDivShow(scope.row)" icon="el-icon-share" style="margin: 5px;">订单</el-button> | <el-button type="success" size="mini" @click="editOrderDivShow(scope.row)" icon="el-icon-share" style="margin: 5px;">订单</el-button> | ||||
<el-button type="danger" size="mini" v-if="scope.row.status==0" icon="el-icon-delete" @click="delAll(scope.row.id)" style="margin: 5px;">删除</el-button> | <el-button type="danger" size="mini" v-if="scope.row.status==0" icon="el-icon-delete" @click="delAll(scope.row.id)" style="margin: 5px;">删除</el-button> | ||||
<el-button type="danger" size="mini" icon="el-icon-search" @click="showFile(scope.row.id)" style="margin: 5px;">附件</el-button> | |||||
<el-button type="primary" size="mini" icon="el-icon-search" @click="showFile(scope.row.id)" style="margin: 5px;">附件</el-button> | |||||
</el-button-group> | </el-button-group> | ||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||