Browse Source

[feat]采购报价:固定操作列样式

dev
zhangsiqi 6 months ago
parent
commit
c428e1ba6d
  1. 64
      ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html
  2. 100
      ruoyi-admin/src/main/resources/templates/purchase/purchaseQuote/purchaseQuote.html
  3. 190
      ruoyi-admin/src/main/resources/templates/purchase/purchaseStorage/purchaseStorage.html

64
ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html

@ -169,7 +169,10 @@
exportUrl: prefix + "/export",
clickToSelect: true,
modalName: "采购订单",
columns: [{checkbox: true},
fixedColumns: true, // 启用冻结列
fixedRightNumber: 1, // 冻结右列个数
columns: [
{checkbox: true},
{title: '采购订单id',field: 'purchaseOrderId', visible: false},
{title:'审核状态',field: 'auditStatus',formatter: function (value, row, index) {
$.table.selectDictLabel(auditStatusDatas, value);
@ -184,48 +187,35 @@
$.table.selectDictLabel(paymentStatusDatas, value);
}},
{title:'采购单号',field: 'purchaseOrderCode'},
{ title: '供应商ID',field: 'supplierCode'},
{title: '供应商名称',field: 'supplierName'},
{title: '联系人',field: 'customerContact',visible: false},
{title: '联系电话',field: 'contactNumber',visible: false},
{ title: '供应商ID',field: 'supplierCode'},
{title: '供应商名称',field: 'supplierName'},
{title: '联系人',field: 'customerContact',visible: false},
{title: '联系电话',field: 'contactNumber',visible: false},
{title:'供应商数量',field: 'supplierNum'},
{title:'物料合计',field: 'materialAmount'},
{title:'数量合计',field: 'materialSum'},
{title:'不含税总价(RMB)',field: 'noRmbSum'},
{title:'含税总价',field: 'rmbSum'},
{
field: 'firstAddTime',
title: '录入时间',
formatter: function (value, row, index) {
if (value == null) {
return " ";
} else {
return value;
{field: 'firstAddTime', title: '录入时间',
formatter: function (value, row, index) {
if (value == null) { return " ";}
else { var vArr = value.split(',');return vArr[0];}
}
}
},
{
field: 'updateInfoTime',
title: '上次更新时间',
formatter: function (value, row, index) {
if (value == null) {
return " ";
} else {
var vArr = value.split(',')
return vArr[0];
},
{field: 'updateInfoTime',title: '上次更新时间',
formatter: function (value, row, index) {
if (value == null) {return ""; }
else { var vArr = value.split(',');return vArr[0];}
}
},
{title: '操作',align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseOrderId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
return actions.join('');
}
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseOrderId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.purchaseOrderId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
]
};
$.table.init(options);
});
@ -243,7 +233,6 @@
// console.log(finishProductData[i].finishProductCode)
$("#formId select[name='supplierCode']").append("<option value='" + suppliertData[i].supplierCode + "'>" + suppliertData[i].supplierCode + "</option>");
}
} else {
$.modal.msgError(res.msg);
}
@ -261,9 +250,6 @@
return;
} else {
// rows为选中行的id
// console.log(rows);
// console.log(data);
// console.log(data[0].orderNumber)
$.modal.confirm("是否确认要导出本条采购订单?", function (){
axios({
url: prefix + '/exportSelected/'+data[0].purchaseOrderId,

100
ruoyi-admin/src/main/resources/templates/purchase/purchaseQuote/purchaseQuote.html

@ -66,12 +66,6 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="purchase:purchaseQuote:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="purchase:purchaseQuote:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="purchase:purchaseQuote:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="purchase:purchaseQuote:export">
<i class="fa fa-download"></i> 导出
</a>
@ -90,7 +84,6 @@
var auditStatusDatas = [[${@dict.getType('auditStatus')}]];
var useStatusDatas = [[${@dict.getType('useStatus')}]];
var prefix = ctx + "purchase/purchaseQuote";
$(function() {
var options = {
url: prefix + "/list",
@ -101,74 +94,37 @@
restoreUrl: prefix + "/restore/{id}",
exportUrl: prefix + "/export",
modalName: "采购报价单",
columns: [{
checkbox: true
},
{
title: '采购报价索引id',
field: 'purchaseQuoteId',
visible: false
},
{
title: '审核状态',
field: 'auditStatus',
formatter: function (value, row, index) {
return $.table.selectDictLabel(auditStatusDatas, value);
}
},
{
title: '采购员',
field: 'purchaseBuyer',
},
{
title: '采购报价单号',
field: 'purchaseQuoteCode',
fixedColumns: true, // 启用冻结列
fixedRightNumber: 1, // 冻结右列个数
columns: [
{checkbox: true},
{title: '采购报价索引id',field: 'purchaseQuoteId',visible: false},
{title: '审核状态',field: 'auditStatus',
formatter: function (value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
},
{
title: '供应商ID',
field: 'supplierQuoteCode',
},
{
title: '供应商名称',
field: 'supplierName',
},
{
title: '物料合计',
field: 'materialAmount',
},
{
title: '定价时间',
field: 'pricingDate',
},
{
title: '录入时间',
field: 'createTime',
},
{
title: '更新人',
field: 'updateBy',
},
{
title: '上次更新时间',
field: 'updateTime',
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseQuoteId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.purchaseQuoteId + '\')"><i class="fa fa-remove"></i>删除</a> ');
if(row.delFlag == '0'){
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
{title: '采购员',field: 'purchaseBuyer',},
{title: '采购报价单号',field: 'purchaseQuoteCode',},
{title: '供应商ID',field: 'supplierQuoteCode',},
{title: '供应商名称',field: 'supplierName',},
{title: '物料合计',field: 'materialAmount',},
{title: '定价时间',field: 'pricingDate',},
{title: '录入时间',field: 'createTime',},
{title: '更新人',field: 'updateBy',},
{title: '上次更新时间',field: 'updateTime',},
{title: '操作',align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseQuoteId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.purchaseQuoteId + '\')"><i class="fa fa-remove"></i>删除</a> ');
if(row.delFlag == '0'){
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
}
return actions.join('');
}
return actions.join('');
}
}]
]
};
$.table.init(options);
});

190
ruoyi-admin/src/main/resources/templates/purchase/purchaseStorage/purchaseStorage.html

@ -59,15 +59,6 @@
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="purchase:purchaseStorage:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="purchase:purchaseStorage:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="purchase:purchaseStorage:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="purchase:purchaseStorage:export">
<i class="fa fa-download"></i> 导出
</a>
@ -89,7 +80,6 @@
var purchaseOrderTypeDatas = [[${@dict.getType('sys_order_type')}]];
var purchaseDeptTypeDatas = [[${@dict.getType('warehouseDept')}]];
var prefix = ctx + "purchase/purchaseStorage";
$(function() {
var options = {
url: prefix + "/list",
@ -100,144 +90,52 @@
restoreUrl: prefix + "/restore/{id}",
exportUrl: prefix + "/export",
modalName: "采购入库通知单",
columns: [{
checkbox: true
},
{
title: '采购入库单id',
field: 'purchaseStorageId',
visible: false
},
{
title: '入库单号',
field: 'purchaseStorageCode',
},
{
title: '关联订单号',
field: 'purchaseOrderCode',
},
{
title: '入库状态',
field: 'storageStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(storageStatusDatas, value);
}
},
{
title: '品质状态',
field: 'qualityStatus',
formatter: function(value, row, index) {
return $.table.selectDictLabel(qualityStatusDatas, value);
}
},
{
title: '入库类型',
field: 'purchaseStorageType',
formatter: function(value, row, index) {
return $.table.selectDictLabel(purchaseStorageTypeDatas, value);
}
},
{
title: '订单类型',
field: 'purchaseOrderType',
formatter: function(value, row, index) {
return $.table.selectDictLabel(purchaseOrderTypeDatas, value);
}
},
{
title: '入库部门',
field: 'purchaseDeptType',
formatter: function(value, row, index) {
return $.table.selectDictLabel(purchaseDeptTypeDatas, value);
}
},
{
title: '通知已到货数量',
field: 'notifyArrivedNum',
},
{
title: '实际已到货数量',
field: 'actualArrivedNum',
},
{
title: '暂收合格数量',
field: 'temporaryQualifiedNum',
},
{
title: '暂收不合格数量',
field: 'temporaryUnqualifiedNum',
},
{
title: '品质合格数量',
field: 'qualityQualifiedNum',
},
{
title: '入库数量',
field: 'storageNum',
},
{
title: '到货时间',
field: 'arrivedTime',
},
{
title: '暂收时间',
field: 'temporaryTime',
},
{
title: '交付质检时间',
field: 'deliveryInspectionTime',
},
{
title: '品质时间',
field: 'qualityTime',
},
{
title: '入库时间',
field: 'storageTime',
},
{
title: '仓库员',
field: 'storageEmployee',
},
{
title: '仓库ID',
field: 'stockId',
},
{
title: '仓库名称',
field: 'stockName',
},
{
title: '录入时间',
field: 'createTime',
},
{
title: '录入人',
field: 'createBy',
},
{
title: '更新人',
field: 'updateBy',
},
{
title: '上次更新时间',
field: 'updateTime',
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.purchaseStorageId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.purchaseStorageId + '\')"><i class="fa fa-remove"></i>删除</a> ');
if(row.delFlag == '0'){
actions.push('<a class="btn btn-danger btn-xs ' + cancelFlag + '" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.id + '\')"><i class="fa fa-remove"></i>作废</a> ');
}else{
actions.push('<a class="btn btn-success btn-xs ' + restoreFlag + '" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.id + '\')"><i class="fa fa-window-restore"></i>恢复</a> ');
columns: [
{checkbox: true},
{title: '采购入库单id',field: 'purchaseStorageId',visible: false},
{title: '入库单号',field: 'purchaseStorageCode',},
{title: '关联订单号',field: 'purchaseOrderCode',},
{title: '入库状态',field: 'storageStatus',
formatter: function(value, row, index) {return $.table.selectDictLabel(storageStatusDatas, value);}
},
{title: '品质状态',field: 'qualityStatus',
formatter: function(value, row, index) {return $.table.selectDictLabel(qualityStatusDatas, value);}
},
{title: '入库类型',field: 'purchaseStorageType',
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseStorageTypeDatas, value);}
},
{title: '订单类型',field: 'purchaseOrderType',
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseOrderTypeDatas, value);}
},
{title: '入库部门',field: 'purchaseDeptType',
formatter: function(value, row, index) {return $.table.selectDictLabel(purchaseDeptTypeDatas, value);}
},
{title: '通知已到货数量',field: 'notifyArrivedNum',},
{title: '实际已到货数量',field: 'actualArrivedNum',},
{title: '暂收合格数量',field: 'temporaryQualifiedNum',},
{title: '暂收不合格数量',field: 'temporaryUnqualifiedNum',},
{title: '品质合格数量',field: 'qualityQualifiedNum',},
{title: '入库数量',field: 'storageNum',},
{title: '到货时间',field: 'arrivedTime',},
{title: '暂收时间',field: 'temporaryTime',},
{title: '交付质检时间',field: 'deliveryInspectionTime',},
{title: '品质时间',field: 'qualityTime',},
{title: '入库时间',field: 'storageTime',},
{title: '仓库员', field: 'storageEmployee',},
{title: '仓库ID',field: 'stockId',},
{title: '仓库名称',field: 'stockName',},
{title: '录入时间',field: 'createTime',},
{title: '录入人',field: 'createBy',},
{title: '更新人',field: 'updateBy', },
{title: '上次更新时间',field: 'updateTime', },
{title: '操作',align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.purchaseStorageId + '\')"><i class="fa fa-edit"></i>详情</a> ');
return actions.join('');
}
return actions.join('');
}
}]
]
};
$.table.init(options);
});

Loading…
Cancel
Save