diff --git a/fe/PDA/common/mock.js b/fe/PDA/common/mock.js new file mode 100644 index 000000000..3621bc420 --- /dev/null +++ b/fe/PDA/common/mock.js @@ -0,0 +1,42 @@ +const defaultData = { + pageIndex: 1, + pageSize: 20, + name: '' +} +/**模拟后端请求*/ +export const simulationReqGetList = function(data = defaultData) { + return new Promise((resolve, reject) => { + let list = [] + if (data.pageIndex > 3) { + return resolve(list) + } + const startIndex = data.pageIndex * data.pageSize - data.pageSize + for (let i = startIndex; i < data.pageIndex * data.pageSize; i++) { + if (data.name) { + list.push({ + name: `第${data.name}${i + 1}条数据`, + code: `${i}-${i + 1}` + }) + } else { + list.push({ + name: `第${i + 1}条数据`, + code: `${i}-${i + 1}` + }) + } + } + setTimeout(() => { + return resolve(list) + }, 1000) + }) +} + +export const getDataList = function() { + let list = [] + for (let i = 0; i < 200; i++) { + list.push({ + name: `第${i + 1}条数据`, + code: `${i}-${i + 1}` + }) + } + return list +} \ No newline at end of file diff --git a/fe/PDA/mycomponents/comjob/comJobScanDetail.vue b/fe/PDA/mycomponents/comjob/comJobScanDetail.vue index 93354b9f1..1c2d5bbee 100644 --- a/fe/PDA/mycomponents/comjob/comJobScanDetail.vue +++ b/fe/PDA/mycomponents/comjob/comJobScanDetail.vue @@ -17,8 +17,9 @@ {{scanHint}} {{ scanCount}} + - 未发数量 + {{showOther}} {{ allCount-scanCount}} @@ -75,6 +76,10 @@ type: Boolean, default: false }, + showOther:{ + type: String, + default: "未发数量" + }, isShowShouRong:{ type: Boolean, default: false diff --git a/fe/PDA/mycomponents/coms/task/comCount.vue b/fe/PDA/mycomponents/coms/task/comCount.vue index a4920c109..a6bf6d4a4 100644 --- a/fe/PDA/mycomponents/coms/task/comCount.vue +++ b/fe/PDA/mycomponents/coms/task/comCount.vue @@ -6,7 +6,7 @@ - {{datacontent.countStage|countStageDesc}} | + {{datacontent.countMethod |countMethodDesc}} | {{datacontent.locationCode }} diff --git a/fe/PDA/pages/return/returnBeforPutaway.vue b/fe/PDA/pages/return/returnBeforPutaway.vue index 738b088ed..75e19d382 100644 --- a/fe/PDA/pages/return/returnBeforPutaway.vue +++ b/fe/PDA/pages/return/returnBeforPutaway.vue @@ -28,7 +28,7 @@