Commit 75dd4622 authored by 旭艳's avatar 旭艳

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents d2d2a2cf c83b4b69
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description:退库入库申请明细 * @Description:退库入库申请明细
--> -->
<template> <template>
<div v-if="form&&form.subTypeName" :style="layoutStyle" class="addInStorageBackItem"> <div :style="layoutStyle" class="addInStorageBackItem">
<dee-as-com <dee-as-com
ref="table" ref="table"
:im-show-table-data="imShowTableData" :im-show-table-data="imShowTableData"
......
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
'extMaterialId': r.jobResponse.jobOrder.extMaterialId, 'extMaterialId': r.jobResponse.jobOrder.extMaterialId,
'extMaterialIdType': r.jobResponse.jobOrder.extMaterialIdType, 'extMaterialIdType': r.jobResponse.jobOrder.extMaterialIdType,
'arrivalDate': r.jobResponse.jobOrder.arrivalDate, 'arrivalDate': r.jobResponse.jobOrder.arrivalDate,
'reqAmount': r.usableAmount, 'reqAmount': r.amount,
'airModel': r.jobResponse.jobOrder.airModel, 'airModel': r.jobResponse.jobOrder.airModel,
'sorties': r.jobResponse.jobOrder.sorties, 'sorties': r.jobResponse.jobOrder.sorties,
'manufacturer': r.jobResponse.jobOrder.manufacturer, 'manufacturer': r.jobResponse.jobOrder.manufacturer,
......
...@@ -91,6 +91,7 @@ export default { ...@@ -91,6 +91,7 @@ export default {
} }
const data = this.selection.map(r => { const data = this.selection.map(r => {
return { return {
'allocatedAmount': r.allocatedAmount,
'subTypeName': 'InStorageRecallItem', 'subTypeName': 'InStorageRecallItem',
'reqStatus': 'Apply', 'reqStatus': 'Apply',
'outStorageId': r.id, 'outStorageId': r.id,
...@@ -101,14 +102,14 @@ export default { ...@@ -101,14 +102,14 @@ export default {
'purchaseUnitIdType': r.inventory.jobResponse.jobOrder.extMaterial.extUnitIdType, 'purchaseUnitIdType': r.inventory.jobResponse.jobOrder.extMaterial.extUnitIdType,
'extDxSipplierId': r.inventory.jobResponse.jobOrder.extDxSipplierId, 'extDxSipplierId': r.inventory.jobResponse.jobOrder.extDxSipplierId,
'extDxSipplierIdType': r.inventory.jobResponse.jobOrder.extDxSipplierIdType, 'extDxSipplierIdType': r.inventory.jobResponse.jobOrder.extDxSipplierIdType,
extDxSipplier: r.inventory.jobResponse.jobOrder.extDxSipplier, 'extDxSipplier': r.inventory.jobResponse.jobOrder.extDxSipplier,
extMaterial: r.inventory.jobResponse.jobOrder.extMaterial, 'extMaterial': r.inventory.jobResponse.jobOrder.extMaterial,
storageZone: r.inventory.jobResponse.jobOrder.storageZone, 'storageZone': r.inventory.jobResponse.jobOrder.storageZone,
storageCondition: r.inventory.jobResponse.jobOrder.storageCondition, 'storageCondition': r.inventory.jobResponse.jobOrder.storageCondition,
'extMaterialId': r.inventory.jobResponse.jobOrder.extMaterialId, 'extMaterialId': r.inventory.jobResponse.jobOrder.extMaterialId,
'extMaterialIdType': r.inventory.jobResponse.jobOrder.extMaterialIdType, 'extMaterialIdType': r.inventory.jobResponse.jobOrder.extMaterialIdType,
'arrivalDate': r.inventory.jobResponse.jobOrder.arrivalDate, 'arrivalDate': r.inventory.jobResponse.jobOrder.arrivalDate,
'reqAmount': r.inventory.jobResponse.jobOrder.reqAmount, 'reqAmount': r.allocatedAmount,
'airModel': r.inventory.jobResponse.jobOrder.airModel, 'airModel': r.inventory.jobResponse.jobOrder.airModel,
'sorties': r.inventory.jobResponse.jobOrder.sorties, 'sorties': r.inventory.jobResponse.jobOrder.sorties,
'manufacturer': r.inventory.jobResponse.jobOrder.manufacturer, 'manufacturer': r.inventory.jobResponse.jobOrder.manufacturer,
...@@ -121,7 +122,7 @@ export default { ...@@ -121,7 +122,7 @@ export default {
'stockUnitPrice': r.inventory.jobResponse.jobOrder.stockUnitPrice, 'stockUnitPrice': r.inventory.jobResponse.jobOrder.stockUnitPrice,
'purchaseOrderNo': r.inventory.jobResponse.jobOrder.purchaseOrderNo, 'purchaseOrderNo': r.inventory.jobResponse.jobOrder.purchaseOrderNo,
'operator': 'ADD', 'operator': 'ADD',
remark: r.inventory.jobResponse.jobOrder.remark, 'remark': r.inventory.jobResponse.jobOrder.remark,
'isRoot': r.inventory.jobResponse.jobOrder.isRoot 'isRoot': r.inventory.jobResponse.jobOrder.isRoot
} }
}) })
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
<template> <template>
<div class="outStorageCallBack-reqAmount"> <div class="outStorageCallBack-reqAmount">
<el-input-number v-model="scope.row.reqAmount" :min="0" :max="maxNum" /> <el-input-number v-model="scope.row.reqAmount" :min="0" :max="maxNum" @change="handleChange" />
</div> </div>
</template> </template>
<script> <script>
...@@ -35,11 +35,7 @@ export default { ...@@ -35,11 +35,7 @@ export default {
}, },
computed: { computed: {
maxNum() { maxNum() {
if (this.form.inventory && this.form.inventory.usableAmount) { return this.form.allocatedAmount // 返厂入库
return this.form.inventory.usableAmount
} else {
return 99999
}
} }
}, },
created() { created() {
...@@ -60,7 +56,7 @@ export default { ...@@ -60,7 +56,7 @@ export default {
// this.$utils.showMessageWarning(`退库数量不能大于可用库存数量(${this.form.inventory.usableAmount})`) // this.$utils.showMessageWarning(`退库数量不能大于可用库存数量(${this.form.inventory.usableAmount})`)
// return // return
// } // }
this.$emit('input', this.reqAmount) this.$emit('input', this.scope.row.reqAmount)
} }
} }
} }
......
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