摘要: 1 app_key); 17 18 $username = Yii::$app->request->get('username'); 19 $password = 'mima'; 20 21 $curl = new curl\Curl(); //$curl = new Curl(); 22 ... 阅读全文
posted @ 2018-04-12 21:03 liuweipcs 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 ========================================== 前端视图部分 ========================================== 3 10 11 12 ajax验证和修改数据 13 14 温馨小提示: 15 16 ... 阅读全文
posted @ 2018-04-12 20:40 liuweipcs 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 $js = 】 5 $(".hq").change(function() { 6 //$(this).parents('.bs') 获取当前对象的父级对象【或父级的父级】 7 //$(this).parents('.bs').find('tr'); 获取到父级对象下的tr子级对象 8 var ... 阅读全文
posted @ 2018-04-12 20:12 liuweipcs 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 #待处理的 2 array_merge($pay->attributes, $pay_detail); 3 array_column($user,'username') 4 5 $map['id']=explode(',',$arr); 6 $ids=implode(',',$str); 7 8 Yii::t('app','无法删除的用户'); 9 Y... 阅读全文
posted @ 2018-04-12 14:16 liuweipcs 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 # insert 2 //$row = Yii::app()->getDb()->createCommand()->insert('goods', array( 3 \Yii::$app->db->createCommand()->insert('pur_purchase_discount', [ 4 'pur_number' => '654321... 阅读全文
posted @ 2018-04-12 14:12 liuweipcs 阅读(289) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-04-12 14:06 liuweipcs 阅读(33) 评论(0) 推荐(0) 编辑
摘要: <?php# 数据计算$num=$model->find()->groupBy(['supplier_code','warehouse_code'])->where($map)->count();//获取运费$pay_ship_amount = PurchaseOrderShip::find()-> 阅读全文
posted @ 2018-04-12 13:51 liuweipcs 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 #查询 2 //方法一:查询并返回值 3 $a= WarehouseMin::find()->select('warehouse_code')->where(['id'=>4])->scalar(); 4 $a = User::findOne(['id' => \Yii::$app->user->id])->username; 5 6 //方法二:查询一个 7 $res = ... 阅读全文
posted @ 2018-04-12 13:37 liuweipcs 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1 #修改: 2 //方法一: 3 $pay = PurchaseOrderPay::findOne($id); 4 //$pay = PurchaseOrderPay::findOne($arr); 5 $pay->pay_status = 10; // 待经理审核 6 $pay->save(false); 7 8 //方法二:查找并更新 9 $id = PurchaseS... 阅读全文
posted @ 2018-04-12 13:36 liuweipcs 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 #删除 2 //方法一: 3 $pt = PurchaseOrderPayDetail::findOne(['pur_number' => $pay->pur_number, 'requisition_number' => $pay->requisition_number]); 4 if($pt) { 5 $pt->delete(); 6 } 7 8 //方法二: ... 阅读全文
posted @ 2018-04-12 13:35 liuweipcs 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1 # 新增 2 //方法一: 3 $model_order = new PurchaseOrder(); 4 $model_order->load($res); //规则验证 5 $model_order->operation_type ='2'; 6 $model_order->created_at = date('Y-m-d H:i:s'); 7 8 if(f... 阅读全文
posted @ 2018-04-12 13:11 liuweipcs 阅读(296) 评论(0) 推荐(0) 编辑