Commit 23f46414 authored by jingnan's avatar jingnan 👀

供外出库bug修改

parent 661f0b5e
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
</template> </template>
<script> <script>
export default { export default {
componentName: '领用出库添加明细', componentName: '供外出库添加明细',
name: 'AddOutStorageUseDetailDialog', name: 'AddOutStorageOfferDetailDialog',
components: {}, components: {},
props: { props: {
basicData: { basicData: {
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
if (valid && this.selection) { if (valid && this.selection) {
if (this.applyForm.reqAmount > this.selection.unableAmount) return this.$utils.showMessageWarning('申领数量不能大于当前选中物料的可用数量!') if (this.applyForm.reqAmount > this.selection.unableAmount) return this.$utils.showMessageWarning('申领数量不能大于当前选中物料的可用数量!')
const data = { const data = {
'subTypeName': 'OutStorageUseItem', 'subTypeName': 'OutStorageOutItem',
'extMaterial': this.selection.extMaterial, 'extMaterial': this.selection.extMaterial,
'extMaterialId': this.selection.extMaterialId, 'extMaterialId': this.selection.extMaterialId,
// 'extSupportingItemId': this.selection.id, // 'extSupportingItemId': this.selection.id,
......
...@@ -53,30 +53,29 @@ export default { ...@@ -53,30 +53,29 @@ export default {
return { return {
dialogVisible: false, dialogVisible: false,
tableColumns: [ tableColumns: [
{ title: '操作', key: 'operate', align: 'center', width: '100', { title: '物料编码', key: 'extMaterial.resCode', align: 'center' },
{ title: '物料名称', key: 'extMaterial.resName', align: 'center' },
{ title: '牌号/型号/件号', key: 'extMaterial.modelNo', align: 'center', minWidth: '120' },
{ title: '申领数量', key: 'reqAmount', align: 'center' },
{ title: '占用数量', key: 'allocatedAmount', align: 'center',
component: { component: {
show: true, show: true,
name: 'EditTableRow', render: (h, data) => {
props: { return h('div', [
btns: [ h('span', {
{ class: 'link',
operation: '查看占用详情', on: {
icon: '/icons/c-scan.png', click: (e) => {
handleClick: (row, index) => { this.rowData = data
this.rowData = row this.viewVisible = true
this.viewVisible = true }
} }
} }, data.allocatedAmount)
] ])
} }
} }},
},
{ title: '物料编码', key: 'extMaterial.resCode', align: 'center' },
{ title: '物料名称', key: 'extMaterial.resName', align: 'center' },
{ title: '牌号/型号/件号', key: 'extMaterial.modelNo', align: 'center', minWidth: '120' },
{ title: '规格', key: 'extMaterial.spec', align: 'center' }, { title: '规格', key: 'extMaterial.spec', align: 'center' },
{ title: '单位名称', key: 'extMaterial.extUnit.unitName', align: 'center' }, { title: '单位名称', key: 'extMaterial.extUnit.unitName', align: 'center' },
{ title: '申领数量', key: 'reqAmount', align: 'center' },
// { // {
// title: '申领数量', key: 'reqAmount', align: 'center', minWidth: '160', fixed: 'right', // title: '申领数量', key: 'reqAmount', align: 'center', minWidth: '160', fixed: 'right',
// component: { // component: {
...@@ -96,8 +95,7 @@ export default { ...@@ -96,8 +95,7 @@ export default {
// }, // },
{ title: '技术条件', key: 'extMaterial.techSpec', align: 'center' }, { title: '技术条件', key: 'extMaterial.techSpec', align: 'center' },
{ title: '供应状态', key: 'extMaterial.supplyStatus', align: 'center' }, { title: '供应状态', key: 'extMaterial.supplyStatus', align: 'center' },
{ title: '物料类型', key: 'extMaterial.resType2.typeName', align: 'center' }, { title: '物料类型', key: 'extMaterial.resType2.typeName', align: 'center' }
{ title: '占用数量', key: 'allocatedAmount', align: 'center' }
], ],
tableData: [], tableData: [],
rowData: null, rowData: null,
......
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