|
|
@ -228,6 +228,8 @@ |
|
|
|
engineer(); |
|
|
|
$("#add-process-text").hide(); |
|
|
|
$("#add-process").hide(); |
|
|
|
|
|
|
|
//监听物料的料号开头的数字,加工方式和物料类型进行绑定 |
|
|
|
$("#materialNo").on('input', function (event) { |
|
|
|
var value = $(this).val(); |
|
|
|
reloadSelections(); |
|
|
@ -244,18 +246,28 @@ |
|
|
|
$processMethodSelect.find('option[value="1"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="3"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '2': |
|
|
|
materialType = 'bzjgj'; |
|
|
|
$processMethodSelect.find('option[value="1"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="3"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
materialType = 'scy'; |
|
|
|
$processMethodSelect.find('option[value="1"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="3"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '4': |
|
|
|
materialType = 'fscy'; |
|
|
|
$processMethodSelect.find('option[value="1"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="3"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '5': |
|
|
|
materialType = 'dbmcljgj'; |
|
|
@ -269,12 +281,20 @@ |
|
|
|
break; |
|
|
|
case '7': |
|
|
|
materialType = 'zhj'; |
|
|
|
$processMethodSelect.find('option[value="0"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '8': |
|
|
|
materialType = 'chcpsb'; |
|
|
|
$processMethodSelect.find('option[value="0"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="2"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="3"]').remove(); |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
case '9': |
|
|
|
materialType = 'qtyflswl'; |
|
|
|
$processMethodSelect.find('option[value="4"]').remove(); |
|
|
|
break; |
|
|
|
default: |
|
|
|
materialType = ''; // 默认情况下不设置 |
|
|
|