|
@@ -10,7 +10,7 @@ import com.grkj.iscs_mc.model.vo.key.KeyInfoRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.lock.LockInfoRespVO
|
|
import com.grkj.iscs_mc.model.vo.lock.LockInfoRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.machinery.MachineryDetailRespVO
|
|
import com.grkj.iscs_mc.model.vo.machinery.MachineryDetailRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.machinery.MachineryPageRespVO
|
|
import com.grkj.iscs_mc.model.vo.machinery.MachineryPageRespVO
|
|
|
-import com.grkj.iscs_mc.model.vo.material.MaterialDetailListRespVO
|
|
|
|
|
|
|
+import com.grkj.iscs_mc.model.vo.material.MaterialDetailRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.sop.SopInfoRespVO
|
|
import com.grkj.iscs_mc.model.vo.sop.SopInfoRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.sop.SopPageRespVO
|
|
import com.grkj.iscs_mc.model.vo.sop.SopPageRespVO
|
|
|
import com.grkj.iscs_mc.model.vo.ticket.LockPointUpdateReqVO
|
|
import com.grkj.iscs_mc.model.vo.ticket.LockPointUpdateReqVO
|
|
@@ -711,7 +711,7 @@ object NetApi {
|
|
|
/**
|
|
/**
|
|
|
* 通过RFID列表获取批量物资信息
|
|
* 通过RFID列表获取批量物资信息
|
|
|
*/
|
|
*/
|
|
|
- fun getMaterialDetailListByRfid(list: MutableList<String>, callBack: (MutableList<MaterialDetailListRespVO>?) -> Unit) {
|
|
|
|
|
|
|
+ fun getMaterialDetailListByRfid(list: MutableList<String>, callBack: (MutableList<MaterialDetailRespVO>?) -> Unit) {
|
|
|
NetHttpManager.getInstance().doRequestNet(
|
|
NetHttpManager.getInstance().doRequestNet(
|
|
|
UrlConsts.MATERIAL_DETAIL_LIST_BY_RFID,
|
|
UrlConsts.MATERIAL_DETAIL_LIST_BY_RFID,
|
|
|
false,
|
|
false,
|
|
@@ -725,4 +725,22 @@ object NetApi {
|
|
|
}, isGet = false, isAuth = true
|
|
}, isGet = false, isAuth = true
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 通过RFID获取物资信息
|
|
|
|
|
+ */
|
|
|
|
|
+ fun getMaterialDetailByRfid(rfid: String, callBack: (MaterialDetailRespVO?) -> Unit) {
|
|
|
|
|
+ NetHttpManager.getInstance().doRequestNet(
|
|
|
|
|
+ UrlConsts.MATERIAL_DETAIL_BY_RFID,
|
|
|
|
|
+ false,
|
|
|
|
|
+ mapOf(
|
|
|
|
|
+ "rfid" to rfid
|
|
|
|
|
+ ),
|
|
|
|
|
+ { res, _, _ ->
|
|
|
|
|
+ res?.let {
|
|
|
|
|
+ callBack.invoke(getRefBean(it))
|
|
|
|
|
+ }
|
|
|
|
|
+ }, isGet = true, isAuth = true
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|