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) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params.isSearch = true
isSearch: true, if(!searchData.filters){//
filters: 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() // getList() //
} }

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

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

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

@ -487,10 +487,20 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params.isSearch = true
isSearch: true, if(!searchData.filters){//
filters: 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() // getList() //
} }

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

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

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

@ -486,10 +486,20 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params.isSearch = true
isSearch: true, if(!searchData.filters){//
filters: 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() // getList() //
} }

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

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

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

@ -487,10 +487,19 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params.isSearch = true
isSearch: true, if(!searchData.filters){//
filters: 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() // getList() //
} }

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

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

Loading…
Cancel
Save