diff --git a/src/api/request2.js b/src/api/request2.js
index 56e24930..028a6e71 100644
--- a/src/api/request2.js
+++ b/src/api/request2.js
@@ -999,7 +999,7 @@ export function createPutAwayRequest(number) {
});
}
-
+
/**
* 采购上架 任务
* status 任务状态
@@ -3643,8 +3643,23 @@ export function getMainMessage() {
*/
export function appCheckUpdate() {
return uni.request({
- url:"http://192.168.0.119:9527/appUpdate.json",
- method:"GET",
- data:{}
+ url: "http://192.168.0.119:9527/appUpdate.json",
+ method: "GET",
+ data: {}
})
+}
+
+// var params = {
+// filters: filters,
+// pageNo: 1,
+// pageSize: 100,
+// }
+
+//获取包装规格
+export function getPackageUnitList(params) {
+ return request({
+ url: baseApi + "/wms/packageunit/senior",
+ method: "post",
+ data: params,
+ });
}
\ No newline at end of file
diff --git a/src/common/basic.js b/src/common/basic.js
index b725be39..2c70dc66 100644
--- a/src/common/basic.js
+++ b/src/common/basic.js
@@ -174,7 +174,7 @@ export function getLocationTypeName(value) {
}
//获取计量单位
-export function getUnitInfo(value) {
+export function getUomInfo(value) {
var resultInfo = "";
if (uomList.length == 0) {
uomList = getDirectoryInfo("uom")
diff --git a/src/common/directory.js b/src/common/directory.js
index 934b4322..e7aa2ebc 100644
--- a/src/common/directory.js
+++ b/src/common/directory.js
@@ -20,9 +20,6 @@ let transferModeList = [];
let countStageList = [];
-
-
-
// 获取业务类型字典项
export function getBusinessTypeDesc(type) {
if (type == "SupplierDeliver") {
@@ -249,7 +246,7 @@ export function getLocationTypeNameList(lst) {
}
//获取计量单位
-export function getUnitInfo(value) {
+export function getUomInfo(value) {
var resultInfo = "";
if (uomList.length == 0) {
uomList = getDirectoryInfo("uom")
@@ -514,3 +511,20 @@ export function getCountStageName(value) {
}
return resultInfo
}
+
+//获取包装规格
+export function getPackUnitName(value) {
+ var resultInfo = "";
+ if (packUnitList.length == 0) {
+ packUnitList = uni.getStorageSync('packunit');
+ }
+ if (packUnitList.length > 0) {
+ for (let item of packUnitList) {
+ if (item.code == value) {
+ resultInfo = item.name
+ break;
+ }
+ }
+ }
+ return resultInfo
+}
\ No newline at end of file
diff --git a/src/common/style/new_style.css b/src/common/style/new_style.css
index 2216cde2..22eed396 100644
--- a/src/common/style/new_style.css
+++ b/src/common/style/new_style.css
@@ -2214,7 +2214,7 @@ button::after {
.request_state_un-doing {
font-size: 28rpx;
- background: rgba(95, 203, 148, 0.2);
+ /* background: rgba(95, 203, 148, 0.2); */
color: #22AF68;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
@@ -2222,7 +2222,7 @@ button::after {
.job_state_doing {
font-size: 28rpx;
- background: rgba(236, 156, 0, 0.2);
+ /* background: rgba(236, 156, 0, 0.2); */
color: #EC9C00;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
@@ -2230,7 +2230,7 @@ button::after {
.job_state_un-doing {
font-size: 28rpx;
- background: rgba(95, 203, 148, 0.2);
+ /* background: rgba(95, 203, 148, 0.2); */
color: #22AF68;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
@@ -2238,7 +2238,7 @@ button::after {
.job_state_completed {
font-size: 28rpx;
- background: rgba(95, 203, 148, 0.2);
+ /* background: rgba(95, 203, 148, 0.2); */
color: #22AF68;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
@@ -2246,7 +2246,7 @@ button::after {
.job_state_close {
font-size: 28rpx;
- background: rgba(95, 203, 148, 0.2);
+ /* background: rgba(95, 203, 148, 0.2); */
color: #22AF68;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
@@ -2255,7 +2255,7 @@ button::after {
.job_state_cancelled {
font-size: 28rpx;
- background: rgba(95, 203, 148, 0.2);
+ /* background: rgba(95, 203, 148, 0.2); */
color: #ff0000;
padding: 10rpx 20rpx 10rpx 20rpx;
border-radius: 10rpx;
diff --git a/src/mycomponents/balance/pack.vue b/src/mycomponents/balance/pack.vue
index dc010849..f34c1ec7 100644
--- a/src/mycomponents/balance/pack.vue
+++ b/src/mycomponents/balance/pack.vue
@@ -1,6 +1,6 @@
- 箱码
+ 包装
{{packingCode}}
diff --git a/src/mycomponents/common/comListItem.vue b/src/mycomponents/common/comListItem.vue
index ec9b85b1..6d7794f6 100644
--- a/src/mycomponents/common/comListItem.vue
+++ b/src/mycomponents/common/comListItem.vue
@@ -8,7 +8,7 @@
{{boolean(item.content)}}
{{getTransferModeName(item.content)}}
{{getLocationTypeNameList(getDirectoryItemArray(item.content))}}
- {{getUnitInfo(item.content)}}
+ {{getUomInfo(item.content)}}
{{getInspectType(item.content)}}
{{getSampleMethod(item.content)}}
{{getRequestStateInfo(item.content)}}
@@ -30,7 +30,7 @@
getTransferModeName,
getLocationTypeNameList,
getDirectoryItemArray,
- getUnitInfo,
+ getUomInfo,
getInspectType,
getSampleMethod,
getRequestStateInfo,
@@ -81,8 +81,8 @@
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
},
- getUnitInfo(value){
- return getUnitInfo(value).label
+ getUomInfo(value){
+ return getUomInfo(value).label
},
getInspectType(value){
return getInspectType(value)
diff --git a/src/mycomponents/detail/detailBalanceInfo.vue b/src/mycomponents/detail/detailBalanceInfo.vue
index ea844ea5..573e393f 100644
--- a/src/mycomponents/detail/detailBalanceInfo.vue
+++ b/src/mycomponents/detail/detailBalanceInfo.vue
@@ -15,7 +15,7 @@
数量 :
{{Number(dataContent.qty)}}
- {{getUnitInfo(dataContent.uom)}}
+ {{getUomInfo(dataContent.uom)}}
@@ -33,7 +33,7 @@
import {
getInventoryStatusName,
getStdPackUnitInfo,
- getUnitInfo
+ getUomInfo
} from '@/common/directory.js';
export default {
components: {},
@@ -55,8 +55,8 @@
getInventoryStatusInfo(value) {
return getInventoryStatusName(value)
},
- getUnitInfo(value){
- return getUnitInfo(value).label
+ getUomInfo(value){
+ return getUomInfo(value).label
}
}
}
diff --git a/src/mycomponents/detail/detailItemInfo.vue b/src/mycomponents/detail/detailItemInfo.vue
index dfbaf508..b1d54b80 100644
--- a/src/mycomponents/detail/detailItemInfo.vue
+++ b/src/mycomponents/detail/detailItemInfo.vue
@@ -10,13 +10,13 @@
数量 :
- {{dataContent.qty}}{{getUnitInfo(dataContent.uom)}}
+ {{dataContent.qty}}{{getUomInfo(dataContent.uom)}}
+
+
+
\ No newline at end of file
diff --git a/src/mycomponents/qty/uom.vue b/src/mycomponents/qty/uom.vue
index bb138ba3..d2bcc540 100644
--- a/src/mycomponents/qty/uom.vue
+++ b/src/mycomponents/qty/uom.vue
@@ -1,13 +1,13 @@
- {{getUnitInfo(uom)}}
+ {{getUomInfo(uom)}}