Browse Source

BUG修改

master
parent
commit
f37e7addb2
  1. 14
      src/views/eam/basic/item/item.data.ts
  2. 3
      src/views/eam/item/itemOrderMain/index.vue
  3. 101
      src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

14
src/views/eam/basic/item/item.data.ts

@ -7,6 +7,10 @@ export const ItemRules = reactive({
{ required: true, message: '请输入备件名称', trigger: 'blur' }, { required: true, message: '请输入备件名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
uom: [
{ required: true, message: '请选择备件单位', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
}) })
export const Item = useCrudSchemas(reactive<CrudSchema[]>([ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
@ -127,11 +131,11 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select' type: 'Select'
} }
}, },
{ // {
label: '单价', // label: '单价',
field: 'singlePrice', // field: 'singlePrice',
sort: 'custom', // sort: 'custom',
}, // },
{ {
label: '重采购点', label: '重采购点',
field: 'reprocurement', field: 'reprocurement',

3
src/views/eam/item/itemOrderMain/index.vue

@ -78,6 +78,8 @@
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['itemNumber'] = val[0]['number'] row['itemNumber'] = val[0]['number']
row['itemName'] = val[0]['name']
row['uom'] = val[0]['uom']
row['isRadeIn'] = val[0]['isRadeIn'] row['isRadeIn'] = val[0]['isRadeIn']
row['available'] = val[0]['available'] row['available'] = val[0]['available']
} else { } else {
@ -114,6 +116,7 @@
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultExportBtn(null), // // defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //

101
src/views/eam/item/itemOrderMain/itemOrderMain.data.ts

@ -173,7 +173,7 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择备件编号', searchListPlaceholder: '请选择备件编号',
searchField: 'number', searchField: 'number',
searchTitle: '库区信息', searchTitle: '备件信息',
searchAllSchemas: Item.allSchemas, // 查询弹窗所需类 searchAllSchemas: Item.allSchemas, // 查询弹窗所需类
searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法 searchPage: ItemApi.getItemPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
@ -185,8 +185,33 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '库存数量', label: '备件名称',
field: 'qty', field: 'itemName',
sort: 'custom',
isSearch: true,
table: {
width: 110,
},
tableForm: {
disabled: true
}
},
{
label: '单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: false,
isTable: true,
tableForm: {
type: 'Select',
disabled: true
}
},
{
label: '单价',
field: 'singlePrice',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -236,6 +261,26 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
{
label: '库存数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
@ -259,53 +304,7 @@ export const ItemOrderDetail = useCrudSchemas(reactive<CrudSchema[]>([
//表单校验 //表单校验
export const ItemOrderDetailRules = reactive({ export const ItemOrderDetailRules = reactive({
lineNumber: [ singlePrice: [
{ required: true, message: '请输入行号', trigger: 'blur' }, { required: true, message: '请输入备件单价', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
stdPackQty: [
{ required: true, message: '请输入标包数量', trigger: 'blur' }
],
stdPackUnit: [
{ required: true, message: '请选择标包单位', trigger: 'change' }
],
convertRate: [
{ required: true, message: '请输入转换率', trigger: 'blur' }
],
taxRate: [
{ required: true, message: '请输入税率', trigger: 'blur' }
],
shippedQty: [
{ required: true, message: '请输入已发货数量', trigger: 'blur' }
],
receivedQty: [
{ required: true, message: '请输入已收货数量', trigger: 'blur' }
],
returnedQty: [
{ required: true, message: '请输入已退货数量', trigger: 'blur' }
],
putawayQty: [
{ required: true, message: '请输入已上架数量', trigger: 'blur' }
],
overReceivingPercent: [
{ required: true, message: '请输入超收百分比', trigger: 'blur' }
],
orderQty: [
{ required: true, message: '请输入订单数量', trigger: 'blur' }
],
uom: [
{ required: true, message: '请选择计量单位', trigger: 'change' }
],
available: [
{ required: true, message: '请选择是否可用', trigger: 'change' }
],
nuumber: [
{ required: true, message: '请输入单据号', trigger: 'blur' }
],
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

Loading…
Cancel
Save