|
|
@@ -554,4 +554,32 @@ class CostAccounting extends Api
|
|
|
->select();
|
|
|
$this->success('成功', $list);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 车间人工工单详情
|
|
|
+ * @return void
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
+ public function SummaryCostAccountingList()
|
|
|
+ {
|
|
|
+ if ($this->request->isGet() === false) {
|
|
|
+ $this->error('请求错误');
|
|
|
+ }
|
|
|
+ $param = $this->request->param();
|
|
|
+ if (empty($param)) {
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $list = db('成本v23_月度成本明细')
|
|
|
+ ->where('车间名称', $param['sist'])
|
|
|
+ ->where('sys_ny', $param['month'])
|
|
|
+ ->order('sczl_gdbh')
|
|
|
+ ->select();
|
|
|
+ if (empty($list)) {
|
|
|
+ $this->error('未找到数据');
|
|
|
+ }else{
|
|
|
+ $this->success('成功', $list);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|