Commit 4cb6757e authored by jingnan's avatar jingnan 👀

ERP相关_领用出库下材料领用类型修改

parent 893a8228
...@@ -61,17 +61,12 @@ export default { ...@@ -61,17 +61,12 @@ export default {
data() { data() {
const that = this const that = this
return { return {
typeName: that.basicData.typeName || 'OutStorageMaterialUse', typeName: that.basicData.typeName || 'materialUse',
options: [ options: [],
{
label: '材料领用',
value: 'OutStorageMaterialUse'
}
],
showCmp: true, showCmp: true,
cmpOptions: { cmpOptions: {
typeName: 'OutStorageUse', typeName: 'OutStorageUse',
layKey: 'outStorageUseApplyAdd_OutStorageMaterialUse' layKey: 'outStorageUseApplyAdd_materialUse'
}, },
bindForm: {}, bindForm: {},
outStorageUseId: ''// outStorageUseId: ''//
...@@ -106,7 +101,7 @@ export default { ...@@ -106,7 +101,7 @@ export default {
}) })
}, },
mounted() { mounted() {
// this.getUseRequestTypes() this.getUseRequestTypes()
}, },
// 组件方法 // 组件方法
methods: { methods: {
...@@ -116,13 +111,13 @@ export default { ...@@ -116,13 +111,13 @@ export default {
const dicData = await this.$utils.getDicListByCode('UseRequestType') const dicData = await this.$utils.getDicListByCode('UseRequestType')
// 当前登陆人为孙瑶雪 和dexadmin的时候下拉可以看到试验领用,其他人看不到 // 当前登陆人为孙瑶雪 和dexadmin的时候下拉可以看到试验领用,其他人看不到
// if (user === '孙瑶雪' || user === 'dexadmin') { // if (user === '孙瑶雪' || user === 'dexadmin') {
// this.options = dicData.filter(item => item.label !== '无指令领用') // this.options = dicData.filter(item => item.label !== '无指令领用')
// } else if (user === '李晓倩' || user === '刘瑞' && Number(userId) === 1626782725550) { // } else if (user === '李晓倩' || user === '刘瑞' && Number(userId) === 1626782725550) {
// this.options = dicData.filter(item => item.label !== '无指令领用' && item.label !== '试验领用') // this.options = dicData.filter(item => item.label !== '无指令领用' && item.label !== '试验领用')
// } else { // } else {
// this.options = dicData.filter(item => item.label !== '试验领用' && item.label !== '无指令领用' && item.label !== '紧急领用') // this.options = dicData.filter(item => item.label !== '试验领用' && item.label !== '无指令领用' && item.label !== '紧急领用')
// } // }
this.options = dicData.filter(item => item.label === '材料领用') this.options = dicData.filter(item => item.label === '材料领用' || item.label === '换件领用')
}, },
dataChangeHandler(val) { dataChangeHandler(val) {
if (val) { if (val) {
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
handler(val) { handler(val) {
switch (val) { switch (val) {
case 'useAO' : case 'useAO' :
case 'OutStorageMaterialUse': case 'materialUse':
case 'NoMachineMaterialUse': case 'NoMachineMaterialUse':
case 'UrgentUse': case 'UrgentUse':
this.amountItemLabel = '申领数量' this.amountItemLabel = '申领数量'
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
if (valid && this.selection) { if (valid && this.selection) {
const typeName = this.basicData.useRequestType const typeName = this.basicData.useRequestType
const data = [{ const data = [{
'subTypeName': `${typeName}Item`, 'subTypeName': `OutStorageMaterialUseItem`,
'extMaterial': this.selection.extMaterial, 'extMaterial': this.selection.extMaterial,
'extMaterialId': this.selection.extMaterialId, 'extMaterialId': this.selection.extMaterialId,
'erpInventoryId': this.selection.id, 'erpInventoryId': this.selection.id,
......
...@@ -119,8 +119,8 @@ export default { ...@@ -119,8 +119,8 @@ export default {
if (val && val.useRequestType) { if (val && val.useRequestType) {
if (val.useRequestType === 'noAO' || val.useRequestType === 'testUse' || val.useRequestType === 'FOUse') { if (val.useRequestType === 'noAO' || val.useRequestType === 'testUse' || val.useRequestType === 'FOUse') {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_noAO`) this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_noAO`)
} else if (val.useRequestType === 'OutStorageMaterialUse' || val.useRequestType === 'NoMachineMaterialUse') { } else if (val.useRequestType === 'materialUse' || val.useRequestType === 'NoMachineMaterialUse') {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_OutStorageMaterialUse`) this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_materialUse`)
} else { } else {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`) this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`)
} }
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
'items': [{ 'items': [{
'fieldName': 'subTypeName', 'fieldName': 'subTypeName',
'operator': 'EQ', 'operator': 'EQ',
'value': 'OutStorageMaterialUse' 'value': 'materialUse'
}, },
{ {
'fieldName': 'state', 'fieldName': 'state',
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
// this.maxNum = maxAmount // this.maxNum = maxAmount
// } // }
this.$emit('input', this.reqAmount) this.$emit('input', this.reqAmount)
if (this.form.id && this.parentType_Inject !== '退库入库' && !this.form.subTypeName.includes('BackItem') && this.parentType_Inject !== 'OutStorageMaterialUse') { if (this.form.id && this.parentType_Inject !== '退库入库' && !this.form.subTypeName.includes('BackItem') && this.parentType_Inject !== 'materialUse') {
this.changeAmount() this.changeAmount()
} }
}, },
......
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