Browse Source

修改页面显示字段

wms3.0_pda
lijuncheng 1 year ago
parent
commit
8d268a04a0
  1. 37
      common/directory.js
  2. 48
      mycomponents/common/comListItem.vue
  3. 8
      mycomponents/detail/comDetailCard.vue
  4. 4
      mycomponents/detail/comRequestDetailCard.vue
  5. 1
      mycomponents/detail/recordDetailBasicInfo.vue
  6. 4
      mycomponents/detail/requestDetailBasicInfo.vue
  7. 15
      mycomponents/job/jobRequestInfo.vue
  8. 3
      mycomponents/package/packageDetailPopup.vue
  9. 52
      mycomponents/record/recordMainInfo.vue
  10. 2
      mycomponents/request/requestCommonInfo.vue
  11. 3
      mycomponents/request/requestListCommonInfo.vue
  12. 2
      pages/customerReturn/coms/requestInfoPopup.vue
  13. 6
      pages/deliver/coms/requestInfoPopup.vue
  14. 10
      pages/inspect/coms/requestInfoPopup.vue
  15. 7
      pages/issue/coms/comIssueRequestDetailCard.vue
  16. 3
      pages/issue/coms/comIssueRequestInfo.vue
  17. 3
      pages/issue/coms/requestInfoPopup.vue
  18. 2
      pages/issue/request/issueRequestDetail.vue
  19. 20
      pages/productDismantle/coms/requestInfoPopup.vue
  20. 12
      pages/productPutaway/coms/requestDetailInfoPopup.vue
  21. 2
      pages/productPutaway/coms/requestInfoPopup.vue
  22. 1
      pages/productionReturn/coms/comReturn.vue
  23. 2
      pages/productionReturn/coms/requestInfoPopup.vue
  24. 8
      pages/purchaseReceipt/coms/receiptInfoPopup.vue
  25. 2
      pages/purchaseReturn/coms/comReturnRequestCard.vue
  26. 99
      pages/purchaseReturn/coms/requestDetailInfoPopup.vue
  27. 11
      pages/purchaseReturn/coms/requestInfoPopup.vue
  28. 8
      pages/purchaseReturn/coms/returnInfoPopup.vue
  29. 2
      pages/purchaseReturn/job/returnDetail.vue
  30. 2
      pages/putaway/coms/requestInfoPopup.vue
  31. 19
      pages/repleinsh/coms/repleinshInfoPopup.vue
  32. 20
      pages/repleinsh/coms/requestInfoPopup.vue
  33. 3
      pages/scrap/coms/requestInfoPopup.vue
  34. 3
      pages/supplierDeliver/coms/recordInfoPopup.vue
  35. 3
      pages/unPlanned/coms/requestIssInfoPopup.vue
  36. 3
      pages/unPlanned/coms/requestRecInfoPopup.vue
  37. 2
      static/config.json

37
common/directory.js

@ -15,6 +15,7 @@ let inspectFailedReasonList = [];
let nextActionList = []; let nextActionList = [];
let inspectTypeList = []; let inspectTypeList = [];
let sampleMethodList = []; let sampleMethodList = [];
let transferModeList = [];
// 获取业务类型字典项 // 获取业务类型字典项
@ -46,7 +47,8 @@ export function clearCacheData() {
inspectFailedReasonList = []; inspectFailedReasonList = [];
nextActionList = []; nextActionList = [];
inspectTypeList = []; inspectTypeList = [];
sampleMethodList =[] sampleMethodList =[];
transferModeList = [];
} }
//获取字典信息 //获取字典信息
@ -185,6 +187,17 @@ export function getLocationTypeName(value) {
return location == '' ? value : location.label; 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) { export function getUnitInfo(value) {
var resultInfo = ""; var resultInfo = "";
@ -282,7 +295,7 @@ export function getInventoryStatusName(value) {
} }
} }
//获取状态描述 //获取状态描述 list
export function getInventoryStatusDesc(lst) { export function getInventoryStatusDesc(lst) {
let desc = ''; let desc = '';
lst.forEach(res => { lst.forEach(res => {
@ -404,5 +417,25 @@ export function getSampleMethod(value) {
return resultInfo 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
}

48
mycomponents/common/comListItem.vue

@ -6,6 +6,14 @@
<text v-if="(item.type=='')||(item.type==undefined)" class="text_wrap">{{item.content}} </text> <text v-if="(item.type=='')||(item.type==undefined)" class="text_wrap">{{item.content}} </text>
<text v-else-if="item.type=='dateTime'" class="text_wrap">{{formatDate(item.content)}} </text> <text v-else-if="item.type=='dateTime'" class="text_wrap">{{formatDate(item.content)}} </text>
<text v-else-if="item.type=='boolean'" class="text_wrap">{{boolean(item.content)}} </text> <text v-else-if="item.type=='boolean'" class="text_wrap">{{boolean(item.content)}} </text>
<text v-else-if="item.type=='transferMode'" class="text_wrap">{{getTransferModeName(item.content)}} </text>
<text v-else-if="item.type=='locationType'" class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(item.content))}} </text>
<text v-else-if="item.type=='uom'" class="text_wrap">{{getUnitInfo(item.content)}} </text>
<text v-else-if="item.type=='inspectType'" class="text_wrap">{{getInspectType(item.content)}} </text>
<text v-else-if="item.type=='sampleMethod'" class="text_wrap">{{getSampleMethod(item.content)}} </text>
<text v-else-if="item.type=='requestState'" class="text_wrap">{{getRequestStateInfo(item.content)}} </text>
<text v-else-if="item.type=='inventoryStatus'" class="text_wrap">{{getInventoryStatusName(item.content)}} </text>
<text v-else-if="item.type=='locationCode'" class="text_wrap">{{getLocationTypeName(item.content)}} </text>
</view> </view>
@ -17,6 +25,19 @@
import { import {
dateFormat dateFormat
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getTransferModeName,
getLocationTypeNameList,
getDirectoryItemArray,
getUnitInfo,
getInspectType,
getSampleMethod,
getRequestStateInfo,
getInventoryStatusName,
getLocationTypeName
} from '@/common/directory.js';
export default { export default {
components: {}, components: {},
data() { data() {
@ -50,6 +71,33 @@
}, },
formatDate(val) { formatDate(val) {
return dateFormat(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)
} }
} }
} }

8
mycomponents/detail/comDetailCard.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<view class="cell_box uni-flex uni-row"> <!-- <view class="cell_box uni-flex uni-row">
<view class="cell_info"> <view class="cell_info">
<view class="text_lightblue">车间</view> <view class="text_lightblue">车间</view>
<view>{{workShopCode}}</view> <view>{{workShopCode}}</view>
@ -17,7 +17,7 @@
<view class="text_lightblue">原材料库</view> <view class="text_lightblue">原材料库</view>
<view>{{ dataContent.toLocationCode}}</view> <view>{{ dataContent.toLocationCode}}</view>
</view> </view>
</view> </view> -->
<uni-collapse ref="collapse1" @change=""> <uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
@ -143,14 +143,14 @@
if (res) { if (res) {
item.scaned = false item.scaned = false
item.balance = {} item.balance = {}
item.handleQty = 0; item.handleQty = null;
this.$forceUpdate() this.$forceUpdate()
this.$emit('remove', item) this.$emit('remove', item)
} }
}); });
}, },
confirm(qty) { confirm(qty) {
this.editItem.qty = qty; this.editItem.handleQty = qty;
this.$emit('updateData') this.$emit('updateData')
}, },
showLocation(item) { showLocation(item) {

4
mycomponents/detail/comRequestDetailCard.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<comReturnRequestInfo :workShopCode="dataContent.workshopCode" :dataContent="requestItem"> <!-- <comReturnRequestInfo :workShopCode="dataContent.workshopCode" :dataContent="requestItem">
</comReturnRequestInfo> </comReturnRequestInfo> -->
<uni-collapse ref="collapse1" @change=""> <uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>

1
mycomponents/detail/recordDetailBasicInfo.vue

@ -41,6 +41,7 @@
}, { }, {
title: '计量单位', title: '计量单位',
content: this.dataContent.uom, content: this.dataContent.uom,
type:"uom"
}]; }];
}, },
immediate: true, immediate: true,

4
mycomponents/detail/requestDetailBasicInfo.vue

@ -32,13 +32,15 @@
}, { }, {
title: '计量单位', title: '计量单位',
content: this.dataContent.uom, content: this.dataContent.uom,
type:"uom"
}, },
{ {
title: '项目代码', title: '项目代码',
content: this.dataContent.projectCode, content: this.dataContent.projectCode,
},{ },{
title: '最后更新时间', title: '最后更新时间',
content: this.dataContent.lastModificationTime, content: this.dataContent.updateTime,
type:"dateTime"
}, },
{ {
title: '最后更新者Id', title: '最后更新者Id',

15
mycomponents/job/jobRequestInfo.vue

@ -30,6 +30,14 @@
<text class="item_title">入库库存状态范围 : </text> <text class="item_title">入库库存状态范围 : </text>
<text class="text_wrap">{{getInventoryStatusDesc(getDirectoryItemArray(dataContent.inInventoryStatuses))}} </text> <text class="text_wrap">{{getInventoryStatusDesc(getDirectoryItemArray(dataContent.inInventoryStatuses))}} </text>
</view> </view>
<view class="item">
<text class="item_title">从库位类型范围 : </text>
<text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} </text>
</view>
<view class="item">
<text class="item_title">到库位类型范围 : </text>
<text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} </text>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -42,7 +50,8 @@
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
getInventoryStatusDesc getInventoryStatusDesc,
getLocationTypeNameList
} from '@/common/directory.js'; } from '@/common/directory.js';
export default { export default {
@ -72,6 +81,10 @@
getDirectoryItemArray(value){ getDirectoryItemArray(value){
return getDirectoryItemArray(value) return getDirectoryItemArray(value)
},
getLocationTypeNameList(value){
return getLocationTypeNameList(value)
} }
} }

3
mycomponents/package/packageDetailPopup.vue

@ -89,7 +89,8 @@
text_wrap: this.dataContent.expireDate text_wrap: this.dataContent.expireDate
}, { }, {
item_title: '计量单位', item_title: '计量单位',
text_wrap: this.dataContent.uom text_wrap: this.dataContent.uom,
type:"uom"
}, { }, {
item_title: '数量', item_title: '数量',
text_wrap: this.dataContent.qty text_wrap: this.dataContent.qty

52
mycomponents/record/recordMainInfo.vue

@ -18,12 +18,12 @@
<view class="item"> <view class="item">
<text class="item_title">从库位类型范围 : </text> <text class="item_title">从库位类型范围 : </text>
<text class="text_wrap">{{dataContent.fromLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">到库位类型范围 : </text> <text class="item_title">到库位类型范围 : </text>
<text class="text_wrap">{{dataContent.toLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
@ -41,10 +41,9 @@
<text class="text_wrap">{{dataContent.number}} </text> <text class="text_wrap">{{dataContent.number}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">业务类型 : </text> <text class="item_title">业务类型 : </text>
<text class="text_wrap">{{dataContent.businessType}} </text> <text class="text_wrap">{{getBusinessTypeDesc(dataContent.businessType)}} </text>
</view> </view>
<view class="item"> <view class="item">
@ -74,12 +73,12 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">申请时间 : </text> <text class="item_title">申请时间 : </text>
<text class="text_wrap">{{dataContent.requestTime}} </text> <text class="text_wrap">{{dateFormat(dataContent.requestTime)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">截止时间 : </text> <text class="item_title">截止时间 : </text>
<text class="text_wrap">{{dataContent.dueTime}} </text> <text class="text_wrap">{{dateFormat(dataContent.dueTime)}} </text>
</view> </view>
<view class="item"> <view class="item">
@ -92,16 +91,16 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">自动提交 : </text> <text class="item_title">自动提交 : </text>
<text class="text_wrap">{{dataContent.autoCommit}} </text> <text class="text_wrap">{{boolean(dataContent.autoCommit)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">自动通过 : </text> <text class="item_title">自动通过 : </text>
<text class="text_wrap">{{dataContent.autoAgree}} </text> <text class="text_wrap">{{boolean(dataContent.autoAgree)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">自动执行 : </text> <text class="item_title">自动执行 : </text>
<text class="text_wrap">{{dataContent.autoExecute}} </text> <text class="text_wrap">{{boolean(dataContent.autoExecute)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">直接生成记录 : </text> <text class="item_title">直接生成记录 : </text>
@ -110,7 +109,7 @@
<view class="item"> <view class="item">
<text class="item_title">最后更新时间 : </text> <text class="item_title">最后更新时间 : </text>
<text class="text_wrap">{{dataContent.lastModificationTime}} </text> <text class="text_wrap">{{dateFormat(dataContent.lastModificationTime)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">最后更新者Id : </text> <text class="item_title">最后更新者Id : </text>
@ -143,6 +142,12 @@
</template> </template>
<script> <script>
import {
getDirectoryItemArray,
getInventoryStatusDesc,
getLocationTypeNameList,
getBusinessTypeDesc
} from '@/common/directory.js';
export default { export default {
components: {}, components: {},
data() { data() {
@ -159,7 +164,32 @@
} }
}, },
methods: {} methods: {
avaliable(value) {
return value == "TRUE" ? "可用" : "不可用"
},
boolean(value) {
return value == "TRUE" ? "是" : "否"
},
dateFormat(value){
return dateFormat(value)
},
getInventoryStatusDesc(value){
return getInventoryStatusDesc(value)
},
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
},
getLocationTypeNameList(value){
return getLocationTypeNameList(value)
},
getBusinessTypeDesc(value){
return getBusinessTypeDesc(value)
},
}
} }
</script> </script>

2
mycomponents/request/requestCommonInfo.vue

@ -29,7 +29,6 @@
<script> <script>
import requestTop from '@/mycomponents/request/requestTop.vue' import requestTop from '@/mycomponents/request/requestTop.vue'
import requestRequestInfo from '@/mycomponents/request/requestRequestInfo.vue' import requestRequestInfo from '@/mycomponents/request/requestRequestInfo.vue'
import requestMainInfo from '@/mycomponents/request/requestMainInfo.vue'
import requestItemInfo from '@/mycomponents/request/requestItemInfo.vue' import requestItemInfo from '@/mycomponents/request/requestItemInfo.vue'
import requestPersonInfo from '@/mycomponents/request/requestPersonInfo.vue' import requestPersonInfo from '@/mycomponents/request/requestPersonInfo.vue'
import requestListCommonInfo from '@/mycomponents/request/requestListCommonInfo.vue' import requestListCommonInfo from '@/mycomponents/request/requestListCommonInfo.vue'
@ -42,7 +41,6 @@
requestTop, requestTop,
requestRequestInfo, requestRequestInfo,
requestItemInfo, requestItemInfo,
requestMainInfo,
requestPersonInfo, requestPersonInfo,
requestListCommonInfo requestListCommonInfo
}, },

3
mycomponents/request/requestListCommonInfo.vue

@ -23,7 +23,8 @@
content: this.dataContent.departmentCode content: this.dataContent.departmentCode
}, { }, {
title: '状态', title: '状态',
content: this.dataContent.status content: this.dataContent.status,
type:"requestState"
},{ },{
title: '自动提交', title: '自动提交',
content: this.dataContent.autoCommit, content: this.dataContent.autoCommit,

2
pages/customerReturn/coms/requestInfoPopup.vue

@ -69,10 +69,12 @@
{ {
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes, content: this.dataContent.fromLocationTypes,
type:"locationType"
}, },
{ {
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes, content: this.dataContent.toLocationTypes,
type:"locationType"
}, },
{ {
title: '从库区代码范围', title: '从库区代码范围',

6
pages/deliver/coms/requestInfoPopup.vue

@ -66,11 +66,13 @@
}, },
{ {
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes content: this.dataContent.fromLocationTypes,
type:"locationType"
}, },
{ {
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes content: this.dataContent.toLocationTypes,
type:"locationType"
}, },
{ {
title: '从库区代码范围', title: '从库区代码范围',

10
pages/inspect/coms/requestInfoPopup.vue

@ -42,7 +42,8 @@
content: this.dataContent.fromWarehouseCode content: this.dataContent.fromWarehouseCode
},{ },{
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes content: this.dataContent.fromAreaCodes
@ -64,20 +65,23 @@
},{ },{
title: '计量单位', title: '计量单位',
content: this.dataContent.uom, content: this.dataContent.uom,
type:"uom"
}, },
{ {
title: '收货数量', title: '收货数量',
content: this.dataContent.receiveQty content: this.dataContent.receiveQty
},{ },{
title: '检验类型', title: '检验类型',
content: this.dataContent.inspectType content: this.dataContent.inspectType,
type:'inspectType'
},{ },{
title: '下一步检验动作', title: '下一步检验动作',
content: this.dataContent.nextAction content: this.dataContent.nextAction
}, },
{ {
title: '抽检方式', title: '抽检方式',
content: this.dataContent.sampleMethod content: this.dataContent.sampleMethod,
type:'sampleMethod'
}, },
{ {
title: '样品数量', title: '样品数量',

7
pages/issue/coms/comIssueRequestDetailCard.vue

@ -6,9 +6,10 @@
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<view v-for="(item, index) in dataContent.subList" :key="index"> <view v-for="(item, index) in dataContent.subList" :key="index">
<uni-swipe-action-item @click="swipeClick($event,item)" :right-options="detailOptions"> <uni-swipe-action-item @click="swipeClick($event,item)" :right-options="detailOptions">
<item-qty :dataContent="item" :isShowStdPack="false"> <item-qty :dataContent="item" :isShowStdPack="false">
</item-qty> </item-qty>
<u-line /> <u-line />
</uni-swipe-action-item> </uni-swipe-action-item>
</view> </view>
</uni-swipe-action> </uni-swipe-action>

3
pages/issue/coms/comIssueRequestInfo.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="cen_card" style="padding: 20rpx;"> <view class="cen_card" style="padding-top: 10rpx;padding-bottom: 10rpx;">
<view class="cell_box uni-flex uni-row"> <view class="cell_box uni-flex uni-row">
<view class="cell_info"> <view class="cell_info">
<view class="text_lightblue">车间</view> <view class="text_lightblue">车间</view>
@ -18,7 +18,6 @@
<view>{{ dataContent.toLocationCode}}</view> <view>{{ dataContent.toLocationCode}}</view>
</view> </view>
</view> </view>
<u-line />
</view> </view>
</template> </template>

3
pages/issue/coms/requestInfoPopup.vue

@ -44,12 +44,15 @@
},{ },{
title: '使用在途库', title: '使用在途库',
content: this.dataContent.useOnTheWayLocation, content: this.dataContent.useOnTheWayLocation,
type:"boolean"
},{ },{
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes, content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes, content: this.dataContent.toLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

2
pages/issue/request/issueRequestDetail.vue

@ -94,7 +94,7 @@
// res.fromLocationCode = res.toLocationCode // res.fromLocationCode = res.toLocationCode
// }) // })
// that.detailSource = getDataSource(that.subList); // that.detailSource = getDataSource(that.subList);
updateTitle(this.requestContent.number); // updateTitle(this.requestContent.number);
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }

20
pages/productDismantle/coms/requestInfoPopup.vue

@ -18,11 +18,11 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">从库位类型范围 : </text> <text class="item_title">从库位类型范围 : </text>
<text class="text_wrap">{{dataContent.fromLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">到库位类型范围 : </text> <text class="item_title">到库位类型范围 : </text>
<text class="text_wrap">{{dataContent.toLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
@ -43,6 +43,15 @@
</template> </template>
<script> <script>
import {
dateFormat,
getDirectoryItemArray,
} from '@/common/basic.js';
import {
getInventoryStatusDesc,
getLocationTypeNameList
} from '@/common/directory.js';
import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue' import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue'
export default { export default {
components: { components: {
@ -68,6 +77,13 @@
closePopup() { closePopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
},
getLocationTypeNameList(value){
return getLocationTypeNameList(value)
}
} }
} }
</script> </script>

12
pages/productPutaway/coms/requestDetailInfoPopup.vue

@ -12,10 +12,6 @@
<text class="item_title">器具号 : </text> <text class="item_title">器具号 : </text>
<text class="text_wrap">{{dataContent.containerNumber}} </text> <text class="text_wrap">{{dataContent.containerNumber}} </text>
</view> </view>
<view class="item">
<text class="item_title">批次 : </text>
<text class="text_wrap">{{dataContent.batch}} </text>
</view>
<view class="item"> <view class="item">
<text class="item_title">从库位代码 : </text> <text class="item_title">从库位代码 : </text>
<text class="text_wrap">{{dataContent.fromLocationCode }} </text> <text class="text_wrap">{{dataContent.fromLocationCode }} </text>
@ -24,14 +20,6 @@
<text class="item_title">库存状态 : </text> <text class="item_title">库存状态 : </text>
<text class="text_wrap">{{dataContent.inventoryStatus}} </text> <text class="text_wrap">{{dataContent.inventoryStatus}} </text>
</view> </view>
<view class="item">
<text class="item_title">订单号 : </text>
<text class="text_wrap">{{dataContent.poNumber}} </text>
</view>
<view class="item">
<text class="item_title">订单行 : </text>
<text class="text_wrap">{{dataContent.poLine}} </text>
</view>
<view class="item"> <view class="item">
<text class="item_title">从货主代码 : </text> <text class="item_title">从货主代码 : </text>
<text class="text_wrap">{{dataContent.fromOwnerCode}} </text> <text class="text_wrap">{{dataContent.fromOwnerCode}} </text>

2
pages/productPutaway/coms/requestInfoPopup.vue

@ -44,9 +44,11 @@
},{ },{
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes, content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes, content: this.dataContent.toLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

1
pages/productionReturn/coms/comReturn.vue

@ -43,7 +43,6 @@
<script> <script>
import { import {
productionReturnRequestSubmit,
productionReturnRecordSubmit productionReturnRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';

2
pages/productionReturn/coms/requestInfoPopup.vue

@ -44,9 +44,11 @@
},{ },{
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes, content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes, content: this.dataContent.toLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

8
pages/purchaseReceipt/coms/receiptInfoPopup.vue

@ -22,7 +22,7 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">运输方式 : </text> <text class="item_title">运输方式 : </text>
<text class="text_wrap">{{dataContent.transferMode}} </text> <text class="text_wrap">{{getTransferModeName(dataContent.transferMode)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">车牌号 : </text> <text class="item_title">车牌号 : </text>
@ -38,6 +38,9 @@
<script> <script>
import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue' import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue'
import {getTransferModeName} from '@/common/directory.js'
export default { export default {
components: { components: {
jobCommonInfo, jobCommonInfo,
@ -62,6 +65,9 @@
closePopup() { closePopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
getTransferModeName(value){
return getTransferModeName(value)
}
} }
} }
</script> </script>

2
pages/purchaseReturn/coms/comReturnRequestCard.vue

@ -2,7 +2,7 @@
<request-com-main-card :dataContent="dataContent"> <request-com-main-card :dataContent="dataContent">
<view class="task_item"> <view class="task_item">
<view class="task_text"> <view class="task_text">
收货单号 : {{dataContent.PurchaseReceiptRecordNumber}} 收货单号 : {{dataContent.purchaseReceiptRecordNumber}}
</view> </view>
<view class="task_text"> <view class="task_text">
供应商代码 : {{dataContent.supplierCode}} 供应商代码 : {{dataContent.supplierCode}}

99
pages/purchaseReturn/coms/requestDetailInfoPopup.vue

@ -3,52 +3,7 @@
<uni-popup ref="popup"> <uni-popup ref="popup">
<requestDetailCommonInfo :dataContent="dataContent" @onClose="closePopup"> <requestDetailCommonInfo :dataContent="dataContent" @onClose="closePopup">
<view class=""> <view class="">
<view class="uni-flex uni-column"> <comListItem :dataList="dataList"></comListItem>
<view class="item">
<text class="item_title">包装号 : </text>
<text class="text_wrap">{{dataContent.packingNumber}} </text>
</view>
<view class="item">
<text class="item_title">器具号 : </text>
<text class="text_wrap">{{dataContent.containerNumber}} </text>
</view>
<view class="item">
<text class="item_title">批次 : </text>
<text class="text_wrap">{{dataContent.batch}} </text>
</view>
<view class="item">
<text class="item_title">替代批次 : </text>
<text class="text_wrap">{{dataContent.altBatch}} </text>
</view>
<view class="item">
<text class="item_title">到库位代码 : </text>
<text class="text_wrap">{{dataContent.toLocationCode}} </text>
</view>
<view class="item">
<text class="item_title">库存状态 : </text>
<text class="text_wrap">{{dataContent.inventoryStatus}} </text>
</view>
<view class="item">
<text class="item_title">订单号 : </text>
<text class="text_wrap">{{dataContent.poNumber}} </text>
</view>
<view class="item">
<text class="item_title">订单行 : </text>
<text class="text_wrap">{{dataContent.poLine}} </text>
</view>
<view class="item">
<text class="item_title">原因 : </text>
<text class="text_wrap">{{dataContent.reason}} </text>
</view>
<view class="item">
<text class="item_title">从货主代码 : </text>
<text class="text_wrap">{{dataContent.fromOwnerCode}} </text>
</view>
<view class="item">
<text class="item_title">到货主代码 : </text>
<text class="text_wrap">{{dataContent.toOwnerCode}} </text>
</view>
</view>
</view> </view>
</requestDetailCommonInfo> </requestDetailCommonInfo>
</uni-popup> </uni-popup>
@ -57,16 +12,64 @@
<script> <script>
import requestDetailCommonInfo from '@/mycomponents/detail/requestDetailCommonInfo.vue' import requestDetailCommonInfo from '@/mycomponents/detail/requestDetailCommonInfo.vue'
import comListItem from '@/mycomponents/common/comListItem.vue';
export default { export default {
components: { components: {
requestDetailCommonInfo requestDetailCommonInfo,
comListItem
}, },
data() { data() {
return { return {
dataContent: { dataContent: {
type: Object, type: Object,
default: {} default: {}
} },
dataList:[]
}
},
watch:{
dataContent: {
handler(newName, oldName) {
this.dataList=[{
title: '包装号',
content: this.dataContent.packingNumber
}, {
title: '器具号',
content: this.dataContent.containerNumber
},{
title: '批次',
content: this.dataContent.batch
},{
title: '替代批次',
content: this.dataContent.altBatch,
},{
title: '到库位代码',
content: this.dataContent.toLocationCode
},{
title: '库存状态',
content: this.dataContent.inventoryStatus,
type:"inventoryStatus"
},{
title: '订单号',
content: this.dataContent.poNumber
},{
title: '订单行',
content: this.dataContent.poLine
},{
title: '原因',
content: this.dataContent.reason
},{
title: '从货主代码',
content: this.dataContent.fromOwnerCode,
},{
title: '到货主代码',
content: this.dataContent.toOwnerCode,
}
];
},
immediate: true,
deep: true
} }
}, },

11
pages/purchaseReturn/coms/requestInfoPopup.vue

@ -40,7 +40,7 @@
content: this.dataContent.purchaseReceiptRecordNumber content: this.dataContent.purchaseReceiptRecordNumber
}, { }, {
title: '发货单号', title: '发货单号',
content: this.dataContent.asnNumbe content: this.dataContent.asnNumber
},{ },{
title: '要货计划单号', title: '要货计划单号',
content: this.dataContent.ppNumber, content: this.dataContent.ppNumber,
@ -53,6 +53,7 @@
},{ },{
title: '运输方式', title: '运输方式',
content: this.dataContent.transferMode, content: this.dataContent.transferMode,
type:"transferMode",
},{ },{
title: '车牌号', title: '车牌号',
content: this.dataContent.vehiclePlateNumber, content: this.dataContent.vehiclePlateNumber,
@ -64,15 +65,17 @@
content: this.dataContent.toWarehouseCode, content: this.dataContent.toWarehouseCode,
},{ },{
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes content: this.dataContent.fromLocationTypes,
type:"locationType"
}, },
{ {
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes content: this.dataContent.toLocationTypes,
type:"locationType"
}, },
{ {
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes content: this.dataContent.fromAreaCodes,
}, },
{ {
title: '到库区代码范围', title: '到库区代码范围',

8
pages/purchaseReturn/coms/returnInfoPopup.vue

@ -14,7 +14,7 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">供应商代码 : </text> <text class="item_title">供应商代码 : </text>
<text class="text_wrap">{{dataContent.carrierCode}} </text> <text class="text_wrap">{{dataContent.supplierCode}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">承运商 : </text> <text class="item_title">承运商 : </text>
@ -22,7 +22,7 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">运输方式 : </text> <text class="item_title">运输方式 : </text>
<text class="text_wrap">{{dataContent.transferMode}} </text> <text class="text_wrap">{{getTransferModeName(dataContent.transferMode)}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">车牌号 : </text> <text class="item_title">车牌号 : </text>
@ -38,6 +38,7 @@
<script> <script>
import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue' import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue'
import {getTransferModeName} from '@/common/directory.js'
export default { export default {
components: { components: {
jobCommonInfo, jobCommonInfo,
@ -62,6 +63,9 @@
closePopup() { closePopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
getTransferModeName(value){
return getTransferModeName(value)
}
} }
} }
</script> </script>

2
pages/purchaseReturn/job/returnDetail.vue

@ -246,7 +246,7 @@
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,是否继续上架?', res => { ']不一致,是否继续退货?', res => {
if (res) { if (res) {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty) ; itemDetail.handleQty = Number(result.balance.qty) ;

2
pages/putaway/coms/requestInfoPopup.vue

@ -41,9 +41,11 @@
}, { }, {
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes, content: this.dataContent.fromLocationTypes,
type:"locationType"
}, { }, {
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes, content: this.dataContent.toLocationTypes,
type:"locationType"
}, { }, {
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

19
pages/repleinsh/coms/repleinshInfoPopup.vue

@ -6,11 +6,11 @@
<view class="uni-flex uni-column"> <view class="uni-flex uni-column">
<view class="item"> <view class="item">
<text class="item_title">从库位类型范围 : </text> <text class="item_title">从库位类型范围 : </text>
<text class="text_wrap">{{dataContent.fromLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">到库位类型范围 : </text> <text class="item_title">到库位类型范围 : </text>
<text class="text_wrap">{{dataContent.toLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">从库区代码范围 : </text> <text class="item_title">从库区代码范围 : </text>
@ -28,6 +28,14 @@
</template> </template>
<script> <script>
import {
dateFormat,
getDirectoryItemArray,
} from '@/common/basic.js';
import {
getInventoryStatusDesc,
getLocationTypeNameList
} from '@/common/directory.js';
import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue' import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue'
export default { export default {
components: { components: {
@ -53,6 +61,13 @@
closePopup() { closePopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
},
getLocationTypeNameList(value){
return getLocationTypeNameList(value)
}
} }
} }
</script> </script>

20
pages/repleinsh/coms/requestInfoPopup.vue

@ -14,11 +14,11 @@
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">从库位类型范围 : </text> <text class="item_title">从库位类型范围 : </text>
<text class="text_wrap">{{dataContent.fromLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.fromLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
<text class="item_title">到库位类型范围 : </text> <text class="item_title">到库位类型范围 : </text>
<text class="text_wrap">{{dataContent.toLocationTypes}} </text> <text class="text_wrap">{{getLocationTypeNameList(getDirectoryItemArray(dataContent.toLocationTypes))}} </text>
</view> </view>
<view class="item"> <view class="item">
@ -44,6 +44,15 @@
</template> </template>
<script> <script>
import {
dateFormat,
getDirectoryItemArray,
} from '@/common/basic.js';
import {
getInventoryStatusDesc,
getLocationTypeNameList
} from '@/common/directory.js';
import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue' import requestCommonInfo from '@/mycomponents/request/requestCommonInfo.vue'
export default { export default {
components: { components: {
@ -69,6 +78,13 @@
closePopup() { closePopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
getDirectoryItemArray(value){
return getDirectoryItemArray(value)
},
getLocationTypeNameList(value){
return getLocationTypeNameList(value)
}
} }
} }
</script> </script>

3
pages/scrap/coms/requestInfoPopup.vue

@ -37,7 +37,8 @@
content: this.dataContent.fromWarehouseCode content: this.dataContent.fromWarehouseCode
}, { }, {
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

3
pages/supplierDeliver/coms/recordInfoPopup.vue

@ -75,7 +75,8 @@
content: this.dataContent.carrierCode content: this.dataContent.carrierCode
},{ },{
title: '运输方式', title: '运输方式',
content: this.dataContent.transferMode content: this.dataContent.transferMode,
type:"transferMode"
},{ },{
title: '车牌号', title: '车牌号',
content: this.dataContent.vehiclePlateNumber content: this.dataContent.vehiclePlateNumber

3
pages/unPlanned/coms/requestIssInfoPopup.vue

@ -37,7 +37,8 @@
content: this.dataContent.fromWarehouseCode content: this.dataContent.fromWarehouseCode
}, { }, {
title: '从库位类型范围', title: '从库位类型范围',
content: this.dataContent.fromLocationTypes content: this.dataContent.fromLocationTypes,
type:"locationType"
},{ },{
title: '从库区代码范围', title: '从库区代码范围',
content: this.dataContent.fromAreaCodes, content: this.dataContent.fromAreaCodes,

3
pages/unPlanned/coms/requestRecInfoPopup.vue

@ -37,7 +37,8 @@
content: this.dataContent.toWarehouseCode content: this.dataContent.toWarehouseCode
}, { }, {
title: '到库位类型范围', title: '到库位类型范围',
content: this.dataContent.toLocationTypes content: this.dataContent.toLocationTypes,
type:"locationType"
},{ },{
title: '到库区代码范围', title: '到库区代码范围',
content: this.dataContent.toAreaCodes, content: this.dataContent.toAreaCodes,

2
static/config.json

@ -18,7 +18,7 @@
"request_url": { "request_url": {
"name": "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", "dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.178:12080/admin-api", "chefang": "http://192.168.0.178:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save