Commit 45f6eacc authored by 刘俊宏's avatar 刘俊宏

仓库管理→仓库列表,增加默认仓库标识。;仓库管理→仓库列表,没有选择“仓库类型”的仓库,不要显示任何“仓库类型标签”,现在是会显示“常温”。;仓库管理→仓库...

仓库管理→仓库列表,增加默认仓库标识。;仓库管理→仓库列表,没有选择“仓库类型”的仓库,不要显示任何“仓库类型标签”,现在是会显示“常温”。;仓库管理→仓库列表,增加仓库是否有库存,甚至有多少货的显示
parent 0a764438
...@@ -37,7 +37,7 @@ class ShopWarehouseListDataModel: Mappable { ...@@ -37,7 +37,7 @@ class ShopWarehouseListDataModel: Mappable {
var contact_number : String? //库存总数联系电话 var contact_number : String? //库存总数联系电话
var mail : String? //库存总数电子邮箱 var mail : String? //库存总数电子邮箱
var position_count : Int? //库存总数库位数量(统计用) var position_count : Int? //库存总数库位数量(统计用)
var is_default : Bool? //库存总数是否为默认 var is_default : Int? //库存总数是否为默认
var inventory_count : Int? //库存总数 var inventory_count : Int? //库存总数
required init?( map: Map) { required init?( map: Map) {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<capability name="Named colors" minToolsVersion="9.0"/> <capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......
...@@ -204,27 +204,38 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV ...@@ -204,27 +204,38 @@ class WarehoseMangementListVC: BaseViewController, UISearchBarDelegate, UITableV
cell.statusLbl.text = typeArr[model.w_type!] cell.statusLbl.text = typeArr[model.w_type!]
cell.statusLbl.isHidden = false cell.statusLbl.isHidden = false
cell.adrLbl.text = model.w_address! cell.adrLbl.text = model.w_address!
cell.kuCunLbl.text = "库存位" + StringByInt(number: model.position_count!) cell.kuCunLbl.text = "库存位" + StringByInt(number: model.position_count!) + " " + "总库存数:" + StringByInt(number: model.inventory_count!)
switch model.w_type {
case 0: if model.is_default! == 1 {
//异常 cell.statusLbl.isHidden = false
cell.statusLbl.isHidden = true
break
case 1:
cell.statusLbl.backgroundColor = UIColor(named: "标题背景色")
cell.statusLbl.alpha = 1
break
case 2:
cell.statusLbl.backgroundColor = UIColor(named: "蓝色字体颜色")
cell.statusLbl.alpha = 0.5
break
case 3:
cell.statusLbl.backgroundColor = UIColor(named: "蓝色字体颜色") cell.statusLbl.backgroundColor = UIColor(named: "蓝色字体颜色")
cell.statusLbl.alpha = 1 cell.statusLbl.alpha = 1
break cell.statusLbl.text = "默认"
default: }else{
break cell.statusLbl.isHidden = true
} }
//仓库管理→仓库列表,没有选择“仓库类型”的仓库,不要显示任何“仓库类型标签”,现在是会显示“常温”。
// switch model.w_type {
// case 0:
// //异常
// cell.statusLbl.isHidden = true
// break
// case 1:
// cell.statusLbl.backgroundColor = UIColor(named: "标题背景色")
// cell.statusLbl.alpha = 1
// break
// case 2:
// cell.statusLbl.backgroundColor = UIColor(named: "蓝色字体颜色")
// cell.statusLbl.alpha = 0.5
// break
// case 3:
// cell.statusLbl.backgroundColor = UIColor(named: "蓝色字体颜色")
// cell.statusLbl.alpha = 1
// break
// default:
// break
// }
return cell return cell
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......
...@@ -192,8 +192,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -192,8 +192,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
if rowModel.order_status != nil && rowModel.order_status_d != nil && rowModel.goods_before_pay != nil { if rowModel.order_status != nil && rowModel.order_status_d != nil && rowModel.goods_before_pay != nil {
cell.statusLbl.text = orderStatusStrByInt(statusNumber: rowModel.order_status!, status_d: rowModel.order_status_d!, isBfPay: rowModel.goods_before_pay!, LmIdx: orderStatus) cell.statusLbl.text = orderStatusStrByInt(statusNumber: rowModel.order_status!, status_d: rowModel.order_status_d!, isBfPay: rowModel.goods_before_pay!, LmIdx: orderStatus)
} }
if rowModel.goods_number != nil {
cell.countLbl.text = "\(rowModel.goods_number!)" cell.countLbl.text = "\(rowModel.goods_number!)"
}
cell.priceLbl.text = rowModel.sum_amount cell.priceLbl.text = rowModel.sum_amount
cell.timeLbl.text = TimeByDouble(sender: rowModel.add_time!) cell.timeLbl.text = TimeByDouble(sender: rowModel.add_time!)
......
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