Browse Source

添加特殊权限

master
nizongfeng 1 year ago
parent
commit
1165486921
5 changed files with 20 additions and 4 deletions
  1. +8
    -0
      application/admin/controller/PaymentOrder.php
  2. +8
    -0
      application/admin/controller/ReceiptOrder.php
  3. +2
    -2
      application/admin/view/order_main/index.html
  4. +1
    -1
      application/admin/view/payment_order/index.html
  5. +1
    -1
      application/admin/view/receipt_order/index.html

+ 8
- 0
application/admin/controller/PaymentOrder.php View File

@@ -2,7 +2,9 @@

namespace app\admin\controller;

use app\admin\command\Util;
use app\admin\dao\GroupDao;
use app\admin\model\AuthGroup;
use app\admin\service\PaymentOrderService;
use app\common\controller\Backend;

@@ -70,6 +72,12 @@ class PaymentOrder extends Backend
* @return \think\response\Json
*/
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();
$service = new PaymentOrderService();
$result = $service->setStatus($params['id'],$params['status']);


+ 8
- 0
application/admin/controller/ReceiptOrder.php View File

@@ -2,7 +2,9 @@

namespace app\admin\controller;

use app\admin\command\Util;
use app\admin\dao\GroupDao;
use app\admin\model\AuthGroup;
use app\admin\service\ReceiptOrderDao;
use app\admin\service\ReceiptOrderService;
use app\common\controller\Backend;
@@ -74,6 +76,12 @@ class ReceiptOrder extends Backend
* @return \think\response\Json
*/
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();
$service = new ReceiptOrderService();
$result = $service->setStatus($params['id'],$params['status']);


+ 2
- 2
application/admin/view/order_main/index.html View File

@@ -440,7 +440,7 @@
},
memoList:[],
showMemo:false,
isExpand: true,
isExpand: false,
showTable:true
}
},
@@ -699,7 +699,7 @@
</script>
<style lang="scss" scoped>
.el-table .success-row {
background: #f6fbf6;
background: #f9ebeb;
}
/*修改展开按钮的样式 start*/
/*1.取消原本展开的旋转动效*/


+ 1
- 1
application/admin/view/payment_order/index.html View File

@@ -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="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" 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>
</template>
</el-table-column>


+ 1
- 1
application/admin/view/receipt_order/index.html View File

@@ -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="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" 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>
</template>
</el-table-column>


Loading…
Cancel
Save