Browse Source

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

ljc_0803
lijuncheng 3 months ago
parent
commit
658da25bcb
  1. 2
      src/mycomponents/job/jobFilter.vue
  2. 47
      src/pages/inventoryMove/coms/comMoveJob.vue
  3. 2
      src/pages/inventoryMove/job/okToHoldMoveJob.vue
  4. 95
      src/pages/issue/job/issueJob.vue
  5. 64
      src/pages/repleinsh/job/repleinshJob.vue

2
src/mycomponents/job/jobFilter.vue

@ -198,6 +198,8 @@
return params; return params;
}, },
reset(){ reset(){
this.checkedTodayModel = false
this.checkedWaitModel = false
this.productionLineCode = '' this.productionLineCode = ''
this.fromLocationCode = '' this.fromLocationCode = ''
this.fromAreaCode = ''// this.fromAreaCode = ''//

47
src/pages/inventoryMove/coms/comMoveJob.vue

@ -1,9 +1,9 @@
<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 ref="filter" otherTitle="ASN" @switchChangeToday="switchChangeToday" <job-filter ref="filter" :isShowItemCode="isShowItemCode" :isShowQurery="isShowQurery" otherTitle="ASN" @switchChangeToday="switchChangeToday"
@switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" :checkedToday="checkedToday"
:checkedWaitTask="checkedWaitTask"> :checkedWaitTask="checkedWaitTask" @onQuery="getListByFilter">
</job-filter> </job-filter>
<view v-if="jobList.length>0"> <view v-if="jobList.length>0">
@ -67,7 +67,15 @@
title: { title: {
type: String, type: String,
default: "" default: ""
} },
isShowItemCode: {
type: Boolean,
default: false
},
isShowQurery: {
type: Boolean,
default: false
},
}, },
data() { data() {
return { return {
@ -82,7 +90,8 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
titleName:"" titleName:"",
filterItemCode:''
}; };
}, },
@ -172,6 +181,15 @@
value: this.status value: this.status
}) })
if(this.filterItemCode){
//
filters.push({
column: "itemCode",
action: "like",
value: this.filterItemCode
})
}
filters.push({ filters.push({
column: "accept_user_id", column: "accept_user_id",
action: "==", action: "==",
@ -260,6 +278,27 @@
this.showMessage(error) this.showMessage(error)
}) })
}, },
getListByFilter(params) {
console.log('getListByFilter',params)
if (params.itemCode) {
//
this.filterItemCode = params.itemCode
}else{
this.filterItemCode = ''
}
if (params.status) {
this.status = params.status
}else{
this.status = "1,2"
}
if(params.creationTime==""){
this.checkedToday = false;
}
this.todayTime = params.creationTime
this.getList('refresh')
},
switchChangeToday(state, creationTime) { switchChangeToday(state, creationTime) {
this.checkedToday = state; this.checkedToday = state;

2
src/pages/inventoryMove/job/okToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob :title="title" ref="comMoveJob" businessTypeCode='OkToHold' > </comMoveJob> <comMoveJob :isShowItemCode="true" :isShowQurery="true" :title="title" ref="comMoveJob" businessTypeCode='OkToHold' > </comMoveJob>
</view> </view>
</template> </template>

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

@ -329,82 +329,91 @@
title: "加载中­....", title: "加载中­....",
mask: true mask: true
}); });
var filters = [] // var filters = []
if (this.checkedToday) { // if (this.checkedToday) {
filters.push({ // filters.push({
column: "create_time", // column: "create_time",
action: "betweeen", // action: "betweeen",
value: this.todayTime // value: this.todayTime
}) // })
// }
// filters.push({
// column: "status",
// action: "in",
// value: this.status
// })
if (params.status) {
this.status = params.status
}else{
this.status = "1,2"
}
if(params.creationTime==""){
this.checkedToday = false;
} }
filters.push({
column: "status",
action: "in",
value: this.status
})
if (params.fromLocationCode) { if (params.fromLocationCode) {
// //
this.fromLocation = params.fromLocationCode this.fromLocation = params.fromLocationCode
filters.push({ // filters.push({
column: "fromLocationCode", // column: "fromLocationCode",
action: "==", // action: "==",
value: params.fromLocationCode // value: params.fromLocationCode
}) // })
}else{ }else{
this.fromLocation = '' this.fromLocation = ''
} }
if (params.productionLineCode) { if (params.productionLineCode) {
// 线 // 线
this.productionLine = params.productionLineCode this.productionLine = params.productionLineCode
filters.push({ // filters.push({
column: "productionLineCode", // column: "productionLineCode",
action: "==", // action: "==",
value: params.productionLineCode // value: params.productionLineCode
}) // })
}else{ }else{
this.productionLine = '' this.productionLine = ''
} }
if (params.itemCode) { if (params.itemCode) {
// //
this.filterItemCode = params.itemCode this.filterItemCode = params.itemCode
filters.push({ // filters.push({
column: "itemCode", // column: "itemCode",
action: "like", // action: "like",
value: params.itemCode // value: params.itemCode
}) // })
}else{ }else{
this.filterItemCode = '' this.filterItemCode = ''
} }
if (params.fromAreaCode) { if (params.fromAreaCode) {
// //
this.fromAreaCode = params.fromAreaCode this.fromAreaCode = params.fromAreaCode
filters.push({ // filters.push({
column: "fromAreaCode", // column: "fromAreaCode",
action: "==", // action: "==",
value: params.fromAreaCode // value: params.fromAreaCode
}) // })
}else{ }else{
this.fromAreaCode = '' this.fromAreaCode = ''
} }
if (params.toAreaCode) { if (params.toAreaCode) {
// //
this.toAreaCode = params.toAreaCode this.toAreaCode = params.toAreaCode
filters.push({ // filters.push({
column: "toAreaCode", // column: "toAreaCode",
action: "==", // action: "==",
value: params.toAreaCode // value: params.toAreaCode
}) // })
}else{ }else{
this.toAreaCode = '' this.toAreaCode = ''
} }
var params = { // var params = {
filters: filters, // filters: filters,
pageNo: 1, // pageNo: 1,
pageSize: 100, // pageSize: 100,
} // }
this.getList('refresh', this.fromLocation, this.productionLine, this.filterItemCode,this.fromAreaCode,this.toAreaCode) this.getList('refresh', this.fromLocation, this.productionLine, this.filterItemCode,this.fromAreaCode,this.toAreaCode)
// getIssueJobList(params).then(res => { // getIssueJobList(params).then(res => {

64
src/pages/repleinsh/job/repleinshJob.vue

@ -281,29 +281,37 @@
title: "加载中­....", title: "加载中­....",
mask: true mask: true
}); });
var filters = [] // var filters = []
if (this.checkedToday) { // if (this.checkedToday) {
filters.push({ // filters.push({
column: "create_time", // column: "create_time",
action: "betweeen", // action: "betweeen",
value: this.todayTime // value: this.todayTime
}) // })
} // }
filters.push({ // filters.push({
column: "status", // column: "status",
action: "in", // action: "in",
value: this.status // value: this.status
}) // })
if (params.status) {
this.status = params.status
}else{
this.status = "1,2"
}
if(params.creationTime==""){
this.checkedToday = false;
}
if (params.fromLocationCode) { if (params.fromLocationCode) {
// //
this.fromLocationCode = params.fromLocationCode this.fromLocationCode = params.fromLocationCode
filters.push({ // filters.push({
column: "fromLocationCode", // column: "fromLocationCode",
action: "==", // action: "==",
value: params.fromLocationCode // value: params.fromLocationCode
}) // })
}else{ }else{
this.fromLocationCode = '' this.fromLocationCode = ''
} }
@ -311,19 +319,19 @@
if (params.itemCode) { if (params.itemCode) {
// //
this.filterItemCode = params.itemCode this.filterItemCode = params.itemCode
filters.push({ // filters.push({
column: "itemCode", // column: "itemCode",
action: "like", // action: "like",
value: params.itemCode // value: params.itemCode
}) // })
}else{ }else{
this.filterItemCode = '' this.filterItemCode = ''
} }
var params = { // var params = {
filters: filters, // filters: filters,
pageNo: 1, // pageNo: 1,
pageSize: 100, // pageSize: 100,
} // }
this.getList('refresh', this.fromLocationCode, this.filterItemCode) this.getList('refresh', this.fromLocationCode, this.filterItemCode)
// getRepleinshJobList(params).then(res => { // getRepleinshJobList(params).then(res => {

Loading…
Cancel
Save