| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../../Script/Common/huayi.load.js"></script>
- <script src="../../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../../js/webuploader/webuploader.css" />
- <link href="../../js/zTree/zTreeStyle.css" rel="stylesheet" />
- <link href="../../css/init.css" rel="stylesheet" />
- <link href="../css/Search.css" rel="stylesheet">
- <style>
- .my-skin .layui-layer-btn a {
- background-color: #00A4FF;
- border: 1px solid #00A4FF;
- color: #FFF;
- </style>
- <title>分配</title>
- <style type="text/css">
- #tsgl,
- #tszl,
- #cjgl,
- #cjzl {
- display: none;
- }
-
- zxcl input {
- width: 15%;
- }
-
- .addTree {
- height: 300px;
- }
-
- .cpkp input {
- width: 13%;
- height: 30px;
- }
-
- .cpkt {
- font-size: 18px;
- color: #000000;
- }
-
- #abc,
- #abcd,
- #abcde,
- #abcdef {
- display: none;
- }
-
- #btyyj {
- display: none;
- }
-
- .inpBox {
- border: 1px solid #cccccc;
- height: 26px;
- width: 99%;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- position: absolute;
- left: 0px;
- top: 0px;
- z-index: 111;
- background: #FFFFFF;
- }
-
- .selDpart1 {
- position: absolute;
- left: 0px;
- top: 30px;
- z-index: 11111;
- width: 220px;
- line-height: 30px;
- background: #FFFFFF;
- display: none;
- }
-
- #sponsor {
- width: 218px;
- border: 1px solid #00a1cb;
- margin: 0;
- padding: 0;
- list-style: none;
- max-height: 212px;
- overflow-x: hidden;
- overflow-y: scroll;
- }
-
- #sponsor li {
- margin: 0;
- padding-left: 10px;
- width: 220px;
- height: 30px;
- line-height: 30px;
- list-style: none;
- }
-
- #sponsor li:hover {
- background: #00a1cb;
- }
-
- .addTree {
- background: #fff;
- position: absolute;
- width: 100%;
- border: 1px solid darkgrey;
- right: 0;
- top: 20px;
- display: none;
- z-index: 222;
- }
-
- .xl {
- display: inline-block;
- background: url(../../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- cursor: pointer;
- }
-
- .ztree li {
- float: none;
- }
-
- .ztree li span {
- border: none;
- padding: 0;
- }
-
- .inps {
- width: 240px;
- height: 24px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
-
- .Cleans {
- display: inline-block;
- width: 20px;
- position: absolute;
- right: 21px;
- top: 8px;
- display: none;
- }
-
- .Min-width {
- width: 150px;
- }
-
- .btn-default {
- background: #FFFFFF;
- color: #000000;
- }
-
- .shino {
- display: none;
- }
-
- .gcSelDiv,
- .isSelDiv {
- display: none;
- }
-
- #deal_table tr td {
- width: 32%;
- }
- </style>
- </head>
- <body>
- <div class="shade_content">
- <div class="dgxx_table size-13">
- <table id="deal_table" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
- <tr>
- <th>工单编号:</th>
- <td>
- <span style="display: none;" id="wid"></span>
- <a href="#" onclick="goSee()"><span id="cl_gdbh"></span></a>
- </td>
- <th>工单类型:</th>
- <td data-formatter="order" id="cl_gdlx">
- <!-- <span ></span> -->
- </td>
- </tr>
- <tr>
- <th>工单来源:</th>
- <td>
- <span id="xq_source" data-formatter="formatter"></span>
- </td>
- <th>部门:</th>
- <td colspan="3">
- <span id="cl_gdn"></span>
- </td>
- </tr>
- <tr>
- <th>客户姓名:</th>
- <td>
- <span id="cl_khxm"></span>
- </td>
- <th>客户电话:</th>
- <td>
- <span id="cl_khdh"></span>
- </td>
- </tr>
- <tr>
- <th>超时时限:</th>
- <td>
- <div class="chaishi noSampling">
- <input type="radio" name="yanq" disabled="disabled" value="12" checked="checked">12小时
- <input type="radio" name="yanq" value="24">24小时
- <input type="radio" name="yanq" value="36">36小时
- <input type="radio" name="yanq" value="48">48小时
- <input type="radio" name="yanq" value="72">72小时
- <input type="radio" name="yanq" value="120">5天
- <input type="radio" name="yanq" value="168">7天
- <input type="radio" name="yanq" value="264">11天
- <input type="radio" name="yanq" value="384">16天
- </div>
- <div class="chaishi Sampling">
- <input type="radio" name="yanq" value="720">1个月
- <input type="radio" name="yanq" value="2160">3个月
- </div>
- </td>
- <th class="residue" style="display: none;">剩余时间:</th>
- <td class="residueTime residue" style="display: none;"></td>
- <th style="display: none;" id="penli">其他时限:</th>
- <td style="display: none;" id="liset">
- <div id="" class="tex">
- <input type="number" class="form-control input-sm" id="shijian" placeholder="请输入其他时限">
- </div>
- </td>
- </tr>
- <tr>
- <th>是否短信提醒:</th>
- <td>
- <div id="duanxin">
- <input type="radio" name="sms" id="" value="0" />否
- <input type="radio" name="sms" id="" value="1" checked/>是
- </div>
- </td>
- </tr>
- <tr class="js">
- <th class="zy">外线指派部门:</th>
- <th class="pt" style="display: none;">指派部门:</th>
- <td style="position: relative;">
- <div class="inpBox">
- <input type="text" class="inps tree" autocomplete="off" id="clbmname" placeholder="请选择指派部门" onkeyup="darptSearch()" />
- <input type="hidden" class="inps " id="clbm" />
- <i class="Cleans fa fa-close"></i>
- <i class="xl"></i>
- <div class="addTree xlAdd">
- <ul id="zrbmtree" class="ztree"></ul>
- </div>
- </div>
- <div class="selDpart1">
- <ul id="sponsor">
- </ul>
- </div>
- </td>
- <th class="zy">外线接收人:</th>
- <th class="pt" style="display: none;">接收人:</th>
- <td style="position: relative;">
- <div class="inpBox" style="width: 99%;">
- <input type="text" class="inps select" readonly="readonly" id="clidname" placeholder="请选择接收人" />
- <input type="hidden" class="inps " id="clid" />
- <i class="xl"></i>
- <div class="xl_common">
- <ul class="xl_box clid"></ul>
- </div>
- </div>
- </td>
- </tr>
- <tr class="js commonjs">
- <th>内线指派部门:</th>
- <td style="position: relative;">
- <div class="inpBox" style="z-index: 100;">
- <input type="text" class="inps tree" autocomplete="off" id="clbmname2" placeholder="请选择指派部门" onkeyup="darptSearch()" />
- <input type="hidden" class="inps " id="clbm2" />
- <i class="Cleans fa fa-close"></i>
- <i class="xl"></i>
- <div class="addTree xlAdd">
- <ul id="zrbmtree2" class="ztree"></ul>
- </div>
- </div>
- <div class="selDpart1" style="z-index: 10000;">
- <ul id="sponsor">
- </ul>
- </div>
- </td>
- <th>内线接收人:</th>
- <td style="position: relative;">
- <div class="inpBox" style="width: 99%;z-index: 100;">
- <input type="text" class="inps select" readonly="readonly" id="clidname2" placeholder="请选择接收人" />
- <input type="hidden" class="inps " id="clid2" />
- <i class="xl"></i>
- <div class="xl_common">
- <ul class="xl_box clid2"></ul>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <!--<th class="isSelDiv">是否高层办理:</th>
- <td class="isSelDiv">
- <div id="gcDuanxin">
- <input type="radio" name="gcBanli" id="" value="0" checked="checked" />否
- <input type="radio" name="gcBanli" id="" value="1" />是
- </div>
- </td>-->
- <th class="gcSelDiv">接收人:</th>
- <td class="gcSelDiv">
- <select class="form-control" id="gcRevice" data-live-search="true">
- <option value="">请选择工单类型</option>
- </select>
- </td>
- </tr>
- <!--<tr>
- <th style="display: none;" class="fzmoney">返账金额</th>
- <td style="display: none;" class="fzmoney">
- <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
- </td>
- </tr>-->
- <tr>
- <th>处理结果:</th>
- <td colspan="3">
- <div>
- <textarea id="contres" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入处理结果"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>问题原因:</th>
- <td colspan="3">
- <div>
- <textarea id="cont1" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入问题原因"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>责任单位:</th>
- <td colspan="3">
- <div>
- <textarea id="cont2" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入责任单位"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>整改计划:</th>
- <td colspan="3">
- <div>
- <textarea id="cont3" class="form-control" rows="2" style="width:100%; resize: none;" placeholder="请输入整改计划"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>重要级别:</th>
- <td>
- <select class="form-control input-sm " id="level" style="height: 45px;">
- <option value="0">请选择重要级别</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>指派说明:</th>
- <td colspan="3">
- <div>
- <textarea id="cont" class="form-control" name="" rows="3" style="width:100%; resize: none;"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <th>附件:</th>
- <td colspan="3">
- <div id="imgPicker" class="apply_forms_file">+</div>
- <p class="help-block text-warning" style="display:inline-block;">
- <!--<span id="fileNum">0</span>/6 每个文件大小不超过30M-->
- <span id="fileNum1"></span> 每个文件大小不超过30M
- </p>
- <ul id="fileList" class="file_imgs clearfix">
- </ul>
- </td>
- </tr>
- <tr>
- <th style="display: none;" class="fzmoney">返账金额</th>
- <td style="display: none;" class="fzmoney">
- <input class="form-control" id="fzje" type="text" placeholder="请输入返账金额" />
- </td>
- </tr>
- <tr>
- <th class="cph" style="display: none;">返厂车牌号:</th>
- <td class="cph" style="display: none;">
- <input id="fcnum" class="form-control" type="text" placeholder="请输入" />
- </td>
- <th class="cph" style="display: none;">返料费(元):</th>
- <td class="cph" style="display: none;">
- <input id="flfee" class="form-control" type="text" placeholder="请输入" />
- </td>
- </tr>
- <tr>
- <th class="cph" style="display: none;">装车费(元):</th>
- <td class="cph" style="display: none;">
- <input id="zcfee" class="form-control" type="text" placeholder="请输入" />
- </td>
- <th class="cph" style="display: none;">卸车费(元):</th>
- <td class="cph" style="display: none;">
- <input id="xcfee" class="form-control" type="text" placeholder="请输入" />
- </td>
- </tr>
- <tr>
- <th class="cph" style="display: none;">电话号码:</th>
- <td class="cph" style="display: none;">
- <input id="zxphone" class="form-control" type="text" placeholder="请输入" />
- </td>
- </tr>
- <table id="nnn" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
- <tr>
- <th colspan="4">复合肥质量管理科</th>
- </tr>
- <tr>
- <th>确认实收吨数:</th>
- <td>
- <div id="huifang">
- <input type="text" class="form-control" id="fanzha" placeholder="请输入实收吨数" />
- </div>
- </td>
- </tr>
- </table>
- <table id="hhh" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%;display: none; ">
- <tr>
- <th colspan="4">咨询销售内勤</th>
- </tr>
- <tr>
- <th>返账金额:</th>
- <td>
- <div id="huifdu">
- <!--<span id="fanzhaje"></span>-->
- <input type="text" class="form-control" id="fanzhaje" readonly="readonly" />
- </div>
- </td>
- </tr>
- <tr>
- <th>确认返账金额:</th>
- <td>
- <div id="huifdu">
- <input type="text" class="form-control" id="qrfanzha" placeholder="请输入金额" />
- </div>
- </td>
- </tr>
- </table>
- <!--<table id="ddd" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
- <tr>
- <th colspan="4">咨询类质量管理部</th>
- </tr>
- <tr>
- <th>索赔金额:</th>
- <td>
- <input type="text" class="form-control selectpicker" id="suopei" placeholder="单位:元" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
- </td>
- </tr>
- <tr>
- <th>补偿方式:</th>
- <td>
- <div id="buchang">
- <input type="radio" name="buchang" value="实物" checked="checked">实物
- <input type="radio" name="buchang" value="钱款">钱款
- </div>
- </td>
- <th style="display: none;" class="mmm">补偿钱款:</th>
- <td style="display: none;" class="mmm">
- <input type="text" name="" id="butong" value="" class="form-control selectpicker" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" placeholder="请输入补偿钱款" />
- </td>
- </tr>
- <tr>
- <th>改进要求:</th>
- <td>
- <input type="text" id="yaoqiu" value="" placeholder="请输入改进要求" class="form-control selectpicker" />
- </td>
- <th>对应办理工作流单号:</th>
- <td>
- <input type="text" id="danhao" value="" placeholder="请输入工作流单号" class="form-control selectpicker">
- </td>
- </tr>
- </table>-->
- <table id="abc" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
- <tr>
- <th colspan="4" id="bazaar">投诉、业务协办类市场管理科</th>
- </tr>
- <tr>
- <th>处理意见:</th>
- <td>
- <select class="form-control selectpicker" id="zhibao">
- <option value="">请选择</option>
- </select>
- </td>
- <th>索赔金额:</th>
- <td>
- <div id="">
- <input type="text" name="" id="suopeijin" value="" class="form-control selectpicker" placeholder="请输入金额/单位元" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
- </div>
- </td>
- </tr>
- </table>
- <table id="abcd" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
- <tr>
- <th class="huayan" style="display: none;">化验是否合格:</th>
- <td class="huayan" style="display: none;">
- <div id="hua_yan">
- <input type="radio" name="radio" id="" value="0" checked="checked" />合格
- <input type="radio" name="radio" id="" value="1" />不合格
- </div>
- </td>
- </tr>
- </table>
- <table id="abcde" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; display: none;">
- <tr>
- <th colspan="4" id="bazaar2">抽检类市场管理科</th>
- </tr>
- <tr>
- <th>抽检结果:</th>
- <td>
- <div id="choujian">
- <select class="form-control selectpicker" id="chou"></select>
- </div>
- </td>
- <th>自检结果:</th>
- <td>
- <input type="text" class="form-control" id="zijian" placeholder="请输入自检结果" />
- </td>
- </tr>
- <tr>
- <th>对应办理工作流单号:</th>
- <td>
- <input type="text" class="form-control" id="duiying" placeholder="请输入工作流单号" />
- </td>
- <th>确认返账金额:</th>
- <td>
- <input type="text" class="form-control" id="shenpi" placeholder="请输入返账金额" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')" />
- </td>
- </tr>
- </table>
- <table id="abcdef" class="_table1 table table-bordered table-hover " border="0" cellspacing="0" cellpadding="0" style="width: 100%; ">
- <tr>
- <th colspan="4" id="bazaar3">抽检类质量管理部</th>
- </tr>
- <tr>
- <th>是否备案:</th>
- <td>
- <div id="bianin">
- <input type="radio" name="beian" value="已备案" />已备案
- <input type="radio" name="beian" value="未备案" />未备案
- </div>
- </td>
- </tr>
- </table>
- </table>
- </div>
- <div class="cpk" style="display: none;text-align: center;">
- <p class="cpkt">成品库</p>
- <p class="cpkp">
- <span>物料编码</span>
- <input type="text" class="code" />
- <span>产品名称</span>
- <input type="text" class="name1" />
- <span>配方</span>
- <input type="text" class="pf" />
- <span>规格</span>
- <input type="text" class="guige" />
- <span>实收返厂数量(吨)</span>
- <input type="number" class="num" />
- <button class="btn btn-primary btn-sm" id="onadd">增加</button>
- </p>
- </div>
- <!--<div id="zxcl" class="cph" style="margin: 0 1%;display: none;">
- </div>-->
- <div class="clearfix wh_btn">
- <input type="button" value="提交工单" class="btn btn-primary btn-sm" id="clgd" />
- <input type="button" value="暂存工单" class="btn btn-primary btn-sm" id="zcgd" />
- <!--<input type="button" value="暂存工单" class="btn btn-primary btn-sm" id="hh" />-->
- </div>
- </div>
- <script src="../../js/autosize/autosize.js"></script>
- <script src="../../js/zTree/jquery.ztree.core.js"></script>
- <script src="../../js/webuploader/webuploader.min.js"></script>
- <script src="./js/WorkOrderTransfer.js?v=0.1"></script>
- <script>
- $("#onadd").click(function() {
- $(".cpk").append('<p class="cpkp"><span>物料编码</span><input style="margin:0 3px" type="text" class="code"/><span>产品名称</span><input style="margin:0 3px" type="text" class="name1"/><span>配方</span><input style="margin:0 3px" type="text" class="pf"/><span>规格</span><input style="margin:0 3px" type="text" class="guige"/><span>实收返厂数量(吨)</span><input style="margin:0 3px" type="number" class="num"/><button class="btn btn-primary btn-sm" onclick="ondel(this)">移除</button></p>')
- })
- function ondel(obj) {
- $(obj).parent().remove()
- }
- function goSee() {
- var tourl = 'orderDetails.html?oid=' + $("#wid").text();
- window.open(tourl)
- }
- // $("#hh").click(function() {
- // layer.open({
- // shadeClose: true,
- // type: 2,
- // title: '内线处理方式',
- // maxmin: true, //开启最大化最小化按钮
- // area: ['80%', '90%'],
- // content: '../../WorkOrder/commonHtml/handleMethod.html'
- // });
- // })
- $(document).on('blur', '.code', function() {
- console.log($(this).val())
- var this_ = $(this);
- $.getJSON(huayi.config.callcenter_url + "MaterialManage/GetCodeModel", {
- code: $(this).val(),
- token: $.cookie("token")
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- data = data.data;
- if(data) {
- this_.parent().find(".name1").val(data.model.F_MaterialName); //物料名称
- this_.parent().find(".pf").val(data.model.F_Model); //型号
- this_.parent().find(".guige").val(data.model.F_Specs); //规格
- } else {
- this_.parent().find(".name1").val(''); //物料名称
- this_.parent().find(".pf").val(''); //型号
- this_.parent().find(".guige").val(''); //规格
- }
- }
- });
- });
- </script>
- </body>
- </html>
|