diff --git a/src/views/openpage/queryTraceInfo.vue b/src/views/openpage/queryTraceInfo.vue index 3243e53..a79b540 100644 --- a/src/views/openpage/queryTraceInfo.vue +++ b/src/views/openpage/queryTraceInfo.vue @@ -5,17 +5,23 @@
- +
-
查询
+
+ + + {{ item }} + +
签收底单
查看
@@ -39,12 +45,20 @@
-
-
+
+
请输入手机号码后四位
+
+ + + +
+
@@ -54,7 +68,7 @@
- 确 定
@@ -102,6 +116,7 @@ export default { input1: '', input2: '', input3: '', + latestBillList:[], // 遮罩层 loading: true, // 地球洲表格数据 @@ -129,11 +144,30 @@ export default { } queryTraceInfo(this.billCode,"1234").then(response => { this.traceInfoList = response.data; - console.log(this.traceInfoList); + this.recordLatestBill(this.billCode); this.loading = false; }); }, + recordLatestBill(billCode){ + const storage = window.localStorage.getItem('queryDataStorage') ? JSON.parse(window.localStorage.getItem('queryDataStorage')) : {} + this.latestBillList = storage["latestBillList"] ? storage["latestBillList"] : []; + this.latestBillList.push(billCode); + let list= this.latestBillList.filter(function(item, index, arr) { + return arr.indexOf(item, 0) === index; + }) + this.latestBillList=list; + storage["latestBillList"] = this.latestBillList + window.localStorage.setItem('queryDataStorage', JSON.stringify(storage)) + + }, + latestClick(item){ + this.billCode=item; + this.queryTrace(); + }, + clostBtnClick(){ + this.open=false; + }, viewSignedPic(){ this.input0=''; this.input1=''; @@ -145,7 +179,7 @@ export default { let code=this.input0+""+this.input1+""+this.input2+""+this.input3; this.loading = true; querySignedPic(this.billCode,code).then(response => { - console.log(response.data); + // console.log(response.data); this.signImageUrl = response.data; this.loading = false; this.open=false; @@ -154,7 +188,6 @@ export default { }, deleteValue (inputValue, previousItem) { // 键盘按下时$event,当前input,上一个input - console.log(this[inputValue], this[previousItem]) if (this[inputValue].length > 0) { // 当前有值,清空之 this[inputValue] = '' } else { // 当前没有值,光标跳转到上一个input,并清空该input值 @@ -166,7 +199,6 @@ export default { } }, changeValue (e, inputValue, nextItem) { // 键盘抬起时$event,当前input,下一个input - console.log(e.keyCode, this[inputValue], this[nextItem]) if (e.keyCode !== 8) { this.$nextTick(() => { this.$refs[nextItem].focus() // 截取当前值最后一位,跳到下一个input @@ -236,13 +268,13 @@ export default { .input-content { padding: 0px; input { - width: 80px; - height: 80px; + width: 60px; + height: 60px; font-size: 40px; text-align: center; margin-right: 5px; border: 1px solid #d3d3d3; - border-radius: 10px; + border-radius: 5px; } } /* 去掉input[type=number]浏览器默认的icon显示 */ @@ -283,4 +315,12 @@ export default { background: #000 } +.his-q-code { + background-color: #fcfcfc; + border-color: #d2d2d2; + color: #000000; + font-weight: 700; + border-radius: 20px; +} +