Browse Source

生产计划

master_hella_20240701
李达明 5 months ago
parent
commit
5b1d705538
  1. 15
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 8
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  3. 16
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  4. 4
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  5. 16
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  6. 4
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts
  7. 15
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  8. 4
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

15
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -499,10 +499,19 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
if(!filters.find(item=>item.column=='plan_type')){
filters = [...filters,{
action:'==',
column:'plan_type',
value:'predict',
}]
}
tableObject.params.filters = filters
getList() //
}

8
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -833,8 +833,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
isSearch: false,
isTable: false,
sort: 'custom',
table: {
width: 150
@ -852,8 +852,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select',
default: 'TRUE'
},
// isTableForm: false,
// isForm: false
isTableForm: false,
isForm: false
},
{
label: '单据号',

16
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -487,10 +487,20 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
console.log('searchData',routeName.value);
if(!filters.find(item=>item.column=='plan_type')){
filters = [...filters,{
action:'==',
column:'plan_type',
value:'assemble',
}]
}
tableObject.params.filters = filters
getList() //
}

4
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -820,8 +820,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
isSearch: false,
isTable: false,
sort: 'custom',
table: {
width: 150

16
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -486,10 +486,20 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
console.log('searchData',routeName.value);
if(!filters.find(item=>item.column=='plan_type')){
filters = [...filters,{
action:'==',
column:'plan_type',
value:'assembleSparePart',
}]
}
tableObject.params.filters = filters
getList() //
}

4
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -820,8 +820,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
isSearch: false,
isTable: false,
sort: 'custom',
table: {
width: 150

15
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -487,10 +487,19 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
if(!filters.find(item=>item.column=='plan_type')){
filters = [...filters,{
action:'==',
column:'plan_type',
value:'predictSparePart',
}]
}
tableObject.params.filters = filters
getList() //
}

4
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

@ -822,8 +822,8 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
isSearch: false,
isTable: false,
hiddenInMain: true,
sort: 'custom',
table: {

Loading…
Cancel
Save