Browse Source

[feat]销售管理

客户报价
修复客户报价业务经理审核不了问题
修复客户报价业务主管审核不了问题
dev
liuxiaoxu 5 months ago
parent
commit
99e39d599b
  1. 17
      ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwzgVerify.html

17
ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwgzVerify.html → ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwzgVerify.html

@ -6,7 +6,7 @@
</head>
<body class="white-bg">
<div id="app" class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-customerQuote-ywgz" th:object="${formData}">
<form class="form-horizontal m" id="form-customerQuote-ywzg" th:object="${formData}">
<input name="id" th:field="*{id}" type="hidden">
<input name="taskId" th:field="*{taskId}" type="hidden">
<input name="taskName" th:field="*{taskName}" type="hidden">
@ -179,7 +179,7 @@
<script th:src="@{/ajax/libs/element-ui/element-ui.js}"></script>
<script th:inline="javascript">
var prefix = ctx + "erp/bom";
$("#form-customerQuote-ywgz").validate({focusCleanup: true});
$("#form-customerQuote-ywzg").validate({focusCleanup: true});
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]];
var auditStatusDatas = [[${@dict.getType('auditStatus')}]];
var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]];
@ -188,7 +188,7 @@
var sysCustomerQuote = [[${formData}]];
var prefix = ctx + "system/customerQuote"
var commonCurrency = $("#commonCurrency_edit option:selected").val();
$("#form-customerQuote-ywgz").validate({
$("#form-customerQuote-ywzg").validate({
focusCleanup: true,
});
$(function() {
@ -201,9 +201,9 @@
if (res.rows.length > 0) {
var usertData = res.rows;
for (let i in usertData) {
$("#form-customerQuote-ywgz select[name='businessMembers']").append("<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>");
$("#form-customerQuote-ywzg select[name='businessMembers']").append("<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>");
}
$("#form-customerQuote-ywgz select[name='businessMembers']").val(sysCustomerQuote.businessMembers).trigger("change")
$("#form-customerQuote-ywzg select[name='businessMembers']").val(sysCustomerQuote.businessMembers).trigger("change")
} else {
$.modal.msgError(res.msg);
}
@ -516,15 +516,14 @@
}
function submitHandler() {
if ($.validate.form()) {
var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType);
if ($('textarea[name="comment"]').val()) {
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val());
}
var taskId = [[${taskId}]];
var tableData = $("#bootstrap-table-Quote-child3").bootstrapTable('getData');
$("input[name='customerQuoteChildList']").val(JSON.stringify(tableData));
var taskId = [[${taskId}]];
$.operate.save(prefix + "/complete/" + taskId, $('#form-customerQuote-ywgz').serialize());
$.operate.save(prefix + "/complete/" + taskId, $('#form-customerQuote-ywzg').serialize());
}
}
Loading…
Cancel
Save