diff --git a/common/directory.js b/common/directory.js
index 4ad973c2..0ae9dfd8 100644
--- a/common/directory.js
+++ b/common/directory.js
@@ -15,6 +15,7 @@ let inspectFailedReasonList = [];
let nextActionList = [];
let inspectTypeList = [];
let sampleMethodList = [];
+let transferModeList = [];
// 获取业务类型字典项
@@ -46,7 +47,8 @@ export function clearCacheData() {
inspectFailedReasonList = [];
nextActionList = [];
inspectTypeList = [];
- sampleMethodList =[]
+ sampleMethodList =[];
+ transferModeList = [];
}
//获取字典信息
@@ -185,6 +187,17 @@ export function getLocationTypeName(value) {
return location == '' ? value : location.label;
}
+
+//获取库位类型名称
+export function getLocationTypeNameList(lst) {
+ let desc = '';
+ lst.forEach(res => {
+ desc += getLocationTypeInfo(res).label + ","
+ })
+ desc = desc.slice(0, -1);
+ return desc;
+}
+
//获取计量单位
export function getUnitInfo(value) {
var resultInfo = "";
@@ -282,7 +295,7 @@ export function getInventoryStatusName(value) {
}
}
-//获取状态描述
+//获取状态描述 list
export function getInventoryStatusDesc(lst) {
let desc = '';
lst.forEach(res => {
@@ -404,5 +417,25 @@ export function getSampleMethod(value) {
return resultInfo
}
+//获取运输方式
+export function getTransferModeName(value) {
+ var resultInfo = "";
+ if (transferModeList.length == 0) {
+ transferModeList = getDirectoryInfo("transfer_mode")
+ }
+ if (transferModeList.length > 0) {
+ for (let item of transferModeList) {
+ if (item.value == value) {
+ resultInfo = item.label
+ break;
+ }
+ }
+ }
+ return resultInfo
+}
+
+
+
+
diff --git a/mycomponents/common/comListItem.vue b/mycomponents/common/comListItem.vue
index 4af08b7a..ec9b85b1 100644
--- a/mycomponents/common/comListItem.vue
+++ b/mycomponents/common/comListItem.vue
@@ -6,7 +6,15 @@
{{item.content}}
{{formatDate(item.content)}}
{{boolean(item.content)}}
-
+ {{getTransferModeName(item.content)}}
+ {{getLocationTypeNameList(getDirectoryItemArray(item.content))}}
+ {{getUnitInfo(item.content)}}
+ {{getInspectType(item.content)}}
+ {{getSampleMethod(item.content)}}
+ {{getRequestStateInfo(item.content)}}
+ {{getInventoryStatusName(item.content)}}
+ {{getLocationTypeName(item.content)}}
+
@@ -17,6 +25,19 @@
import {
dateFormat
} from '@/common/basic.js';
+
+ import {
+ getTransferModeName,
+ getLocationTypeNameList,
+ getDirectoryItemArray,
+ getUnitInfo,
+ getInspectType,
+ getSampleMethod,
+ getRequestStateInfo,
+ getInventoryStatusName,
+ getLocationTypeName
+
+ } from '@/common/directory.js';
export default {
components: {},
data() {
@@ -50,6 +71,33 @@
},
formatDate(val) {
return dateFormat(val)
+ },
+ getTransferModeName(value){
+ return getTransferModeName(value)
+ },
+ getLocationTypeNameList(value){
+ return getLocationTypeNameList(value)
+ },
+ getDirectoryItemArray(value){
+ return getDirectoryItemArray(value)
+ },
+ getUnitInfo(value){
+ return getUnitInfo(value).label
+ },
+ getInspectType(value){
+ return getInspectType(value)
+ },
+ getSampleMethod(value){
+ return getSampleMethod(value)
+ },
+ getRequestStateInfo(value){
+ return getRequestStateInfo(value).label
+ },
+ getInventoryStatusName(value){
+ return getInventoryStatusName(value)
+ },
+ getLocationTypeName(value){
+ return getLocationTypeName(value)
}
}
}
diff --git a/mycomponents/detail/comDetailCard.vue b/mycomponents/detail/comDetailCard.vue
index 258e90c0..f3c72706 100644
--- a/mycomponents/detail/comDetailCard.vue
+++ b/mycomponents/detail/comDetailCard.vue
@@ -1,6 +1,6 @@
-
+
@@ -143,14 +143,14 @@
if (res) {
item.scaned = false
item.balance = {}
- item.handleQty = 0;
+ item.handleQty = null;
this.$forceUpdate()
this.$emit('remove', item)
}
});
},
confirm(qty) {
- this.editItem.qty = qty;
+ this.editItem.handleQty = qty;
this.$emit('updateData')
},
showLocation(item) {
diff --git a/mycomponents/detail/comRequestDetailCard.vue b/mycomponents/detail/comRequestDetailCard.vue
index d0194090..4be275d2 100644
--- a/mycomponents/detail/comRequestDetailCard.vue
+++ b/mycomponents/detail/comRequestDetailCard.vue
@@ -1,7 +1,7 @@
-
-
+
diff --git a/mycomponents/detail/recordDetailBasicInfo.vue b/mycomponents/detail/recordDetailBasicInfo.vue
index 39b3c526..0b63bbe2 100644
--- a/mycomponents/detail/recordDetailBasicInfo.vue
+++ b/mycomponents/detail/recordDetailBasicInfo.vue
@@ -41,6 +41,7 @@
}, {
title: '计量单位',
content: this.dataContent.uom,
+ type:"uom"
}];
},
immediate: true,
diff --git a/mycomponents/detail/requestDetailBasicInfo.vue b/mycomponents/detail/requestDetailBasicInfo.vue
index 4961b535..8c650986 100644
--- a/mycomponents/detail/requestDetailBasicInfo.vue
+++ b/mycomponents/detail/requestDetailBasicInfo.vue
@@ -32,13 +32,15 @@
}, {
title: '计量单位',
content: this.dataContent.uom,
+ type:"uom"
},
{
title: '项目代码',
content: this.dataContent.projectCode,
},{
title: '最后更新时间',
- content: this.dataContent.lastModificationTime,
+ content: this.dataContent.updateTime,
+ type:"dateTime"
},
{
title: '最后更新者Id',
diff --git a/mycomponents/job/jobRequestInfo.vue b/mycomponents/job/jobRequestInfo.vue
index 59294f68..31cb2302 100644
--- a/mycomponents/job/jobRequestInfo.vue
+++ b/mycomponents/job/jobRequestInfo.vue
@@ -30,6 +30,14 @@
入库库存状态范围 :
{{getInventoryStatusDesc(getDirectoryItemArray(dataContent.inInventoryStatuses))}}
+
+ 从库位类型范围 :
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}}
+
+
+ 到库位类型范围 :
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}}
+
@@ -42,7 +50,8 @@
} from '@/common/basic.js';
import {
- getInventoryStatusDesc
+ getInventoryStatusDesc,
+ getLocationTypeNameList
} from '@/common/directory.js';
export default {
@@ -72,6 +81,10 @@
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
+ },
+
+ getLocationTypeNameList(value){
+ return getLocationTypeNameList(value)
}
}
diff --git a/mycomponents/package/packageDetailPopup.vue b/mycomponents/package/packageDetailPopup.vue
index 7abc53d7..8d628c99 100644
--- a/mycomponents/package/packageDetailPopup.vue
+++ b/mycomponents/package/packageDetailPopup.vue
@@ -89,7 +89,8 @@
text_wrap: this.dataContent.expireDate
}, {
item_title: '计量单位',
- text_wrap: this.dataContent.uom
+ text_wrap: this.dataContent.uom,
+ type:"uom"
}, {
item_title: '数量',
text_wrap: this.dataContent.qty
diff --git a/mycomponents/record/recordMainInfo.vue b/mycomponents/record/recordMainInfo.vue
index 1c774cf2..8958184e 100644
--- a/mycomponents/record/recordMainInfo.vue
+++ b/mycomponents/record/recordMainInfo.vue
@@ -18,12 +18,12 @@
从库位类型范围 :
- {{dataContent.fromLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}}
到库位类型范围 :
- {{dataContent.toLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}}
@@ -41,10 +41,9 @@
{{dataContent.number}}
-
业务类型 :
- {{dataContent.businessType}}
+ {{getBusinessTypeDesc(dataContent.businessType)}}
@@ -74,12 +73,12 @@
申请时间 :
- {{dataContent.requestTime}}
+ {{dateFormat(dataContent.requestTime)}}
截止时间 :
- {{dataContent.dueTime}}
+ {{dateFormat(dataContent.dueTime)}}
@@ -92,16 +91,16 @@
自动提交 :
- {{dataContent.autoCommit}}
+ {{boolean(dataContent.autoCommit)}}
自动通过 :
- {{dataContent.autoAgree}}
+ {{boolean(dataContent.autoAgree)}}
自动执行 :
- {{dataContent.autoExecute}}
+ {{boolean(dataContent.autoExecute)}}
直接生成记录 :
@@ -110,7 +109,7 @@
最后更新时间 :
- {{dataContent.lastModificationTime}}
+ {{dateFormat(dataContent.lastModificationTime)}}
最后更新者Id :
@@ -143,6 +142,12 @@
diff --git a/mycomponents/request/requestCommonInfo.vue b/mycomponents/request/requestCommonInfo.vue
index 4ea47042..b044adb5 100644
--- a/mycomponents/request/requestCommonInfo.vue
+++ b/mycomponents/request/requestCommonInfo.vue
@@ -29,7 +29,6 @@
diff --git a/pages/productPutaway/coms/requestDetailInfoPopup.vue b/pages/productPutaway/coms/requestDetailInfoPopup.vue
index 8bc5c446..d7a87a60 100644
--- a/pages/productPutaway/coms/requestDetailInfoPopup.vue
+++ b/pages/productPutaway/coms/requestDetailInfoPopup.vue
@@ -12,10 +12,6 @@
器具号 :
{{dataContent.containerNumber}}
-
- 批次 :
- {{dataContent.batch}}
-
从库位代码 :
{{dataContent.fromLocationCode }}
@@ -24,14 +20,6 @@
库存状态 :
{{dataContent.inventoryStatus}}
-
- 订单号 :
- {{dataContent.poNumber}}
-
-
- 订单行 :
- {{dataContent.poLine}}
-
从货主代码 :
{{dataContent.fromOwnerCode}}
diff --git a/pages/productPutaway/coms/requestInfoPopup.vue b/pages/productPutaway/coms/requestInfoPopup.vue
index 069c31d3..85136228 100644
--- a/pages/productPutaway/coms/requestInfoPopup.vue
+++ b/pages/productPutaway/coms/requestInfoPopup.vue
@@ -44,9 +44,11 @@
},{
title: '从库位类型范围',
content: this.dataContent.fromLocationTypes,
+ type:"locationType"
},{
title: '到库位类型范围',
content: this.dataContent.toLocationTypes,
+ type:"locationType"
},{
title: '从库区代码范围',
content: this.dataContent.fromAreaCodes,
diff --git a/pages/productionReturn/coms/comReturn.vue b/pages/productionReturn/coms/comReturn.vue
index 0d0852f9..c2d1af1c 100644
--- a/pages/productionReturn/coms/comReturn.vue
+++ b/pages/productionReturn/coms/comReturn.vue
@@ -43,7 +43,6 @@
diff --git a/pages/purchaseReturn/coms/comReturnRequestCard.vue b/pages/purchaseReturn/coms/comReturnRequestCard.vue
index fcdd96f0..ee1589bb 100644
--- a/pages/purchaseReturn/coms/comReturnRequestCard.vue
+++ b/pages/purchaseReturn/coms/comReturnRequestCard.vue
@@ -2,7 +2,7 @@
- 收货单号 : {{dataContent.PurchaseReceiptRecordNumber}}
+ 收货单号 : {{dataContent.purchaseReceiptRecordNumber}}
供应商代码 : {{dataContent.supplierCode}}
diff --git a/pages/purchaseReturn/coms/requestDetailInfoPopup.vue b/pages/purchaseReturn/coms/requestDetailInfoPopup.vue
index 93d1b5a2..dce67535 100644
--- a/pages/purchaseReturn/coms/requestDetailInfoPopup.vue
+++ b/pages/purchaseReturn/coms/requestDetailInfoPopup.vue
@@ -3,52 +3,7 @@
-
-
- 包装号 :
- {{dataContent.packingNumber}}
-
-
- 器具号 :
- {{dataContent.containerNumber}}
-
-
- 批次 :
- {{dataContent.batch}}
-
-
- 替代批次 :
- {{dataContent.altBatch}}
-
-
- 到库位代码 :
- {{dataContent.toLocationCode}}
-
-
- 库存状态 :
- {{dataContent.inventoryStatus}}
-
-
- 订单号 :
- {{dataContent.poNumber}}
-
-
- 订单行 :
- {{dataContent.poLine}}
-
-
- 原因 :
- {{dataContent.reason}}
-
-
- 从货主代码 :
- {{dataContent.fromOwnerCode}}
-
-
- 到货主代码 :
- {{dataContent.toOwnerCode}}
-
-
+
@@ -57,16 +12,64 @@
diff --git a/pages/purchaseReturn/job/returnDetail.vue b/pages/purchaseReturn/job/returnDetail.vue
index 2c06f310..5c205316 100644
--- a/pages/purchaseReturn/job/returnDetail.vue
+++ b/pages/purchaseReturn/job/returnDetail.vue
@@ -246,7 +246,7 @@
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
+ ']不一致,是否继续退货?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ;
diff --git a/pages/putaway/coms/requestInfoPopup.vue b/pages/putaway/coms/requestInfoPopup.vue
index 0cf786b8..ab530294 100644
--- a/pages/putaway/coms/requestInfoPopup.vue
+++ b/pages/putaway/coms/requestInfoPopup.vue
@@ -41,9 +41,11 @@
}, {
title: '从库位类型范围',
content: this.dataContent.fromLocationTypes,
+ type:"locationType"
}, {
title: '到库位类型范围',
content: this.dataContent.toLocationTypes,
+ type:"locationType"
}, {
title: '从库区代码范围',
content: this.dataContent.fromAreaCodes,
diff --git a/pages/repleinsh/coms/repleinshInfoPopup.vue b/pages/repleinsh/coms/repleinshInfoPopup.vue
index d446a8b1..082a2bd9 100644
--- a/pages/repleinsh/coms/repleinshInfoPopup.vue
+++ b/pages/repleinsh/coms/repleinshInfoPopup.vue
@@ -6,11 +6,11 @@
从库位类型范围 :
- {{dataContent.fromLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}}
到库位类型范围 :
- {{dataContent.toLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}}
从库区代码范围 :
@@ -28,6 +28,14 @@
diff --git a/pages/repleinsh/coms/requestInfoPopup.vue b/pages/repleinsh/coms/requestInfoPopup.vue
index 4e7f864b..5815fb83 100644
--- a/pages/repleinsh/coms/requestInfoPopup.vue
+++ b/pages/repleinsh/coms/requestInfoPopup.vue
@@ -14,11 +14,11 @@
从库位类型范围 :
- {{dataContent.fromLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}}
到库位类型范围 :
- {{dataContent.toLocationTypes}}
+ {{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}}
@@ -44,6 +44,15 @@
diff --git a/pages/scrap/coms/requestInfoPopup.vue b/pages/scrap/coms/requestInfoPopup.vue
index 04bdcb96..f468e6d3 100644
--- a/pages/scrap/coms/requestInfoPopup.vue
+++ b/pages/scrap/coms/requestInfoPopup.vue
@@ -37,7 +37,8 @@
content: this.dataContent.fromWarehouseCode
}, {
title: '从库位类型范围',
- content: this.dataContent.fromLocationTypes
+ content: this.dataContent.fromLocationTypes,
+ type:"locationType"
},{
title: '从库区代码范围',
content: this.dataContent.fromAreaCodes,
diff --git a/pages/supplierDeliver/coms/recordInfoPopup.vue b/pages/supplierDeliver/coms/recordInfoPopup.vue
index 7603a1b8..12d5abfb 100644
--- a/pages/supplierDeliver/coms/recordInfoPopup.vue
+++ b/pages/supplierDeliver/coms/recordInfoPopup.vue
@@ -75,7 +75,8 @@
content: this.dataContent.carrierCode
},{
title: '运输方式',
- content: this.dataContent.transferMode
+ content: this.dataContent.transferMode,
+ type:"transferMode"
},{
title: '车牌号',
content: this.dataContent.vehiclePlateNumber
diff --git a/pages/unPlanned/coms/requestIssInfoPopup.vue b/pages/unPlanned/coms/requestIssInfoPopup.vue
index c7bda5c4..eac873df 100644
--- a/pages/unPlanned/coms/requestIssInfoPopup.vue
+++ b/pages/unPlanned/coms/requestIssInfoPopup.vue
@@ -37,7 +37,8 @@
content: this.dataContent.fromWarehouseCode
}, {
title: '从库位类型范围',
- content: this.dataContent.fromLocationTypes
+ content: this.dataContent.fromLocationTypes,
+ type:"locationType"
},{
title: '从库区代码范围',
content: this.dataContent.fromAreaCodes,
diff --git a/pages/unPlanned/coms/requestRecInfoPopup.vue b/pages/unPlanned/coms/requestRecInfoPopup.vue
index d666cb2d..d7a281ca 100644
--- a/pages/unPlanned/coms/requestRecInfoPopup.vue
+++ b/pages/unPlanned/coms/requestRecInfoPopup.vue
@@ -37,7 +37,8 @@
content: this.dataContent.toWarehouseCode
}, {
title: '到库位类型范围',
- content: this.dataContent.toLocationTypes
+ content: this.dataContent.toLocationTypes,
+ type:"locationType"
},{
title: '到库区代码范围',
content: this.dataContent.toAreaCodes,
diff --git a/static/config.json b/static/config.json
index 1c570702..4f688e61 100644
--- a/static/config.json
+++ b/static/config.json
@@ -18,7 +18,7 @@
"request_url": {
"name": "request_url",
- "value": "http://192.168.0.230:12080/admin-api",
+ "value": "http://dev.ccwin-in.com:25100/api/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.178:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api",