|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config yzz"> |
|
|
|
|
|
|
|
|
<div class="mod-config"> |
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
<el-form :inline="true" label-position="top" style="margin-top: 0px"> |
|
|
<el-form :inline="true" label-position="top" style="margin-top: 0px"> |
|
|
<el-form-item :label="'申请单号'"> |
|
|
<el-form-item :label="'申请单号'"> |
|
|
@ -72,6 +72,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<el-table |
|
|
<el-table |
|
|
:data="dataList" |
|
|
:data="dataList" |
|
|
@row-click="changeData" |
|
|
@row-click="changeData" |
|
|
@ -93,8 +94,7 @@ |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
@ -111,6 +111,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
<el-pagination |
|
|
<el-pagination |
|
|
@size-change="sizeChangeHandle" |
|
|
@size-change="sizeChangeHandle" |
|
|
@current-change="currentChangeHandle" |
|
|
@current-change="currentChangeHandle" |
|
|
@ -121,10 +122,9 @@ |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
layout="total, sizes, prev, pager, next, jumper"> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick"> |
|
|
<el-tabs style="font-size: 12px;min-height: 200px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick"> |
|
|
<el-tab-pane label="申请单明细" name="detail"> |
|
|
<el-tab-pane label="申请单明细" name="detail"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -10px;"> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-button |
|
|
<el-button |
|
|
@click="createOrderDetail()" |
|
|
@click="createOrderDetail()" |
|
|
type="primary" |
|
|
type="primary" |
|
|
@ -174,6 +174,10 @@ |
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="材料明细" name="sub"> |
|
|
<el-tab-pane label="材料明细" name="sub"> |
|
|
|
|
|
<el-form label-position="top" style="margin-left: 2px;"> |
|
|
|
|
|
<el-button v-if="!editBatchVisible" type="primary" @click="editBatchModel">批量编辑</el-button> |
|
|
|
|
|
<el-button v-if="editBatchVisible" type="primary" @click="batchModel" :loading="saveLoading">批量保存</el-button> |
|
|
|
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
:data="dataList3" |
|
|
:data="dataList3" |
|
|
:height="height" |
|
|
:height="height" |
|
|
@ -193,8 +197,40 @@ |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="qtyToIssue" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="right" |
|
|
|
|
|
min-width="100" |
|
|
|
|
|
label="申请数量"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="editBatchVisible"> |
|
|
|
|
|
<el-input :controls="false" v-model="scope.row.qtyToIssue" |
|
|
|
|
|
@input="value => scope.row.qtyToIssue = value.match(/^(\d+\.?\d*|\.\d+)$/) ? value : ''" |
|
|
|
|
|
style="height: 11px; width: 98%;"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-else> |
|
|
|
|
|
<span>{{scope.row[scope.column.property]}}</span> |
|
|
|
|
|
</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in columnList3s" :key="index" |
|
|
|
|
|
:sortable="item.columnSortable" |
|
|
|
|
|
:prop="item.columnProp" |
|
|
|
|
|
:header-align="item.headerAlign" |
|
|
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
|
|
:align="item.align" |
|
|
|
|
|
:fixed="item.fixed==''?false:item.fixed" |
|
|
|
|
|
:min-width="item.columnWidth" |
|
|
|
|
|
:label="item.columnLabel"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -918,7 +954,8 @@ |
|
|
, getPartListByPaging |
|
|
, getPartListByPaging |
|
|
, xiadaNotify |
|
|
, xiadaNotify |
|
|
, editNotifyMaterial |
|
|
, editNotifyMaterial |
|
|
, deleteNotify |
|
|
|
|
|
|
|
|
, deleteNotify, |
|
|
|
|
|
updateNotifyDetail |
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
} from "@/api/orderIssure/soIssueNotify.js" |
|
|
import { |
|
|
import { |
|
|
searchShopOrderByPaging |
|
|
searchShopOrderByPaging |
|
|
@ -1385,7 +1422,7 @@ |
|
|
sortLv: 0, |
|
|
sortLv: 0, |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 130 |
|
|
|
|
|
|
|
|
columnWidth: 300 |
|
|
},{ |
|
|
},{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701002, |
|
|
functionId: 701002, |
|
|
@ -1437,42 +1474,9 @@ |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 110 |
|
|
columnWidth: 110 |
|
|
},{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701002, |
|
|
|
|
|
serialNumber: '701002Table3QtyToIssue', |
|
|
|
|
|
tableId: "701002Table3", |
|
|
|
|
|
tableName: "申请单材料明细表", |
|
|
|
|
|
columnProp: "qtyToIssue", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "right", |
|
|
|
|
|
columnLabel: "申请数量", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 80 |
|
|
|
|
|
}, |
|
|
}, |
|
|
// { |
|
|
|
|
|
// userId: this.$store.state.user.name, |
|
|
|
|
|
// functionId: 701002, |
|
|
|
|
|
// serialNumber: '701002Table3QtyToIssueOriginal', |
|
|
|
|
|
// tableId: "701002Table3", |
|
|
|
|
|
// tableName: "申请单材料明细表", |
|
|
|
|
|
// columnProp: "qtyToIssueOriginal", |
|
|
|
|
|
// headerAlign: "center", |
|
|
|
|
|
// align: "right", |
|
|
|
|
|
// columnLabel: "已发数量", |
|
|
|
|
|
// columnHidden: false, |
|
|
|
|
|
// columnImage: false, |
|
|
|
|
|
// columnSortable: false, |
|
|
|
|
|
// sortLv: 0, |
|
|
|
|
|
// status: true, |
|
|
|
|
|
// fixed: '', |
|
|
|
|
|
// columnWidth: 80 |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
columnList3s:[ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701002, |
|
|
functionId: 701002, |
|
|
@ -2391,6 +2395,8 @@ |
|
|
columnWidth: 170, |
|
|
columnWidth: 170, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
editBatchVisible: false, |
|
|
|
|
|
saveLoading: false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
@ -2427,6 +2433,37 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
// 批量编辑模态框 |
|
|
|
|
|
editBatchModel() { |
|
|
|
|
|
if (this.currentRow.status !== '草稿') { |
|
|
|
|
|
this.$message.warning('该类型单据不能编辑!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (this.editBatchVisible) { |
|
|
|
|
|
this.editBatchVisible = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.editBatchVisible = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 批量保存 |
|
|
|
|
|
batchModel() { |
|
|
|
|
|
let params = [] |
|
|
|
|
|
params = this.dataList3 |
|
|
|
|
|
this.saveLoading = true |
|
|
|
|
|
updateNotifyDetail(params).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.getNotifyMaterialList() |
|
|
|
|
|
this.$message.success(data.msg) |
|
|
|
|
|
this.editBatchVisible = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.saveLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 出库明细 |
|
|
// 出库明细 |
|
|
outboundDetailModal (row) { |
|
|
outboundDetailModal (row) { |
|
|
console.log(row) |
|
|
console.log(row) |
|
|
@ -2594,6 +2631,18 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNotifyMaterialList () { |
|
|
|
|
|
searchNotifyMaterialList(this.currentRow).then(({data}) => { |
|
|
|
|
|
//区分请求成功和失败的状况 |
|
|
|
|
|
if (data && data.code == 0) { |
|
|
|
|
|
this.dataList3 = data.rows |
|
|
|
|
|
} else { |
|
|
|
|
|
this.dataList3 = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
searchTable(){ |
|
|
searchTable(){ |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.limit = this.pageSize |
|
|
this.searchData.page = this.pageIndex |
|
|
this.searchData.page = this.pageIndex |
|
|
@ -3502,6 +3551,10 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped> |
|
|
<style scoped> |
|
|
|
|
|
/deep/ .customer-tab .el-tabs__content { |
|
|
|
|
|
padding: 5px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.disabled { |
|
|
.disabled { |
|
|
cursor: not-allowed !important; |
|
|
cursor: not-allowed !important; |
|
|
color: #C0C4CC !important; |
|
|
color: #C0C4CC !important; |
|
|
@ -3547,4 +3600,9 @@ |
|
|
color: #C0C4CC !important; |
|
|
color: #C0C4CC !important; |
|
|
cursor: not-allowed !important; |
|
|
cursor: not-allowed !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.el-table /deep/ .cell{ |
|
|
|
|
|
height: auto; |
|
|
|
|
|
line-height: 1.5; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |