瀏覽代碼

月度客户字段和搜索优化

zck 11 月之前
父節點
當前提交
a6c926c1dc
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      src/view/yunyin/shengchanguanli/yuedudahuoshengchanjindu.vue

+ 10 - 6
src/view/yunyin/shengchanguanli/yuedudahuoshengchanjindu.vue

@@ -15,7 +15,7 @@
   
 		<layout>
 		  <!--左侧树侧形结构-->
-		  <layout-sider :resize-directions="['right']" :width="215" style="margin-right: 10px;">
+		  <layout-sider :resize-directions="['right']" :width="260" style="margin-right: 10px;">
 			<div class="JKWTree-tree" style="height: 200px">
 			  <h3>选择客户</h3>
 			  <el-tree :data="treeData" @node-click="handleNodeClick" class="treecolor">
@@ -44,6 +44,7 @@
 			 			<el-table-column   align="left" label="大烫完成数" prop="大烫"  width="90" />
 			 			<el-table-column   align="left" label="总检完成数" prop="总检"  width="90" />
 			 			<el-table-column   align="left" label="包装完成数" prop="包装"  width="90" />
+						<el-table-column   align="left" label="订单状态" prop="订单状态"  width="90" />
 						<el-table-column   align="left" label="落货日期" prop="落货日期"  width="160" />
 			 			
 			  </el-table>
@@ -144,25 +145,28 @@ const handleNodeClick = async (node) => {
 	// console.log(node.label);
 	  // 检查是否是最低级节点(即没有子节点)
 	  if (!node.children || node.children.length === 0) {
+		console.log(1245)
 		// 获取当前节点的上级节点
 		const parentNode = node.parent;
 		// 获取客户编号
-		_khbh.value = node.label[0].split('【')[0]; 
+		_khbh.value = node.label.split('【')[0]; 
 		// 获取日期
 		if (parentNode) {
 		  _riqi.value = parentNode; // 父节点保存的是日期
 		}
-		
+	  }else{
+		console.log(node.label)
+		_riqi.value = node.label;
+		_khbh.value = '';
 	  }
 	_workOrderDetailList();
 };
 
 const _workOrderDetailList = async ()=>{
-	// console.log(_khbh.value);
-	// console.log(_riqi.value);
+	console.log("客户编号",_khbh.value);
+	console.log("日期",_riqi.value);
 	
 	// if(_khbh.value === ''){return;}
-	
 	const OrderYieldListtable = await OrderYieldList({client:_khbh.value,search:searchInfo.value,date:_riqi.value});
 	tableData.splice(0,tableData.length,...OrderYieldListtable.data);
 }