diff --git a/erp/src/main/resources/template/js/depotOut/list.js b/erp/src/main/resources/template/js/depotOut/list.js index 27919c52ca7966a5657e28c989a8898b1650a1d5..021ecbbcc2c7b0a20a67329cabb97a6434aa3bde 100644 --- a/erp/src/main/resources/template/js/depotOut/list.js +++ b/erp/src/main/resources/template/js/depotOut/list.js @@ -23,28 +23,33 @@ layui.config({ limits: getLimits(), limit: getLimit(), cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'oddNumber', title: '单据单号', align: 'left', width: 220, templet: function (d) { + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' ,rowspan: '2'}, + { field: 'oddNumber', title: '单据单号', align: 'left', width: 220,rowspan: '2', templet: function (d) { var str = '' + d.oddNumber + ''; if (!isNull(d.fromId)) { str += '[转]'; } return str; }}, - { field: 'fromTypeId', title: '来源单据类型', width: 120, templet: function (d) { - return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotOutFromType", 'id', d.fromTypeId, 'name'); - }}, - { field: 'createName', title: '申请人', width: 120 }, - { field: 'createTime', title: '申请时间', align: 'center', width: 150 }, - { field: 'totalPrice', title: '合计金额', align: 'left', width: 120 }, - { field: 'operTime', title: '单据日期', align: 'center', width: 140 }, - { field: 'state', title: '状态', rowspan: '2', width: 90, templet: function (d) { + { colspan: '2', title: '来源单据信息', align: 'center' }, + { field: 'createName', title: '申请人', width: 120,rowspan: '2' }, + { field: 'createTime', title: '申请时间', align: 'center', width: 150 ,rowspan: '2'}, + { field: 'totalPrice', title: '合计金额', align: 'left', width: 120 ,rowspan: '2'}, + { field: 'operTime', title: '单据日期', align: 'center', width: 140 ,rowspan: '2'}, + { field: 'state', title: '状态', rowspan: '2', width: 90,rowspan: '2', templet: function (d) { return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("erpOrderStateEnum", 'id', d.state, 'name'); }}, - { field: 'otherState', title: '确认状态', width: 90, templet: function (d) { + { field: 'otherState', title: '确认状态', width: 90,rowspan: '2', templet: function (d) { return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotOutOtherState", 'id', d.otherState, 'name'); }}, { title: systemLanguage["com.skyeye.operation"][languageType], rowspan: '2', fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar'} + ], [ + { field: 'fromTypeId', title: '来源类型', width: 150, templet: function (d) { + return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotOutFromType", 'id', d.fromTypeId, 'name'); + }}, + { field: 'fromId', title: '单据编号', width: 200, templet: function (d) { + return getNotUndefinedVal(d.fromMation?.oddNumber); + }} ]], done: function(json) { matchingLanguage(); diff --git a/erp/src/main/resources/template/js/depotPut/list.js b/erp/src/main/resources/template/js/depotPut/list.js index f5864c510dbf201d279120cf3cf3cc3bf44d1c5b..06ec9401b7db1ac8b245f68080e274103639f507 100644 --- a/erp/src/main/resources/template/js/depotPut/list.js +++ b/erp/src/main/resources/template/js/depotPut/list.js @@ -23,28 +23,33 @@ layui.config({ limits: getLimits(), limit: getLimit(), cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'oddNumber', title: '单据单号', align: 'left', width: 220, templet: function (d) { + { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers',rowspan: '2' }, + { field: 'oddNumber', title: '单据单号', align: 'left', width: 220,rowspan: '2', templet: function (d) { var str = '' + d.oddNumber + ''; if (!isNull(d.fromId)) { str += '[转]'; } return str; }}, - { field: 'idKey', title: '来源单据类型', width: 120, templet: function (d) { - return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotPutFromType", 'id', d.fromTypeId, 'name'); - }}, - { field: 'createName', title: '申请人', width: 120 }, - { field: 'createTime', title: '申请时间', align: 'center', width: 150 }, - { field: 'totalPrice', title: '合计金额', align: 'left', width: 120 }, - { field: 'operTime', title: '单据日期', align: 'center', width: 140 }, - { field: 'state', title: '状态', rowspan: '2', width: 90, templet: function (d) { + { colspan: '2', title: '来源单据信息', align: 'center' }, + { field: 'createName', title: '申请人', width: 120 ,rowspan: '2'}, + { field: 'createTime', title: '申请时间', align: 'center', width: 150 ,rowspan: '2'}, + { field: 'totalPrice', title: '合计金额', align: 'left', width: 120,rowspan: '2' }, + { field: 'operTime', title: '单据日期', align: 'center', width: 140,rowspan: '2' }, + { field: 'state', title: '状态', rowspan: '2', width: 90,rowspan: '2', templet: function (d) { return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("erpOrderStateEnum", 'id', d.state, 'name'); }}, - { field: 'otherState', title: '入库状态', width: 90, templet: function (d) { + { field: 'otherState', title: '入库状态', width: 90,rowspan: '2', templet: function (d) { return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotPutState", 'id', d.otherState, 'name'); }}, - { title: systemLanguage["com.skyeye.operation"][languageType], rowspan: '2', fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar'} + { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar',rowspan: '2'} + ], [ + { field: 'fromTypeId', title: '来源类型', width: 150, templet: function (d) { + return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("depotPutFromType", 'id', d.fromTypeId, 'name'); + }}, + { field: 'fromId', title: '单据编号', width: 200, templet: function (d) { + return getNotUndefinedVal(d.fromMation?.oddNumber); + }} ]], done: function(json) { matchingLanguage();