diff --git a/pages.json b/pages.json index 22b5724..943328b 100644 --- a/pages.json +++ b/pages.json @@ -505,6 +505,13 @@ "navigationStyle": "custom" } } + ,{ + "path" : "pages/ftdl/mater-list-cxjl", + "style" : + { + "navigationStyle": "custom" + } + } ], "globalStyle": { // "pageOrientation": "landscape", diff --git a/pages/ftdl/line-call-mater.vue b/pages/ftdl/line-call-mater.vue index 61c6685..527c5c6 100644 --- a/pages/ftdl/line-call-mater.vue +++ b/pages/ftdl/line-call-mater.vue @@ -21,16 +21,16 @@ {{$t('filter.material')}} - - + + - + {{$t('filter.material-use-number')}} - + {{unit}} @@ -48,9 +48,9 @@ + --> - + @@ -71,8 +71,8 @@ val2: '1', val3: '', unit: '', + currentData: {}, options: [], - index: '', pointCode: '', disabled: false }; @@ -83,6 +83,10 @@ created () { }, onShow() { + if (this.$store.getters.publicObj !== '') { + this.currentData = this.$store.getters.publicObj + this.$store.dispatch('setPublicObj', '') + } }, methods: { async _selectMaterialByRegion () { @@ -97,12 +101,17 @@ this.options = [] } }, - selectChange (e) { - this.index = e - let selobj = this.options.find(item => item.value === this.index) - this.val3 = selobj.qty - this.unit = selobj.measure_unit_id + toJump () { + uni.navigateTo({ + url: '/pages/ftdl/mater-list-cxjl?title=查询物料' + }) }, + // selectChange (e) { + // this.index = e + // let selobj = this.options.find(item => item.value === this.index) + // this.val3 = selobj.qty + // this.unit = selobj.measure_unit_id + // }, handleChange1 (e) { if (e) { this._getRegionByPoint(e) @@ -129,17 +138,16 @@ this.val1 = '' this.val2 = '' this.pointCode = '' - this.index = '' this.disabled = false }, async _loading () { this.disabled = true - if (!this.val1 || !this.val2 || !this.index) { + if (!this.val1 || !this.val2) { this.disabled = false return } try { - let res = await loading(this.pointCode, this.val1, this.index, this.val2) + let res = await loading(this.pointCode, this.val1, this.currentData.material_code, this.val2) if (res.code === '200') { uni.showToast({ title: res.message, diff --git a/pages/ftdl/mater-list-cxjl.vue b/pages/ftdl/mater-list-cxjl.vue new file mode 100644 index 0000000..64d17fc --- /dev/null +++ b/pages/ftdl/mater-list-cxjl.vue @@ -0,0 +1,157 @@ + + + \ No newline at end of file diff --git a/utils/getData4.js b/utils/getData4.js index ed66365..70b1c6c 100644 --- a/utils/getData4.js +++ b/utils/getData4.js @@ -39,6 +39,17 @@ export const loading = (pcode, rcode, mcode, num) => request({ url:'api/hand/loading', data: {point_code: pcode, region_code: rcode, material_code: mcode, num: num} }) +// 1.4查询物料信息 +export const selectFullMaterials = (rcode) => request({ + url:'api/hand/selectFullMaterials', + data: {region_code: rcode} +}) +// 1.4查询所有叫料区域 +export const getCallRegions = () => request({ + url:'api/hand/getCallRegions', + data: {} +}) + // 产线下料 // 1.1查询物料信息