|
|
@@ -970,40 +970,6 @@ class WorkOrderProcess extends Api
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取工单信息和工单制造工分
|
|
|
- * @param workorder 工单编号
|
|
|
- * @return array
|
|
|
- * @throws \think\db\exception\DataNotFoundException
|
|
|
- * @throws \think\db\exception\ModelNotFoundException
|
|
|
- * @throws \think\exception\DbException
|
|
|
- */
|
|
|
- public function getWorkOrderInfo()
|
|
|
- {
|
|
|
- if (!$this->request->isGet()) {
|
|
|
- $this->error('请求方法错误');
|
|
|
- }
|
|
|
- $params = $this->request->param();
|
|
|
- if (empty($params['workorder'])) {
|
|
|
- $this->error('工单编号不能为空');
|
|
|
- }
|
|
|
- $where = [
|
|
|
- '订单编号' => $params['workorder'],
|
|
|
- 'Mod_rq' => null,
|
|
|
- ];
|
|
|
- $workOrderInfo = Db::table('工单_基本资料')
|
|
|
- ->where($where)
|
|
|
- ->field('订单编号,客户编号,生产款号,款式,落货日期,审核日期,接单日期,审核,订单数量,计划制造工分,Uniqid')
|
|
|
- ->find();
|
|
|
- if (empty($workOrderInfo)) {
|
|
|
- $this->error('工单不存在');
|
|
|
- }
|
|
|
- $this->success('成功', $workOrderInfo);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 获取工单工艺信息
|
|
|
* @param workorder 工单编号
|