Commit f12608a5 authored by lujunye's avatar lujunye

1.5.1上架版本

parent d2447cf8
...@@ -3685,7 +3685,7 @@ ...@@ -3685,7 +3685,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = GeliBusinessPlatform/GeliBusinessPlatform.entitlements; CODE_SIGN_ENTITLEMENTS = GeliBusinessPlatform/GeliBusinessPlatform.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.26; CURRENT_PROJECT_VERSION = 1.27;
DEFINES_MODULE = NO; DEFINES_MODULE = NO;
DEVELOPMENT_ASSET_PATHS = "\"GeliBusinessPlatform/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"GeliBusinessPlatform/Preview Content\"";
DEVELOPMENT_TEAM = K48346UACH; DEVELOPMENT_TEAM = K48346UACH;
...@@ -3733,7 +3733,7 @@ ...@@ -3733,7 +3733,7 @@
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib", "$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib",
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/SDK/ShareSDK/Support/PlatformSDK/WeChatSDK", "$(PROJECT_DIR)/GeliBusinessPlatform/Other/SDK/ShareSDK/Support/PlatformSDK/WeChatSDK",
); );
MARKETING_VERSION = 1.5; MARKETING_VERSION = 1.5.1;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",
...@@ -3814,7 +3814,7 @@ ...@@ -3814,7 +3814,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = GeliBusinessPlatform/GeliBusinessPlatform.entitlements; CODE_SIGN_ENTITLEMENTS = GeliBusinessPlatform/GeliBusinessPlatform.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.26; CURRENT_PROJECT_VERSION = 1.27;
DEFINES_MODULE = NO; DEFINES_MODULE = NO;
DEVELOPMENT_ASSET_PATHS = "\"GeliBusinessPlatform/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"GeliBusinessPlatform/Preview Content\"";
DEVELOPMENT_TEAM = K48346UACH; DEVELOPMENT_TEAM = K48346UACH;
...@@ -3862,7 +3862,7 @@ ...@@ -3862,7 +3862,7 @@
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib", "$(PROJECT_DIR)/GeliBusinessPlatform/Other/JPush/Lib",
"$(PROJECT_DIR)/GeliBusinessPlatform/Other/SDK/ShareSDK/Support/PlatformSDK/WeChatSDK", "$(PROJECT_DIR)/GeliBusinessPlatform/Other/SDK/ShareSDK/Support/PlatformSDK/WeChatSDK",
); );
MARKETING_VERSION = 1.5; MARKETING_VERSION = 1.5.1;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
<string>$(CURRENT_PROJECT_VERSION)</string> <string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>MOBAppKey</key>
<string>2ff67ee668728</string>
<key>MOBAppSecret</key>
<string>20e76534ce633b6488851fe9f67349e0</string>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
<dict> <dict>
<key>NSAllowsArbitraryLoads</key> <key>NSAllowsArbitraryLoads</key>
...@@ -68,9 +72,5 @@ ...@@ -68,9 +72,5 @@
</array> </array>
<key>UIUserInterfaceStyle</key> <key>UIUserInterfaceStyle</key>
<string>Light</string> <string>Light</string>
<key>MOBAppKey</key>
<string>2ff67ee668728</string>
<key>MOBAppSecret</key>
<string>20e76534ce633b6488851fe9f67349e0</string>
</dict> </dict>
</plist> </plist>
...@@ -90,7 +90,7 @@ class accountsPayableDetailDataListModel: Mappable { ...@@ -90,7 +90,7 @@ class accountsPayableDetailDataListModel: Mappable {
var money:String?//金额(根据类型应付已付决定) var money:String?//金额(根据类型应付已付决定)
var type :Int?//类型:1应付 2已付 var type :Int?//类型:1应付 2已付
var create_time :Double? //时间 var add_time :Double? //时间
var payable_money:String? //欠款额 var payable_money:String? //欠款额
var status :Int? //支付状态:1应付未付 2应付已付 var status :Int? //支付状态:1应付未付 2应付已付
...@@ -107,7 +107,7 @@ class accountsPayableDetailDataListModel: Mappable { ...@@ -107,7 +107,7 @@ class accountsPayableDetailDataListModel: Mappable {
money <- map["money"] money <- map["money"]
type <- map["type"] type <- map["type"]
create_time <- map["create_time"] add_time <- map["add_time"]
payable_money <- map["payable_money"] payable_money <- map["payable_money"]
status <- map["status"] status <- map["status"]
...@@ -202,7 +202,7 @@ class accountReceivableDetailListModel: Mappable { ...@@ -202,7 +202,7 @@ class accountReceivableDetailListModel: Mappable {
var money:String? //交易金额(为贷方金额还是借方金额,由 type 字段确定) var money:String? //交易金额(为贷方金额还是借方金额,由 type 字段确定)
var type : Int? //类型 1借出 2归还 var type : Int? //类型 1借出 2归还
var create_time :Double? //时间 var add_time :Double? //时间
var update_time:Double? var update_time:Double?
var is_del : Int? var is_del : Int?
...@@ -224,7 +224,7 @@ class accountReceivableDetailListModel: Mappable { ...@@ -224,7 +224,7 @@ class accountReceivableDetailListModel: Mappable {
money <- map["money"] money <- map["money"]
type <- map["type"] type <- map["type"]
create_time <- map["create_time"] add_time <- map["add_time"]
update_time <- map["update_time"] update_time <- map["update_time"]
is_del <- map["is_del"] is_del <- map["is_del"]
......
...@@ -11,8 +11,8 @@ import ViewAnimator ...@@ -11,8 +11,8 @@ import ViewAnimator
import SkeletonView import SkeletonView
class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollectionViewDataSource ,UICollectionViewDelegateFlowLayout,HeaderSelectViewDelegate,SelectContentViewDelegate,UISearchBarDelegate, SearchBarViewDelegate, GoodsCollectionViewCellDelegate,ProductDetailViewControllerDelegate, GeliAlertViewDelegate,EPViewControllerDelegate{ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollectionViewDataSource ,UICollectionViewDelegateFlowLayout,HeaderSelectViewDelegate,SelectContentViewDelegate,UISearchBarDelegate, SearchBarViewDelegate, GoodsCollectionViewCellDelegate,ProductDetailViewControllerDelegate, GeliAlertViewDelegate,EPViewControllerDelegate{
let UserToken = UserDefaults.standard.value(forKey: "user_token") let UserToken = UserDefaults.standard.value(forKey: "user_token")
var collection : UICollectionView? = nil var collection : UICollectionView? = nil
var layout = UICollectionViewFlowLayout() var layout = UICollectionViewFlowLayout()
...@@ -91,7 +91,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -91,7 +91,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
//MARK:--jpushServiceNotification //MARK:--jpushServiceNotification
@objc func jpushServiceNotification(notion:Notification) { @objc func jpushServiceNotification(notion:Notification) {
let dict = notion.userInfo! as NSDictionary let dict = notion.userInfo! as NSDictionary
print("123123 ==",dict.allKeys) print("123123 ==",dict.allKeys)
let vc = MsgCenterViewController() let vc = MsgCenterViewController()
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
...@@ -129,16 +129,16 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -129,16 +129,16 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
page = pageNum page = pageNum
} }
getSortData () getSortData ()
goodsList(["user_token":UserToken as Any,"keyword":keyword,"goods_type":goodsType,"sort":sort,"is_show":isShow,"page":page], success: { (data) in goodsList(["user_token":UserToken as Any,"keyword":keyword,"goods_type":goodsType,"sort":sort,"is_show":isShow,"page":page], success: { (data) in
let dataM = data as! GoodsListModel let dataM = data as! GoodsListModel
if self.isSearch { if self.isSearch {
self.pageSearchNum = 2 self.pageSearchNum = 2
self.itemsSearch.removeAll() self.itemsSearch.removeAll()
dataM.data?.goods_res?.forEach({ (model) in dataM.data?.goods_res?.forEach({ (model) in
self.itemsSearch.append(model) self.itemsSearch.append(model)
}) })
}else{ }else{
self.pageNum = 2 self.pageNum = 2
self.items.removeAll() self.items.removeAll()
...@@ -177,7 +177,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -177,7 +177,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
} }
getSortData () getSortData ()
goodsList(["user_token":UserToken as Any,"keyword":keyword,"goods_type":goodsType,"sort":sort,"is_show":isShow,"page":page], success: { (data) in goodsList(["user_token":UserToken as Any,"keyword":keyword,"goods_type":goodsType,"sort":sort,"is_show":isShow,"page":page], success: { (data) in
let dataM = data as! GoodsListModel let dataM = data as! GoodsListModel
if (dataM.data?.goods_res!.count)! > 0 { if (dataM.data?.goods_res!.count)! > 0 {
...@@ -194,7 +194,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -194,7 +194,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
} }
self.collection?.reloadData() self.collection?.reloadData()
self.collection?.mj_footer?.endRefreshing() self.collection?.mj_footer?.endRefreshing()
}else{ }else{
self.collection?.mj_footer?.endRefreshingWithNoMoreData() self.collection?.mj_footer?.endRefreshingWithNoMoreData()
} }
...@@ -212,7 +212,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -212,7 +212,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
if showSelectV != nil { if showSelectV != nil {
showSelectV.removeFromSuperview() showSelectV.removeFromSuperview()
selectV.colseBytitleArr(arr: [], index:showSelectvIndex) selectV.colseBytitleArr(arr: [], index:showSelectvIndex)
} }
blackBtnView = UIButton () blackBtnView = UIButton ()
blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色") blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色")
...@@ -241,11 +241,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -241,11 +241,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
isSearch = true isSearch = true
keyword = searchBar.text! keyword = searchBar.text!
self.collection?.mj_header?.beginRefreshing() self.collection?.mj_header?.beginRefreshing()
} }
//MARK:--清空搜索代理 //MARK:--清空搜索代理
func clearSearchAction() { func clearSearchAction() {
} }
//MARK:--编辑即将结束 //MARK:--编辑即将结束
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) { func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
...@@ -269,7 +269,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -269,7 +269,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
if showSelectV != nil { if showSelectV != nil {
showSelectV.removeFromSuperview() showSelectV.removeFromSuperview()
selectV.colseBytitleArr(arr: [], index:showSelectvIndex) selectV.colseBytitleArr(arr: [], index:showSelectvIndex)
} }
let vc = ProductDetailViewController() let vc = ProductDetailViewController()
vc.delegate = self vc.delegate = self
...@@ -278,11 +278,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -278,11 +278,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
} }
//MARK:--新增回调刷新 //MARK:--新增回调刷新
func EPViewControllerFinishEdit() { func EPViewControllerFinishEdit() {
self.collection?.mj_header?.beginRefreshing() self.collection?.mj_header?.beginRefreshing()
} }
func reloadDataByProductDetailViewController() { func reloadDataByProductDetailViewController() {
self.collection?.mj_header?.beginRefreshing() self.collection?.mj_header?.beginRefreshing()
} }
//MARK:--下拉视图模块 //MARK:--下拉视图模块
func showAction(sender: Int) { func showAction(sender: Int) {
...@@ -371,7 +371,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -371,7 +371,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
headerLbl.text = "" headerLbl.text = ""
} }
} }
headerLbl.textColor = UIColor.init(named: "标题字颜色") headerLbl.textColor = UIColor.init(named: "标题字颜色")
headerLbl.font = UIFont.systemFont(ofSize: 13) headerLbl.font = UIFont.systemFont(ofSize: 13)
headerV.addSubview(headerLbl) headerV.addSubview(headerLbl)
...@@ -404,7 +404,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -404,7 +404,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
cell.goodsName.text = rowModel.goods_name cell.goodsName.text = rowModel.goods_name
cell.speatrr.text = rowModel.spec_str cell.speatrr.text = rowModel.spec_str
cell.priceLbl.text = "¥" + rowModel.price! cell.priceLbl.text = "¥" + rowModel.price!
cell.goodsImgV.sd_setImage(with: URL(string: SERVERCE_ImageHost + rowModel.goods_thumb!)) cell.goodsImgV.sd_setImage(with: URL(string: SERVERCE_ImageHost + rowModel.goods_thumb!))
if rowModel.is_show == 1 { if rowModel.is_show == 1 {
...@@ -413,7 +413,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -413,7 +413,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}else if rowModel.is_show == 0{ }else if rowModel.is_show == 0{
cell.leftBtn.setTitle("入库", for: .normal) cell.leftBtn.setTitle("入库", for: .normal)
cell.rightBtn.setTitle("上架", for: .normal) cell.rightBtn.setTitle("上架", for: .normal)
} }
cell.lgBtn.tag = indexPath.row cell.lgBtn.tag = indexPath.row
cell.leftBtn.tag = indexPath.row cell.leftBtn.tag = indexPath.row
...@@ -447,7 +447,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -447,7 +447,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
vc.sku_id = data.sku_id vc.sku_id = data.sku_id
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
//MARK:---cell delegate 选中 //MARK:---cell delegate 选中
func selectListsIndex(index: Int) { func selectListsIndex(index: Int) {
let idx = IndexPath(item: index, section: 0) let idx = IndexPath(item: index, section: 0)
...@@ -499,16 +499,16 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -499,16 +499,16 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
if rowModel.is_show == 1 { if rowModel.is_show == 1 {
if isTrue { if isTrue {
print("入库哦哦") print("入库哦哦")
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
// return // return
let vc = NewRKVc() let vc = NewRKVc()
// let vc = NewCKVc() // let vc = NewCKVc()
vc.sku_id = changeGoodsResModel?.sku_id vc.sku_id = changeGoodsResModel?.sku_id
vc.goods_id = changeGoodsResModel?.goods_id vc.goods_id = changeGoodsResModel?.goods_id
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
// let vc = RuKuViewController() // let vc = RuKuViewController()
// vc.barTitle = "入库" // vc.barTitle = "入库"
// self.navigationController?.pushViewController(vc, animated: true) // self.navigationController?.pushViewController(vc, animated: true)
}else{ }else{
print("下架啦") print("下架啦")
let alertView = GeliAlertView(frame: self.view.window!.bounds) let alertView = GeliAlertView(frame: self.view.window!.bounds)
...@@ -519,7 +519,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -519,7 +519,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
alertView.rightBtn.tag = 1001 alertView.rightBtn.tag = 1001
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
} }
}else{ }else{
if isTrue { if isTrue {
...@@ -531,19 +531,18 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -531,19 +531,18 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal) alertView.rightBtn.setAttributedTitle(NSAttributedString(string: "确认"), for: .normal)
alertView.rightBtn.tag = 1002 alertView.rightBtn.tag = 1002
self.view.window?.addSubview(alertView) self.view.window?.addSubview(alertView)
}else{ }else{
print("入库哦哦") print("入库哦哦")
let vc = NewRKVc() let vc = NewRKVc()
// let vc = NewCKVc()
vc.sku_id = changeGoodsResModel?.sku_id vc.sku_id = changeGoodsResModel?.sku_id
vc.goods_id = changeGoodsResModel?.goods_id vc.goods_id = changeGoodsResModel?.goods_id
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
} }
} }
func upDataByGoodsId(goodsId:String) { func upDataByGoodsId(goodsId:String) {
} }
} }
...@@ -44,13 +44,13 @@ class YingFuZhangKuanXQCell: UITableViewCell { ...@@ -44,13 +44,13 @@ class YingFuZhangKuanXQCell: UITableViewCell {
if data != nil { if data != nil {
nameLbl.text = data?.order_sn nameLbl.text = data?.order_sn
if data?.create_time != nil { if data?.add_time != nil {
dateLbl.text = dayAndTimeByDouble(sender: (data?.create_time)!) dateLbl.text = dayAndTimeByDouble(sender: (data?.add_time)!)
} }
date2Lbl.isHidden = true date2Lbl.isHidden = true
if data?.pay_time != 0 && data?.pay_time != nil { if data?.pay_time != 0 && data?.pay_time != nil {
date2Lbl.text = "收款时间:" + dayAndTimeByDouble(sender: (data?.pay_time)!) date2Lbl.text = "收款时间:" + dayAndTimeByDouble(sender: (data?.pay_time)!)
// date2Lbl.isHidden = false date2Lbl.isHidden = false
} }
priceLbl3.text = data?.arrears_money! priceLbl3.text = data?.arrears_money!
...@@ -82,11 +82,11 @@ class YingFuZhangKuanXQCell: UITableViewCell { ...@@ -82,11 +82,11 @@ class YingFuZhangKuanXQCell: UITableViewCell {
if model != nil { if model != nil {
nameLbl.text = model?.po_no! nameLbl.text = model?.po_no!
dateLbl.text = dayAndTimeByDouble(sender: (model?.create_time!)!) dateLbl.text = dayAndTimeByDouble(sender: (model?.add_time!)!)
date2Lbl.isHidden = true date2Lbl.isHidden = true
if model?.pay_time != 0 && model?.pay_time != nil { if model?.pay_time != 0 && model?.pay_time != nil {
date2Lbl.text = "付款时间:" + dayAndTimeByDouble(sender: (model?.pay_time!)!) date2Lbl.text = "付款时间:" + dayAndTimeByDouble(sender: (model?.pay_time!)!)
// date2Lbl.isHidden = false date2Lbl.isHidden = false
} }
// if model?.type == 1 {//应付 // if model?.type == 1 {//应付
priceLbl1.text = model?.money priceLbl1.text = model?.money
......
...@@ -26,17 +26,27 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -26,17 +26,27 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
@IBOutlet weak var selectimeBV: UIView! @IBOutlet weak var selectimeBV: UIView!
@IBAction func btnSelect(_ sender: UIButton) { @IBAction func btnSelect(_ sender: UIButton) {
if sender.tag == 0 { if sender.tag == 0 {
leftBtn.backgroundColor = UIColor(named: "按钮背景颜色")
rightBtn.backgroundColor = UIColor(named: "分类Cell背景色") rightBtn.backgroundColor = UIColor(named: "分类Cell背景色")
leftBtn.isSelected = true leftBtn.isSelected = !leftBtn.isSelected
if leftBtn.isSelected {
leftBtn.backgroundColor = UIColor(named: "按钮背景颜色")
time_type = 1
}else{
leftBtn.backgroundColor = UIColor(named: "分类Cell背景色")
time_type = 0
}
rightBtn.isSelected = false rightBtn.isSelected = false
time_type = 1
}else{ }else{
leftBtn.backgroundColor = UIColor(named: "分类Cell背景色") leftBtn.backgroundColor = UIColor(named: "分类Cell背景色")
rightBtn.backgroundColor = UIColor(named: "按钮背景颜色")
leftBtn.isSelected = false leftBtn.isSelected = false
rightBtn.isSelected = true rightBtn.isSelected = !rightBtn.isSelected
time_type = 2 if rightBtn.isSelected {
rightBtn.backgroundColor = UIColor(named: "按钮背景颜色")
time_type = 2
}else{
rightBtn.backgroundColor = UIColor(named: "分类Cell背景色")
time_type = 0
}
} }
//10086 //10086
timeView.removeFromSuperview() timeView.removeFromSuperview()
...@@ -59,7 +69,10 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -59,7 +69,10 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
} }
@IBAction func showSelectAction(_ sender: UIButton) { @IBAction func showSelectAction(_ sender: UIButton) {
removeBlackBtnView()
selectView.isHidden = !selectView.isHidden selectView.isHidden = !selectView.isHidden
closeBtn.isHidden = selectView.isHidden closeBtn.isHidden = selectView.isHidden
...@@ -215,7 +228,8 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -215,7 +228,8 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
//上拉加载相关设置 //上拉加载相关设置
listView.mj_header?.beginRefreshing() listView.mj_header?.beginRefreshing()
footerMJ.setRefreshingTarget(self, refreshingAction: #selector(self.loadMoreData))
listView.mj_footer = self.footerMJ
} }
...@@ -332,7 +346,6 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -332,7 +346,6 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
cell.delegate = self cell.delegate = self
cell.submitBtn.tag = indexPath.row cell.submitBtn.tag = indexPath.row
cell.tag = indexPath.row cell.tag = indexPath.row
if navTitle.contains("应付"){ if navTitle.contains("应付"){
if dataArr.count > 0 { if dataArr.count > 0 {
let model = dataArr[indexPath.row] let model = dataArr[indexPath.row]
...@@ -472,10 +485,9 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -472,10 +485,9 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
self.listView.reloadData() self.listView.reloadData()
self.listView.mj_header?.endRefreshing() self.listView.mj_header?.endRefreshing()
self.page = 2 self.page = 2
if self.dataArr.count == 20 { // if self.dataArr.count == 20 {
self.footerMJ.setRefreshingTarget(self, refreshingAction: #selector(self.loadMoreData)) //
self.listView.mj_footer = self.footerMJ // }
}
if model.data?.list == nil { if model.data?.list == nil {
self.listView.mj_footer?.endRefreshingWithNoMoreData() self.listView.mj_footer?.endRefreshingWithNoMoreData()
self.footerMJ.setTitle("暂无应付账款记录", for: .noMoreData) self.footerMJ.setTitle("暂无应付账款记录", for: .noMoreData)
...@@ -523,10 +535,10 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -523,10 +535,10 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
self.listView.reloadData() self.listView.reloadData()
self.listView.mj_header?.endRefreshing() self.listView.mj_header?.endRefreshing()
self.page = 2 self.page = 2
if self.datas.count == 20 { // if self.datas.count == 20 {
self.footerMJ.setRefreshingTarget(self, refreshingAction: #selector(self.loadMoreData)) // self.footerMJ.setRefreshingTarget(self, refreshingAction: #selector(self.loadMoreData))
self.listView.mj_footer = self.footerMJ // self.listView.mj_footer = self.footerMJ
} // }
if model.data?.list == nil { if model.data?.list == nil {
self.listView.mj_footer?.endRefreshingWithNoMoreData() self.listView.mj_footer?.endRefreshingWithNoMoreData()
self.footerMJ.setTitle("暂无应收账款记录", for: .noMoreData) self.footerMJ.setTitle("暂无应收账款记录", for: .noMoreData)
...@@ -599,29 +611,29 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -599,29 +611,29 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
timeView.addSubview(calendarV) timeView.addSubview(calendarV)
calendarV.delegate = self calendarV.delegate = self
CalendarV = calendarV CalendarV = calendarV
let line2 = UIView() // let line2 = UIView()
line2.backgroundColor = UIColor.init(named: "灰色分界线") // line2.backgroundColor = UIColor.init(named: "灰色分界线")
timeView.addSubview(line2) // timeView.addSubview(line2)
line2.snp.makeConstraints { (make) in // line2.snp.makeConstraints { (make) in
make.left.equalTo(15*glscale) // make.left.equalTo(15*glscale)
make.right.equalTo(-15*glscale) // make.right.equalTo(-15*glscale)
make.top.equalTo(calendarV.snp_bottom) // make.top.equalTo(calendarV.snp_bottom)
make.height.equalTo(1) // make.height.equalTo(1)
} // }
let sureBtn = UIButton(type: .custom) // let sureBtn = UIButton(type: .custom)
sureBtn.setTitleColor(UIColor.init(named: "白色背景色"), for: .normal) // sureBtn.setTitleColor(UIColor.init(named: "白色背景色"), for: .normal)
sureBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13) // sureBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
sureBtn.backgroundColor = UIColor.init(named: "蓝色字体颜色") // sureBtn.backgroundColor = UIColor.init(named: "蓝色字体颜色")
sureBtn.setTitle("确定", for: .normal) // sureBtn.setTitle("确定", for: .normal)
sureBtn.layer.cornerRadius = 3 // sureBtn.layer.cornerRadius = 3
sureBtn.addTarget(self, action: #selector(sureBtnAction(sender:)), for: .touchUpInside) // sureBtn.addTarget(self, action: #selector(sureBtnAction(sender:)), for: .touchUpInside)
timeView.addSubview(sureBtn) // timeView.addSubview(sureBtn)
sureBtn.snp.makeConstraints { (make) in // sureBtn.snp.makeConstraints { (make) in
make.right.bottom.equalTo(-15*glscale) // make.right.bottom.equalTo(-15*glscale)
make.width.equalTo(70*glscale) // make.width.equalTo(70*glscale)
make.height.equalTo(30*glscale) // make.height.equalTo(30*glscale)
} // }
let kuangV = UIView() let kuangV = UIView()
kuangV.layer.borderColor = UIColor.init(named: "灰色字体颜色")?.cgColor kuangV.layer.borderColor = UIColor.init(named: "灰色字体颜色")?.cgColor
...@@ -629,10 +641,9 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -629,10 +641,9 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
kuangV.layer.cornerRadius = 3 kuangV.layer.cornerRadius = 3
timeView.addSubview(kuangV) timeView.addSubview(kuangV)
kuangV.snp.makeConstraints { (make) in kuangV.snp.makeConstraints { (make) in
make.height.equalTo(sureBtn) make.height.equalTo(30*glscale)
make.right.equalTo(sureBtn.snp_left).offset(-15*glscale)
make.width.equalTo(180*glscale) make.width.equalTo(180*glscale)
make.centerY.equalTo(sureBtn) make.right.bottom.equalTo(-15*glscale)
} }
let clearBtn = UIButton(type: .custom) let clearBtn = UIButton(type: .custom)
...@@ -641,7 +652,7 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -641,7 +652,7 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
timeView.addSubview(clearBtn) timeView.addSubview(clearBtn)
clearBtn.snp.makeConstraints { (make) in clearBtn.snp.makeConstraints { (make) in
make.right.equalTo(kuangV.snp_right).offset(-7*glscale) make.right.equalTo(kuangV.snp_right).offset(-7*glscale)
make.centerY.equalTo(sureBtn) make.centerY.equalTo(kuangV)
} }
let timeLbl = UILabel() let timeLbl = UILabel()
...@@ -650,7 +661,6 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -650,7 +661,6 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
let timeIntervalEnd:TimeInterval = EndDate.timeIntervalSince1970 let timeIntervalEnd:TimeInterval = EndDate.timeIntervalSince1970
timeLbl.text = dayByDouble(sender: timeInterval) + "-" + dayByDouble(sender: timeIntervalEnd) timeLbl.text = dayByDouble(sender: timeInterval) + "-" + dayByDouble(sender: timeIntervalEnd)
calendarV.setOldDate(beginD: BeginDate!, endD: EndDate!) calendarV.setOldDate(beginD: BeginDate!, endD: EndDate!)
}else{ }else{
timeLbl.text = "-" timeLbl.text = "-"
} }
...@@ -679,19 +689,35 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -679,19 +689,35 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
TimeLbl!.text = "-" TimeLbl!.text = "-"
BeginDate = nil BeginDate = nil
EndDate = nil EndDate = nil
start_time = 0
end_time = 0
CalendarV!.clearTheSelect() CalendarV!.clearTheSelect()
} }
var BeginDate: Date! = nil var BeginDate: Date! = nil
var EndDate: Date! = nil var EndDate: Date! = nil
@objc func sureBtnAction(sender:UIButton){
//还要传日期文本出去
if BeginDate == nil || EndDate == nil { @IBAction func resetAc(_ sender: Any) {
HUD.flash(.label("请选择自定义时间段"),delay: 1.2) time_type = 0
return start_time = 0
} end_time = 0
print("最后的时间",BeginDate,EndDate) rightBtn.backgroundColor = UIColor(named: "分类Cell背景色")
if time_type == 0 { leftBtn.backgroundColor = UIColor(named: "分类Cell背景色")
time_type = 1 leftBtn.isSelected = false
rightBtn.isSelected = false
TimeLbl!.text = "-"
BeginDate = nil
EndDate = nil
CalendarV!.clearTheSelect()
}
@IBAction func submitAc(_ sender: Any) {
if time_type != 0 {
if BeginDate == nil || EndDate == nil {
HUD.flash(.label("请选择自定义时间段"),delay: 1.2)
return
}
} }
listView.mj_header?.beginRefreshing() listView.mj_header?.beginRefreshing()
selectView.isHidden = true selectView.isHidden = true
......
...@@ -21,7 +21,15 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -21,7 +21,15 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
var shippingStatus : String = "100" var shippingStatus : String = "100"
var orderStatus : Int = 100 var orderStatus : Int = 100
var page : Int = 0 var page : Int = 0
var isUpData = false var isUpData = false{
didSet{
if !isUpData {
if tableV != nil {
loadData()
}
}
}
}
//MARK:--列表数据源 //MARK:--列表数据源
var dataArr:Array<OrderListDataModel> = [] var dataArr:Array<OrderListDataModel> = []
......
...@@ -79,6 +79,8 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView ...@@ -79,6 +79,8 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
editOrderGoodsPrice(["user_token":UserToken as Any,"order_id":orderID as Any,"order_goods":order_goods as Any,"logistics_price":wlPrice as Any,"other_price":qtPrice as Any], success: { (data) in editOrderGoodsPrice(["user_token":UserToken as Any,"order_id":orderID as Any,"order_goods":order_goods as Any,"logistics_price":wlPrice as Any,"other_price":qtPrice as Any], success: { (data) in
let dataM = data as! UpDataModel let dataM = data as! UpDataModel
if dataM.code == 1 { if dataM.code == 1 {
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "orderChange"), object: nil)
self.delegate?.changeGoodsPriByData(sender: self.dataArr!) self.delegate?.changeGoodsPriByData(sender: self.dataArr!)
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
...@@ -89,6 +91,9 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView ...@@ -89,6 +91,9 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
} }
} }
deinit {
NotificationCenter.default.removeObserver(self)
}
func textFieldDidEndEditing(_ textField: UITextField) { func textFieldDidEndEditing(_ textField: UITextField) {
var total = Float(0) var total = Float(0)
for i in 0..<dataArr!.count { for i in 0..<dataArr!.count {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment