| 
					
				 | 
			
			
				@@ -10,6 +10,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-input v-model.trim="queryParam.tempName" allowClear placeholder="请输入模板名称"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-col :md="6" :sm="24"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-form-item label="模板类型"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <v-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  v-model="queryParam.tempType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  code="FLAG" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  placeholder="请选择模板类型" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  allowClear></v-select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </a-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-col :md="6" :sm="24" style="margin-bottom: 10px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="shelfSetList-refresh">查询</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="shelfSetList-reset">重置</a-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,15 +41,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :scroll="{ y: tableHeight }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :defaultLoadData="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         bordered> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- 货架名称 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <template slot="shelfName" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span class="table-td-link" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.shelfName }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <!-- 模板名称 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <template slot="tempName" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span class="table-td-link" @click="handleDetail(record)">{{ record.shelfName }}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <!-- 操作 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot="action" slot-scope="text, record"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-button size="small" type="link" class="button-primary" @click="handleCopy(record)">复制</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button size="small" type="link" class="button-primary" @click="addTemp(record)">更改名称</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-button size="small" type="link" class="button-primary" @click="handleCopy(record)">复制</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-button size="small" type="link" class="button-error" @click="handleCancel(record)">删除</a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,7 +65,7 @@ import { commonMixin } from '@/utils/mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { STable, VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import basicInfoModal from './basicInfoModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import commonModal from '@/views/common/commonModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { shelfList, modifFinishFlag, shelfModifState } from '@/api/shelf' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { shelfList, shelfModifState } from '@/api/shelf' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'ShelfProductTemplList', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { STable, VSelect, basicInfoModal, commonModal }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -67,11 +76,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tableHeight: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       disabled: false, //  查询、重置按钮是否可操作 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryParam: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        tempName: '' // 模板名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        tempName: '', // 模板名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        tempType: undefined // 模板类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       columns: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '模板名称', scopedSlots: { customRender: 'shelfName' }, width: '70%', align: 'left', ellipsis: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '模板类型', dataIndex: 'tempType', width: '20%', align: 'left' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '模板名称', scopedSlots: { customRender: 'tempName' }, width: '50%', align: 'left', ellipsis: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '产品款数', dataIndex: 'qty', width: '15%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '操作', scopedSlots: { customRender: 'action' }, width: '11%', align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -98,16 +109,16 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 新增/修改 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 新增/修改模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addTemp (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.nowData = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.openModal = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 详情设置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 模板详情设置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleDetail (data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$router.push({ name: 'shelfProductTemplSetting', params: { sn: data.shelfSn } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 复制 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 复制模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleCopy (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$confirm({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -129,7 +140,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 删除模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleCancel (record) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$confirm({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -154,12 +165,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 重置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     resetSearchForm () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.tempName = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.queryParam.tempType = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.table.refresh(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 表格高度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setTableH () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const tableSearchH = this.$refs.tableSearch.offsetHeight 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.tableHeight = window.innerHeight - tableSearchH - 235 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 初始化页面 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageInit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$nextTick(() => { // 页面渲染完成后的回调 
			 |