123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- @{;
- ViewBag.Title = "明细页面";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script>
- var keyValue = request('keyValue');
- $(function () {
- initControl();
- });
- //初始化控件
- function initControl() {
- //商机类别
- $("#ChanceTypeId").ComboBox({
- url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
- param: { EnCode: "Client_ChanceSort" },
- id: "ItemValue",
- text: "ItemName",
- description: "==请选择==",
- height: "200px"
- });
- //商机来源
- $("#SourceId").ComboBox({
- url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
- param: { EnCode: "Client_ChanceSource" },
- id: "ItemValue",
- text: "ItemName",
- description: "==请选择==",
- height: "200px"
- });
- //商机阶段
- $("#StageId").ComboBox({
- url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
- param: { EnCode: "Client_ChancePhase" },
- id: "ItemValue",
- text: "ItemName",
- description: "==请选择==",
- height: "200px"
- });
- //跟进人员
- $("#TraceUserId").ComboBoxTree({
- url: "../../BaseManage/User/GetTreeJson",
- description: "==请选择==",
- height: "320px",
- allowSearch: true
- });
- //公司行业
- $("#CompanyNatureId").ComboBox({
- url: "../../SystemManage/DataItemDetail/GetDataItemListJson",
- param: { EnCode: "Client_Trade" },
- id: "ItemValue",
- text: "ItemName",
- description: "==请选择==",
- height: "200px"
- });
- //所在省份
- $("#Province").ComboBox({
- url: "../../SystemManage/Area/GetAreaListJson",
- param: { parentId: "0" },
- id: "AreaCode",
- text: "AreaName",
- description: "==选择省==",
- height: "170px"
- }).bind("change", function () {
- var value = $(this).attr('data-value');
- $("#City").ComboBox({
- url: "../../SystemManage/Area/GetAreaListJson",
- param: { parentId: value },
- id: "AreaCode",
- text: "AreaName",
- description: "==选择市==",
- height: "170px"
- });
- });
- //所在城市
- $("#City").ComboBox({
- description: "==选择市==",
- height: "170px"
- });
- //获取表单
- if (!!keyValue) {
- $.SetForm({
- url: "../../CustomerManage/Chance/GetFormJson",
- param: { keyValue: keyValue },
- success: function (data) {
- $("#form1").SetWebControls(data);
- $("#Province").trigger("change"); $("#City").ComboBoxSetValue(data.City);
- $("#form1").find('.form-control,.ui-select,input').attr('readonly', 'readonly');
- }
- })
- }
- }
- </script>
- <div style="margin-top: 20px;margin-bottom: 20px; margin-right: 20px;">
- <table class="form">
- <tr>
- <td class="formTitle">商机编号</td>
- <td class="formValue">
- <input id="EnCode" type="text" class="form-control" value="@ViewBag.EnCode" isvalid="yes" checkexpession="NotNull" />
- </td>
- <td class="formTitle">商机名称</td>
- <td class="formValue">
- <input id="FullName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">预计金额</td>
- <td class="formValue">
- <input id="Amount" type="text" class="form-control" value="0.00" isvalid="yes" checkexpession="Double" />
- </td>
- <td class="formTitle">预计利润</td>
- <td class="formValue">
- <input id="Profit" type="text" class="form-control" value="0.00" isvalid="yes" checkexpession="Double" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">预计成交</td>
- <td class="formValue">
- <input id="DealDate" type="text" class="form-control input-wdatepicker" onfocus="WdatePicker()" />
- </td>
- <td class="formTitle">销售费用</td>
- <td class="formValue">
- <input id="SaleCost" type="text" class="form-control" isvalid="yes" checkexpession="DoubleOrNull" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">商机类别</td>
- <td class="formValue">
- <div id="ChanceTypeId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
- </td>
- <td class="formTitle">商机来源</td>
- <td class="formValue">
- <div id="SourceId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
- </td>
- </tr>
- <tr>
- <td class="formTitle">商机阶段</td>
- <td class="formValue">
- <div id="StageId" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
- </td>
- <td class="formTitle">成功率%</td>
- <td class="formValue">
- <input id="SuccessRate" type="text" class="form-control" isvalid="yes" checkexpession="Double" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">公司名称</td>
- <td class="formValue">
- <input id="CompanyName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
- </td>
- <td class="formTitle">跟进人员</td>
- <td class="formValue">
- <div id="TraceUserId" type="selectTree" class="ui-select" isvalid="yes" checkexpession="NotNull"></div>
- </td>
- </tr>
- <tr>
- <td class="formTitle">公司行业</td>
- <td class="formValue">
- <div id="CompanyNatureId" type="select" class="ui-select"></div>
- </td>
- <td class="formTitle">公司网站</td>
- <td class="formValue">
- <input id="CompanySite" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">公司情况</td>
- <td class="formValue" colspan="3">
- <input id="CompanyDesc" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">公司地址</td>
- <td class="formValue" colspan="3">
- <input id="CompanyAddress" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">所在省份</td>
- <td class="formValue">
- <div id="Province" type="select" class="ui-select"></div>
- </td>
- <td class="formTitle">所在城市</td>
- <td class="formValue">
- <div id="City" type="select" class="ui-select"></div>
- </td>
- </tr>
- <tr>
- <td class="formTitle">联系人</td>
- <td class="formValue">
- <input id="Contacts" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
- </td>
- <td class="formTitle">手机</td>
- <td class="formValue">
- <input id="Mobile" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">电话</td>
- <td class="formValue">
- <input id="Tel" type="text" class="form-control" />
- </td>
- <td class="formTitle">传真</td>
- <td class="formValue">
- <input id="Fax" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">QQ</td>
- <td class="formValue">
- <input id="QQ" type="text" class="form-control" />
- </td>
- <td class="formTitle">Email</td>
- <td class="formValue">
- <input id="Email" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">微信</td>
- <td class="formValue">
- <input id="Wechat" type="text" class="form-control" />
- </td>
- <td class="formTitle">爱好</td>
- <td class="formValue">
- <input id="Hobby" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">备注</td>
- <td class="formValue" colspan="3">
- <input id="Description" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">创建用户</td>
- <td class="formValue">
- <input id="CreateUserName" type="text" class="form-control" />
- </td>
- <td class="formTitle">创建时间</td>
- <td class="formValue">
- <input id="CreateDate" type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">修改用户</td>
- <td class="formValue">
- <input id="ModifyUserName" type="text" class="form-control" />
- </td>
- <td class="formTitle">修改时间</td>
- <td class="formValue">
- <input id="ModifyDate" type="text" class="form-control" />
- </td>
- </tr>
- </table>
- </div>
|