|
|
@@ -0,0 +1,1194 @@
|
|
|
+<%@page import="com.yw.bpm.system.util.SystemUtil" %>
|
|
|
+<%@page import="com.yw.core.session.OASession" %>
|
|
|
+<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
|
|
|
+<jsp:useBean id="oasession" class="com.yw.core.session.OASession" scope="session"/>
|
|
|
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
+<html class="width960">
|
|
|
+<head>
|
|
|
+ <title>流程审批</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
|
+ <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge;">
|
|
|
+ <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css"/>
|
|
|
+ <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css"/>
|
|
|
+ <link href="${pageContext.request.contextPath}/yw/bpm/form.css" rel="stylesheet" type="text/css"/>
|
|
|
+ <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
|
|
|
+ <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/constant.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/common.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/yw/bpm/customflow/customFlow.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/file.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
|
|
|
+ <script type="text/javascript" src="${pageContext.request.contextPath}/yw/contract/contractFlowCustom/js/contract.js"></script>
|
|
|
+ <script type="text/javascript" src="/shares/js/yw/bpm/seal/seal.js"></script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var insId = "${requestScope.flow.insId}";
|
|
|
+ var formId = "${requestScope.flow.formId.formId}";
|
|
|
+ var table_fields = "${curTacheModel.table_fields}";
|
|
|
+ var departmental_opinion = table_fields.indexOf(",departmental_opinion,") > -1;
|
|
|
+ var dgm_opinion = table_fields.indexOf(",deputy_general_manager_opinion,") > -1;
|
|
|
+ var audit_dgm_opinion = table_fields.indexOf(",audit_deputy_general_manager_opinion,") > -1;
|
|
|
+ var gm_opinion = table_fields.indexOf(",general_manager_opinion,") > -1;
|
|
|
+
|
|
|
+ var finance_opinion = table_fields.indexOf(",finance_opinion,") > -1;
|
|
|
+ var chairman_opinion = table_fields.indexOf(",chairman_opinion,") > -1;
|
|
|
+
|
|
|
+ var se = "${curTacheModel.n_se}";
|
|
|
+ $(function () {
|
|
|
+ // 初始化合同类型监听器
|
|
|
+ initContractTypeListener();
|
|
|
+
|
|
|
+ // 设置初始合同类型值,用于后续变化检测
|
|
|
+ var initialContractType = $("#contract_type").val();
|
|
|
+ if (initialContractType) {
|
|
|
+ $("#contract_type").data('last-value', initialContractType);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (se != 1) {
|
|
|
+ $("#addBuyInfo").remove();
|
|
|
+ $(".substract1").remove();
|
|
|
+ $("#addFromExcel").remove();
|
|
|
+
|
|
|
+ $("#addPayInfo").remove();
|
|
|
+ $(".substract2").remove();
|
|
|
+
|
|
|
+ $(".TextDisplay").each(function (i, v) { // 将input隐藏,显示该input的文本值(不带文本框)
|
|
|
+ $(v).hide();
|
|
|
+ if ($(v).val() == '') {
|
|
|
+ //$(v).after('------------');
|
|
|
+ } else {
|
|
|
+ $(v).after($(v).val());
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 非发起环节:根据合同类型隐藏采购申请单编号列和输入框
|
|
|
+ var contractType = $("#contract_type").val();
|
|
|
+ if(contractType == '1') {
|
|
|
+ updateMaterialTableHeader(contractType);
|
|
|
+ updatePurchaseNumberVisibility(contractType);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ // 发起环节:根据当前合同类型初始化需方供方显示(保留原有值)
|
|
|
+ var contractType = $("#contract_type").val();
|
|
|
+ if(contractType) {
|
|
|
+ adjustPartyDisplay(contractType, true);
|
|
|
+ }
|
|
|
+
|
|
|
+ addMaterialIdAndName();
|
|
|
+ addPayIdAndName();
|
|
|
+ updateContractMoneyState();
|
|
|
+ initPriceForProcess();
|
|
|
+
|
|
|
+ // 如果是销售合同,初始化时隐藏采购申请单编号列和输入框
|
|
|
+ if(contractType == '1') {
|
|
|
+ updateMaterialTableHeader(contractType);
|
|
|
+ updatePurchaseNumberVisibility(contractType);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $("#contract_signdate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
|
|
|
+ loadTypeTree("selectUserButton1",{type:"singleuser",tab:"1,3,8",backId:"salesman",backName:"salesman_name"});
|
|
|
+ loadTypeTree("selectDeptButton",{type:"singledept",tab:"1",backId:"duty_department",backName:"duty_department_name"});
|
|
|
+ loadTypeTree("selectUserButton2",{type:"singleuser",tab:"1,3,8",backId:"duty_man",backName:"duty_man_name"});
|
|
|
+ $("#contract_startdate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
|
|
|
+ $("#contract_enddate").ligerDateEditor({ showTime: false, labelAlign: 'left'});
|
|
|
+
|
|
|
+ //点击添加tr
|
|
|
+ $("#addBuyInfo").click(function () {
|
|
|
+ material_search();
|
|
|
+ });
|
|
|
+ $("#addPayInfo").click(function () {
|
|
|
+ addPayInfo();
|
|
|
+ addPayIdAndName();
|
|
|
+ });
|
|
|
+ //删除某行数据
|
|
|
+ $(".substract1").live('click', function () {
|
|
|
+ var obj = $(this).parent().parent();
|
|
|
+ $.ligerDialog.confirm('确定删除该行', function (yes) {
|
|
|
+ if (yes == true) {
|
|
|
+ obj.remove();
|
|
|
+ addMaterialIdAndName();
|
|
|
+ /* // 检查物料行是否为空
|
|
|
+ if ($(".startTr1").not(".hide").length === 0) {
|
|
|
+ $("#purchaseId").val('');
|
|
|
+ $("#purchaseNumber").val('');
|
|
|
+ } */
|
|
|
+ calculateTotalPrice();
|
|
|
+ updateContractMoneyState();
|
|
|
+ // 检查是否需要删除付款信息
|
|
|
+ checkAndRemovePaymentInfo();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ $(".substract2").live('click', function () {
|
|
|
+ var obj = $(this).parent().parent();
|
|
|
+ $.ligerDialog.confirm('确定删除该行', function (yes) {
|
|
|
+ if (yes == true) {
|
|
|
+ obj.remove();
|
|
|
+ addPayIdAndName();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // 监听合同金额手动输入
|
|
|
+ $("#contract_money").on('input', function() {
|
|
|
+ var contractMoney = parseFloat($("#contract_money").val());
|
|
|
+ if(contractMoney && contractMoney > 0){
|
|
|
+ // 标记为用户手动输入
|
|
|
+ $(this).data("manual-input", true);
|
|
|
+ }
|
|
|
+ // 注意:不在这里清除标记,防止初始化设置的标记被意外清除
|
|
|
+ //calculatePaymentAmount();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 监听付款比例变化
|
|
|
+ $(document).on('input', '.startTr2:not(.hide) .proportion,.startTr2:not(.hide) .amountPaid', function() {
|
|
|
+ calculatePaymentAmount();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 物料输入变化时更新状态
|
|
|
+ $(document).on('input', '.startTr1:not(.hide) input.price, .startTr1:not(.hide) input.priceTax, .startTr1:not(.hide) input.cess, .startTr1:not(.hide) input.qty', function () {
|
|
|
+ var row = $(this).closest('tr')[0];
|
|
|
+ calculatePrice(row);
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#contract_money").on('blur', function() {
|
|
|
+ var contractMoney = parseFloat($(this).val());
|
|
|
+ var totalPrice = parseFloat($("#totalPrice").val()) || 0;
|
|
|
+
|
|
|
+ // 只有当totalPrice有值且合同金额小于物料总金额时,才进行提示和修正
|
|
|
+ if (totalPrice > 0 && (!contractMoney || contractMoney < totalPrice)) {
|
|
|
+ $(this).removeData("manual-input");
|
|
|
+ $("#contract_money").val(totalPrice);
|
|
|
+ addError("合同金额不能小于物料总金额: " + totalPrice.toFixed(2));
|
|
|
+ // 更新大写金额
|
|
|
+ updateContractMoneyUppercase();
|
|
|
+ } else {
|
|
|
+ // 即使没有修正,也要更新大写(用户手动修改金额的情况)
|
|
|
+ updateContractMoneyUppercase();
|
|
|
+ }
|
|
|
+ calculatePaymentAmount();
|
|
|
+ });
|
|
|
+
|
|
|
+ // 监听合同金额变化,实时更新大写
|
|
|
+ $("#contract_money").on('input', function() {
|
|
|
+ updateContractMoneyUppercase();
|
|
|
+ });
|
|
|
+
|
|
|
+ $(document).on('blur', '.startTr1:not(.hide) input.qty', function() {
|
|
|
+ var qty = parseFloat($(this).val()) || 0;
|
|
|
+ if (qty <= 0) {
|
|
|
+ addError("物料数量必须大于0");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ //保存表单
|
|
|
+ function save() {
|
|
|
+ saveAjaxForm("${pageContext.request.contextPath}/contractFlowCustomAction.do?task=process", "formIns");
|
|
|
+ }
|
|
|
+
|
|
|
+ function checkForm() {
|
|
|
+ var rs = true;
|
|
|
+ var contract_number = $("#contract_number").val();
|
|
|
+ if (contract_number) {
|
|
|
+ validContractNumber(contract_number, function(flag) {
|
|
|
+ rs = flag ? checkFormMore() : false;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ rs = checkFormMore();
|
|
|
+ }
|
|
|
+ return rs;
|
|
|
+ }
|
|
|
+
|
|
|
+ function checkFormMore(){
|
|
|
+ var mindate=$("#contract_startdate").val();
|
|
|
+ var maxdate=$("#contract_enddate").val();
|
|
|
+ var rs = true;
|
|
|
+
|
|
|
+ // 检查各字段是否需要验证 (启动节点或在 table_fields 配置中)
|
|
|
+ var contract_number_required = (se == 1 || table_fields.indexOf(',contract_number,') > -1);
|
|
|
+ var contract_name_required = (se == 1 || table_fields.indexOf(',contract_name,') > -1);
|
|
|
+ var contract_type_required = (se == 1 || table_fields.indexOf(',contract_type,') > -1);
|
|
|
+ var salesman_required = (se == 1 || table_fields.indexOf(',salesman_name,') > -1);
|
|
|
+ var contract_money_required = (se == 1 || table_fields.indexOf(',contract_money,') > -1);
|
|
|
+ var supplierName_required = (se == 1 || table_fields.indexOf(',supplierName,') > -1);
|
|
|
+
|
|
|
+ if(contract_number_required){
|
|
|
+ rs = $.validate({name:"contractInfo.contract_number",model:[{type:"require",msg:"合同编号不能为空!"},
|
|
|
+ {type:"len",max:100,msg:"合同编号长度不能超过100!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(contract_name_required){
|
|
|
+ rs = $.validate({name:"contractInfo.contract_name",model:[{type:"require",msg:"合同名称不能为空!"},
|
|
|
+ {type:"len",max:100,msg:"合同名称长度不能超过 100!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(contract_type_required){
|
|
|
+ rs = $.validate({name:"contractInfo.contract_type",model:[{type:"require",msg:"合同类型不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(salesman_required){
|
|
|
+ rs = $.validate({name:"contractInfo.salesman",model:[{type:"require",msg:"经办人不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(contract_money_required){
|
|
|
+ rs = $.validate({name:"contractInfo.contract_money",model:[{type:"isNumber",msg:"只能是数字!"}]}) && rs;
|
|
|
+ }
|
|
|
+ // 根据合同类型验证不同字段:采购合同验证供方,销售合同验证需方
|
|
|
+ var contractType = $("#contract_type").val();
|
|
|
+ if(supplierName_required) {
|
|
|
+ if(contractType == '1') {
|
|
|
+ // 销售合同:验证需方(客户)
|
|
|
+ rs = $.validate({name:"firstparty_name_text",model:[{type:"require",msg:"需方不能为空!"}]}) && rs;
|
|
|
+ } else {
|
|
|
+ // 采购合同:验证供方(供应商)
|
|
|
+ rs = $.validate({name:"secondparty_name_text",model:[{type:"require",msg:"供方不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(departmental_opinion){
|
|
|
+ rs = $.validate({name: "departmental_opinion_imgval", model: [{type: "require", msg: "部门领导意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(dgm_opinion){
|
|
|
+ rs = $.validate({name: "deputy_general_manager_opinion_imgval", model: [{type: "require", msg: "分管副总意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(audit_dgm_opinion){
|
|
|
+ rs = $.validate({name: "audit_deputy_general_manager_opinion_imgval", model: [{type: "require", msg: "分管副总意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(gm_opinion){
|
|
|
+ rs = $.validate({name: "general_manager_opinion_imgval", model: [{type: "require", msg: "总经理意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(finance_opinion){
|
|
|
+ rs = $.validate({name: "finance_opinion_imgval", model: [{type: "require", msg: "财务部门意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if(chairman_opinion){
|
|
|
+ rs = $.validate({name: "chairman_opinion_imgval", model: [{type: "require", msg: "董事长意见不能为空!"}]}) && rs;
|
|
|
+ }
|
|
|
+ if (se == 1) {
|
|
|
+ $(".startTr1").not(".hide").each(function (i, v) {
|
|
|
+ rs = $.validate({ name: "contractMaterialList[" + i + "].qty", model: [{type: "require", msg: "数量不能为空!"},{type : "custom",validator:function(value){ return /^\d+(\.\d+)?$/.test(value) && parseFloat(value) > 0; },msg:"数量必须是大于 0 的数字!"}] }) && rs;
|
|
|
+ rs = $.validate({ name: "contractMaterialList[" + i + "].price", model: [{type: "require", msg: "税前单价不能为空!"}] }) && rs;
|
|
|
+ rs = $.validate({ name: "contractMaterialList[" + i + "].cess", model: [{type: "require", msg: "税率不能为空!"}] }) && rs;
|
|
|
+ rs = $.validate({ name: "contractMaterialList[" + i + "].priceTax", model: [{type: "require", msg: "税后单价不能为空!"}] }) && rs;
|
|
|
+ });
|
|
|
+
|
|
|
+ $(".startTr2").not(".hide").each(function (i, v) {
|
|
|
+ rs = $.validate({ name: "contractPaymentList[" + i + "].payType", model: [{type: "require", msg: "付款方式不能为空!"}] }) && rs;
|
|
|
+ rs = $.validate({ name: "contractPaymentList[" + i + "].proportion", model: [{type: "require", msg: "比例不能为空!"},{type : "custom",validator:function(value){ return /^\d+(\.\d+)?$/.test(value) && parseFloat(value) > 0; },msg:"比例必须是大于 0 的数字!"}] }) && rs;
|
|
|
+ rs = $.validate({ name: "contractPaymentList[" + i + "].amount", model: [{type: "require", msg: "金额不能为空!"}] }) && rs;
|
|
|
+ /* rs = $.validate({ name: "contractPaymentList[" + i + "].amountPaid", model: [{type: "require", msg: "已付金额不能为空!"}] }) && rs; */
|
|
|
+ });
|
|
|
+
|
|
|
+ if(rs == true){
|
|
|
+ var detailSize = $('.startTr1:not(.hide)').length;
|
|
|
+ if(detailSize > 0){
|
|
|
+ var contract_money = parseFloat($("#contract_money").val());
|
|
|
+ var totalPrice = parseFloat($("#totalPrice").val()) || 0;
|
|
|
+ if(totalPrice > 0) {
|
|
|
+ if(!contract_money){
|
|
|
+ $("#contract_money").val(totalPrice);
|
|
|
+ }else if(contract_money < totalPrice){
|
|
|
+ addError("合同金额不能小于物料总金额: " + totalPrice.toFixed(2));
|
|
|
+ rs = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return rs;
|
|
|
+ }
|
|
|
+
|
|
|
+ function validContractNumber(contract_number, callback) {
|
|
|
+ var universalid = $("#universalid").val();
|
|
|
+ var isExistContractNum = false;
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "contractEntry.do?task=isExistContractNumForFlow",
|
|
|
+ data: { "contract_number": contract_number,"universalid":universalid, },
|
|
|
+ timeout: 10000,
|
|
|
+ dataType: "json",
|
|
|
+ async: false,
|
|
|
+ success: function (data) {
|
|
|
+ if (data != null) {
|
|
|
+ if (data.error != null) {
|
|
|
+ addError(data.error);
|
|
|
+ isExistContractNum = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ callback(!isExistContractNum);
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ // 处理请求错误的情况
|
|
|
+ callback(false);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /* // 使用事件委托监听所有输入框的变化
|
|
|
+ $(document).on('input', '.startTr1:not(.hide) input.price, .startTr1:not(.hide) input.priceTax, .startTr1:not(.hide) input.cess, .startTr1:not(.hide) input.qty', function () {
|
|
|
+ // 当任何行的单价、税率、数量发生变化时,重新计算该行的另一单价和总价
|
|
|
+ var row = $(this).closest('tr')[0];
|
|
|
+ calculatePrice(row);
|
|
|
+ }); */
|
|
|
+
|
|
|
+ // 页面加载完成后初始化总价
|
|
|
+ $(document).ready(function() {
|
|
|
+ // 只在有物料时才计算总价,避免将空值设置为0
|
|
|
+ if ($('.startTr1:not(.hide)').length > 0) {
|
|
|
+ calculateTotalPrice();
|
|
|
+ }
|
|
|
+
|
|
|
+ // 初始化合同金额大写显示
|
|
|
+ if (se == 1) {
|
|
|
+ // 可编辑模式:使用updateContractMoneyUppercase函数
|
|
|
+ updateContractMoneyUppercase();
|
|
|
+ } else {
|
|
|
+ // 只读模式:直接从隐藏域或文本中获取金额
|
|
|
+ var contractMoneyVal = '${contractInfo.contract_money}';
|
|
|
+ if (contractMoneyVal && contractMoneyVal.trim() !== '') {
|
|
|
+ var contractMoney = parseFloat(contractMoneyVal) || 0;
|
|
|
+ $("#contract_money_uppercase_display").text(numberToChineseUppercase(contractMoney));
|
|
|
+ } else {
|
|
|
+ $("#contract_money_uppercase_display").text('');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ /*
|
|
|
+ *保存草稿
|
|
|
+ *
|
|
|
+ */
|
|
|
+ function draftsave() {
|
|
|
+ draftsaveAjaxForm("${pageContext.request.contextPath }/contractFlowCustomAction.do?task=process", "formIns");
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <style type="text/css">
|
|
|
+ .l-table-edit-new {
|
|
|
+ width: 100px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: normal;
|
|
|
+ line-height: 20px;
|
|
|
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
+ }
|
|
|
+
|
|
|
+ .input-width {
|
|
|
+ width: 100px;
|
|
|
+ text-align: center;
|
|
|
+ padding-left: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ table.l-table-edit-custom {
|
|
|
+ border-collapse: collapse;
|
|
|
+ width: 99%;
|
|
|
+ }
|
|
|
+ table.l-table-edit-custom th,
|
|
|
+ table.l-table-edit-custom td {
|
|
|
+ border: 1px solid #000;
|
|
|
+ padding: 8px;
|
|
|
+ }
|
|
|
+ table.l-table-edit-custom th {
|
|
|
+ background-color: #f2f2f2;
|
|
|
+ }
|
|
|
+
|
|
|
+ table.l-table-edit-new {
|
|
|
+ border-collapse: collapse;
|
|
|
+ width: 99%;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ table.l-table-edit-new th,
|
|
|
+ table.l-table-edit-new td {
|
|
|
+ border: 1px solid #000;
|
|
|
+ padding: 8px 0 !important;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ table.l-table-edit-new th {
|
|
|
+ background-color: #f2f2f2;
|
|
|
+ }
|
|
|
+
|
|
|
+ .disabled-section {
|
|
|
+ opacity: 0.6;
|
|
|
+ pointer-events: none;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .disabled-section::after {
|
|
|
+ content: "请先输入合同金额";
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ background-color: rgba(255, 255, 255, 0.9);
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+ color: #ff0000;
|
|
|
+ font-weight: bold;
|
|
|
+ z-index: 1000;
|
|
|
+ }
|
|
|
+
|
|
|
+ .manual-input-hint {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #888;
|
|
|
+ margin-top: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .error-border {
|
|
|
+ border: 1px solid red !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .inline-error {
|
|
|
+ color: red;
|
|
|
+ font-size: 12px;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .disabled-section {
|
|
|
+ opacity: 0.6;
|
|
|
+ pointer-events: none;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .disabled-section::after {
|
|
|
+ content: "请先输入合同金额";
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ background-color: rgba(255, 255, 255, 0.9);
|
|
|
+ padding: 10px;
|
|
|
+ border-radius: 5px;
|
|
|
+ color: #ff0000;
|
|
|
+ font-weight: bold;
|
|
|
+ z-index: 1000;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+
|
|
|
+
|
|
|
+<body>
|
|
|
+<form action="applianceBuyAction.do" method="post" id="formIns" name="formIns">
|
|
|
+ <div>
|
|
|
+ <div style="height: auto; width: 189px;">
|
|
|
+ <img src="${pageContext.request.contextPath}/images/yzlogo.png"
|
|
|
+ style="max-height: 77px; width: auto;">
|
|
|
+ </div>
|
|
|
+ <div style="text-align:center;">
|
|
|
+ <div style="font-size: 20px;">
|
|
|
+ 湖南韫珠环保科技有限公司
|
|
|
+ </div>
|
|
|
+ <div style="font-size: 20px;">
|
|
|
+ 合同审批单
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="text-align:right;padding-right: 100px;">流程流水号:${contractInfo.processId}</div>
|
|
|
+ </div>
|
|
|
+ <table class="l-table-edit line l-table-edit-custom" width="99%">
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">填报部门:</td>
|
|
|
+ <td class="l-table-edit-td">
|
|
|
+ <input type="hidden" id="department" name="contractInfo.department" value="${contractInfo.department}"/>
|
|
|
+ ${contractInfo.department}
|
|
|
+ <input type="hidden" id="initiator" name="contractInfo.initiator" value="${contractInfo.initiator}"/>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">经办人
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',salesman_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',salesman_sign,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input id="salesman_name" name="contractInfo.salesman_name" type="text" value="${contractInfo.contract_entrying_operator_name }" readonly="readonly"/>
|
|
|
+ <input id="salesman" name="contractInfo.salesman" type="hidden" value="${contractInfo.salesman }"/>
|
|
|
+ <input id="selectUserButton1" name="selectUserButton1" type="button" class="l-button" value="选择人员" />
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.contract_entrying_operator_name}
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">电话:</td>
|
|
|
+ <td class="l-table-edit-td" style="width: 150px;">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',salesmanTel,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input id="salesmanTel" name="contractInfo.salesmanTel" type="text" value="${contractInfo.salesmanTel }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.salesmanTel}
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">填报日期:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <input type="hidden" id="applyDate" name="contractInfo.applyDate" value="${contractInfo.applyDate}"/>
|
|
|
+ ${contractInfo.applyDate}
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">合同编号
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_number,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="3">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_number,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input type="text" id="contract_number" name="contractInfo.contract_number" value="${contractInfo.contract_number }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <input type="hidden" id="contract_number" name="contractInfo.contract_number" value="${contractInfo.contract_number }"/>${contractInfo.contract_number }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text" rowspan="7">合同立项内容</td>
|
|
|
+ <td class="l-table-edit-text">合同名称
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input type="text" id="contract_name" name="contractInfo.contract_name" value="${contractInfo.contract_name }">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.contract_name }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">合同金额:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_money,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input type="text" id="contract_money" name="contractInfo.contract_money" value="${contractInfo.contract_money }" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')">
|
|
|
+ <div style="font-size: 12px; color: #666; margin-top: 5px;">
|
|
|
+ <span id="contract_money_uppercase"></span>
|
|
|
+ </div>
|
|
|
+ <div class="contract-money-hint manual-input-hint" style="display: none;">
|
|
|
+ 合同金额可随时输入,添加物料后会自动计算总金额
|
|
|
+ </div>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.contract_money }
|
|
|
+ <div style="font-size: 12px; color: #666; margin-top: 5px;">
|
|
|
+ <span id="contract_money_uppercase_display"></span>
|
|
|
+ </div>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">合同内容:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="5">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',contractContent,') || curTacheModel.n_se eq 1}">
|
|
|
+ <textarea id="contractContent" name="contractInfo.contractContent" rows="3" cols="80">${contractInfo.contractContent}</textarea>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.contractContent}
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text" rowspan="2">合同类型
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',contract_type,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" rowspan="2" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',contract_type,') || curTacheModel.n_se eq 1}">
|
|
|
+ <select id="contract_type" name="contractInfo.contract_type" style="width:130px;">
|
|
|
+ <c:forEach items="${typeList }" var="item">
|
|
|
+ <option value="${item.contract_type }" ${item.contract_type==contractInfo.contract_type?'selected=selected':'' } >${item.contract_type_name }</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.contract_type_name }
|
|
|
+ <input id="contract_type" name="contractInfo.contract_type" type="hidden" value="${contractInfo.contract_type }"/>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">所属项目或产品:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',projectItem,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input type="text" id="projectItem" name="contractInfo.projectItem" value="${contractInfo.projectItem }">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.projectItem }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">使用位置:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',usePosition,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input type="text" id="usePosition" name="contractInfo.usePosition" value="${contractInfo.usePosition }">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.usePosition }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">需方
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',firstparty_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',firstparty_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <!-- 采购合同:显示公司名称(只读) -->
|
|
|
+ <input id="firstparty_name_display" type="text" value="${contractInfo.firstparty_name }" readonly="readonly" style="display:block;"/>
|
|
|
+ <!-- 销售合同:显示选择客户按钮 -->
|
|
|
+ <div id="clientSelectDiv" style="display:none;">
|
|
|
+ <input id="firstparty_name_text" name="firstparty_name_text" type="text" value="${contractInfo.firstparty_name }" readonly="readonly"/>
|
|
|
+ <input id="selectClientBtn" type="button" class="button_fj" value="选择客户" onclick="client_search()"/>
|
|
|
+ </div>
|
|
|
+ <input id="firstparty_name" name="contractInfo.firstparty_name" type="hidden" value="${contractInfo.firstparty_name }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.firstparty_name }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text" rowspan="2">对方联系人及电话:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2" rowspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',other_contractor,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input id="other_contractor" name="contractInfo.other_contractor" type='text' value="${contractInfo.other_contractor }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.other_contractor }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">供方
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',secondparty_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <font color="red">*</font>:
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',secondparty_name,') || curTacheModel.n_se eq 1}">
|
|
|
+ <!-- 采购合同:显示选择供应商按钮 -->
|
|
|
+ <div id="supplierSelectDiv" style="display:block;">
|
|
|
+ <input id="secondparty_name_text" name="secondparty_name_text" type="text" value="${contractInfo.secondparty_name }" readonly="readonly"/>
|
|
|
+ <input id="selectSupplierBtn" type="button" class="button_fj" value="选择供应商" onclick="supplier_search()"/>
|
|
|
+ </div>
|
|
|
+ <!-- 销售合同:显示公司名称(只读) -->
|
|
|
+ <input id="secondparty_name_display" type="text" value="${companyName}" readonly="readonly" style="display:none;"/>
|
|
|
+ <input id="secondparty_name" name="contractInfo.secondparty_name" type="hidden" value="${contractInfo.secondparty_name }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.secondparty_name }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">随合同提交的其它材料:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',otherFile,') || curTacheModel.n_se eq 1}">
|
|
|
+ <textarea id="otherFile" name="contractInfo.otherFile">${contractInfo.otherFile}</textarea>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.otherFile }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-text">经办人签字:</td>
|
|
|
+ <td class="l-table-edit-td" colspan="2">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',salesman_sign,') || curTacheModel.n_se eq 1}">
|
|
|
+ <input id="salesmanSign" name="contractInfo.salesmanSign" type='text' value="${contractInfo.salesmanSign }"/>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ${contractInfo.salesmanSign }
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">部门领导意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',departmental_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',departmental_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractPurchaseForm.departmentalOpinion}">
|
|
|
+ <input id="departmentalOpinion" value="" name="contractPurchaseForm.departmentalOpinion" type="hidden" value="">
|
|
|
+ <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" onclick="selectSeal('departmental_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="departmental_opinion" value="" name="departmental_opinion" type="hidden">
|
|
|
+ <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${departmentalOpinion_sealpath}" class="dragme" style="left:${departmentalOpinion_x}px;top:${departmentalOpinion_y}px;" id="departmental_opinion_img" name="departmental_opinion_img" value="departmental_opinion|${departmentalOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="departmental_opinion_imgdel" name="departmental_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${departmentalOpinion_sealId}','departmental_opinion','forvalPwd');">
|
|
|
+ <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('departmental_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="departmental_opinion" value="${departmentalOpinion_formSealInsId}" name="departmental_opinion" type="hidden">
|
|
|
+ <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="${departmentalOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="departmental_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${departmentalOpinion_sealpath}" class="dragme" style="left:${departmentalOpinion_x}px;top:${departmentalOpinion_y}px;" id="departmental_opinion_img" name="departmental_opinion_img" value="departmental_opinion|${departmentalOpinion_sealId}">
|
|
|
+ <input id="departmental_opinionbtn" value="盖章" name="departmental_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('departmental_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="departmental_opinion" value="${departmentalOpinion_formSealInsId}" name="departmental_opinion" type="hidden">
|
|
|
+ <input id="departmental_opinion_imgval" name="departmental_opinion_imgval" type="hidden" value="${departmentalOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">财务部门意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',finance_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',finance_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractPurchaseForm.financeOpinion}">
|
|
|
+ <input id="financeOpinion" value="" name="contractPurchaseForm.financeOpinion" type="hidden" value="">
|
|
|
+ <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" onclick="selectSeal('finance_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="finance_opinion" value="" name="finance_opinion" type="hidden">
|
|
|
+ <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${financeOpinion_sealpath}" class="dragme" style="left:${financeOpinion_x}px;top:${financeOpinion_y}px;" id="finance_opinion_img" name="finance_opinion_img" value="finance_opinion|${financeOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="finance_opinion_imgdel" name="finance_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${financeOpinion_sealId}','finance_opinion','forvalPwd');">
|
|
|
+ <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('finance_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="finance_opinion" value="${financeOpinion_formSealInsId}" name="chairman1_opinion" type="hidden">
|
|
|
+ <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="${financeOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="finance_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${financeOpinion_sealpath}" class="dragme" style="left:${financeOpinion_x}px;top:${financeOpinion_y}px;" id="finance_opinion_img" name="finance_opinion_img" value="finance_opinion|${financeOpinion_sealId}">
|
|
|
+ <input id="finance_opinionbtn" value="盖章" name="finance_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('finance_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="finance_opinion" value="${financeOpinion_formSealInsId}" name="finance_opinion" type="hidden">
|
|
|
+ <input id="finance_opinion_imgval" name="finance_opinion_imgval" type="hidden" value="${financeOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">分管副总意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',deputy_general_manager_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',deputy_general_manager_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractPurchaseForm.dgmOpinion}">
|
|
|
+ <input id="dgmOpinion" value="" name="contractPurchaseForm.dgmOpinion" type="hidden" value="">
|
|
|
+ <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" onclick="selectSeal('deputy_general_manager_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="deputy_general_manager_opinion" value="" name="deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${dgmOpinion_sealpath}" class="dragme" style="left:${dgmOpinion_x}px;top:${dgmOpinion_y}px;" id="deputy_general_manager_opinion_img" name="deputy_general_manager_opinion_img" value="deputy_general_manager_opinion|${dgmOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="deputy_general_manager_opinion_imgdel" name="deputy_general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${dgmOpinion_sealId}','deputy_general_manager_opinion','forvalPwd');">
|
|
|
+ <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('deputy_general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="deputy_general_manager_opinion" value="${dgmOpinion_formSealInsId}" name="deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="${dgmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${dgmOpinion_sealpath}" class="dragme" style="left:${dgmOpinion_x}px;top:${dgmOpinion_y}px;" id="deputy_general_manager_opinion_img" name="deputy_general_manager_opinion_img" value="deputy_general_manager_opinion|${dgmOpinion_sealId}">
|
|
|
+ <input id="deputy_general_manager_opinionbtn" value="盖章" name="deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('deputy_general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="deputy_general_manager_opinion" value="${dgmOpinion_formSealInsId}" name="deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="deputy_general_manager_opinion_imgval" name="deputy_general_manager_opinion_imgval" type="hidden" value="${dgmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">分管副总意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',audit_deputy_general_manager_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',audit_deputy_general_manager_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractInfo.auditDgmOpinion}">
|
|
|
+ <input id="auditDgmOpinion" value="" name="contractInfo.auditDgmOpinion" type="hidden" value="">
|
|
|
+ <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" onclick="selectSeal('audit_deputy_general_manager_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="audit_deputy_general_manager_opinion" value="" name="audit_deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${auditDgmOpinion_sealpath}" class="dragme" style="left:${auditDgmOpinion_x}px;top:${auditDgmOpinion_y}px;" id="audit_deputy_general_manager_opinion_img" name="audit_deputy_general_manager_opinion_img" value="audit_deputy_general_manager_opinion|${auditDgmOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="audit_deputy_general_manager_opinion_imgdel" name="audit_deputy_general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${auditDgmOpinion_sealId}','audit_deputy_general_manager_opinion','forvalPwd');">
|
|
|
+ <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('audit_deputy_general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="audit_deputy_general_manager_opinion" value="${auditDgmOpinion_formSealInsId}" name="audit_deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="${auditDgmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="audit_deputy_general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${auditDgmOpinion_sealpath}" class="dragme" style="left:${auditDgmOpinion_x}px;top:${auditDgmOpinion_y}px;" id="audit_deputy_general_manager_opinion_img" name="audit_deputy_general_manager_opinion_img" value="audit_deputy_general_manager_opinion|${auditDgmOpinion_sealId}">
|
|
|
+ <input id="audit_deputy_general_manager_opinionbtn" value="盖章" name="audit_deputy_general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('audit_deputy_general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="audit_deputy_general_manager_opinion" value="${auditDgmOpinion_formSealInsId}" name="audit_deputy_general_manager_opinion" type="hidden">
|
|
|
+ <input id="audit_deputy_general_manager_opinion_imgval" name="audit_deputy_general_manager_opinion_imgval" type="hidden" value="${auditDgmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">总经理意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',general_manager_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',general_manager_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractPurchaseForm.gmOpinion}">
|
|
|
+ <input id="gmOpinion" value="" name="contractPurchaseForm.gmOpinion" type="hidden" value="">
|
|
|
+ <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" onclick="selectSeal('general_manager_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="general_manager_opinion" value="" name="general_manager_opinion" type="hidden">
|
|
|
+ <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${gmOpinion_sealpath}" class="dragme" style="left:${gmOpinion_x}px;top:${gmOpinion_y}px;" id="general_manager_opinion_img" name="general_manager_opinion_img" value="general_manager_opinion|${gmOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="general_manager_opinion_imgdel" name="general_manager_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${gmOpinion_sealId}','general_manager_opinion','forvalPwd');">
|
|
|
+ <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="general_manager_opinion" value="${gmOpinion_formSealInsId}" name="general_manager_opinion" type="hidden">
|
|
|
+ <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="${gmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="general_manager_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${gmOpinion_sealpath}" class="dragme" style="left:${gmOpinion_x}px;top:${gmOpinion_y}px;" id="general_manager_opinion_img" name="general_manager_opinion_img" value="general_manager_opinion|${gmOpinion_sealId}">
|
|
|
+ <input id="general_manager_opinionbtn" value="盖章" name="general_manager_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('general_manager_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="general_manager_opinion" value="${gmOpinion_formSealInsId}" name="general_manager_opinion" type="hidden">
|
|
|
+ <input id="general_manager_opinion_imgval" name="general_manager_opinion_imgval" type="hidden" value="${gmOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr>
|
|
|
+ <td class="l-table-edit-text">董事长意见:
|
|
|
+ <c:if test="${fn:contains(curTacheModel.table_fields, ',chairman_opinion,')}">
|
|
|
+ <font color="red">*</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-td" colspan="6">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:contains(curTacheModel.table_fields, ',chairman_opinion,')}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${empty contractPurchaseForm.chairmanOpinion}">
|
|
|
+ <input id="chairmanOpinion" value="" name="contractPurchaseForm.chairmanOpinion" type="hidden" value="">
|
|
|
+ <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" onclick="selectSeal('chairman_opinion')" style="float: left; display: block;">
|
|
|
+ </div>
|
|
|
+ <input id="chairman_opinion" value="" name="chairman_opinion" type="hidden">
|
|
|
+ <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${chairmanOpinion_sealpath}" class="dragme" style="left:${chairmanOpinion_x}px;top:${chairmanOpinion_y}px;" id="chairman_opinion_img" name="chairman_opinion_img" value="chairman_opinion|${chairmanOpinion_sealId}" onmousedown="selectmouse(this);">
|
|
|
+ <img width="12" height="12" title="删除" id="chairman_opinion_imgdel" name="chairman_opinion_imgdel" style="cursor: pointer;" src="/shares/images/no.png" onclick="deleteFseal('${chairmanOpinion_sealId}','chairman_opinion','forvalPwd');">
|
|
|
+ <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('chairman_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="chairman_opinion" value="${chairmanOpinion_formSealInsId}" name="chairman_opinion" type="hidden">
|
|
|
+ <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="${chairmanOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <div id="chairman_opinion_span" style="width: 100%; overflow: auto; padding: 5px 5px;;position: relative; font-size: 15px;">
|
|
|
+ <img src="${chairmanOpinion_sealpath}" class="dragme" style="left:${chairmanOpinion_x}px;top:${chairmanOpinion_y}px;" id="chairman_opinion_img" name="chairman_opinion_img" value="chairman_opinion|${chairmanOpinion_sealId}">
|
|
|
+ <input id="chairman_opinionbtn" value="盖章" name="chairman_opinionbtn" type="button" style="float: left; display: none;" onclick="selectSeal('chairman_opinion')">
|
|
|
+ </div>
|
|
|
+ <input id="chairman_opinion" value="${chairmanOpinion_formSealInsId}" name="chairman_opinion" type="hidden">
|
|
|
+ <input id="chairman_opinion_imgval" name="chairman_opinion_imgval" type="hidden" value="${chairmanOpinion_imgval}">
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <div id="secondDiv">
|
|
|
+ <table id="headTable" class="l-table-edit line" style="width:99%">
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" style="text-align:center; font-size:16px;font-weight:bold;">
|
|
|
+ <span style="font-size: 20px;">付款信息</span>
|
|
|
+ <img align="bottom" id="addPayInfo" style="cursor: pointer" class="add"
|
|
|
+ src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jia.png">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table class="l-table-edit-new" width="99%">
|
|
|
+ <tr>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款方式</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">比例(%)</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">金额</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">已付金额</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款时间</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">付款状态</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">备注</th>
|
|
|
+ </tr>
|
|
|
+ <c:forEach items="${contractPaymentList}" var="items">
|
|
|
+ <tr class="startTr2">
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${curTacheModel.n_se ne 1}">
|
|
|
+ <c:set var="currentPayTypeName" value="" /> <%-- 初始化一个变量用于存储找到的名称 --%>
|
|
|
+ <c:forEach items="${paymentList}" var="payItem">
|
|
|
+ <c:if test="${payItem.payType eq items.payType}">
|
|
|
+ <c:set var="currentPayTypeName" value="${payItem.payTypeName}" />
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
+ <input type="text" name="" class="input-width payTypeName TextDisplay" value="${currentPayTypeName}" readonly>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <select name="" class="input-width payType TextDisplay">
|
|
|
+ <c:forEach items="${paymentList }" var="item">
|
|
|
+ <option value="${item.payType }" ${item.payType==items.payType?'selected=selected':'' } >${item.payTypeName }</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="hidden" name="" class="input-width universalid" value="${items.universalid}">
|
|
|
+ <input type="text" name="" class="input-width proportion TextDisplay" value="${items.proportion}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" >%
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width amount TextDisplay" value="${items.amount}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width amountPaid TextDisplay" value="${items.amountPaid}" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width payTime TextDisplay" value="${items.payTime}" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width payStatusName TextDisplay" value="${items.payStatusName}" readonly>
|
|
|
+ <input type="hidden" name="" class="input-width payStatus" value="${items.payStatus}">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width remark TextDisplay" value="${items.remark}">
|
|
|
+ <img align="bottom" style="cursor: pointer" class="substract2" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ <tr id="secondPoint"></tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div id="firstDiv">
|
|
|
+ <table id="headTable" class="l-table-edit line" style="width:99%">
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" style="text-align:center; font-size:16px;font-weight:bold;">
|
|
|
+ <span style="font-size: 20px;">物品信息</span>
|
|
|
+ <img align="bottom" id="addBuyInfo" style="cursor: pointer" class="add"
|
|
|
+ src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jia.png">
|
|
|
+ <input type="button" class='l-button' id="addFromExcel" onclick="addExcel()" value="导入物品" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table class="l-table-edit-new" width="99%" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
|
|
|
+ <tr>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">物料编码</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">物料名称</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">型号/规格</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">单位</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">数量</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税前单价</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税率(%)</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">税后单价</th>
|
|
|
+ <th class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;text-align: center;">采购申请单编号</th>
|
|
|
+ </tr>
|
|
|
+ <c:forEach items="${contractMaterialList}" var="items">
|
|
|
+ <tr class="startTr1">
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="hidden" name="" class="input-width universalid" value="${items.universalid}">
|
|
|
+ <input type="text" name="" class="input-width itemCode TextDisplay" value="${items.itemCode}" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width itemName TextDisplay" value="${items.itemName}" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width specification TextDisplay" value="${items.specification}" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width measureName TextDisplay" value="${items.measureName}" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width qty TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.qty}">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width price TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.price}">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width cess TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.cess}">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width priceTax TextDisplay" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="value=value.replace(/[^\d\.]/g,'')" value="${items.priceTax}">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width purchaseNumber TextDisplay" value="${items.purchaseNumber}" readonly>
|
|
|
+ <input type="hidden" name="" class="input-width purchaseId" value="${items.purchaseId}">
|
|
|
+ <img align="bottom" style="cursor: pointer" class="substract1" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ <tr id="firstPoint"></tr>
|
|
|
+ <input id="purchaseId" name="contractInfo.purchaseId" type="hidden" value="${contractInfo.purchaseId }"/>
|
|
|
+ <input id="purchaseNumber" name="contractInfo.purchaseNumber" type="hidden" value="${contractInfo.purchaseNumber }"/>
|
|
|
+ <input id="totalPrice" name="contractInfo.totalPrice" type="hidden" value=""/>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <br>
|
|
|
+ <br>
|
|
|
+ <br>
|
|
|
+ <br>
|
|
|
+ <input type="hidden" id="se" name="se" value="${curTacheModel.n_se}">
|
|
|
+ <input type="hidden" id="table_fields" name="table_fields" value="${curTacheModel.table_fields}">
|
|
|
+ <input type="hidden" id="universalid" name="contractInfo.universalid" value="${contractInfo.universalid}">
|
|
|
+ <input type="hidden" id="lFormInsId" name="contractInfo.lFormInsId" value="${contractInfo.lFormInsId}">
|
|
|
+ <input id="relation_ids" name="contractInfo.relation_ids" value="" type="hidden"/>
|
|
|
+ <input id="contract_entrying_operator" name="contractInfo.contract_entrying_operator" type="hidden" value="${contractInfo.contract_entrying_operator }" />
|
|
|
+ <!-- 存储公司名称,用于销售合同时对调需方供方 -->
|
|
|
+ <input id="companyName" name="companyName" value="${companyName}" type="hidden"/>
|
|
|
+ <!-- 供方/客户编码和名称 -->
|
|
|
+ <input id="supplierCode" name="contractInfo.supplierCode" type="hidden" value="${contractInfo.supplierCode }"/>
|
|
|
+ <input id="supplierName" name="contractInfo.supplierName" type="hidden" value="${contractInfo.supplierName }"/>
|
|
|
+</form>
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+
|
|
|
+
|
|
|
+<!-- *********************************************************模板************************************************************ -->
|
|
|
+<table>
|
|
|
+ <!-- ***************************************************模板 ------- 物料信息-->
|
|
|
+ <tr id="template_1" class="startTr1 hide">
|
|
|
+
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width itemCode" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width itemName" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width specification" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width measureName" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width qty" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width price" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width cess" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width priceTax" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width purchaseNumber" readonly>
|
|
|
+ <input type="hidden" name="" class="input-width purchaseId">
|
|
|
+ <img align="bottom" style="cursor: pointer" class="substract1" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <!-- ***************************************************模板 ------- 付款信息-->
|
|
|
+ <tr id="template_2" class="startTr2 hide">
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <select name="" class="input-width payType">
|
|
|
+ <option value="" selected="selected">--请选择--</option>
|
|
|
+ <c:forEach items="${paymentList }" var="item">
|
|
|
+ <option value="${item.payType }" >${item.payTypeName }</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width proportion" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0">%
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width amount" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width amountPaid" onkeyup="value=value.replace(/[^\d\.]/g,'')" onblur="if(value.trim()==='')value='0';" value="0">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width payTime" readonly>
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width payStatusName" readonly>
|
|
|
+ <input type="hidden" name="" class="input-width payStatus" value="0">
|
|
|
+ </td>
|
|
|
+ <td class="l-table-edit-new" colspan="1" style="padding-right: 0px;padding-left: 0px;">
|
|
|
+ <input type="text" name="" class="input-width remark">
|
|
|
+ <img align="bottom" style="cursor: pointer" class="substract2" src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/jian.png">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+</table>
|