+
+
@@ -25,7 +46,6 @@
var options = {
id: 'bootstrap-materialSelect-table',
clickToSelect: true, // 点击选中行
- singleSelect: true, // 单选
showSearch: false,
showRefresh: false,
showToggle: false,
@@ -39,9 +59,11 @@
{
title: '料号',
field: 'materialNo',
+ align: 'center',
},
{
title: '图片',
+ align: 'center',
field: 'materialPhotourl',
formatter: function(value, row, index) {
return $.table.imageView(value);
@@ -50,28 +72,39 @@
},
{
title: '物料名称',
+ align: 'center',
field: 'materialName',
},
{
title: '类型',
+ align: 'center',
field: 'materialType',
formatter: function(value, row, index) {
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
+ {
+ title: '型号',
+ align: 'center',
+ field: 'materialModel',
+ },
{
title: '描述',
+ align: 'center',
field: 'describe',
},
{
title: '品牌',
+ align: 'center',
field: 'brand',
},
{
title: '单位',
+ align: 'center',
field: 'unit',
},
{ title: '加工方式',
+ align: 'center',
field: 'processMethod',
formatter: function(value, row, index) {
return $.table.selectDictLabel(processMethodDatas, value);
diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/qualityOrderReport.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/qualityOrderReport.html
index 1bb31d97..89609357 100644
--- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/qualityOrderReport.html
+++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/qualityOrderReport.html
@@ -2,6 +2,7 @@
+
@@ -170,7 +171,6 @@
align: 'center',
editable:{
type: 'text',
- mode:'inline',
validate: function (v) {
if (!v) return '数量不能为空';
if (isNaN(v)) return '数量必须是数字';
@@ -183,11 +183,9 @@
title: '报告',
field: 'unqualifiedReportUrl',
align: 'center',
- formatter: function(value, row, index) {
- var actions = [];
- actions.push('
上传 ');
- return actions.join('');
- }
+ editable: {
+ type: 'text', // 表示该列可以被编辑为文本
+ },
},
{
title: '操作',
diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html
index 06204a13..c6df71af 100644
--- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html
+++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html
@@ -117,9 +117,11 @@
{
title: '退换货单号',
field: 'refundsExchangesCode',
+ align: 'center',
},
{
title: '退换货状态',
+ align: 'center',
field: 'refundsExchangesStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(refundsExchangesStatusDatas, value);
@@ -127,6 +129,7 @@
},
{
title: '仓库状态',
+ align: 'center',
field: 'qualityWarehouseStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(qualityWarehouseStatusDatas, value);
@@ -134,6 +137,7 @@
},
{
title: '采购状态',
+ align: 'center',
field: 'qualityPurchaseStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(qualityPurchaseStatusDatas, value);
@@ -141,10 +145,12 @@
},
{
title: '关联单号',
+ align: 'center',
field: 'relatedOrderCode',
},
{
title: '退货节点',
+ align: 'center',
field: 'qualityReturnNode',
formatter: function(value, row, index) {
return $.table.selectDictLabel(qualityReturnNodeDatas, value);
@@ -152,6 +158,7 @@
},
{
title: '物料合计',
+ align: 'center',
field: 'materialTotal',
footerFormatter: function (value) {
var sum = 0;
@@ -163,6 +170,7 @@
},
{
title: '数量合计',
+ align: 'center',
field: 'numTotal',
footerFormatter: function (value) {
var sum = 0;
@@ -179,18 +187,22 @@
},
{
title: '录入人',
+ align: 'center',
field: 'createBy',
},
{
title: '录入时间',
+ align: 'center',
field: 'createTime',
},
{
title: '更新人',
+ align: 'center',
field: 'updateBy',
},
{
title: '上次更新时间',
+ align: 'center',
field: 'updateTime',
},
{
@@ -211,7 +223,7 @@
actions.push('
详情 ');
}
/*入库前退换货-确认供应商-已有供应商*/
- if (row.qualityReturnNode == 0 && row.qualityPurchaseStatus == 0 && row.qualityWarehouseStatus == 1){
+ if (row.qualityReturnNode == 0 && row.qualityPurchaseStatus == 0 ){
actions.push('
确认供应商 ');
}
/*入库前退换货-确认收货-已有供应商*/
diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html
index 5da58095..db5d36b7 100644
--- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html
+++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html
@@ -119,9 +119,7 @@
showToggle: false,
showColumns: false,
pagination: false, // 设置不分页
- columns: [{
- checkbox: true
- },
+ columns: [
{
title: '退换货单号',
field: 'refundsExchangesCode',
@@ -130,10 +128,12 @@
{
title: '料号',
+ align: 'center',
field: 'materialNo',
},
{
title: '图片',
+ align: 'center',
field: 'materialPhotourl',
},
{
@@ -149,6 +149,11 @@
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
+ {
+ title: '物料型号',
+ field: 'materialModel',
+ align: 'center',
+ },
{
title: '描述',
field: 'materialDescribe',
diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/refundsExchangesOutWarehouse.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/refundsExchangesOutWarehouse.html
index be668a1d..23b58777 100644
--- a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/refundsExchangesOutWarehouse.html
+++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/refundsExchangesOutWarehouse.html
@@ -3,12 +3,11 @@
+
@@ -18,7 +17,7 @@
@@ -142,9 +141,7 @@
$table.bootstrapTable({
data: supplierData,
- columns: [{
- checkbox: true
- },
+ columns: [
{
title: '出库单详情ID',
field: 'outOrderDetailId',
@@ -159,58 +156,88 @@
{
title: '料号',
field: 'materialNo',
+ align: 'center',
},
{
title: '图片',
+ align: 'center',
field: 'materialPhotourl',
},
{
title: '物料名称',
+ align: 'center',
field: 'materialName',
},
{
title: '物料类型',
+ align: 'center',
field: 'materialType',
formatter: function(value, row, index) {
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
+ {
+ title: '型号',
+ align: 'center',
+ field: 'materialModel',
+ },
{
title: '描述',
+ align: 'center',
field: 'materialDescribe',
},
{
title: '品牌',
+ align: 'center',
field: 'materialBrand',
},
{
title: '单位',
+ align: 'center',
field: 'materialUnit',
},
{
title: '加工方式',
+ align: 'center',
field: 'materialProcessMethod',
formatter: function(value, row, index) {
return $.table.selectDictLabel(processMethodDatas, value);
}
},
- {
- title: '订单数量',
- field: 'makeNum',
- },
+ // {
+ // title: '订单数量',
+ // field: 'makeNum',
+ // },
{
title: '已出库数',
+ align: 'center',
field: 'hasOutOrderSum',
},
{
title: '申请出库数',
+ align: 'center',
field: 'applyOutOrderSum',
},
{
title: '实际出库数',
+ align: 'center',
field: 'actualOutOrderSum',
- editable:true
- }
+ formatter: function(value, row, index) {
+ if(value == null || value == undefined){
+ return '';
+ }
+ return value;
+ },
+ editable: {
+ type: 'text',
+ validate: function (v,row) {
+ if (!v) return '数量不能为空';
+ if (isNaN(v)) return '数量必须是数字';
+ var actualOutOrderSum = parseInt(v);
+ if (actualOutOrderSum < 0) return '数量必须是正整数';
+ }
+ }
+ },
]
});