Browse Source

oilpda修改

master
shenzhouyu 12 hours ago
parent
commit
eb68197a66
  1. 2
      src/api/production/production-issue.js
  2. 19
      src/views/modules/production-issue/productionIssuePda.vue

2
src/api/production/production-issue.js

@ -31,3 +31,5 @@ export const scanMaterialLabel = data => createAPI(`/pda/production/issue/scanMa
export const getOrderInfoByBucketNoForPda = data => createAPI(`/demandOrder/getOrderInfoByBucketNoForPda`, 'post', data) export const getOrderInfoByBucketNoForPda = data => createAPI(`/demandOrder/getOrderInfoByBucketNoForPda`, 'post', data)
export const sendInkHandle = data => createAPI(`/mixInkOrder/sendInkHandle`, 'post', data) export const sendInkHandle = data => createAPI(`/mixInkOrder/sendInkHandle`, 'post', data)
export const getLocationBySite = (data) => createAPI(`/location/getLocationBySite`, 'post', data);

19
src/views/modules/production-issue/productionIssuePda.vue

@ -73,7 +73,7 @@
</template> </template>
<script> <script>
import {getOrderInfoByBucketNoForPda, sendInkHandle} from '../../../api/production/production-issue'
import {getOrderInfoByBucketNoForPda, sendInkHandle,getLocationBySite} from '../../../api/production/production-issue'
export default { export default {
name: 'ProductionIssuePDA', name: 'ProductionIssuePDA',
@ -114,6 +114,7 @@ export default {
scanLabelData: {}, scanLabelData: {},
scanTableInput: '', scanTableInput: '',
scanTableData: [], scanTableData: [],
redisLocationNo: '',
} }
}, },
computed: { computed: {
@ -130,6 +131,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.scannerInput.focus(); this.$refs.scannerInput.focus();
}); });
this.getLocationBySite()
}, },
methods: { methods: {
handleBack() { handleBack() {
@ -191,7 +193,7 @@ export default {
entryDate: this.dayjs().format('YYYY-MM-DD'), entryDate: this.dayjs().format('YYYY-MM-DD'),
usageWeight: 0.0, usageWeight: 0.0,
sampleFlag: this.mixInkOrderList[0].sampleFlag ? this.mixInkOrderList[0].sampleFlag : 'N', sampleFlag: this.mixInkOrderList[0].sampleFlag ? this.mixInkOrderList[0].sampleFlag : 'N',
locationNo: '线边库库位',
locationNo: this.redisLocationNo,
preFlag: this.mixInkOrderList[0].preFlag, preFlag: this.mixInkOrderList[0].preFlag,
} }
} }
@ -211,6 +213,19 @@ export default {
this.showMessage('请先输入或扫描设备!', 'error'); this.showMessage('请先输入或扫描设备!', 'error');
} }
}, },
getLocationBySite(){
let tempData = {
site: localStorage.getItem('site'),
}
getLocationBySite(tempData).then(({ data }) => {
if (data.code === 0) {
this.redisLocationNo = data.locationNo;
console.log('从 Redis 获取线边库库位:' + this.redisLocationNo);
} else {
this.$message.error(data.msg)
}
})
},
showMessage(text, type = 'info') { showMessage(text, type = 'info') {
this.message = text this.message = text

Loading…
Cancel
Save