Commit bd1ee4ca by peema_phongam

fix : can't add mcommitee

parent 1de24e17
......@@ -42,7 +42,7 @@
<REQUIRE>true</REQUIRE>
</COMPONENT>
</REQUESTID>
<INDEX lang="A" encrypt="false" verify="false" log="false" type="String">
<SEQ lang="A" encrypt="false" verify="false" log="false" type="String">
<KEY>4</KEY>
<WIDTH>2</WIDTH>
<DESC_ENG>No.</DESC_ENG>
......@@ -54,7 +54,7 @@
<ALT_ENG>No.</ALT_ENG>
</COMPONENT>
<REQUIRE>true</REQUIRE>
</INDEX>
</SEQ>
<COM_POSITION lang="A" encrypt="false" verify="false" log="false" type="String">
<WIDTH>15</WIDTH>
<RELATION>MPOSITION</RELATION>
......
......@@ -885,7 +885,7 @@
</td> --%>
<td align="center">
<input type='text' readonly maxlength="2" size="2" ng-model="com.index" ng-disabled="manpower.req_status != '' && manpower.req_status != '1' && !basicConfig.object.editOnInProcess"/>
<input type='text' readonly maxlength="2" size="2" ng-model="com.seq" ng-disabled="manpower.req_status != '' && manpower.req_status != '1' && !basicConfig.object.editOnInProcess"/>
</td>
<td align="center">{{ com.employeeid }}</td>
<td>{{ com.fullname }}</td>
......
......@@ -336,11 +336,11 @@ angular.module('RECRUIT').controller('ManpowerForm', ['$scope', '$http', '$contr
$scope.genIndexCommittee = () => {
$scope.committree.forEach(function (data, index) {
data.index = (index + 1).toString()
data.seq = (index + 1).toString()
});
}
$scope.softComIndex = ($com) => {
return parseInt($com.index)
return parseInt($com.seq)
}
$scope.addCommittree = function (arrcom) {
$scope.committree = $scope.committree.concat(arrcom)
......@@ -543,8 +543,8 @@ angular.module('RECRUIT').controller('ManpowerForm', ['$scope', '$http', '$contr
let max = 0;
let list = ',';
$scope.committree.forEach(function (data) {
let index = data.index || 0;
list += (data.index || 0)+',';
let index = data.seq || 0;
list += (data.seq || 0)+',';
if(max<index){
max = index;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment