diff --git a/common/style/layout.css b/common/style/layout.css index 960095a..861b865 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -206,6 +206,10 @@ uni-button:after { color: #fff; } +/** 下拉框 */ +.uni-select__selector { + z-index: 300 !important; +} /** 弹窗 */ .msg_wrapper { diff --git a/manifest.json b/manifest.json index 1cd70d0..8b18158 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "点对点", - "appid" : "__UNI__6B1D710", + "appid" : "__UNI__22404A1", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -72,5 +72,10 @@ "uniStatistics" : { "enable" : false }, - "vueVersion" : "2" + "vueVersion" : "2", + "h5" : { + "router" : { + "base" : "./" + } + } } diff --git a/pages/ProductManage/EmptyPipeInStore.vue b/pages/ProductManage/EmptyPipeInStore.vue index a8e5a67..a4356fc 100644 --- a/pages/ProductManage/EmptyPipeInStore.vue +++ b/pages/ProductManage/EmptyPipeInStore.vue @@ -59,7 +59,7 @@ - + @@ -88,6 +88,7 @@ }, created () { this._queryProductArea() + this._queryMaterialInfo() }, methods: { /** 选择器 */ @@ -101,10 +102,11 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { - if (!this.val1 || !this.val2 || !this.index) { - return + let area = '' + if (this.index !== '') { + area = this.options[this.index].value } - let res = await queryMaterialInfo1(this.val1, this.val2, this.options[this.index].value) + let res = await queryMaterialInfo1(this.val1, this.val2, area) this.dataList = [...res.rows] }, /** 确认 */ diff --git a/pages/ProductManage/ZjCasing.vue b/pages/ProductManage/ZjCasing.vue index acea0d3..4bf1ba6 100644 --- a/pages/ProductManage/ZjCasing.vue +++ b/pages/ProductManage/ZjCasing.vue @@ -77,7 +77,7 @@ - + @@ -105,6 +105,7 @@ }, created () { this._queryProductArea() + this._queryMaterialInfo() }, methods: { /** 选择器 */ @@ -118,10 +119,11 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { - if (!this.val1 || !this.index) { - return + let area = '' + if (this.index !== '') { + area = this.options[this.index].value } - let res = await queryMaterialInfo2(this.val1, this.options[this.index].value) + let res = await queryMaterialInfo2(this.val1, area) res.rows.map(el => { this.$set(el, 'checked', false) }) diff --git a/pages/ProductManage/ZjDelivery.vue b/pages/ProductManage/ZjDelivery.vue index 39f57dd..08a3988 100644 --- a/pages/ProductManage/ZjDelivery.vue +++ b/pages/ProductManage/ZjDelivery.vue @@ -78,7 +78,7 @@ - + @@ -107,6 +107,7 @@ }, created () { this._queryProductArea() + this._queryMaterialInfo() }, methods: { /** 选择器 */ @@ -120,10 +121,11 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { - if (!this.val1 || !this.index) { - return + let area = '' + if (this.index !== '') { + area = this.options[this.index].value } - let res = await queryMaterialInfo3(this.val1, this.val2, this.options[this.index].value) + let res = await queryMaterialInfo3(this.val1, this.val2, area) res.rows.map(el => { this.$set(el, 'checked', false) }) diff --git a/pages/ProductManage/ZjOutStore.vue b/pages/ProductManage/ZjOutStore.vue index cbcd8fc..80e6766 100644 --- a/pages/ProductManage/ZjOutStore.vue +++ b/pages/ProductManage/ZjOutStore.vue @@ -67,7 +67,7 @@ - + @@ -95,6 +95,7 @@ }, created () { this._queryProductArea() + this._queryMaterialInfo() }, methods: { /** 选择器 */ @@ -108,10 +109,11 @@ }, /** 初始化查询 */ async _queryMaterialInfo () { - if (!this.val1 || !this.index) { - return + let area = '' + if (this.index !== '') { + area = this.options[this.index].value } - let res = await queryMaterialInfo4(this.val1, this.options[this.index].value) + let res = await queryMaterialInfo4(this.val1, area) res.rows.map(el => { this.$set(el, 'checked', false) }) diff --git a/pages/login/login.vue b/pages/login/login.vue index 304de80..36947d7 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -46,9 +46,9 @@ }) }, async toLogin() { - uni.redirectTo({ - url: '/pages/home/home' - }) + // uni.redirectTo({ + // url: '/pages/home/home' + // }) this.disabled = true if (this.user === '') { uni.showToast({ diff --git a/utils/getData2.js b/utils/getData2.js index 110e856..f8455b7 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -9,33 +9,14 @@ export const queryProductArea = () => request({ data: {} }) // 1.2空纸管库设备物料初始化查询 -// export const queryMaterialInfo1 = (code, mcode, area) => request({ -// url:'api/pda/empty/queryMaterialInfo', -// data: { -// point_code: code, -// material_code: mcode, -// product_area: area -// } -// }) -export const queryMaterialInfo1 = (code, area) => { - let res = { - rows: [ - {point_code: 'fdfdfdfdffedfd1',material_code: 'dfdf2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - {point_code: '1',material_code: '2', checked: false}, - ] +export const queryMaterialInfo1 = (code, mcode, area) => request({ + url:'api/pda/empty/queryMaterialInfo', + data: { + point_code: code, + material_code: mcode, + product_area: area } - return res -} +}) // 1.3入库确认 export const emptyConfirm = (jo, qty, code) => request({ url:'api/pda/empty/confirm',