zck 8 сар өмнө
parent
commit
a8cb158320

+ 9 - 6
src/view/inventory/ruku.vue

@@ -2,9 +2,9 @@
   <div>
     <layout>
 		<el-row :gutter="24" style="margin-bottom: 6px;">
-			  <!-- <el-input v-model="records_searchInfo" placeholder="请搜索入库单号、订单编号或生产款号进行查询相关入库记录"  @input="records_handleInput"
+			  <el-input v-model="records_searchInfo" placeholder="请搜索入库单号、订单编号或生产款号进行查询相关入库记录"  @input="records_handleInput"
 				@keyup.enter="search_onSubmit" id="searchInput"  style="width: 460px;height: 50px;margin-left: 10px;">
-			  </el-input> -->
+			  </el-input>
 			  <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">面料入库</el-button>
 			  <!-- <el-button type="danger"  @click="deldetail_delclick" style="width: 80px;height: 50px;"	v-if="del_details=== true" :disabled="details_Selection === '' "  class="bt"   >删除</el-button> -->
 		</el-row>
@@ -407,10 +407,13 @@ const handleNodeClick = async (node, check) => {
 
 //查询按钮
 const search_onSubmit = async ()  => {
-		// const UnapprovalListtable = await UnapprovalList({search:records_searchInfo.value,page:page.value,limit:pageSize.value});
-		// tableData1.splice(0,tableData1.length,...UnapprovalListtable.data.table);
-		// total.value = UnapprovalListtable.data.total
-		console.log('调用搜索接口')
+		const UnapprovalListtable = await ReceiptList({ mouth: '', search: records_searchInfo.value, page: 1, limit: 50 });
+		if (UnapprovalListtable && UnapprovalListtable.data && Array.isArray(UnapprovalListtable.data.table)) {
+    const filteredData = UnapprovalListtable.data.table.filter(item => item.单号类型 === '入库');
+    // 更新数据
+	recordtableData.splice(0, recordtableData.length);
+    recordtableData.splice(0, 0, ...filteredData);
+}
 };
 
 //input实时调用

+ 15 - 3
src/view/inventory/tuihuan.vue

@@ -2,9 +2,9 @@
     <div>
       <layout>
           <el-row :gutter="24" style="margin-bottom: 6px;">
-                <!-- <el-input v-model="records_searchInfo" placeholder="请搜索退还单号、订单编号或生产款号进行查询相关退还记录"  @input="records_handleInput"
-                  @keyup.enter="records_onSubmit" id="searchInput"  style="width: 460px;height: 50px;margin-left: 10px;">
-                </el-input> -->
+                <el-input v-model="records_searchInfo" placeholder="请搜索退还单号、订单编号或生产款号进行查询相关退还记录"  @input="records_handleInput"
+                  @keyup.enter="search_onSubmit" id="searchInput"  style="width: 460px;height: 50px;margin-left: 10px;">
+                </el-input>
                 <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">面料退还</el-button>
                 <!-- <el-button type="danger"  @click="deldetail_delclick" style="width: 80px;height: 50px;"	v-if="del_details=== true" :disabled="details_Selection === '' "  class="bt"   >删除</el-button> -->
           </el-row>
@@ -410,6 +410,18 @@ const handleNodeClick = async (node, check) => {
     console.error("数据获取失败");
   }
 }
+
+//查询按钮
+const search_onSubmit = async ()  => {
+		const UnapprovalListtable = await ReceiptList({ mouth: '', search: records_searchInfo.value, page: 1, limit: 50 });
+		if (UnapprovalListtable && UnapprovalListtable.data && Array.isArray(UnapprovalListtable.data.table)) {
+    const filteredData = UnapprovalListtable.data.table.filter(item => item.单号类型 === '退还');
+    // 更新数据
+	recordtableData.splice(0, recordtableData.length);
+    recordtableData.splice(0, 0, ...filteredData);
+}
+};
+
   
   //input实时调用
   const handleInput = async ()=>{

+ 14 - 3
src/view/performance/chukubaogong.vue

@@ -2,9 +2,9 @@
 	<div>
 	  <layout>
 		  <el-row :gutter="24" style="margin-bottom: 6px;">
-				<!-- <el-input v-model="records_searchInfo" placeholder="请搜索出库单号、订单编号或生产款号进行查询相关出库记录"  @input="records_handleInput"
-				  @keyup.enter="records_onSubmit" id="searchInput"  style="width: 460px;height: 50px;margin-left: 10px;">
-				</el-input> -->
+				<el-input v-model="records_searchInfo" placeholder="请搜索出库单号、订单编号或生产款号进行查询相关出库记录"  @input="records_handleInput"
+				  @keyup.enter="search_onSubmit" id="searchInput"  style="width: 460px;height: 50px;margin-left: 10px;">
+				</el-input>
 				<el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">面料出库</el-button>
 				<!-- <el-button type="danger"  @click="deldetail_delclick" style="width: 80px;height: 50px;"	v-if="del_details=== true" :disabled="details_Selection === '' "  class="bt"   >删除</el-button> -->
 		  </el-row>
@@ -404,6 +404,17 @@ const handleNodeClick = async (node, check) => {
 }
 
 
+//查询按钮
+const search_onSubmit = async ()  => {
+		const UnapprovalListtable = await ReceiptList({ mouth: '', search: records_searchInfo.value, page: 1, limit: 50 });
+		if (UnapprovalListtable && UnapprovalListtable.data && Array.isArray(UnapprovalListtable.data.table)) {
+    const filteredData = UnapprovalListtable.data.table.filter(item => item.单号类型 === '出库');
+    // 更新数据
+	recordtableData.splice(0, recordtableData.length);
+    recordtableData.splice(0, 0, ...filteredData);
+}
+};
+
   //input实时调用
   const handleInput = async ()=>{
 	  restableData.splice(0, restableData.length);//清空表格

+ 4 - 4
src/view/yunyin/shengchanguanli/yangyipihe.vue

@@ -54,6 +54,7 @@
 						</el-table-column>
 						<el-table-column   align="left" label="订单数量" prop="订单数量"  width="90" />
 						<el-table-column   align="left" label="包装完工数量" prop="工单完工数量"  width="110" />
+						<el-table-column   align="left" label="完工日期" prop="工单完工日期"  width="140" />
 						<el-table-column   align="left" label="单位" prop="单位"  width="60" />
 						<el-table-column   align="left" label="面料" prop="面料"  width="360" />
 						<el-table-column   align="left" label="粘衬" prop="粘衬"  width="360" />
@@ -61,7 +62,6 @@
 						<el-table-column   align="left" label="船样合计" prop="船样合计"  width="90" />
 						<el-table-column   align="left" label="船样描述" prop="船样描述"  width="200" />
 						<el-table-column   align="left" label="箱唛要求" prop="箱唛要求"  width="360" />
-						<el-table-column   align="left" label="完工日期" prop="工单完工日期"  width="140" />
 						<el-table-column   align="left" label="制单人" prop="Sys_id"  width="160" />
 						<el-table-column   align="left" label="制单日期" prop="Sys_rq"  width="160" />
 						<!-- <el-table-column   align="left" label="接单日期" prop="接单日期"  width="120" /> -->
@@ -367,9 +367,9 @@ const hptg_onClick = async () => {
 const dialogVisible = ref(false);
 const selectedStatus = ref('');
 const statusOptions = [
-  { value: 'plan', label: '1-计划中' },
-  { value: 'production', label: '2-生产中' },
-  { value: 'complete', label: '3-已完工' }
+  { value: '1-计划中', label: '1-计划中' },
+  { value: '2-生产中', label: '2-生产中' },
+  { value: '3-已完工', label: '3-已完工' }
 ];
 
 const handleStatusConfirm = async () => {