| 
					
				 | 
			
			
				@@ -6,7 +6,8 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Storehouse_Product_Model_List, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Storehouse_Product_Name_List, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     Storehouse_Stock_Detail_List, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    Storehouse_Stock_Detail_Excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    Storehouse_Stock_Detail_Excel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    stockInSort 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from '@/api/storehouse/index' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { ref, reactive, onMounted } from 'vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { List } from '@element-plus/icons-vue' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -17,7 +18,7 @@ import type { ColumnProps } from '@/components/TableBase/interface/index' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { dayJs } from '@/utils/common' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ImageCom from '@/components/Image/index.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useTablePublic } from '@/hooks/useTablePublic' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { ElMessage, ElMessageBox } from 'element-plus' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import InventoryStatisticsshowModel from "./modules/InventoryStatisticsshowModel.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,6 +50,7 @@ const detailInitParam = reactive({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const columns: ColumnProps[] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { type: 'index', label: '序号', width: 80 }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { prop: 'T_depot_name', label: '仓库名称' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { prop: 'T_sort', label: '排序(双击排序)', name: 'T_sort' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { prop: 'T_product_img', label: '产品图片', name: 'T_product_img' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { prop: 'T_product_name', label: '产品名称' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { prop: 'T_product_class_name', label: '产品分类' }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,7 +102,7 @@ const confirmExpor = async (project_id?: string) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         T_end_date: T_date_detail.value[1], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         T_product_id: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    console.log('导出',T_date_detail.value,params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log('导出', T_date_detail.value, params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (typeof project_id === 'number') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params['T_product_id'] = project_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -186,7 +188,7 @@ onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getProductClassList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     T_date.value = [dayJs().startOf('year').format('YYYY-MM-DD'), dayJs().format('YYYY-MM-DD')] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     T_date_detail.value = [...T_date.value] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    console.log('初始化时间',T_date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.log('初始化时间', T_date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const getSalaryParams = (row: any) => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -197,6 +199,22 @@ const getSalaryParams = (row: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 100) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const handleHeaderClick = async (e:any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ElMessageBox.prompt('请输入排序号', '', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        confirmButtonText: 'OK', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        cancelButtonText: 'Cancel', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        inputValue:`${e.T_sort}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }).then(async({ value }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       const result:any = await stockInSort({T_id:e.Id,T_sort:value}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       console.log('提交',value,result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       if(result.Code==200){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ElMessage.success('编辑成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            TableRef.value?.getTableList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }).catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,6 +289,11 @@ const getSalaryParams = (row: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <template #T_sort="{ row }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div @dblclick="handleHeaderClick(row)" style="cursor: pointer;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            {{ row.T_sort }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <template #T_product_img="{ row }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <ImageCom :src="row.T_product_img" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -292,7 +315,7 @@ const getSalaryParams = (row: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <template #table-header> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <el-row class="head-search"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <el-col :span="12"><el-form-item label="日期范围"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 <el-date-picker v-model="T_date_detail" type="daterange" range-separator="~" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     start-placeholder="开始时间" end-placeholder="结束时间" format="YYYY-MM-DD" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     value-format="YYYY-MM-DD" @change="dateDetailChange" /></el-form-item></el-col> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -302,7 +325,7 @@ const getSalaryParams = (row: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </el-row> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <template #right="{ row }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    <InventoryStatisticsshowModel :rows="row"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <InventoryStatisticsshowModel :rows="row" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </TableBase> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </Drawer> 
			 |