| | |
| | | {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, |
| | | {field: 'supplier', title: '批号', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, |
| | | {field: 'source', title: '来源', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, |
| | | {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, |
| | | {field: 'allqty', title: '总数量', align: 'center'}, |
| | | {field: 'allweight', title: '总重量', align: 'center'} |
| | | {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'} |
| | | // {field: 'allqty', title: '总数量', align: 'center'}, |
| | | // {field: 'allweight', title: '总重量', align: 'center'} |
| | | ]; |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |
| | |
| | | } |
| | | } |
| | | break |
| | | case 'source': |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | | if (matCodeData[i]["matNo"] === obj.data.matNo |
| | | && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){ |
| | | matCodeData[i]["source"] = obj.data.source; |
| | | } |
| | | } |
| | | break; |
| | | case 'vendor': |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | | if (matCodeData[i]["matNo"] === obj.data.matNo |
| | | && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){ |
| | | matCodeData[i]["vendor"] = obj.data.vendor; |
| | | } |
| | | } |
| | | break; |
| | | } |
| | | |
| | | }); |