|
@@ -5,7 +5,7 @@
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
<a id="shelfSet-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="shelfSet-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
- <span class="store-info">{{ (basicInfoData&&basicInfoData.shelfName) || '--' }}</span>
|
|
|
|
|
|
+ <span class="store-info">货架名称:{{ basicInfoData&&basicInfoData.shelfName || '--' }}</span>
|
|
</template>
|
|
</template>
|
|
</a-page-header>
|
|
</a-page-header>
|
|
<!-- 内容 -->
|
|
<!-- 内容 -->
|
|
@@ -14,9 +14,9 @@
|
|
<a-collapse-panel key="1">
|
|
<a-collapse-panel key="1">
|
|
<template slot="header">
|
|
<template slot="header">
|
|
<span>基础信息</span>
|
|
<span>基础信息</span>
|
|
- <a-button icon="edit" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="handleInfoEdit">编辑</a-button>
|
|
|
|
|
|
+ <a-button icon="edit" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button>
|
|
</template>
|
|
</template>
|
|
- <a-descriptions :column="3">
|
|
|
|
|
|
+ <a-descriptions :column="1">
|
|
<a-descriptions-item label="关联客户">{{ (basicInfoData&&basicInfoData.customerEntity&&basicInfoData.customerEntity.customerName) || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="关联客户">{{ (basicInfoData&&basicInfoData.customerEntity&&basicInfoData.customerEntity.customerName) || '--' }}</a-descriptions-item>
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
@@ -48,6 +48,8 @@
|
|
</div>
|
|
</div>
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
|
|
+ <a-button id="shelfSet-addHW" type="primary" class="button-error" @click="addHW(1)">新增货位</a-button>
|
|
|
|
+ <a-button id="shelfSet-impoort" type="primary" class="button-info" @click="addHW(0)">批量导入货位</a-button>
|
|
<a-button id="shelfSet-import" type="primary" class="button-error" @click="openGuideModal=true">导入绑定产品</a-button>
|
|
<a-button id="shelfSet-import" type="primary" class="button-error" @click="openGuideModal=true">导入绑定产品</a-button>
|
|
<a-tooltip placement="top">
|
|
<a-tooltip placement="top">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
@@ -94,6 +96,8 @@
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
</a-spin>
|
|
</a-spin>
|
|
|
|
+ <!-- 基础设置 -->
|
|
|
|
+ <basic-info-modal :openModal="openInfoModal" :nowData="basicInfoData" @ok="handleInfoOk" @close="openInfoModal=false" />
|
|
<!-- 修改信息/绑定产品/更换产品 -->
|
|
<!-- 修改信息/绑定产品/更换产品 -->
|
|
<bind-product-modal :openModal="openModal" :type="modalType" :nowData="nowData" @ok="$refs.table.refresh()" @close="handleCancel" />
|
|
<bind-product-modal :openModal="openModal" :type="modalType" :nowData="nowData" @ok="$refs.table.refresh()" @close="handleCancel" />
|
|
<!-- 更换产品 -->
|
|
<!-- 更换产品 -->
|
|
@@ -106,8 +110,10 @@
|
|
@close="openTipsModal=false" />
|
|
@close="openTipsModal=false" />
|
|
<!-- 导入产品 -->
|
|
<!-- 导入产品 -->
|
|
<importGuideModal :openModal="openGuideModal" :params="{shelfSn: $route.params.sn}" @close="openGuideModal=false" @ok="handleGuideOk" />
|
|
<importGuideModal :openModal="openGuideModal" :params="{shelfSn: $route.params.sn}" @close="openGuideModal=false" @ok="handleGuideOk" />
|
|
- <!-- 基础设置 -->
|
|
|
|
- <basic-info-modal :openModal="openInfoModal" :nowData="basicInfoData" @ok="handleInfoOk" @close="openInfoModal=false" />
|
|
|
|
|
|
+ <!-- 导入货位模板 -->
|
|
|
|
+ <importHuoweiModal :openModal="openImportModal" @close="openImportModal=false" @ok="$refs.table.refresh(true)" :shelfSn="$route.params.sn"></importHuoweiModal>
|
|
|
|
+ <!-- 新增货位 -->
|
|
|
|
+ <addHWModal :openHWModal="openHWModal" @refresh="$refs.table.refresh(true)" :shelfSn="$route.params.sn" :nowData="nowData" @close="openHWModal=false"></addHWModal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -118,10 +124,12 @@ import commonModal from '@/views/common/commonModal.vue'
|
|
import bindProductModal from './bindProductModal.vue'
|
|
import bindProductModal from './bindProductModal.vue'
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
|
+import importHuoweiModal from './importHuoweiModal.vue'
|
|
|
|
+import addHWModal from './addHWModal.vue'
|
|
import { shelfDetail, shelfProductList, shelfProductBatchInsert } from '@/api/shelf'
|
|
import { shelfDetail, shelfProductList, shelfProductBatchInsert } from '@/api/shelf'
|
|
export default {
|
|
export default {
|
|
name: 'ShelfMonitoringWarehousing',
|
|
name: 'ShelfMonitoringWarehousing',
|
|
- components: { STable, VSelect, commonModal, bindProductModal, ImportGuideModal, basicInfoModal },
|
|
|
|
|
|
+ components: { STable, VSelect, commonModal, bindProductModal, ImportGuideModal, basicInfoModal, importHuoweiModal, addHWModal },
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -167,13 +175,20 @@ export default {
|
|
nowData: null,
|
|
nowData: null,
|
|
openGuideModal: false,
|
|
openGuideModal: false,
|
|
modalType: null,
|
|
modalType: null,
|
|
- openInfoModal: false
|
|
|
|
|
|
+ openInfoModal: false,
|
|
|
|
+ openHWModal: false,
|
|
|
|
+ openImportModal: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // 编辑基本信息
|
|
|
|
- handleInfoEdit () {
|
|
|
|
- this.openInfoModal = true
|
|
|
|
|
|
+ // 导入或新增
|
|
|
|
+ addHW (type) {
|
|
|
|
+ if (type == 0) {
|
|
|
|
+ this.openImportModal = true
|
|
|
|
+ } else {
|
|
|
|
+ this.nowData = null
|
|
|
|
+ this.openHWModal = true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 基本信息
|
|
// 基本信息
|
|
getDetail () {
|
|
getDetail () {
|