|
@@ -76,12 +76,12 @@
|
|
|
style="width: 115px"
|
|
style="width: 115px"
|
|
|
>{{ $t('lang.AssetBatchOperationOrganization.newStorageLocation') }}</label>
|
|
>{{ $t('lang.AssetBatchOperationOrganization.newStorageLocation') }}</label>
|
|
|
<SearchWidget
|
|
<SearchWidget
|
|
|
- :info-window-no="roomInfoWindowNo"
|
|
|
|
|
- :field="roomField"
|
|
|
|
|
- :field-value="roomFieldValue"
|
|
|
|
|
- :display-name="roomField.listDisplayFieldName"
|
|
|
|
|
- :where-clause-source="roomWhereClauseSource"
|
|
|
|
|
- @value-changed="roomValueChanged"
|
|
|
|
|
|
|
+ :info-window-no="locationInfoWindowNo"
|
|
|
|
|
+ :field="locationField"
|
|
|
|
|
+ :field-value="locationFieldValue"
|
|
|
|
|
+ :display-name="locationField.listDisplayFieldName"
|
|
|
|
|
+ :where-clause-source="locationWhereClauseSource"
|
|
|
|
|
+ @value-changed="locationValueChanged"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
@@ -201,8 +201,8 @@ export default {
|
|
|
defaultDataDimensionTypeValueNo: '2',
|
|
defaultDataDimensionTypeValueNo: '2',
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
- roomInfoWindowNo: 109494,
|
|
|
|
|
- roomWhereClauseSource: {
|
|
|
|
|
|
|
+ locationInfoWindowNo: 109494,
|
|
|
|
|
+ locationWhereClauseSource: {
|
|
|
customerDataDimensions:[{
|
|
customerDataDimensions:[{
|
|
|
fieldName: 'client.id',
|
|
fieldName: 'client.id',
|
|
|
dataDimensionTypeNo: '202201191757',
|
|
dataDimensionTypeNo: '202201191757',
|
|
@@ -227,7 +227,7 @@ export default {
|
|
|
name: '',
|
|
name: '',
|
|
|
listDisplayFieldName: 'name',
|
|
listDisplayFieldName: 'name',
|
|
|
},
|
|
},
|
|
|
- roomField: {
|
|
|
|
|
|
|
+ locationField: {
|
|
|
name: '',
|
|
name: '',
|
|
|
listDisplayFieldName: 'ar.name',
|
|
listDisplayFieldName: 'ar.name',
|
|
|
},
|
|
},
|
|
@@ -245,7 +245,7 @@ export default {
|
|
|
displayValue: [''],
|
|
displayValue: [''],
|
|
|
fieldType: 'Key',
|
|
fieldType: 'Key',
|
|
|
},
|
|
},
|
|
|
- roomFieldValue: {
|
|
|
|
|
|
|
+ locationFieldValue: {
|
|
|
id: null,
|
|
id: null,
|
|
|
displayValue: [''],
|
|
displayValue: [''],
|
|
|
fieldType: 'Key',
|
|
fieldType: 'Key',
|
|
@@ -257,9 +257,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
checked: false,
|
|
checked: false,
|
|
|
reason: '',
|
|
reason: '',
|
|
|
- roomList: [],
|
|
|
|
|
- roomId: undefined,
|
|
|
|
|
- roomSelected: undefined,
|
|
|
|
|
|
|
+ locationList: [],
|
|
|
|
|
+ locationId: undefined,
|
|
|
|
|
+ locationSelected: undefined,
|
|
|
organizationName: undefined,
|
|
organizationName: undefined,
|
|
|
responsibilityOrganizationName: undefined,
|
|
responsibilityOrganizationName: undefined,
|
|
|
loading: false,
|
|
loading: false,
|
|
@@ -318,9 +318,9 @@ export default {
|
|
|
/**
|
|
/**
|
|
|
* 存放地点选择框change事件
|
|
* 存放地点选择框change事件
|
|
|
*/
|
|
*/
|
|
|
- roomValueChanged: function (newResponsibilityFieldValue) {
|
|
|
|
|
|
|
+ locationValueChanged: function (newResponsibilityFieldValue) {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
- this.roomFieldValue = newResponsibilityFieldValue;
|
|
|
|
|
|
|
+ this.locationFieldValue = newResponsibilityFieldValue;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -385,7 +385,7 @@ export default {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
let organizationId = null;
|
|
let organizationId = null;
|
|
|
let responseOrganizationId = null;
|
|
let responseOrganizationId = null;
|
|
|
- let roomId = null;
|
|
|
|
|
|
|
+ let locationId = null;
|
|
|
let responsibleUserId = null;
|
|
let responsibleUserId = null;
|
|
|
|
|
|
|
|
if (_self.organizationFieldValue == undefined || _self.organizationFieldValue.id == undefined) {
|
|
if (_self.organizationFieldValue == undefined || _self.organizationFieldValue.id == undefined) {
|
|
@@ -408,8 +408,8 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (_self.roomFieldValue != null && _self.roomFieldValue.id != null) {
|
|
|
|
|
- roomId = _self.roomFieldValue.id;
|
|
|
|
|
|
|
+ if (_self.locationFieldValue != null && _self.locationFieldValue.id != null) {
|
|
|
|
|
+ locationId = _self.locationFieldValue.id;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (_self.userFieldValue != null && _self.userFieldValue.id != null) {
|
|
if (_self.userFieldValue != null && _self.userFieldValue.id != null) {
|
|
@@ -422,7 +422,7 @@ export default {
|
|
|
item.organizationId = organizationId;
|
|
item.organizationId = organizationId;
|
|
|
item.responseOrganizationId = responseOrganizationId;
|
|
item.responseOrganizationId = responseOrganizationId;
|
|
|
item.reason = _self.reason;
|
|
item.reason = _self.reason;
|
|
|
- item.roomId = roomId;
|
|
|
|
|
|
|
+ item.locationId = locationId;
|
|
|
item.responsibleUserInId = responsibleUserId;
|
|
item.responsibleUserInId = responsibleUserId;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|