hjg
2024-02-05 301115d5e96b56cd093eee3fcff2d60a15184162
提交 | 用户 | 时间
58d006 1 /**
A 2 * date: 
3 * author: neeler
4 */
5
6 //test data start
7 // var data_getcheckItem = Mock.mock('/business/common/getcheckItem.htm', {"wdList":[{"id":"a05f74eb-db2a-40d8-9523-cac64e7ad0bd","poundNo":"E001002201711020002","businessNo":"BO201711020002","tareWeighman":"自动称重","tare":16680.0,"taretime":"2017-11-02 07:59","grossWeighman":"自动称重","gross":85560.0,"grosstime":"2017-11-02 09:12","fubang":0.0,"fubangtime":null,"weight":68880.0,"subtra1":0.0,"subtra2":0.0,"worsebang":0.0,"cardID":"3220065529","vehicleID":"豫AE8500","whousename":"老厂2#地磅","whouseNo":"01002","tarePound":"01002","grossPound":"01002","tareFrom":"auto","lastSaveTime":"2017-11-02 09:12","note":null,"grossFrom":"auto","tares":"16680,","tareTimes":"2017-11-02 07:59:11,","grosses":"85560,","grossTimes":"2017-11-02 09:12:35,","weightStyle":"两次去皮","fromunitno":"10","tounitno":"32","fromunitname":"板带一分厂","tounitname":"河南明泰科技发展有限公司","materialguige":"1.47*1250*2500","materialname":"1系热轧板","materialno":"C1S001","balanceWeight":null,"primaryNetWeight":null,"wdstate":"正常","destroyTime":null,"destroyer":null,"batchNo":"01006_20171102075917","canfub":false,"vtexception":"0","vgexception":"0","vwexception":"0"}],"imgList":[],"item":{"phone":"13513713595","checkLastAresult":null,"tstatus":"集团内流转","btname":"成品转运出","paperno":null,"rcID":"32","instanceID":"5470548","passer":null,"kouzhong":"0.0","adversions":null,"weatherinfo":null,"wuzis":"半成品","weightype":null,"checkCnames":null,"loading":false,"class":"class com.mandi.businessprocess.persist.Bussinesssheet","poundweight":"0.0","entryDate":null,"ctime":"2017-11-02 07:59","checkLastcName":null,"checkLastcTime":null,"sdepartNo":"01","ddtime":"2017-11-02 07:59","spareanames":"河南明泰","invitecode":"","canedit":"可编辑","cardno":"3220065529","factory":"0","sccheck":false,"sstatus":"结束","weighing":"true","worsebang":"0.0","processKey":"business_process","cwcheck":false,"tzworsebang":"0.0","spareaids":"4bd02301-096e-4512-9c36-26921b91796b","bussinessNo":"BO201711020002","cdepartid":"42","fctime":"2017-11-02 07:59","outterDate":null,"checkcTimes":null,"ystime":"0","id":"66e7a00a-84bb-4a84-bc9e-8e4d6b531296","numberplates":"豫AE8500","batchNo":null,"indx":"1","advfinish":"true","passerCardno":null,"driver":"王建周","note":null,"direct":"out","originno":null,"rcompany":"河南明泰科技发展有限公司","dcID":"10","companytype":"0","Weighing":true,"cdepart":"板带一分厂","spNos":null,"vstatus":"已入厂","weights":"0.0","createid":"87ea3f7f-d168-43f1-b886-bf1df2c9e2fa","btNo":"businesstype00023","stype":"计划单","btid":"26","dcompany":"板带一分厂","cname":"自助服务"},"mList":[{"id":"78dcd403-9b1d-48c7-a723-b521e237d546","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.47*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1909.0,"price":0.0,"preweight":1909.0,"pici":"GFA1710N50149-4","hejin":"5052","gross":"1972.0","taotong":"夹纸 PI","taotongWeight":"63.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"0215246a-f7ba-4c59-8d0b-cdd316a669c4","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":1,"barcode":"1711000681"},{"id":"95141fc2-5971-48e9-803e-54ea0218cfdb","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.47*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1910.0,"price":0.0,"preweight":1910.0,"pici":"GFA1710N50149-3","hejin":"5052","gross":"1975.0","taotong":"夹纸 PI","taotongWeight":"65.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"8c443578-fdd4-4c3d-8b1e-e8a4dde583d1","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":2,"barcode":"1711000639"},{"id":"d25c54b9-b4fd-4b70-b0fe-c4738daee41f","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.47*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1821.0,"price":0.0,"preweight":1821.0,"pici":"GFA1710N50149-5","hejin":"5052","gross":"1887.0","taotong":"夹纸 PI","taotongWeight":"66.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"6a2c7176-af22-4699-8b19-4ff19d37f53c","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":3,"barcode":"1711000682"},{"id":"e85d1c4d-012d-4d5e-ad40-2c70d5fa35fe","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.47*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1907.0,"price":0.0,"preweight":1907.0,"pici":"GFA1710N50149-2","hejin":"5052","gross":"1972.0","taotong":"夹纸 PI","taotongWeight":"65.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"9b483571-dba7-4317-8222-f0dbcb101b08","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":4,"barcode":"1711000623"},{"id":"99e773e3-b2d4-4578-ba82-810af890b51f","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.47*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1905.0,"price":0.0,"preweight":1905.0,"pici":"GFA1710N50149-1","hejin":"5052","gross":"1969.0","taotong":"夹纸 PI","taotongWeight":"64.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"197ad6ff-4d60-4a84-9a18-8e7e32838591","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":5,"barcode":"1711000619"},{"id":"ce736e11-5636-43bf-8c67-1113c877165c","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.96*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1912.0,"price":0.0,"preweight":1912.0,"pici":"GFA1710N50150-5","hejin":"5052","gross":"1978.0","taotong":"夹纸 PI","taotongWeight":"66.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"9353ed15-05a7-44b1-9dfd-579de61ef313","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":6,"barcode":"1711000566"},{"id":"ab9fc3f1-c685-4795-86cf-ca8e78dcc8a3","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.96*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1961.0,"price":0.0,"preweight":1961.0,"pici":"GFA1710N50150-4","hejin":"5052","gross":"2027.0","taotong":"夹纸 PI","taotongWeight":"66.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"8caa55aa-3cb2-4f03-999e-d80733c126de","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":7,"barcode":"1711000564"},{"id":"6b31d089-ec36-4223-831b-5c744360a42e","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.96*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1962.0,"price":0.0,"preweight":1962.0,"pici":"GFA1710N50150-3","hejin":"5052","gross":"2028.0","taotong":"夹纸 PI","taotongWeight":"66.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"86f71344-60fd-41cd-a6fd-f07eec3099fb","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":8,"barcode":"1711000563"},{"id":"438d6d99-0237-4cb3-abc9-aa835f2e19f9","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.96*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1962.0,"price":0.0,"preweight":1962.0,"pici":"GFA1710N50150-2","hejin":"5052","gross":"2026.0","taotong":"夹纸 PI","taotongWeight":"64.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"9edd333a-b0e9-4702-9c86-821b61782a24","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":9,"barcode":"1711000544"},{"id":"240c141e-e5c1-47a9-aeaf-54d725ad7ecc","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.96*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1963.0,"price":0.0,"preweight":1963.0,"pici":"GFA1710N50150-1","hejin":"5052","gross":"2027.0","taotong":"夹纸 PI","taotongWeight":"64.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"367fb963-1c15-450e-8928-cd452215ee20","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":10,"barcode":"1711000543"},{"id":"055af57f-0277-4de8-a25d-dac53f1b5407","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1413.0,"price":0.0,"preweight":1413.0,"pici":"GFA1710N10294-8","hejin":"1060","gross":"1451.0","taotong":"夹纸 PI","taotongWeight":"38.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"5dc306f7-dde9-4027-9063-925750834069","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":11,"barcode":"1711000524"},{"id":"0b9a80d7-d797-4baf-a830-b80c919cf7c9","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1413.0,"price":0.0,"preweight":1413.0,"pici":"GFA1710N10294-7","hejin":"1060","gross":"1451.0","taotong":"夹纸 PI","taotongWeight":"38.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"6139bf73-3331-4b9a-8b8f-f7664da1a7ed","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":12,"barcode":"1711000521"},{"id":"bcc41362-847d-41a6-986f-450f4ec3326d","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1413.0,"price":0.0,"preweight":1413.0,"pici":"GFA1710N10294-6","hejin":"1060","gross":"1443.0","taotong":"夹纸 PI","taotongWeight":"30.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"21ff59d7-ed89-471b-acc1-948f3c262d7a","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":13,"barcode":"1711000492"},{"id":"f0e8369e-1ee1-4d9f-aab4-203094d2afeb","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1414.0,"price":0.0,"preweight":1414.0,"pici":"GFA1710N10294-5","hejin":"1060","gross":"1449.0","taotong":"夹纸 PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"984632ae-8f62-4692-837f-02072522482d","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":14,"barcode":"1711000491"},{"id":"d62050bd-45ee-4ffb-a9f3-d6209b0d5cf2","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1411.0,"price":0.0,"preweight":1411.0,"pici":"GFA1710N10294-4","hejin":"1060","gross":"1446.0","taotong":"夹纸 PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"5d1dafec-99ab-4186-bf4c-ca58411a22f5","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":15,"barcode":"1711000471"},{"id":"3e69233c-fd98-42bf-ba1d-0a07a3bbe418","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1414.0,"price":0.0,"preweight":1414.0,"pici":"GFA1710N10294-3","hejin":"1060","gross":"1448.0","taotong":"夹纸 PI","taotongWeight":"34.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"7142be66-41fa-4863-a4c7-8b829b502aa5","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":16,"barcode":"1711000470"},{"id":"5656a762-88af-4cd1-8e2e-db1c2db49ca9","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1412.0,"price":0.0,"preweight":1412.0,"pici":"GFA1710N10294-2","hejin":"1060","gross":"1443.0","taotong":"夹纸 PI","taotongWeight":"31.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"5ad4c24d-50dd-482b-9116-e512dbd8e734","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":17,"barcode":"1711000455"},{"id":"21f25c5b-39f2-4b79-98e5-9e6c268a143f","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"0.83*1070*1270","unitname":"kg","num":1.0,"note":null,"weight":1412.0,"price":0.0,"preweight":1412.0,"pici":"GFA1710N10294-1","hejin":"1060","gross":"1445.0","taotong":"夹纸 PI","taotongWeight":"33.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"d5ce6b82-e7d9-4ed7-be27-5cb60aaa93af","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":18,"barcode":"1711000454"},{"id":"5849482c-5522-4523-8a7d-9f98f40fea41","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.5*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1741.0,"price":0.0,"preweight":1741.0,"pici":"GFA1710N50104-4","hejin":"5052","gross":"1801.0","taotong":"单蓝50/1-BLUE","taotongWeight":"60.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"9a57107d-1558-4a27-be74-0f7e359d768e","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":19,"barcode":"1711000338"},{"id":"8498b1c2-290f-4d91-bdbe-618df6eb33fd","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.5*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1743.0,"price":0.0,"preweight":1743.0,"pici":"GFA1710N50104-3","hejin":"5052","gross":"1802.0","taotong":"单蓝50/1-BLUE","taotongWeight":"59.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"53f323bf-0627-4c14-9711-a18f182b8a49","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":20,"barcode":"1711000337"},{"id":"e9c1fe74-9e92-4b41-a330-8a35fe6e04f0","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.5*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1744.0,"price":0.0,"preweight":1744.0,"pici":"GFA1710N50104-2","hejin":"5052","gross":"1803.0","taotong":"单蓝50/1-BLUE","taotongWeight":"59.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"70025463-96f4-445c-a701-5742c92493ae","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":21,"barcode":"1711000328"},{"id":"e8854925-df01-47b7-ab6f-805b255ff57b","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.5*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1565.0,"price":0.0,"preweight":1565.0,"pici":"GFA1710N50104-5","hejin":"5052","gross":"1625.0","taotong":"单蓝50/1-BLUE","taotongWeight":"60.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"875ae99e-d246-4338-ad86-7c30e59622df","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":22,"barcode":"1711000319"},{"id":"5df6d8b5-429d-4100-9d2d-db97305d0527","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"1.5*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1731.0,"price":0.0,"preweight":1731.0,"pici":"GFA1710N50104-1","hejin":"5052","gross":"1795.0","taotong":"单蓝50/1-BLUE","taotongWeight":"64.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"7efadaff-de42-4e4c-adf6-edb4051bbc2f","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":23,"barcode":"1711000318"},{"id":"a41a6455-d642-4962-af86-7d2b4c585f76","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1340.0,"price":0.0,"preweight":1340.0,"pici":"GFA1710N10199-6","hejin":"1050A","gross":"1375.0","taotong":"不夹纸 NO PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"be553e5d-eea9-4d66-89a5-ec73b288bdc7","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":24,"barcode":"1711000126"},{"id":"8fbc3683-574c-4235-a9a3-6c0c44dc52a3","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1498.0,"price":0.0,"preweight":1498.0,"pici":"GFA1710N10199-5","hejin":"1050A","gross":"1534.0","taotong":"不夹纸 NO PI","taotongWeight":"36.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"b0b6899e-e1e9-442c-ba8f-2208e9c21db9","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":25,"barcode":"1711000085"},{"id":"189eab16-dd27-4868-8db6-d00276f1a877","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1487.0,"price":0.0,"preweight":1487.0,"pici":"GFA1710N10199-2","hejin":"1050A","gross":"1522.0","taotong":"不夹纸 NO PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:08","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"01809a9f-a62d-4ef4-b2a1-2fc647a36e6d","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":26,"barcode":"1711000082"},{"id":"2fb5a129-b3ef-4783-9a63-df001908d2f2","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"3.0*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1430.0,"price":0.0,"preweight":1430.0,"pici":"GFA1710N50138-6","hejin":"5052","gross":"1502.0","taotong":"单蓝50/1-BLUE","taotongWeight":"72.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"10f022c0-51b2-461b-ad12-8e9dc35d2e33","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":27,"barcode":"1711000848"},{"id":"a2494d82-dce8-4abe-ad45-150851789a13","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"3.0*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1706.0,"price":0.0,"preweight":1706.0,"pici":"GFA1710N50138-3","hejin":"5052","gross":"1773.0","taotong":"单蓝50/1-BLUE","taotongWeight":"67.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"e70f2603-130b-4164-8f4f-d953887b9e83","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":28,"barcode":"1711000843"},{"id":"c6ba9467-8804-469c-973a-46fe0f915caf","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"3.0*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1682.0,"price":0.0,"preweight":1682.0,"pici":"GFA1710N50138-2","hejin":"5052","gross":"1749.0","taotong":"单蓝50/1-BLUE","taotongWeight":"67.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"cfb3d4bc-201d-45c1-9b8b-5adb355c39c1","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":29,"barcode":"1711000836"},{"id":"e97de6af-79aa-4662-969d-b9b6d4871a0a","bussinessNo":"BO201711020002","name":"5系热轧板","materielNo":"D5S001","norms":"3.0*1250*2500","unitname":"kg","num":1.0,"note":null,"weight":1707.0,"price":0.0,"preweight":1707.0,"pici":"GFA1710N50138-1","hejin":"5052","gross":"1773.0","taotong":"单蓝50/1-BLUE","taotongWeight":"66.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"bbd131a3-ade8-4dca-a2cf-d621181977e8","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":30,"barcode":"1711000825"},{"id":"a2e6db46-658f-42ea-bdf6-65be529d9844","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1420.0,"price":0.0,"preweight":1420.0,"pici":"GFA1710N10273-3","hejin":"1060","gross":"1455.0","taotong":"夹纸 PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"2ca4ae32-7bff-404b-b86a-bfbf58c7389d","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":31,"barcode":"1711000441"},{"id":"21e9620b-dfba-4d03-a098-683cfe5898d1","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1421.0,"price":0.0,"preweight":1421.0,"pici":"GFA1710N10273-4","hejin":"1060","gross":"1456.0","taotong":"夹纸 PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"b53a2c73-a088-4834-bfd1-04734f3fdc4b","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":32,"barcode":"1711000440"},{"id":"2fd10843-9408-4aee-8b9b-1ad190eaa089","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1422.0,"price":0.0,"preweight":1422.0,"pici":"GFA1710N10273-5","hejin":"1060","gross":"1456.0","taotong":"夹纸 PI","taotongWeight":"34.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"69285ffe-c7c4-489e-8aa1-299cff2ae767","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":33,"barcode":"1711000438"},{"id":"8c4b5e1d-d903-4c0a-ba46-c4dc2789fa7c","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1422.0,"price":0.0,"preweight":1422.0,"pici":"GFA1710N10273-6","hejin":"1060","gross":"1458.0","taotong":"夹纸 PI","taotongWeight":"36.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"bec2ad25-43b8-4e90-9798-a4eb4cee868c","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":34,"barcode":"1711000445"},{"id":"f626bc9d-65b6-4916-9d13-e3bd5c724a38","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1402.0,"price":0.0,"preweight":1402.0,"pici":"GFA1710N10273-2","hejin":"1060","gross":"1435.0","taotong":"夹纸 PI","taotongWeight":"33.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"978d95f4-7069-4a05-926a-f93e8fe70955","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":35,"barcode":"1711000420"},{"id":"786be5a4-8402-4b50-b4ab-6dfac256c107","bussinessNo":"BO201711020002","name":"1系热轧板","materielNo":"D1S001","norms":"0.83*1020*1320","unitname":"kg","num":1.0,"note":null,"weight":1391.0,"price":0.0,"preweight":1391.0,"pici":"GFA1710N10273-1","hejin":"1060","gross":"1426.0","taotong":"夹纸 PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 08:20","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"36d08c90-f74a-4bd7-944b-5ed11f62c812","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":36,"barcode":"1711000419"},{"id":"e5aadce8-a002-48e9-a521-0a09a644b7ba","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1495.0,"price":0.0,"preweight":1495.0,"pici":"GFA1710N10199-4","hejin":"1050A","gross":"1530.0","taotong":"不夹纸 NO PI","taotongWeight":"35.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 09:01","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"e5706ce4-ba5a-482c-9718-d24c80eea2c6","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":37,"barcode":"1711000106"},{"id":"5143aac1-9f80-4b81-96e0-dcd25a4f33d6","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1487.0,"price":0.0,"preweight":1487.0,"pici":"GFA1710N10199-3","hejin":"1050A","gross":"1520.0","taotong":"不夹纸 NO PI","taotongWeight":"33.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 09:01","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"9497e22a-28c8-4ef3-8938-f9ec4ec652a9","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":38,"barcode":"1711000083"},{"id":"d3d0e2c3-1543-441d-ae00-48fa25dd4b18","bussinessNo":"BO201711020002","name":"1系铸轧板","materielNo":"C1S001","norms":"1.5*990*1460","unitname":"kg","num":1.0,"note":null,"weight":1487.0,"price":0.0,"preweight":1487.0,"pici":"GFA1710N10199-1","hejin":"1050A","gross":"1520.0","taotong":"不夹纸 NO PI","taotongWeight":"33.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 09:01","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"1c747301-1806-4507-81fe-a0fd1e782f15","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":39,"barcode":"1711000079"},{"id":"8b3b805c-0172-4903-bd61-89c33c7673b1","bussinessNo":"BO201711020002","name":"3系铸轧板","materielNo":"C3S001","norms":"1.5*1220*2440","unitname":"kg","num":1.0,"note":null,"weight":2028.0,"price":0.0,"preweight":2028.0,"pici":"GFA1710N30042-3","hejin":"3003","gross":"2087.0","taotong":"不夹纸 NO PI","taotongWeight":"59.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 09:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"20dc1845-d242-4ed7-884d-58fb34f79899","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":40,"barcode":"1711000206"},{"id":"118b0d00-148c-4a06-a943-62f00ab055f8","bussinessNo":"BO201711020002","name":"3系铸轧板","materielNo":"C3S001","norms":"1.5*1220*2440","unitname":"kg","num":1.0,"note":null,"weight":2027.0,"price":0.0,"preweight":2027.0,"pici":"GFA1710N30042-2","hejin":"3003","gross":"2095.0","taotong":"不夹纸 NO PI","taotongWeight":"68.0","money":0.0,"createid":"b483ea36-4a4c-4363-9fe3-fa89f9249d27","cname":"孙海莹","cdepartid":42,"cdepart":"板带一分厂","ctime":"2017-11-02 09:07","loadbuild":false,"factory":false,"fachang":true,"fcnum":0.0,"product_billNo":null,"product_serialNo":null,"product_otherNo":null,"product_ywrq":null,"product_flh":null,"reserved11":0.0,"reserved12":0.0,"reserved13":0.0,"reserved14":null,"reserved15":null,"reserved16":"6e170977-2f42-4824-83ab-3f17eb0aa515","recompany":"河南明泰科技发展有限公司","reID":"32","decompany":"板带一分厂","deID":"42","rcompany":"河南明泰科技发展有限公司","rID":"32","frombatch":"条码称重系统","jsnum":0.0,"forshowindx":41,"barcode":"1711000193"}],"code":0})
8 // var data_tasklist = Mock.mock('/activiti/bussiness/busi/tasklist.htm', {"list":[{"bsNo":"BO201711020002","bsType":"车辆运输单","orderNo":1,"state":1,"taskID":"5470584","taskName":"weight","tasker":null,"ctime":"2017-11-02 09:14","assignee":"","assigneeDepart":null,"candidateDeparts":null,"candidateUsers":null,"note":"磅房称重"},{"bsNo":"BO201711020002","bsType":"车辆运输单","orderNo":2,"state":1,"taskID":"5475510","taskName":"guardaudit","tasker":null,"ctime":"2017-11-02 09:15","assignee":"127a47ee-1972-44b2-bd81-612136c5f381","assigneeDepart":null,"candidateDeparts":null,"candidateUsers":null,"note":"检查出门"}],"code":0})
9 // var data_getWeightDocList = Mock.mock('/business/search/getWeightDocList.htm', {"list":[{"id":"a05f74eb-db2a-40d8-9523-cac64e7ad0bd","poundNo":"E001002201711020002","businessNo":"BO201711020002","tareWeighman":"自动称重","tare":16680.0,"taretime":"2017-11-02 07:59","grossWeighman":"自动称重","gross":85560.0,"grosstime":"2017-11-02 09:12","fubang":0.0,"fubangtime":null,"weight":68880.0,"subtra1":0.0,"subtra2":0.0,"worsebang":0.0,"cardID":"3220065529","vehicleID":"豫AE8500","whousename":"老厂2#地磅","whouseNo":"01002","tarePound":"01002","grossPound":"01002","tareFrom":"auto","lastSaveTime":"2017-11-02 09:12","note":null,"grossFrom":"auto","tares":"16680,","tareTimes":"2017-11-02 07:59:11,","grosses":"85560,","grossTimes":"2017-11-02 09:12:35,","weightStyle":"两次去皮","fromunitno":"10","tounitno":"32","fromunitname":"板带一分厂","tounitname":"河南明泰科技发展有限公司","materialguige":"1.47*1250*2500","materialname":"1系热轧板","materialno":"C1S001","balanceWeight":null,"primaryNetWeight":null,"wdstate":"正常","destroyTime":null,"destroyer":null,"batchNo":"01006_20171102075917","canfub":false,"vtexception":"0","vgexception":"0","vwexception":"0"}],"code":0})
10 // var data_getAuditList = Mock.mock('/business/search/getAuditList.htm', {"rowCount":0,"pagesize":0,"pages":0,"page":0,"items":null,"list":[{"id":"1c217c8f-4618-417f-b87e-175ec34006a9","bussinessNo":"WP201711010013","btid":18,"btname":"废旧物资处理","opinions":"审核通过!","createid":"b49839bf-86c0-454f-a17b-744d196c3f51","cname":"席笑艳","cdepartid":33,"cdepart":"企管部","ctime":"2017-11-01 17:30","aresult":"同意"}],"hint":null,"errmsg":null,"code":0})
11 //test data end
12
13 var STYPE = {'计划单': '计划数据', '后补单': '现场数据'};
14 var SSTATUS = {'在办': '立即办理', '待办': '顺序办理', '挂起': '挂起', '终止': '终止', '结束': '结束', '归档': '归档', '待返厂': '待返厂'}
15 var SDNOS = ['businesstype00008', 'businesstype00010', 'businesstype00014'];
16
17 var Obj = {
18     bussinessNo: '',
19     btname: '',
20     dcompany: '',
21     rcompany: '',
22     fctime: '',
23     ystime: '',
24     ddtime: '',
25     numberplates: '',
26     driver: '',
27     phone: '',
28     spareanames: '',
29     cname: '',
30     cdepart: '',
31     ctime: '',
32     cardno: '',
33     paperno: '',
34     stype: '',
35     sstatus: ''
36 }
37
38 window.I = {
39     idv: $('#_id').val(),
40     businessNov: $('#_businessNo').val(),
41     lauBtn: $('#lauBtn'),
42     plBtn: $('#plBtn'),
43     modal: $('#modal'),
44     fixedPound: $('#fixedPound'),
45     bindPound: $('#bindPound'),
46     wdModal: $('#wdModal'),
47     sdate: $('#sdate'),
48     edate: $('#edate'),
49     searchBtn: $('#searchBtn')
50 }
51
52 var ViewModel = function() {
53     var self = this;
54     self.o = ko.observable(ko.mapping.fromJS(Obj));
55     self.taskList = ko.observableArray();
56     self.arList = ko.observableArray();
57     self.mList = ko.observableArray();
58     self.bwList = ko.observableArray();
59     self.pList = ko.observableArray();
60     self.poundDetails = function(item) {
61         newTab2(item);
62     }
63     self.hasValid = ko.observable(false);
64     self.canEdit = ko.observable($.getUrlParam('bindPound') == 'true');
65     self.unbind = function(item) {
66         unbindConfirm(item);
67     }
68     self.wList = ko.observableArray();
69     self.keyword = ko.observable();
70     self.bindPound = function(item) {
71         doBindPound(item);
72     }
73
74     self.showSD = ko.observable(false);
75 }
76
77 $(function () {
78     window.vm = new ViewModel();
79     ko.applyBindings(vm);
80     autoWidth();
81     colorboxInit();
82     // if (!!I.idv) {
83     //     getItem(I.idv);
84     // }
85     if (!!I.businessNov) {
86         getItem(I.businessNov);        
87         getNodeList(I.businessNov);
88         getAuditList(I.businessNov);
89         // getWeightDocList(I.businessNov);
90         // getPlanItem();
91     }
92     pageInit();
93 });
94
95 function pageInit() {
96     I.searchBtn.click(function (e) { 
97         e.preventDefault();
98         getPoundList(I.businessNov, vm.keyword(), I.sdate.val(), I.edate.val());
99     });
100     I.sdate.val(new Date((new Date().getTime() - 7*24*3600*1000)).Format('yyyy-MM-dd'));
101     I.edate.val(new Date().Format('yyyy-MM-dd'));
102     I.fixedPound.click(function (e) { 
103         e.preventDefault();
104         validMessage();
105     });
106     I.bindPound.click(function (e) { 
107         e.preventDefault();
108         I.wdModal.modal('show');
109     });
110     I.lauBtn.click(function (e) { 
111         e.preventDefault();
112         newTab(I.idv, I.businessNov);
113     });
114     I.plBtn.click(function (e) { 
115         e.preventDefault();
116         I.modal.modal('show');
117     });
118 }
119
120 function getItem(id) {
121     $.post("/business/common/getcheckItem.htm", {id: id},
122         function (data, textStatus, jqXHR) {
123             if (data.code >= 1) {
124                 //parent.showErrmsg(data.errmsg);
125                 swal({title:'',text:data.errmsg,type:'error',confirmButtonText:'确定'}); 
126             }
127             if (data.code == 0) {
128                 if (isList(data.mList)) {
129                     $.each(data.mList, function (index, value) { 
130                         vm.mList.push(ko.mapping.fromJS(value));
131                     });
132                 }
133                 vm.showSD(SDNOS.indexOf(data.item.btNo) != -1);
134                 data.item.stype = STYPE[data.item.stype];
135                 data.item.sstatus = SSTATUS[data.item.sstatus];
136                 vm.o(ko.mapping.fromJS(data.item));
137             }
138             if (!!I.businessNov) {
139                 getWeightDocList(I.businessNov);
140             }
141             // vm.pvList(data.item.spareaids.split(','));
142         },
143         "json"
144     );
145 }
146
147 function newTab2(item) {
148     parent.closableTab.addTab({
149         'id': new Date().getTime(),
150         'name': '磅单详情',
151         'url': '/basic/weightDocDetails.jsf?poundNo=' + item.poundNo,
152         'closable': true
153     });
154 }
155
156 function getNodeList(businessNo, sheetType) {
157     $.post("/activiti/bussiness/busi/tasklist.htm", {
158         businessNo: businessNo,
159         sheetType: sheetType
160     },
161         function (data, textStatus, jqXHR) {
162             if (data.code >= 1) {
163                 //parent.showErrmsg(data.errmsg);
164                 swal({title:'',text:data.errmsg,type:'error',confirmButtonText:'确定'}); 
165                 return;
166             }
167             if (data.code == 0) {
168                 if (isList(data.list)) {
169                     $.each(data.list, function (index, value) { 
170                         value.isLast = index == data.list.length - 1;
171                         vm.taskList.push(value); 
172                     });
173                 }
174                 return;
175             }
176         },
177         "json"
178     );
179 }
180
181 function getAuditList(bussinessNo) {
182     $.post("/business/search/getAuditList.htm", {bussinessNo: bussinessNo},
183         function (data, textStatus, jqXHR) {
184             if (data.code >= 1) {
185                 //showErrmsg(data.errmsg);
186                 swal({title:'',text:data.errmsg,type:'error',confirmButtonText:'确定'}); 
187                 return;
188             }
189             if (data.code == 0) {
190                 if (isList(data.list)) {
191                     $.each(data.list, function (index, value) { 
192                         vm.arList.push(value); 
193                     });
194                 }
195                 return;
196             }
197         },
198         "json"
199     );
200 }
201
202 function getWeightDocList(bussinessNo) {
203     $.post("/business/search/getWeightDocList.htm", {bussinessNo: bussinessNo},
204         function (data, textStatus, jqXHR) {
205             if (data.code >= 1) {
206                 //showErrmsg(data.errmsg);
207                 swal({title:'',text:data.errmsg,type:'error',confirmButtonText:'确定'}); 
208                 return;
209             }
210             if (data.code == 0) {
211                 if (isList(data.list)) {
212                     $.each(data.list, function (index, value) { 
213                         vm.bwList.push(value); 
214                     });
215                 }
216                 setStatus();
217                 return;
218             }
219         },
220         "json"
221     );
222 }
223
224 function colorboxInit() {
225     var $overflow = '';
226     var colorbox_params = {
227         rel: 'colorbox',
228         reposition:true,
229         scalePhotos:true,
230         scrolling:false,
231         previous:'<i class="ace-icon fa fa-arrow-left"></i>',
232         next:'<i class="ace-icon fa fa-arrow-right"></i>',
233         close:'&times;',
234         current:'{current} of {total}',
235         maxWidth:'100%',
236         maxHeight:'100%',
237         onOpen:function(){
238             $overflow = document.body.style.overflow;
239             document.body.style.overflow = 'hidden';
240         },
241         onClosed:function(){
242             document.body.style.overflow = $overflow;
243         },
244         onComplete:function(){
245             $.colorbox.resize();
246         }
247     };
248
249     $('.ace-thumbnails [data-rel="colorbox"]').colorbox(colorbox_params);
250     $("#cboxLoadingGraphic").html("<i class='ace-icon fa fa-spinner orange fa-spin'></i>");//let's add a custom loading icon
251     $(document).one('ajaxloadstart.page', function(e) {
252         $('#colorbox, #cboxOverlay').remove();
253    });
254 }
255
256
257 function newTab(id, bussinessNo) {
258     parent.closableTab.addTab({
259         'id': new Date().getTime(),
260         'name': '装卸货记录',
261         'url': '/business/bizLau.jsf?id=' + id + '&businessNo=' + bussinessNo,
262         'closable': true
263     });
264 }
265
266 function getPlanItem() {
267     if (!I.businessNov) {
268         return;
269     }
270     $.post("/business/shipment/getPlanItem.htm", {bussinessNo: I.businessNov},
271         function (data, textStatus, jqXHR) {
272             vm.pList.removeAll();
273             if (data.code >= 1) {
274                 //parent.showErrmsg(data.errmsg);
275                 swal({title:'',text:data.errmsg,type:'error',confirmButtonText:'确定'}); 
276                 return;
277             }
278             if (data.code == 0) {
279                 if (isList(data.list)) {
280                     $.each(data.list, function (index, value) { 
281                         // delete value.id;
282                         value.id = '';
283                         value.checked = ko.observable(false);
284                         vm.pList.push(value);
285                     });
286                 }
287                 return;
288             }
289         },
290         "json"
291     );
292 }
293
294 function numTotal() {
295     var count = 0;
296     $.each(vm.mList(), function (index, value) { 
297         var num = parseFloat(value.num());
298             if (!isNaN(num)) {
299                 count += num;
300             }
301     });
302     return count;
303 }
304
305 function grossTotal() {
306     var count = 0;
307     $.each(vm.mList(), function (index, value) { 
308         var num = parseFloat(value.gross());
309             if (!isNaN(num)) {
310                 count += num;
311             }
312     });
313     return count;
314 }
315
316 function taotongWeightTotal() {
317     var count = 0;
318     $.each(vm.mList(), function (index, value) { 
319         var num = parseFloat(value.taotongWeight());
320             if (!isNaN(num)) {
321                 count += num;
322             }
323     });
324     return count;
325 }
326
327 function weightTotal() {
328     var count = 0;
329     $.each(vm.mList(), function (index, value) { 
330         var num = parseFloat(value.weight());
331             if (!isNaN(num)) {
332                 count += num;
333             }
334     });
335     return count;
336 }
337
338 function taotongTotal() {
339     var count = 0;
340     $.each(vm.mList(), function (index, value) { 
341         var num = parseFloat(value.taotong());
342             if (!isNaN(num)) {
343                 count += num;
344             }
345     });
346     return count;
347 }
348
349 function _grossTotal() {
350     var count = 0;
351     $.each(vm.bwList(), function (index, value) { 
352         var num = parseFloat(value.gross);
353             if (!isNaN(num)) {
354                 count += num;
355             }
356     });
357     return count;
358 }
359
360 function _tareTotal() {
361     var count = 0;
362     $.each(vm.bwList(), function (index, value) { 
363         var num = parseFloat(value.tare);
364             if (!isNaN(num)) {
365                 count += num;
366             }
367     });
368     return count;
369 }
370
371 function _weightTotal() {
372     return _grossTotal() - _tareTotal();
373 }
374
375 function _subtra1Total() {
376     var count = 0;
377     $.each(vm.bwList(), function (index, value) { 
378         var num = parseFloat(value.subtra1);
379             if (!isNaN(num)) {
380                 count += num;
381             }
382     });
383     return count;
384 }
385
386 function _subtra2Total() {
387     var count = 0;
388     $.each(vm.bwList(), function (index, value) { 
389         var num = parseFloat(value.subtra2);
390             if (!isNaN(num)) {
391                 count += num;
392             }
393     });
394     return count;
395 }
396
397 function _subWeightTotal() {
398     return _grossTotal() - _tareTotal() - _subtra1Total() - _subtra2Total();
399 }
400
401 function moneyTotal() {
402     var count = 0;
403     $.each(vm.mList(), function (index, value) { 
404         var num = value.money;
405             if ($.isNumeric(num)) {
406                 count += parseFloat(num);
407             }
408     });
409     return count;
410 }
411
412 function setStatus() {
413     var num =  Math.abs(_weightTotal() - grossTotal());
414     var str =  '磅差:' + num + ',物资毛重合计:' + grossTotal() + ',磅单净重合计:' + _weightTotal();
415     $('#status').text(str);
416     if (num >= 30) {
417         if (num >= 50) {
418             $('#status').addClass('btn-danger');
419         } else {
420             $('#status').addClass('btn-yellow');
421         }
422     }
423     if (num < 30) {
424         $('#status').addClass('btn-success');
425     }
426 }
427
428 function autoWidth() {
429     $('.note').width($('.col-md-12').width() - $('#nLabel').width() - 62);
430     $('.computed').show();
431 }
432
433 $(window).resize(function() {autoWidth();})
434
435 function validMessage(item) {
436     $("#modalContent").html('<input type="password" id="password" placeholder="请输入密码"/>');
437     $("#dialog-confirm").removeClass('hide').dialog({
438         resizable: false,
439         width: '320',
440         modal: true,
441         title: "<div class='widget-header'><h4 class='smaller'>验证身份信息</h4></div>",
442         title_html: true,
443         position: { my: "center", at: "center", of: window },
444         buttons: [
445             {
446                 html: "<i class='ace-icon fa fa-times bigger-110'></i>&nbsp; 取消",
447                 "class" : "btn btn-minier",
448                 click: function() {
449                     $( this ).dialog( "close" );
450                 }
451             }
452             ,
453             {
454                 html: "<i class='ace-icon fa fa-check bigger-110'></i>&nbsp; 确定",
455                 "class" : "btn btn-primary btn-minier",
456                 click: function() {
457                     validID();
458                 }
459             }
460         ]
461     });
462 }
463
464 function validID() {
465     var password = $.trim($('#password').val());
466     if (!password) {
467         parent.showErrmsg('请输入密码!');
468     }
469     $.post("/system/common/validID.htm", {password: password},
470         function (data, textStatus, jqXHR) {
471             if (data.code >= 1) {
472                 parent.showErrmsg(data.errmsg);
473                 return;
474             }
475             if (data.code == 0) {
476                 if (data.valid) {
477                     $("#dialog-confirm").dialog('close');
478                     vm.hasValid(true);
479                 } else {
480                     parent.showErrmsg('密码错误!');
481                 }
482                 return;
483             }
484         },
485         "json"
486     );
487 }
488
489 function unbindConfirm(item) {
490     $("#modalContent1").html('确定要解绑【' + item.poundNo + '】吗?');
491     $("#dialog-confirm1").removeClass('hide').dialog({
492         resizable: false,
493         width: '320',
494         modal: true,
495         title: "<div class='widget-header'><h4 class='smaller'><i class='ace-icon fa fa-exclamation-triangle red'></i>确认信息</h4></div>",
496         title_html: true,
497         position: { my: "center", at: "center", of: window },
498         buttons: [
499             {
500                 html: "<i class='ace-icon fa fa-times bigger-110'></i>&nbsp; 取消",
501                 "class" : "btn btn-minier",
502                 click: function() {
503                     $( this ).dialog( "close" );
504                 }
505             }
506             ,
507             {
508                 html: "<i class='ace-icon fa fa-trash-o bigger-110'></i>&nbsp; 确定",
509                 "class" : "btn btn-danger btn-minier",
510                 click: function() {
511                     $( this ).dialog( "close" );
512                     doUnbind(item);
513                 }
514             }
515         ]
516     });
517 }
518
519 function doUnbind(item) {
520     if (!!I.doUnbindPound) return;
521     I.doUnbindPound = true;
522     $.post("/business/changepound/doUnbindPound.htm", {businessNo: item.businessNo, poundNo: item.poundNo},
523         function (data, textStatus, jqXHR) {
524             I.doUnbindPound = false;        
525             if (data.code >= 1) {
526                 parent.showErrmsg(data.errmsg);
527                 return;
528             }
529             if (data.code == 0) {
530                 parent.showErrmsg('解绑成功!');
531                 vm.bwList.remove(item);
532                 return;
533             }
534         },
535         "json"
536     );
537 }
538
539 function getPoundList(bussinessNo, poundNo, sdate, edate) {
540     $.post("/business/changepound/getPoundList.htm", {
541         bussinessNo: bussinessNo,
542         poundNo: poundNo,
543         sdate: sdate,
544         edate: edate
545     },
546         function (data, textStatus, jqXHR) {
547             vm.wList.removeAll();
548             if (data.code >= 1) {
549                 parent.showErrmsg(data.errmsg);
550                 return;
551             }
552             if (data.code == 0) {
553                 if (isList(data.list)) {
554                     $.each(data.list, function (index, value) { 
555                         vm.wList.push(value);
556                     });
557                 }
558                 return;
559             }
560         },
561         "json"
562     );
563 }
564
565 function doBindPound(item) {
566     $.post("/business/changepound/doBindPound.htm", {bussinessNo: I.businessNov, poundNo: item.poundNo},
567         function (data, textStatus, jqXHR) {
568             if (data.code >= 1) {
569                 parent.showErrmsg(data.errmsg);
570                 return;
571             }
572             if (data.code == 0) {
573                 item.businessNo = I.businessNov;
574                 vm.bwList.push(item);
575                 I.wdModal.modal('hide');
576                 return;
577             }
578         },
579         "json"
580     );
581 }