Browse Source

WMS 变更:制品子件报废报废数量,单价,金额展示问题

linshi20240813
gaojs 4 months ago
parent
commit
6e6c07783f
  1. 5
      src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue
  2. 79
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

5
src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue

@ -182,7 +182,8 @@ const tableFormButton = async (val , row) => {
bomModelVisible.value = true bomModelVisible.value = true
DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息' DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息'
detatableDataBom.params = { detatableDataBom.params = {
masterId: row.id masterId: row.masterId,
itemCode: row.itemCodeThird
} }
await getDetailListBom() await getDetailListBom()
} }
@ -204,7 +205,7 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productscrap-record-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productscrap-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // //defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
// { // {
// label: '', // label: '',

79
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -384,7 +384,7 @@ export const ProductscrapRecordMain = useCrudSchemas(
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
isTable: false, isTable: false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -482,29 +482,30 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '物料代码', label: '制品物料代码',
field: 'itemCode', field: 'itemCode',
isSearch:true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
} }
}, },
{ {
label: '物料名称', label: '制品物料名称',
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ // {
label: 'Bom版本', // label: 'Bom版本',
field: 'bomVersion', // field: 'bomVersion',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '批次', label: '批次',
field: 'batch', field: 'batch',
@ -515,7 +516,7 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '报废数量', label: '制品报废数量',
field: 'qty', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
@ -526,7 +527,7 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '计量单位', label: '制品计量单位',
field: 'uom', field: 'uom',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
@ -537,9 +538,52 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单价', label: '原料物料代码',
field: 'singlePrice', field: 'itemCodeThird',
sort: 'custom',
isSearch:true,
isTable: true,
table: {
width: 150
}
},
{
label: '原料物料名称',
field: 'itemNameThird',
sort: 'custom',
isTable: true,
table: {
width: 150
},
},
{
label: '原料报废数量',
field: 'qtyThird',
sort: 'custom',
isTable: true,
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '原料计量单位',
field: 'uomThird',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
tableForm:{
type: 'Select',
disabled: true
}
},
{
label: '原料单价',
field: 'singlePriceThird',
sort: 'custom', sort: 'custom',
isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -548,9 +592,10 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '金额', label: '原料金额',
field: 'amount', field: 'amountThird',
sort: 'custom', sort: 'custom',
isTable: true,
table: { table: {
width: 150 width: 150
}, },

Loading…
Cancel
Save