Commit ee5963cd authored by jingnan's avatar jingnan 👀

子件这个库位可以默认,但应该也可以做更改

parent 2fb36252
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
size="small" size="small"
placeholder="请选择库位" placeholder="请选择库位"
filterable filterable
:disabled="!scope.row.isRoot"
remote remote
loading-text="数据正在加载中..." loading-text="数据正在加载中..."
:remote-method="(query) => remoteMethod(query, storageZoneId)" :remote-method="(query) => remoteMethod(query, storageZoneId)"
@focus="locationList = []" @focus="locationList = []"
@change="save" @change="save"
> >
<!-- :disabled="!scope.row.isRoot" -->
<el-option v-for="item in locationList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in locationList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
</div> </div>
......
...@@ -313,7 +313,10 @@ export default { ...@@ -313,7 +313,10 @@ export default {
this.saveWorkUnit(params) this.saveWorkUnit(params)
if (currentRow.children && currentRow.children.length) { if (currentRow.children && currentRow.children.length) {
currentRow.children.map(child => { currentRow.children.map(child => {
const targetInventory = this.$utils.getTargetJobResponses(child, 'JobResponseInEntry')
if (targetInventory && !targetInventory.extWorkUnit) {
this.setParams(extWorkUnitId, child) this.setParams(extWorkUnitId, child)
}
}) })
} }
} }
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
:loading="tableColumnSelect" :loading="tableColumnSelect"
size="small" size="small"
placeholder="请选择库位" placeholder="请选择库位"
:disabled="!scope.row.isRoot&&(scope.row.subTypeName==='InStoragePurchaseItem'||scope.row.subTypeName==='InStorageRecallItem'||scope.row.subTypeName==='InStorageExpireItem')"
filterable filterable
remote remote
loading-text="数据正在加载中..." loading-text="数据正在加载中..."
...@@ -20,6 +19,8 @@ ...@@ -20,6 +19,8 @@
@focus="locationList = []" @focus="locationList = []"
@change="save" @change="save"
> >
<!-- :disabled="!scope.row.isRoot&&(scope.row.subTypeName==='InStoragePurchaseItem'||scope.row.subTypeName==='InStorageRecallItem'||scope.row.subTypeName==='InStorageExpireItem')" -->
<el-option v-for="item in locationList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in locationList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
</div> </div>
...@@ -151,7 +152,10 @@ export default { ...@@ -151,7 +152,10 @@ export default {
this.saveWorkUnit(params) this.saveWorkUnit(params)
if (currentRow.children && currentRow.children.length) { if (currentRow.children && currentRow.children.length) {
currentRow.children.map(child => { currentRow.children.map(child => {
const targetInventory = this.$utils.getTargetJobResponses(child, 'JobResponseInEntry')
if (targetInventory && !targetInventory.extWorkUnit) {
this.setParams(extWorkUnitId, child) this.setParams(extWorkUnitId, child)
}
}) })
} }
} }
......
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