Browse Source

[feat]生产管理:生成订单关联销售订单,查询相关信息,相关按钮页面修改销售订单类型。

dev
zhangsiqi 5 months ago
parent
commit
48bb1cfb3e
  1. 56
      ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java
  2. 8
      ruoyi-admin/src/main/resources/mapper/system/SysMakeOrderMapper.xml
  3. 3
      ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html
  4. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/addProcessInbound.html
  5. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/addProduceInbound.html
  6. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/addpick.html
  7. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/bmps.html
  8. 36
      ruoyi-admin/src/main/resources/templates/system/makeorder/bmzgqr.html
  9. 2
      ruoyi-admin/src/main/resources/templates/system/makeorder/gcsh.html
  10. 9
      ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html

56
ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java

@ -77,6 +77,14 @@ public class SysMakeOrderController extends BaseController
public String bmps(@PathVariable("id") Long id, ModelMap mmap) public String bmps(@PathVariable("id") Long id, ModelMap mmap)
{ {
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id);
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
}
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/bmps"; return prefix + "/bmps";
} }
@ -89,6 +97,14 @@ public class SysMakeOrderController extends BaseController
{ {
mmap.put("currentUser", ShiroUtils.getSysUser()); mmap.put("currentUser", ShiroUtils.getSysUser());
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id);
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
}
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/bmzgqr"; return prefix + "/bmzgqr";
} }
@ -101,6 +117,14 @@ public class SysMakeOrderController extends BaseController
{ {
mmap.put("currentUser", ShiroUtils.getSysUser()); mmap.put("currentUser", ShiroUtils.getSysUser());
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id);
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
}
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/gcsh"; return prefix + "/gcsh";
} }
@ -116,6 +140,10 @@ public class SysMakeOrderController extends BaseController
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){ if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
} }
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/addPick"; return prefix + "/addPick";
@ -132,6 +160,10 @@ public class SysMakeOrderController extends BaseController
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){ if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
} }
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/addProcessInbound"; return prefix + "/addProcessInbound";
@ -145,6 +177,14 @@ public class SysMakeOrderController extends BaseController
{ {
mmap.put("currentUser", ShiroUtils.getSysUser()); mmap.put("currentUser", ShiroUtils.getSysUser());
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id);
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
}
mmap.put("sysMakeOrder", sysMakeOrder); mmap.put("sysMakeOrder", sysMakeOrder);
return prefix + "/addProduceInbound"; return prefix + "/addProduceInbound";
} }
@ -220,13 +260,27 @@ public class SysMakeOrderController extends BaseController
@RequiresPermissions("system:makeorder:list") @RequiresPermissions("system:makeorder:list")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(SysMakeOrder sysMakeOrder) public TableDataInfo list(SysMakeOrder sysMakeOrder) throws RuntimeException,NumberFormatException
{ {
SysUser sysUser = ShiroUtils.getSysUser(); SysUser sysUser = ShiroUtils.getSysUser();
String deptNumber = sysUser.getDept().getDeptNumber(); String deptNumber = sysUser.getDept().getDeptNumber();
sysMakeOrder.setDeptNumber(deptNumber); sysMakeOrder.setDeptNumber(deptNumber);
startPage(); startPage();
List<SysMakeOrder> list = sysMakeOrderService.selectSysMakeOrderList(sysMakeOrder); List<SysMakeOrder> list = sysMakeOrderService.selectSysMakeOrderList(sysMakeOrder);
for(SysMakeOrder makeOrder:list){
if(StringUtils.isNotNull(makeOrder.getSaleNo())){
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(makeOrder.getSaleNo());
if(StringUtils.isNotNull(sysSalesOrder)){
makeOrder.setOrderType(sysSalesOrder.getSalesOrderType());
makeOrder.setSalesman(sysSalesOrder.getBusinessMembers());
makeOrder.setCustomerName(sysSalesOrder.getEnterpriseName());
makeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode());
makeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber());
makeOrder.setMaterial(String.valueOf(sysSalesOrder.getMaterialSum()));
makeOrder.setMaterialSum(sysSalesOrder.getEnterpriseSum());
}
}
}
return getDataTable(list); return getDataTable(list);
} }

8
ruoyi-admin/src/main/resources/mapper/system/SysMakeOrderMapper.xml

@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="makeNo" column="makeNo" /> <result property="makeNo" column="makeNo" />
<result property="saleNo" column="saleNo" /> <result property="saleNo" column="saleNo" />
<result property="Salesman" column="Salesman" /> <result property="Salesman" column="Salesman" />
<result property="orderType" column="order_type" />
<result property="customerId" column="customerId" /> <result property="customerId" column="customerId" />
<result property="customerName" column="customerName" /> <result property="customerName" column="customerName" />
<result property="customerOderCode" column="customerOderCode" /> <result property="customerOderCode" column="customerOderCode" />
@ -41,7 +42,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSysMakeOrderList" parameterType="SysMakeOrder" resultMap="SysMakeOrderResult"> <select id="selectSysMakeOrderList" parameterType="SysMakeOrder" resultMap="SysMakeOrderResult">
select a.id, a.make_status, a.eceipt_status, a.quality_status, a.use_status, a.makeNo, a.saleNo, a.Salesman, a.customerId, a.customerName, a.customerOderCode, a.material select a.id, a.make_status, a.eceipt_status, a.quality_status, a.use_status, a.makeNo, a.saleNo,
a.Salesman, a.customerId, a.customerName, a.customerOderCode, a.material
, a.materialSum, a.finishNum, a.eceiptNum, a.noRate, a.rate , a.materialSum, a.finishNum, a.eceiptNum, a.noRate, a.rate
, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.del_flag , a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.del_flag
, b.dept_leader_confirm_status , b.dept_leader_confirm_status
@ -83,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="makeNo != null">makeNo,</if> <if test="makeNo != null">makeNo,</if>
<if test="saleNo != null">saleNo,</if> <if test="saleNo != null">saleNo,</if>
<if test="Salesman != null">Salesman,</if> <if test="Salesman != null">Salesman,</if>
<if test="orderType != null">order_type,</if>
<if test="customerId != null">customerId,</if> <if test="customerId != null">customerId,</if>
<if test="customerName != null">customerName,</if> <if test="customerName != null">customerName,</if>
<if test="customerOderCode != null">customerOderCode,</if> <if test="customerOderCode != null">customerOderCode,</if>
@ -107,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="makeNo != null">#{makeNo},</if> <if test="makeNo != null">#{makeNo},</if>
<if test="saleNo != null">#{saleNo},</if> <if test="saleNo != null">#{saleNo},</if>
<if test="Salesman != null">#{Salesman},</if> <if test="Salesman != null">#{Salesman},</if>
<if test="orderType != null">#{orderType},</if>
<if test="customerId != null">#{customerId},</if> <if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if> <if test="customerName != null">#{customerName},</if>
<if test="customerOderCode != null">#{customerOderCode},</if> <if test="customerOderCode != null">#{customerOderCode},</if>
@ -135,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="makeNo != null">makeNo = #{makeNo},</if> <if test="makeNo != null">makeNo = #{makeNo},</if>
<if test="saleNo != null">saleNo = #{saleNo},</if> <if test="saleNo != null">saleNo = #{saleNo},</if>
<if test="Salesman != null">Salesman = #{Salesman},</if> <if test="Salesman != null">Salesman = #{Salesman},</if>
<if test="orderType != null">order_type = #{orderType},</if>
<if test="customerId != null">customerId = #{customerId},</if> <if test="customerId != null">customerId = #{customerId},</if>
<if test="customerName != null">customerName = #{customerName},</if> <if test="customerName != null">customerName = #{customerName},</if>
<if test="customerOderCode != null">customerOderCode = #{customerOderCode},</if> <if test="customerOderCode != null">customerOderCode = #{customerOderCode},</if>
@ -181,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="useStatus != null">use_status = #{useStatus},</if> <if test="useStatus != null">use_status = #{useStatus},</if>
<if test="saleNo != null">saleNo = #{saleNo},</if> <if test="saleNo != null">saleNo = #{saleNo},</if>
<if test="Salesman != null">Salesman = #{Salesman},</if> <if test="Salesman != null">Salesman = #{Salesman},</if>
<if test="orderType != null">order_type = #{orderType},</if>
<if test="customerId != null">customerId = #{customerId},</if> <if test="customerId != null">customerId = #{customerId},</if>
<if test="customerName != null">customerName = #{customerName},</if> <if test="customerName != null">customerName = #{customerName},</if>
<if test="customerOderCode != null">customerOderCode = #{customerOderCode},</if> <if test="customerOderCode != null">customerOderCode = #{customerOderCode},</if>

3
ruoyi-admin/src/main/resources/templates/system/customerQuote/add.html

@ -4,6 +4,8 @@
<th:block th:include="include :: header('新增客户报价')" /> <th:block th:include="include :: header('新增客户报价')" />
<th:block th:include="include :: select2-css" /> <th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-editable-css" /> <th:block th:include="include :: bootstrap-editable-css" />
<link th:href="@{/ajax/libs/select2/select2.css}" rel="stylesheet">
<link th:href="@{/ajax/libs/select2/select2-bootstrap.css}" rel="stylesheet">
</head> </head>
<body class="white-bg"> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
@ -231,7 +233,6 @@
}); });
}) })
$('#customerCode').on('select2:select', function (e) { $('#customerCode').on('select2:select', function (e) {
console.log("e",e);
var data = e.params.data; var data = e.params.data;
console.log("data",data); console.log("data",data);
$("input[name='customerName']").val(data.enterpriseName); $("input[name='customerName']").val(data.enterpriseName);

2
ruoyi-admin/src/main/resources/templates/system/makeorder/addProcessInbound.html

@ -48,10 +48,8 @@
<th:block th:include="include :: datetimepicker-js" /> <th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript"> <script th:inline="javascript">
var prefix = ctx + "system/makeorder"; var prefix = ctx + "system/makeorder";
var curUser = [[${currentUser}]]; var curUser = [[${currentUser}]];
var curUsrDeptNumber = curUser.dept.deptNumber; var curUsrDeptNumber = curUser.dept.deptNumber;
// 字典 // 字典
var processMethodDatas = [[${@dict.getType('processMethod')}]]; var processMethodDatas = [[${@dict.getType('processMethod')}]];
var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]]; var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]];

2
ruoyi-admin/src/main/resources/templates/system/makeorder/addProduceInbound.html

@ -29,7 +29,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">订单类型:</label> <label class="col-sm-3 control-label is-required">订单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select disabled name="salesOrderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required> <select disabled name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required th:field="*{orderType}">
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option> <option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select> </select>

2
ruoyi-admin/src/main/resources/templates/system/makeorder/addpick.html

@ -28,7 +28,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">订单类型:</label> <label class="col-sm-3 control-label is-required">订单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" th:field="*{orderType}" required> <select name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" th:field="*{orderType}" disabled required>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option> <option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select> </select>

2
ruoyi-admin/src/main/resources/templates/system/makeorder/bmps.html

@ -29,7 +29,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">订单类型:</label> <label class="col-sm-3 control-label is-required">订单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select disabled name="salesOrderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required> <select disabled name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required th:field="*{orderType}">
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option> <option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select> </select>

36
ruoyi-admin/src/main/resources/templates/system/makeorder/bmzgqr.html

@ -29,20 +29,20 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">订单类型:</label> <label class="col-sm-3 control-label is-required">订单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select disabled name="salesOrderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required> <select disabled name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" th:field="*{orderType}" required>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option> <option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select> </select>
</div> </div>
</div> </div>
</form>
<div class="container">
<div class="row"> <div class="row">
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-sub-table-1"></table> <table id="bootstrap-sub-table-1"></table>
</div> </div>
</div> </div>
</div>
</form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" /> <th:block th:include="include :: datetimepicker-js" />
@ -494,20 +494,20 @@
// alert(JSON.stringify(data)); // alert(JSON.stringify(data));
// saveModal 保存不关闭 // saveModal 保存不关闭
$.operate.save(prefix + "/deptLeaderConfirm", data); $.operate.save(prefix + "/deptLeaderConfirm", data);
// var data = $('#bootstrap-sub-table-1').bootstrapTable('getData'); var data = $('#bootstrap-sub-table-1').bootstrapTable('getData');
// var count = data.length; var count = data.length;
// var allFormData; var allFormData;
// for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
// var childTableFormId = 'child_table_form_'+i; var childTableFormId = 'child_table_form_'+i;
// if($("#"+childTableFormId).length>0){ if($("#"+childTableFormId).length>0){
// if(i==0){ if(i==0){
// allFormData = $("#"+childTableFormId).serialize(); allFormData = $("#"+childTableFormId).serialize();
// }else{ }else{
// allFormData = allFormData +'&'+ $("#"+childTableFormId).serialize(); allFormData = allFormData +'&'+ $("#"+childTableFormId).serialize();
// } }
// } }
// } }
// $.operate.save(prefix + "/deptReview", allFormData); $.operate.save(prefix + "/deptReview", allFormData);
} }
</script> </script>

2
ruoyi-admin/src/main/resources/templates/system/makeorder/gcsh.html

@ -29,7 +29,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">订单类型:</label> <label class="col-sm-3 control-label is-required">订单类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select disabled name="salesOrderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required> <select disabled name="orderType" class="form-control" type="text" th:with="dictList=${@dict.getType('sys_order_type')}" required th:field="*{orderType}">
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option> <option th:each="dict : ${dictList}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select> </select>

9
ruoyi-admin/src/main/resources/templates/system/makeorder/makeorder.html

@ -107,7 +107,7 @@
var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]]; var qualityStatusDatas = [[${@dict.getType('qualityStatus')}]];
var useStatusDatas = [[${@dict.getType('useStatus')}]]; var useStatusDatas = [[${@dict.getType('useStatus')}]];
var prefix = ctx + "system/makeorder"; var prefix = ctx + "system/makeorder";
var orderTypeDatas = [[${@dict.getType('sys_order_type')}]];
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",
@ -167,6 +167,13 @@
{ {
field: 'Salesman', field: 'Salesman',
title: '业务员' title: '业务员'
},
{
field: 'orderType',
title: '订单类型',
formatter: function(value, row, index) {
return $.table.selectDictLabel(orderTypeDatas, value);
}
}, },
{ {
field: 'customerId', field: 'customerId',

Loading…
Cancel
Save