Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
lijuncheng 3 months ago
parent
commit
baeb8fe44b
  1. 8
      src/api/request2.js
  2. 10
      src/mycomponents/job/jobFilter.vue
  3. 27
      src/pages/issue/job/issueJob.vue
  4. 5
      src/pages/purchaseReceipt/job/receiptJob.vue

8
src/api/request2.js

@ -1314,6 +1314,14 @@ export function getIssueJobList(params) {
data: params, data: params,
}); });
} }
export function getIssueJobByProductionline() {
return request({
url: baseApi + "/wms/issue-job-main/getIssueJobByProductionline",
method: "get",
data: {},
});
}
/** /**
* 发料任务明细 * 发料任务明细
* @param {*} 任务id * @param {*} 任务id

10
src/mycomponents/job/jobFilter.vue

@ -21,8 +21,10 @@
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
生产线 生产线
</view> </view>
<u-input style="margin-left: 20rpx;" v-model="productionLineCode" :border="true" <!-- <u-input style="margin-left: 20rpx;" v-model="productionLineCode" :border="true"
placeholder="请输入生产线" @confirm="productionLineCodeConfirm" /> placeholder="请输入生产线" @confirm="productionLineCodeConfirm" /> -->
<uni-data-select class="uni-data-select" style="margin-left: 20rpx;" placeholder="请输入生产线" v-model="productionLineCode" :clear="false" :localdata="productionline" @change="productionLineCodeConfirm"></uni-data-select>
</view> </view>
<view v-if="isShowFromLocationCode" class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;"> <view v-if="isShowFromLocationCode" class="uni-flex space-between u-col-center" style="width: 100%;margin-top: 30rpx;">
<view class="" style="font-size: 32rpx;"> <view class="" style="font-size: 32rpx;">
@ -92,6 +94,10 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
productionline:{
type: Array,
default: []
}
}, },
data() { data() {
return { return {

27
src/pages/issue/job/issueJob.vue

@ -1,7 +1,7 @@
<template> <template>
<view class=""> <view class="">
<com-empty-view v-if="jobList.length==0"></com-empty-view> <com-empty-view v-if="jobList.length==0"></com-empty-view>
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" ref="filter" otherTitle="" <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionline" ref="filter" otherTitle=""
@switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber"
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @productionLineCode="productionLineCode" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @productionLineCode="productionLineCode"
@fromLocationCode="fromLocationCode"> @fromLocationCode="fromLocationCode">
@ -31,7 +31,8 @@
<script> <script>
import { import {
cancleTakeIssueJob, cancleTakeIssueJob,
getIssueJobList, getIssueJobList,
getIssueJobByProductionline
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
goHome, goHome,
@ -76,10 +77,13 @@
todayTime: "", todayTime: "",
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
productionline:[]
}; };
},
onLoad(){
this.getIssueJobByProductionline()
}, },
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
@ -119,7 +123,20 @@
} }
}, },
methods: { methods: {
getIssueJobByProductionline(){
getIssueJobByProductionline().then(res=>{
console.log('生产线',res)
if(res.code==0){
this.productionline = res.data.map(item=>({
value: item,
text: item
}))
}else{
this.productionline = []
}
})
},
getList(type, fromLocationCode = '', productionLineCode = '') { getList(type, fromLocationCode = '', productionLineCode = '') {
let that = this; let that = this;
uni.showLoading({ uni.showLoading({

5
src/pages/purchaseReceipt/job/receiptJob.vue

@ -356,6 +356,7 @@
}, },
getScanResult(result) { getScanResult(result) {
try { try {
@ -366,6 +367,10 @@
column: "asn_number", column: "asn_number",
action: "==", action: "==",
value: result.label.code value: result.label.code
},{
column: "status",
action: "in",
value: '1,2',
}] }]
} else { } else {
filters = [{ filters = [{

Loading…
Cancel
Save