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