Commit 6a022601 authored by jingnan's avatar jingnan 👀

入库bug修改

parent 672b3218
...@@ -41,8 +41,21 @@ export default { ...@@ -41,8 +41,21 @@ export default {
defaultData: {} defaultData: {}
} }
}, },
computed: {}, computed: {},
watch: {
basicData: {
immediate: true,
deep: true,
handler() {
setTimeout(() => {
this.searchEvent({
items: [],
operator: 'AND'
})
}, 500)
}
}
},
mounted() {}, mounted() {},
methods: { methods: {
searchEvent(val) { searchEvent(val) {
...@@ -90,6 +103,7 @@ export default { ...@@ -90,6 +103,7 @@ export default {
} }
const data = this.selection.map(r => { const data = this.selection.map(r => {
return { return {
... r.inventory.jobResponse.jobOrder,
'subTypeName': 'InStorageExpireItem', 'subTypeName': 'InStorageExpireItem',
'reqStatus': 'Apply', 'reqStatus': 'Apply',
'outStorageId': r.id, 'outStorageId': r.id,
...@@ -99,30 +113,31 @@ export default { ...@@ -99,30 +113,31 @@ export default {
'inventoryIdType': r.inventoryIdType, 'inventoryIdType': r.inventoryIdType,
'purchaseUnitId': r.inventory.jobResponse.jobOrder.extMaterial.extUnitId, 'purchaseUnitId': r.inventory.jobResponse.jobOrder.extMaterial.extUnitId,
'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.inventory.jobResponse.jobOrder.reqAmount,
'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,
'contractNo': r.inventory.jobResponse.jobOrder.contractNo, // 'contractNo': r.inventory.jobResponse.jobOrder.contractNo,
'stockPrice': r.inventory.jobResponse.jobOrder.stockPrice, // 'stockPrice': r.inventory.jobResponse.jobOrder.stockPrice,
'lotNo': r.inventory.jobResponse.jobOrder.lotNo, // 'lotNo': r.inventory.jobResponse.jobOrder.lotNo,
'taxRate': r.inventory.jobResponse.jobOrder.taxRate, // 'taxRate': r.inventory.jobResponse.jobOrder.taxRate,
'taxUnitPrice': r.inventory.jobResponse.jobOrder.taxUnitPrice, // 'taxUnitPrice': r.inventory.jobResponse.jobOrder.taxUnitPrice,
'taxPrice': r.inventory.jobResponse.jobOrder.taxPrice, // 'taxPrice': r.inventory.jobResponse.jobOrder.taxPrice,
'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, id: null
'isRoot': r.inventory.jobResponse.jobOrder.isRoot // remark: r.inventory.jobResponse.jobOrder.remark,
// 'isRoot': r.inventory.jobResponse.jobOrder.isRoot
} }
}) })
......
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
{ title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' }, { title: '含税单价', key: 'taxUnitPrice', align: 'center', headerAlign: 'center' },
{ title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' }, { title: '含税金额', key: 'taxPrice', align: 'center', headerAlign: 'center' },
{ title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' }, { title: '税率', key: 'taxRate', align: 'center', headerAlign: 'center' },
{ title: '报检人', key: 'applyUserName', align: 'center', headerAlign: 'center' }, { title: '报检人', key: 'creator.userName', align: 'center', headerAlign: 'center' },
{ {
title: '接受仓库', key: 'extname', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => { title: '接受仓库', key: 'extname', align: 'center', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
const value = row.storageZone && typeof (row.storageZone) === 'object' ? row.storageZone.extname : row.storageZoneName const value = row.storageZone && typeof (row.storageZone) === 'object' ? row.storageZone.extname : row.storageZoneName
......
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