From 3311f02194604247c1fb0384ecc43cc3ef3f04be Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期日, 08 六月 2025 20:59:31 +0800 Subject: [PATCH] 1 --- 代码管理/ZhongHePDA/pages/basic/cachePoint.vue | 96 ++++++++++++++++++++++++------------------------ 1 files changed, 48 insertions(+), 48 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/basic/cachePoint.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/basic/cachePoint.vue" index 50e971a..5aa487d 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/basic/cachePoint.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/ZhongHePDA/pages/basic/cachePoint.vue" @@ -1,36 +1,36 @@ <template> <view> - <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem"> - </uni-segmented-control> - <view v-show="current === 0"> - <view style="padding: 5%;"> - <uni-forms label-width="120"> - <uni-forms-item label="缂撳瓨鐐�"> - <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="value" - placeholder="璇疯緭鍏ョ紦瀛樼偣" ref='midInput' /> - </uni-forms-item> - </uni-forms> - <button @click="submit" type="primary" size="default" style="margin-top: 2%;">閲婃斁</button> - <u-toast ref="uToast" /> - </view> - </view> - <view v-show="current === 1"> - <view style="padding: 5%;"> - <uni-forms label-width="120"> - <uni-forms-item label="缂撳瓨鐐�"> - <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="value" - placeholder="璇疯緭鍏ョ紦瀛樼偣" ref='midInput' /> - </uni-forms-item> - </uni-forms> - <button @click="submit" type="primary" size="default" style="margin-top: 2%;">鎷嗗寘</button> - <u-toast ref="uToast" /> - </view> - </view> - <!-- <view v-show="current === 2"> + <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem"> + </uni-segmented-control> + <view v-show="current === 0"> + <view style="padding: 5%;"> + <uni-forms label-width="120"> + <uni-forms-item label="缂撳瓨鐐�"> + <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="value" + placeholder="璇疯緭鍏ョ紦瀛樼偣" ref='midInput' /> + </uni-forms-item> + </uni-forms> + <button @click="submit" type="primary" size="default" style="margin-top: 2%;">閲婃斁</button> + <u-toast ref="BindluToast" /> + </view> + </view> + <view v-show="current === 1"> + <view style="padding: 5%;"> + <uni-forms label-width="120"> + <uni-forms-item label="缂撳瓨鐐�"> + <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="value" + placeholder="璇疯緭鍏ョ紦瀛樼偣" ref='midInput' /> + </uni-forms-item> + </uni-forms> + <button @click="submit" type="primary" size="default" style="margin-top: 2%;">鎷嗗寘</button> + <u-toast ref="uToast" /> + </view> + </view> + <!-- <view v-show="current === 2"> 閫夐」鍗�3鐨勫唴瀹� </view> --> - </view> - </view> + </view> + </view> </template> <script> @@ -40,7 +40,7 @@ istrue: false, range: [], value: "", - items: ['閲婃斁缂撳瓨浣�', '鎷嗗寘'], + items: ['閲婃斁缂撳瓨浣�'], //, '鎷嗗寘' current: 0 } }, @@ -49,43 +49,43 @@ }, methods: { onClickItem(e) { - if (this.current != e.currentIndex) { - this.current = e.currentIndex; - } - }, + if (this.current != e.currentIndex) { + this.current = e.currentIndex; + } + }, submit() { - if (this.value.length <= 0) { - this.$refs.uToast.show({ + if (this.value == "") { + this.$refs.BindluToast.show({ title: "璇疯緭鍏ョ紦瀛樼偣", type: "error" }) return; } - var param = { - MainData: { - matCode: this.value, - endPoint: this.value - } - } - this.$u.post('/api/AcrossFloorCarry/AcrossFloorCallMat', param).then(res => { + // var param = { + // MainData: { + // matCode: this.value, + // endPoint: this.value + // } + // } + this.$u.post('/api/PDA/AcrossFloorCallMat?Point=' + this.value, {}).then(res => { if (res.status) { - this.$refs.uToast.show({ + this.$refs.BindluToast.show({ title: "閲婃斁鎴愬姛", type: "success" }) - this.carNo = ""; + // this.carNo = ""; this.value = ""; - this.locationNo = ""; + // this.locationNo = ""; this.istrue = false; } else { - this.$refs.uToast.show({ + this.$refs.BindluToast.show({ title: res.message, type: "error" }) } }) }, - + } } </script> -- Gitblit v1.9.3