Commit ee5963cd authored by jingnan's avatar jingnan 👀

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

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