|
@@ -4,6 +4,9 @@
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
<a id="warehouseAllocationEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="warehouseAllocationEdit-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
|
+ <span style="margin: 0 15px;color: #666;">调出仓库:{{ (warehouse&&warehouse.outWarehouseName) || '--' }}</span>
|
|
|
|
+ <span style="margin: 0 15px;color: #666;">调入仓库:{{ (warehouse&&warehouse.putWarehouseName) || '--' }}</span>
|
|
|
|
+ <!-- <a-button id="warehouseAllocationEdit-edit-btn" size="small" @click="handleEditInfo" style="margin-left:10px" key="0">编辑</a-button> -->
|
|
</template>
|
|
</template>
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<!-- 操作区,位于 title 行的行尾 -->
|
|
<template slot="extra">
|
|
<template slot="extra">
|
|
@@ -11,23 +14,6 @@
|
|
<a-button key="1" type="primary" id="warehouseAllocationEdit-print-btn">快速打印</a-button>
|
|
<a-button key="1" type="primary" id="warehouseAllocationEdit-print-btn">快速打印</a-button>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
- <!-- 基础信息 -->
|
|
|
|
- <a-card size="small" :bordered="false" class="warehouseAllocationEdit-cont">
|
|
|
|
- <a-collapse :activeKey="['1']">
|
|
|
|
- <a-collapse-panel key="1">
|
|
|
|
- <template slot="header">
|
|
|
|
- 基础信息
|
|
|
|
- <!-- <a-button type="primary" shape="circle" size="small" icon="edit" class="edit-circle-btn" id="warehouseAllocationEdit-circle-btn" @click.stop="handleEditInfo" /> -->
|
|
|
|
- </template>
|
|
|
|
- <a-descriptions :column="3">
|
|
|
|
- <a-descriptions-item label="调出仓库">{{ warehouse?warehouse.outWarehouseName:'' }}
|
|
|
|
- </a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="调入仓库">{{ warehouse?warehouse.putWarehouseName:'' }}
|
|
|
|
- </a-descriptions-item>
|
|
|
|
- </a-descriptions>
|
|
|
|
- </a-collapse-panel>
|
|
|
|
- </a-collapse>
|
|
|
|
- </a-card>
|
|
|
|
<!-- 选择产品 -->
|
|
<!-- 选择产品 -->
|
|
<a-card size="small" :bordered="false" class="warehouseAllocationEdit-cont">
|
|
<a-card size="small" :bordered="false" class="warehouseAllocationEdit-cont">
|
|
<a-collapse :activeKey="['1']">
|
|
<a-collapse :activeKey="['1']">
|
|
@@ -327,7 +313,6 @@ export default {
|
|
components: { STable, VSelect, basicInfoModal },
|
|
components: { STable, VSelect, basicInfoModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- id: this.$route.params.id, // 单据id
|
|
|
|
typeName: [], // 分类
|
|
typeName: [], // 分类
|
|
queryParam: {
|
|
queryParam: {
|
|
outWarehouseSn: '', // 调出仓库sn
|
|
outWarehouseSn: '', // 调出仓库sn
|
|
@@ -455,9 +440,7 @@ export default {
|
|
},
|
|
},
|
|
// 获取仓库仓位
|
|
// 获取仓库仓位
|
|
getWarehouseLoc (sn, type) {
|
|
getWarehouseLoc (sn, type) {
|
|
- warehouseLocAllList({
|
|
|
|
- warehouseSn: sn
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
+ warehouseLocAllList({ warehouseSn: sn }).then(res => {
|
|
if (type == 'put') {
|
|
if (type == 'put') {
|
|
this.warehousePutLocData = res.data || []
|
|
this.warehousePutLocData = res.data || []
|
|
} else {
|
|
} else {
|
|
@@ -467,9 +450,7 @@ export default {
|
|
},
|
|
},
|
|
// 查询基础信息
|
|
// 查询基础信息
|
|
getHouse () {
|
|
getHouse () {
|
|
- allocWarehouseFind({
|
|
|
|
- id: this.id
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
+ allocWarehouseFind({ id: this.$route.params.id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.warehouse = res.data
|
|
this.warehouse = res.data
|
|
this.queryParam.outWarehouseSn = res.data.outWarehouseSn
|
|
this.queryParam.outWarehouseSn = res.data.outWarehouseSn
|
|
@@ -483,7 +464,6 @@ export default {
|
|
},
|
|
},
|
|
// 产品查询
|
|
// 产品查询
|
|
getProductList (pagination) {
|
|
getProductList (pagination) {
|
|
- console.log(pagination, 'pagination-------')
|
|
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.loading = true
|
|
this.loading = true
|
|
this.pageNo = pagination && pagination.current ? pagination.current : this.pageNo
|
|
this.pageNo = pagination && pagination.current ? pagination.current : this.pageNo
|
|
@@ -536,10 +516,9 @@ export default {
|
|
return this.$message.error('请输入调出数量!')
|
|
return this.$message.error('请输入调出数量!')
|
|
}
|
|
}
|
|
row.addLoading = true
|
|
row.addLoading = true
|
|
- const params = Object.assign(row, {
|
|
|
|
- allocationWarehouseSn: this.chooseParam.allocationWarehouseSn
|
|
|
|
- })
|
|
|
|
|
|
+ const params = Object.assign(row, { allocationWarehouseSn: this.chooseParam.allocationWarehouseSn })
|
|
params.allocationCost = params.putCost
|
|
params.allocationCost = params.putCost
|
|
|
|
+ params.outWarehouseLocationSn = row.warehouseLocationSn
|
|
allocWarehouseDetailSave(params).then(res => {
|
|
allocWarehouseDetailSave(params).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
@@ -588,7 +567,7 @@ export default {
|
|
// 提交
|
|
// 提交
|
|
handleSubmit () {
|
|
handleSubmit () {
|
|
this.submitLoading = true
|
|
this.submitLoading = true
|
|
- allocWarehouseSubmit({ id: this.id }).then(res => {
|
|
|
|
|
|
+ allocWarehouseSubmit({ id: this.$route.params.id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.handleBack()
|
|
this.handleBack()
|