| 
														
															@@ -13,20 +13,26 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <a-collapse-panel key="1"> 
														 | 
														
														 | 
														
															           <a-collapse-panel key="1"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <template slot="header"> 
														 | 
														
														 | 
														
															             <template slot="header"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <span>基础信息</span> 
														 | 
														
														 | 
														
															               <span>基础信息</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              <a-button icon="edit" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              <a-button 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                icon="edit" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                size="small" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                type="link" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                style="margin-left: 20px;color: #39f;" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                @click.stop="openInfoModal = true">编辑</a-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </template> 
														 | 
														
														 | 
														
															             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <a-descriptions :column="2"> 
														 | 
														
														 | 
														
															             <a-descriptions :column="2"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <a-descriptions-item label="货架名称"> 
														 | 
														
														 | 
														
															               <a-descriptions-item label="货架名称"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              {{ basicInfoData&&basicInfoData.shelfName || '--' }} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              <a-badge count="已注销" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='WRITE_OFF'"></a-badge> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              <a-badge count="已停用" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='DISABLED'"></a-badge> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              <a-badge count="已暂停" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='SUSPEND'"></a-badge> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                {{ basicInfoData&&basicInfoData.shelfName || '--' }} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                <a-badge count="已注销" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='WRITE_OFF'"></a-badge> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                <a-badge count="已停用" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='DISABLED'"></a-badge> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                <a-badge count="已暂停" :number-style="{ zoom:'80%',marginLeft:'5px', color: '#fff',background:'#999' }" v-if="basicInfoData&&basicInfoData.state=='SUSPEND'"></a-badge> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               </a-descriptions-item> 
														 | 
														
														 | 
														
															               </a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <a-descriptions-item> 
														 | 
														
														 | 
														
															               <a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 <template slot="label"> 
														 | 
														
														 | 
														
															                 <template slot="label"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    货架产品  
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  货架产品 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 </template> 
														 | 
														
														 | 
														
															                 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                <span>{{showPriceStr.length ? showPriceStr.join("/") : '--'}}</span> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                <span>{{ showPriceStr.length ? showPriceStr.join("/") : '--' }}</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               </a-descriptions-item> 
														 | 
														
														 | 
														
															               </a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <a-descriptions-item> 
														 | 
														
														 | 
														
															               <a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 <template slot="label"> 
														 | 
														
														 | 
														
															                 <template slot="label"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -41,9 +47,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               </a-descriptions-item> 
														 | 
														
														 | 
														
															               </a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <a-descriptions-item> 
														 | 
														
														 | 
														
															               <a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 <template slot="label"> 
														 | 
														
														 | 
														
															                 <template slot="label"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    非货架产品 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  非货架产品 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 </template> 
														 | 
														
														 | 
														
															                 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                <span>{{showNoShelfPriceStr.length ? showNoShelfPriceStr.join("/") : '--'}}</span> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                <span>{{ showNoShelfPriceStr.length ? showNoShelfPriceStr.join("/") : '--' }}</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               </a-descriptions-item> 
														 | 
														
														 | 
														
															               </a-descriptions-item> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </a-descriptions> 
														 | 
														
														 | 
														
															             </a-descriptions> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           </a-collapse-panel> 
														 | 
														
														 | 
														
															           </a-collapse-panel> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -74,7 +80,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     @click="handleExport" 
														 | 
														
														 | 
														
															                     @click="handleExport" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     :disabled="disabled" 
														 | 
														
														 | 
														
															                     :disabled="disabled" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     :loading="exportLoading" 
														 | 
														
														 | 
														
															                     :loading="exportLoading" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    >导出</a-button> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                  >导出</a-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 </span> 
														 | 
														
														 | 
														
															                 </span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               </a-col> 
														 | 
														
														 | 
														
															               </a-col> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </a-row> 
														 | 
														
														 | 
														
															             </a-row> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -83,14 +89,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <!-- 操作按钮 --> 
														 | 
														
														 | 
														
															         <!-- 操作按钮 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <div class="table-operator" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'"> 
														 | 
														
														 | 
														
															         <div class="table-operator" v-if="basicInfoData&&basicInfoData.state!='WRITE_OFF'&&basicInfoData.state!='SUSPEND'"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <a-button id="shelfSet-addHW" type="primary" class="button-error" @click="addHW(1)">新增货位</a-button> 
														 | 
														
														 | 
														
															           <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-imports" type="primary" class="button-info" @click="addHW(0)">批量导入货位</a-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <a-button id="shelfSet-importProduct" type="primary" class="button-error" @click="openGuideModal=true">导入绑定产品</a-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <a-tooltip placement="top"> 
														 | 
														
														 | 
														
															           <a-tooltip placement="top"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <template slot="title"> 
														 | 
														
														 | 
														
															             <template slot="title"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <span>如果货位还没有绑定产品,可使用此功能通过Excel批量导入</span> 
														 | 
														
														 | 
														
															               <span>如果货位还没有绑定产品,可使用此功能通过Excel批量导入</span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             </template> 
														 | 
														
														 | 
														
															             </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <a-icon type="question-circle" style="color: rgba(0,0,0,.45);font-size: 16px;margin-left: 5px;vertical-align: middle;cursor: pointer;" /> 
														 | 
														
														 | 
														
															             <a-icon type="question-circle" style="color: rgba(0,0,0,.45);font-size: 16px;margin-left: 5px;vertical-align: middle;cursor: pointer;" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           </a-tooltip> 
														 | 
														
														 | 
														
															           </a-tooltip> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <a-button 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            v-if="showTplBtn" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            id="shelfSet-import-template" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            style="margin-left:10px;" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            type="primary" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            class="button-primary" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            @click="showTplModal=true">导入模板</a-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </div> 
														 | 
														
														 | 
														
															         </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <!-- 列表 --> 
														 | 
														
														 | 
														
															         <!-- 列表 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <s-table 
														 | 
														
														 | 
														
															         <s-table 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -173,6 +186,10 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <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" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <!-- 导入货位模板 --> 
														 | 
														
														 | 
														
															     <!-- 导入货位模板 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <importHuoweiModal :openModal="openImportModal" @close="openImportModal=false" @ok="$refs.table.refresh(true)" :shelfSn="$route.params.sn"></importHuoweiModal> 
														 | 
														
														 | 
														
															     <importHuoweiModal :openModal="openImportModal" @close="openImportModal=false" @ok="$refs.table.refresh(true)" :shelfSn="$route.params.sn"></importHuoweiModal> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <!-- 导入货架模板 --> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <commonModal modalTit="导入货架模板" :openModal="showTplModal" @close="showTplModal=false" @ok="saveTpl"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      <shelfTemplate style="width:100%" v-model="tplSn"></shelfTemplate> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    </commonModal> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   </div> 
														 | 
														
														 | 
														
															   </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template> 
														 | 
														
														 | 
														
															 </template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -186,10 +203,11 @@ 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 importHuoweiModal from './importHuoweiModal.vue' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow, shelfProductExport } from '@/api/shelf' 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import shelfTemplate from '@/views/common/shelfTemplate' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow, shelfProductExport, importShelfTemplate } from '@/api/shelf' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 export default { 
														 | 
														
														 | 
														
															 export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   name: 'ShelfMonitoringWarehousing', 
														 | 
														
														 | 
														
															   name: 'ShelfMonitoringWarehousing', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal, shelfTemplate }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   mixins: [commonMixin], 
														 | 
														
														 | 
														
															   mixins: [commonMixin], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   data () { 
														 | 
														
														 | 
														
															   data () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return { 
														 | 
														
														 | 
														
															     return { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -197,12 +215,15 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       disabled: false, //  查询、重置按钮是否可操作 
														 | 
														
														 | 
														
															       disabled: false, //  查询、重置按钮是否可操作 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       tableHeight: 400, 
														 | 
														
														 | 
														
															       tableHeight: 400, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       exportLoading: false, 
														 | 
														
														 | 
														
															       exportLoading: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      showTplModal: false, // 是否显示导入模板弹框 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      tplSn: undefined, // 模板sn 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       queryParam: { 
														 | 
														
														 | 
														
															       queryParam: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         shelfProductApiEntity: { 
														 | 
														
														 | 
														
															         shelfProductApiEntity: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           productCode: '', 
														 | 
														
														 | 
														
															           productCode: '', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           productName: '' 
														 | 
														
														 | 
														
															           productName: '' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }, 
														 | 
														
														 | 
														
															       }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      orginData: [], // 原始数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // 加载数据方法 必须为 Promise 对象 
														 | 
														
														 | 
														
															       // 加载数据方法 必须为 Promise 对象 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       loadData: parameter => { 
														 | 
														
														 | 
														
															       loadData: parameter => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.disabled = true 
														 | 
														
														 | 
														
															         this.disabled = true 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -216,6 +237,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               data[i].enableFlag = data[i].shelfProductApiEntity && data[i].shelfProductApiEntity.enableFlag 
														 | 
														
														 | 
														
															               data[i].enableFlag = data[i].shelfProductApiEntity && data[i].shelfProductApiEntity.enableFlag 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.disabled = false 
														 | 
														
														 | 
														
															             this.disabled = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            this.orginData = data 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           this.spinning = false 
														 | 
														
														 | 
														
															           this.spinning = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           return data 
														 | 
														
														 | 
														
															           return data 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -234,8 +256,11 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       showNoShelfPriceStr: [] 
														 | 
														
														 | 
														
															       showNoShelfPriceStr: [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  computed:{ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    columns(){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  computed: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    showTplBtn () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return this.orginData.length > 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    columns () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       const _this = this 
														 | 
														
														 | 
														
															       const _this = this 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       const ret = [ 
														 | 
														
														 | 
														
															       const ret = [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' }, 
														 | 
														
														 | 
														
															         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' }, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -245,9 +270,9 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { title: '车主价', dataIndex: 'shelfProductApiEntity.price', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } }, 
														 | 
														
														 | 
														
															         { title: '车主价', dataIndex: 'shelfProductApiEntity.price', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { slots: { title: 'customTitle' }, dataIndex: 'shelfProductApiEntity.cost', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } }, 
														 | 
														
														 | 
														
															         { slots: { title: 'customTitle' }, dataIndex: 'shelfProductApiEntity.cost', width: '9%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { title: '最大库容', dataIndex: 'shelfProductApiEntity.maxQty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
														 | 
														
														 | 
														
															         { title: '最大库容', dataIndex: 'shelfProductApiEntity.maxQty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        { title: '当前库存', dataIndex: 'shelfProductApiEntity.qty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        { title: '当前库存', dataIndex: 'shelfProductApiEntity.qty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       ] 
														 | 
														
														 | 
														
															       ] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      if(this.basicInfoData&&this.basicInfoData.state!='WRITE_OFF'&&this.basicInfoData.state!='SUSPEND'){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (this.basicInfoData && this.basicInfoData.state != 'WRITE_OFF' && this.basicInfoData.state != 'SUSPEND') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         ret.push({ title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }) 
														 | 
														
														 | 
														
															         ret.push({ title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       return ret 
														 | 
														
														 | 
														
															       return ret 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -260,30 +285,40 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.showNoShelfPriceStr = [] 
														 | 
														
														 | 
														
															       this.showNoShelfPriceStr = [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => { 
														 | 
														
														 | 
														
															       getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (res.status == 200) { 
														 | 
														
														 | 
														
															         if (res.status == 200) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          const ret = res.data&&res.data 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          const ret = res.data && res.data 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           this.basicInfoData.showPrice = ret 
														 | 
														
														 | 
														
															           this.basicInfoData.showPrice = ret 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           ret.map(item => { 
														 | 
														
														 | 
														
															           ret.map(item => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if(item.paramCode == 'shelf_price_show'&&item.paramValue == 1){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              this.showPriceStr.push("车主价") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (item.paramCode == 'shelf_price_show' && item.paramValue == 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.showPriceStr.push('车主价') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if(item.paramCode == 'shelf_cost_show'&&item.paramValue == 1){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              this.showPriceStr.push("结算价") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (item.paramCode == 'shelf_cost_show' && item.paramValue == 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.showPriceStr.push('结算价') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if(item.paramCode == 'non_shelf_price_show'&&item.paramValue == 1){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              this.showNoShelfPriceStr.push("车主价") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (item.paramCode == 'non_shelf_price_show' && item.paramValue == 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.showNoShelfPriceStr.push('车主价') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if(item.paramCode == 'non_shelf_cost_show'&&item.paramValue == 1){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              this.showNoShelfPriceStr.push("结算价") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (item.paramCode == 'non_shelf_cost_show' && item.paramValue == 1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              this.showNoShelfPriceStr.push('结算价') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }) 
														 | 
														
														 | 
														
															           }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 导入模板成功 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    saveTpl () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this.showTplModal = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      importShelfTemplate({ shelfSn: this.$route.params.sn, templateSn: this.tplSn }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (res.status == 200) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this.$message.success(res.message) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this.resetSearchForm() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // 导出产品 
														 | 
														
														 | 
														
															     // 导出产品 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     handleExport () { 
														 | 
														
														 | 
														
															     handleExport () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.exportLoading = true 
														 | 
														
														 | 
														
															       this.exportLoading = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      shelfProductExport({shelfSn: this.$route.params.sn}).then(res => { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        downloadExcel(res, (this.basicInfoData?this.basicInfoData.shelfName:'')+"的产品") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      shelfProductExport({ shelfSn: this.$route.params.sn }).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        downloadExcel(res, (this.basicInfoData ? this.basicInfoData.shelfName : '') + '的产品') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.exportLoading = false 
														 | 
														
														 | 
														
															         this.exportLoading = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -386,6 +421,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.modalType = type 
														 | 
														
														 | 
														
															       this.modalType = type 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.openModal = true 
														 | 
														
														 | 
														
															       this.openModal = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 编辑弹框取消 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     handleCancel () { 
														 | 
														
														 | 
														
															     handleCancel () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.modalType = null 
														 | 
														
														 | 
														
															       this.modalType = null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.nowData = null 
														 | 
														
														 | 
														
															       this.nowData = null 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -400,6 +436,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 编辑基本信息成功 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     handleInfoOk () { 
														 | 
														
														 | 
														
															     handleInfoOk () { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.getDetail() 
														 | 
														
														 | 
														
															       this.getDetail() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 |