Browse Source

修改品番拉动页面

intex
叶佳兴 2 days ago
parent
commit
e2ddefa52d
  1. 12
      src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts
  2. 10
      src/views/wms/basicDataManage/itemPull/index.vue
  3. 113
      src/views/wms/basicDataManage/itemPull/itemPull.data.ts

12
src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts

@ -88,6 +88,18 @@ export const Area = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '拉动方式',
field: 'pullType',
dictType: DICT_TYPE.PULL_TYPE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '是否是功能区', label: '是否是功能区',
field: 'isFunctional', field: 'isFunctional',

10
src/views/wms/basicDataManage/itemPull/index.vue

@ -82,12 +82,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if('itemCode'==formField){
setV['itemName'] = val[0]['name']
setV['backNumber'] = val[0]['backNumber']
setV['receivedNumber'] = val[0]['receivedNumber']
setV['productionLine'] = val[0]['itemGroup']
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
@ -211,7 +205,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ItemPullApi.exportItemPull(tableObject.params) const data = await ItemPullApi.exportItemPull(tableObject.params)
download.excel(data, '品番拉动配置.xlsx') download.excel(data, '补充方式配置.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -226,7 +220,7 @@ const handleImport = () => {
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '品番拉动配置导入模版.xlsx' templateTitle: '补充方式配置导入模版.xlsx'
}) })
// //
const importSuccess = () => { const importSuccess = () => {

113
src/views/wms/basicDataManage/itemPull/itemPull.data.ts

@ -11,7 +11,7 @@ import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/area
export const ItemPullRules = reactive({ export const ItemPullRules = reactive({
defaultErpLocationCode: [required], defaultErpLocationCode: [required],
replenishType: [required], replenishType: [required],
pullTypeList: [required] supplierCode: [required]
}) })
export const ItemPull = useCrudSchemas( export const ItemPull = useCrudSchemas(
@ -21,7 +21,6 @@ export const ItemPull = useCrudSchemas(
field: 'defaultErpLocationCode', field: 'defaultErpLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150,
fixed: 'left' fixed: 'left'
}, },
form: { form: {
@ -48,100 +47,12 @@ export const ItemPull = useCrudSchemas(
} }
} }
}, },
{
label: '品番',
field: 'itemCode',
sort: 'custom',
isSearch: true,
table: {
width: 180
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true, //可输入回车
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择品番', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'defaultErpLocationCode',
value: 'defaultErpLocationCode',
isMainValue: true
}
],
verificationParams: [
{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}
] // 失去焦点校验参数
}
}
},
{
label: '品名',
field: 'itemName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
isSearch: false
},
{
label: '背番',
field: 'backNumber',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
isSearch: true
},
{
label: '受入号',
field: 'receivedNumber',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
isSearch: false
},
{
label: '生产线区分',
field: 'productionLine',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
isSearch: false
},
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: { table: {
width: 150
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -182,26 +93,6 @@ export const ItemPull = useCrudSchemas(
isSearch: true, isSearch: true,
isTable: true, isTable: true,
table: { table: {
width: 120
}
},
{
label: '拉动方式',
field: 'pullTypeList',
dictType: DICT_TYPE.PULL_TYPE,
dictClass: 'string',
// dictAllOption:true,// 全选按钮
// dictAllValue:'全选',
isTable: true,
sort: 'custom',
table: {
width: 180
},
form: {
component: 'Select',
componentProps: {
multiple: true
}
} }
}, },
{ {
@ -223,7 +114,6 @@ export const ItemPull = useCrudSchemas(
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180
}, },
isTable: true, isTable: true,
form: { form: {
@ -251,7 +141,6 @@ export const ItemPull = useCrudSchemas(
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {
width: 150,
fixed: 'right' fixed: 'right'
} }
} }

Loading…
Cancel
Save