提交 ad651e21 编写于 作者: Skyeye云's avatar Skyeye云

生产计划单修改

上级 0d956e80
......@@ -86,7 +86,7 @@ layui.config({
loadChildProPosal();
});
//加载建议采购数量
// 加载建议采购数量
function loadChildProPosal(){
//计划生产数量
var number = parseInt(isNull($("#number").val()) ? '0' : $("#number").val());
......
......@@ -30,9 +30,9 @@ layui.config({
return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}},
{ field: 'salesOrderNum', width: 200, title: '关联销售单', align: 'center' },
{ field: 'name', title: '产品名称', align: 'left',width: 150, templet: function (d) {return d.materialMation.name}},
{ field: 'model', title: '产品型号', align: 'left',width: 150, templet: function (d) {return d.materialMation.model}},
{ field: 'norms', title: '产品规格', align: 'left',width: 150, templet: function (d) {return d.normsMation.name}},
{ field: 'name', title: '产品名称', align: 'left',width: 150, templet: function (d) {return isNull(d.materialMation) ? '' : d.materialMation.name}},
{ field: 'model', title: '产品型号', align: 'left',width: 150, templet: function (d) {return isNull(d.materialMation) ? '' : d.materialMation.model}},
{ field: 'norms', title: '产品规格', align: 'left',width: 150, templet: function (d) {return isNull(d.normsMation) ? '' : d.normsMation.name}},
{ field: 'number', width: 100, title: '计划生产数量'},
{ field: 'processInstanceId', title: '流程ID', width: 100, templet: function (d) {
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
......
......@@ -10,7 +10,7 @@ layui.config({
var $ = layui.$,
form = layui.form,
table = layui.table;
// 组件使用
table.render({
id: 'messageTable',
elem: '#messageTable',
......
var rowId = "";
layui.config({
base: basePath,
......@@ -12,6 +11,7 @@ layui.config({
form = layui.form,
table = layui.table,
fsTree = layui.fsTree;
// 组件使用
/********* tree 处理 start *************/
//初始销售单分类类型
var materialCategoryType;
......@@ -74,11 +74,11 @@ layui.config({
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'materialName', title: '商品', align: 'left', width: 150 },
{ field: 'materialModel', title: '型号', align: 'left', width: 150 },
{ field: 'materialUnitName', title: '单位', align: 'left', width: 70 },
{ field: 'operNum', title: '数量', align: 'left', width: 80 },
{ field: 'unitPrice', title: '单价', align: 'left', width: 80 },
{ field: 'name', title: '产品名称', align: 'left',width: 150, templet: function (d) {return d.materialMation.name}},
{ field: 'model', title: '产品型号', align: 'left',width: 150, templet: function (d) {return d.materialMation.model}},
{ field: 'norms', title: '产品规格', align: 'left',width: 150, templet: function (d) {return d.normsMation.name}},
{ field: 'operNumber', title: '数量', align: 'left', width: 80 },
{ field: 'unitPrice', title: '单价', align: 'left', width: 120 },
{ field: 'allPrice', title: '金额', align: 'left', width: 80 },
{ field: 'taxRate', title: '税率(%)', align: 'left', width: 80 },
{ field: 'taxMoney', title: '税额', align: 'left', width: 80 },
......@@ -94,6 +94,7 @@ layui.config({
form.render();
var chooseIndex = JSON.stringify(dubClick.data('index'));
var obj = res.rows[chooseIndex];
obj.orderMation = res.bean;
parent.salesOrder = obj;
parent.refreshCode = '0';
......@@ -111,19 +112,15 @@ layui.config({
}
$("body").on("click", "#reloadTable", function() {
loadTable();
refreshTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
function refreshTable(){
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
}
function getTableParams() {
return {orderId: salesOrderId};
return {id: salesOrderId};
}
exports('salesOrderChoose', {});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册