实现了部分收货UI。替换为张欢测试服务
This commit is contained in:
@@ -25,13 +25,13 @@ interface ApiService {
|
||||
/**
|
||||
* 登录
|
||||
*/
|
||||
@POST("/shuwei-user/swuserbase/loginPad")
|
||||
@POST("/sys/loginPad")
|
||||
suspend fun login(@Body body: LoginParam): ApiResponse<User>
|
||||
|
||||
/**
|
||||
* 采购单入库-列表
|
||||
*/
|
||||
@GET("/shuwei-zhct/pad/receivePage")
|
||||
@GET("/pad/receivePage")
|
||||
suspend fun getReceiveList(
|
||||
@Query("pageNo") pageNo: Int,
|
||||
@Query("pageSize") pageSize: Int
|
||||
@@ -40,44 +40,44 @@ interface ApiService {
|
||||
/**
|
||||
* 采购单入库-详情
|
||||
*/
|
||||
@GET("/shuwei-zhct/pad/receiveDetail")
|
||||
@GET("/pad/receiveDetail")
|
||||
suspend fun getReceiveDetail(@Query("id") id: Int): ApiResponse<PurchaseInfo>
|
||||
|
||||
/**
|
||||
* 部分收货
|
||||
*/
|
||||
@POST("/shuwei-zhct/pad/partialReceiptGoods")
|
||||
@POST("/pad/partialReceiptGoods")
|
||||
suspend fun partialReceipt(@Body uploadInfo: UploadInfo): ApiResponse<Boolean>
|
||||
|
||||
/**
|
||||
* 确认收货
|
||||
*/
|
||||
@POST("/shuwei-zhct/pad/saveAndReceiveAndGoWare")
|
||||
@POST("/pad/saveAndReceiveAndGoWare")
|
||||
suspend fun confirmReceipt(@Body uploadInfo: UploadInfo): ApiResponse<Boolean>
|
||||
|
||||
/**
|
||||
* 存储方式
|
||||
*/
|
||||
@GET("/shuwei-zhct/swsysdictitem/getDictItemByF")
|
||||
@GET("/sys/dict/getDictItemByF")
|
||||
suspend fun getGoodsStorageType(@Query("dictCode") dictCode: String = "goods_storage_type"): ApiResponse<List<StorageType>>
|
||||
|
||||
/**
|
||||
* 物品类型
|
||||
*/
|
||||
@GET("/shuwei-zhct/swkcglgoodstype/notLimitList")
|
||||
@GET("/pad/notLimitList")
|
||||
suspend fun getGoodsType(): ApiResponse<GoodsType>
|
||||
|
||||
/**
|
||||
* 获取字典数据
|
||||
*/
|
||||
@GET("/shuwei-zhct/pad/dataList")
|
||||
@GET("/pad/dataList")
|
||||
suspend fun getDictType(@Query("type") type: String): ApiResponse<List<DictType>>
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
*/
|
||||
@Multipart
|
||||
@POST("/shuwei-zhct/fileUpload/fileUpload/")
|
||||
@POST("/fileUpload/fileUpload/")
|
||||
suspend fun uploadImage(
|
||||
@Part("code") code: RequestBody,
|
||||
@Part file: MultipartBody.Part
|
||||
@@ -86,7 +86,7 @@ interface ApiService {
|
||||
/**
|
||||
* 搜索物品列表
|
||||
*/
|
||||
@GET("/shuwei-zhct/pad/goodsInfoList")
|
||||
@GET("/pad/goodsInfoList")
|
||||
suspend fun searchGoodsInfoList(
|
||||
@Query("goodsName") goodsName: String,
|
||||
@Query("pageNo") pageNo: Int,
|
||||
@@ -96,13 +96,13 @@ interface ApiService {
|
||||
/**
|
||||
* 自采添加商品
|
||||
*/
|
||||
@POST("/shuwei-zhct/pad/goodsAdd")
|
||||
@POST("/pad/goodsAdd")
|
||||
suspend fun selfPurchaseGoodsAdd(@Body goodsAddParam: GoodsAddParam): ApiResponse<SearchGoodsInfo>
|
||||
|
||||
/**
|
||||
* 自采入库
|
||||
*/
|
||||
@POST("/shuwei-zhct/pad/SelfPurchasedGoods")
|
||||
@POST("/pad/SelfPurchasedGoods")
|
||||
suspend fun selfPurchaseWarehousing(@Body list: List<PurchaseWarehouseParam>): ApiResponse<Boolean>
|
||||
|
||||
}
|
||||
@@ -16,7 +16,7 @@ class RequestInterceptor : Interceptor {
|
||||
.header("Content-Type", "application/json")
|
||||
.header("Accept", "application/json")
|
||||
// .header("Authorization", "Bearer ${getToken()}")
|
||||
.header("Authorization", getToken())
|
||||
.header("x-access-token", getToken())
|
||||
|
||||
val newRequest = requestBuilder.build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user