From bad10e1f9e91992e5b8f9bed7892dca4c2db7181 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期一, 14 四月 2025 16:54:40 +0800 Subject: [PATCH] 界面翻译为俄语 --- pages/basics/orderOut.vue | 87 ++++++++++++++++++++++++++----------------- 1 files changed, 52 insertions(+), 35 deletions(-) diff --git a/pages/basics/orderOut.vue b/pages/basics/orderOut.vue index 0f5930d..f095368 100644 --- a/pages/basics/orderOut.vue +++ b/pages/basics/orderOut.vue @@ -7,7 +7,7 @@ </view> <view class="square-content"> <view class="content-input"> - <input type="text" v-model="billNo" placeholder="鎵爜 / 杈撳叆" @input="searchBillNo"> + <input type="text" v-model="billNo" placeholder="鎵爜 / 杈撳叆" @input="searchBillNo" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBillNo"></uni-icons> </view> </view> @@ -34,7 +34,7 @@ </view> <view class="square-none" v-show="matList.length === 0"> - <view class="v-show">鏆傛棤鏇村鏁版嵁...</view> + <view class="v-show">袧械褌 写芯锌芯谢薪懈褌械谢褜薪褘褏 写邪薪薪褘褏...</view> </view> <checkbox-group @change="checkbox"> @@ -58,7 +58,7 @@ </view> </checkbox-group> <!-- <view style="margin-top: 10px;"> - <uni-table ref="table" border stripe emptyText="鏆傛棤鏇村鏁版嵁"> + <uni-table ref="table" border stripe emptyText="鍙嶉��</text>"> <uni-tr> <uni-th align="center" width="50">鍑哄簱鏁伴噺</uni-th> <uni-th align="center" width="70">浜у搧ID</uni-th> @@ -85,7 +85,7 @@ </label> --> <label class="label-btn" style="width: 150rpx;"> - <button class="cu-btn" @click="resst()">閲嶇疆</button> + <button class="cu-btn" @click="resst()">小斜褉芯褋</button> </label> <label class="label-btn"> <button class="cu-btn bg-blue " @click="outbound()">鍚姩鍑哄簱</button> @@ -99,63 +99,76 @@ export default { data() { return { - billNo: 'CK6266262626A', + commonUrl:null, + billNo: '', matList: [], sites: [], siteId: '' } }, mounted(){ - const UIP = uni.getStorageSync('UIP'); - this.baseIP = UIP; - const UPORT = uni.getStorageSync('UPORT'); - this.basePORT = UPORT; - this.staNoSelect(); + const UIP = uni.getStorageSync('UIP'); + this.baseIP = UIP; + const UPORT = uni.getStorageSync('UPORT'); + this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ + this.getUrl() + this.staNoSelect(); }, methods: { + // 鑾峰彇url + getUrl() { + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, // 娓呯┖鍗曞彿鎼滅储妗� removeBillNo() { this.billNo = null }, searchBillNo() { - console.log(1) let that = this; uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/mobile/order/out/pakout/auth", + url: that.commonUrl + "/orderDetl/list/auth", header: { - // 'content-type':"application/x-www-form-urlencoded", + 'content-type':"application/x-www-form-urlencoded", 'token':uni.getStorageSync('token') }, data: { - staNo:102, - orderNo:20220622, + curr:1, + limit:10, + // typeCode:1, + order_no: that.billNo }, method:"POST", success(result) { - console.log(result) - // let res = result.data - // if (res.code === 200 ) { - // that.matList = res.data.records - // that.staNoSelect() - // } else if (res.code == 403) { - // uni.showToast({title: res.msg, icon: "none", position: 'top'}) - // setTimeout(() => { - // uni.reLaunch({ - // url: '../login/login' - // }); - // }, 1000); - // } else { - // uni.showToast({title: res.msg, icon: "none",position: 'top'}) - // } + let res = result.data + if (res.code === 200 ) { + if (res.data) { + that.matList = res.data.records + that.staNoSelect() + } else { + that.matList = [] + } + } else if (res.code == 403) { + uni.showToast({title: res.msg, icon: "none", position: 'top'}) + setTimeout(() => { + uni.reLaunch({ + url: '../login/login' + }); + }, 1000); + } else { + uni.showToast({title: res.msg, icon: "none",position: 'top'}) + } }, }) }, staNoSelect() { let that = this; uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/available/take/site", + url: that.commonUrl + "/available/take/site", header: {'token':uni.getStorageSync('token')}, success(result) { + console.log(result) let res = result.data if (res.code === 200 ) { that.sites = []; @@ -195,18 +208,22 @@ locDetls: locDetls } console.log(param) - return + // return uni.request({ - url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/plate/out/start", + url: that.commonUrl + "/mobile/order/out/pakout/auth", header: { 'token':uni.getStorageSync('token')}, - data: JSON.stringify(param), + // data: JSON.stringify(param), + data: { + staNo: staNo, + orderNo: that.billNo + }, method:"POST", success(result) { console.log(result) if (result.data.code === 200) { uni.showToast({title: result.data.msg, icon: "none",position: 'top'}) - that.reset() + that.resst() } else { uni.showToast({title: result.data.msg, icon: "none",position: 'top'}) } -- Gitblit v1.9.1