From 4652431ce329b4dec6c4dcc0758d5c4ff97e0666 Mon Sep 17 00:00:00 2001 From: 86134 <aa> Date: 星期六, 11 十一月 2023 09:57:10 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/product/workbench/feed-pane.vue | 181 ++++++++++++++++++++++++++++++++++---------- 1 files changed, 139 insertions(+), 42 deletions(-) diff --git a/src/views/product/workbench/feed-pane.vue b/src/views/product/workbench/feed-pane.vue index ffa8039..3dd5b5f 100644 --- a/src/views/product/workbench/feed-pane.vue +++ b/src/views/product/workbench/feed-pane.vue @@ -1,7 +1,7 @@ <template> <div style="padding:0px 14px;height: 100%;overflow: auto;"> <div class="need-feed-header"> - <div style="height:28px;line-height:28px;"> + <div> <el-divider class="pane-divider" direction="vertical"></el-divider ><span style="font-size:14px;font-weight:bold">宸ュ崟鎵�闇�鐗╂枡</span> </div> @@ -205,7 +205,7 @@ <span>{{ scope.row.partNo }}</span> </template> </el-table-column> - <el-table-column + <!-- <el-table-column label="闆朵欢" prop="partName" align="center" @@ -227,11 +227,11 @@ <template slot-scope="scope"> <span>{{ scope.row.partName }}</span> </template> - </el-table-column> + </el-table-column> --> <el-table-column label="闆朵欢鎻忚堪" prop="partDescription" - align="center" + align="center" show-overflow-tooltip > <template slot="header"> <div style="line-height: 14px;">闆朵欢鎻忚堪</div> @@ -268,7 +268,25 @@ <span>{{ scope.row.ifsBatchNo }}</span> </template> </el-table-column> - <el-table-column label="SN鍙�" prop="partBatchNo" align="center"> + <el-table-column label="WDR鍙�" prop="ifsWdr" align="center"> + <template slot="header"> + <div style="line-height: 14px;">WDR鍙�</div> + <div class="th" @click.stop> + <el-input + type="text" + v-model="queryParamTwo.ifsWdr" + @keyup.enter.native="handleStockList" + clearable + @clear="handleStockList" + size="mini" + ></el-input> + </div> + </template> + <template slot-scope="scope"> + <span>{{ scope.row.ifsWdr }}</span> + </template> + </el-table-column> + <!-- <el-table-column label="SN鍙�" prop="partBatchNo" align="center"> <template slot="header"> <div style="line-height: 14px;">SN鍙�</div> <div class="th" @click.stop> @@ -308,8 +326,8 @@ <template slot-scope="scope"> <span>{{ scope.row.reelNumber }}</span> </template> - </el-table-column> - <el-table-column + </el-table-column> --> + <!-- <el-table-column label="瑙勬牸鍨嬪彿" prop="specs" align="center" @@ -331,7 +349,7 @@ <template slot-scope="scope"> <span>{{ scope.row.specs }}</span> </template> - </el-table-column> + </el-table-column> --> <el-table-column label="鍗曚綅" prop="unit" align="center"> <template slot="header"> <div style="line-height: 14px;">鍗曚綅</div> @@ -357,7 +375,7 @@ > <template slot="header"> <div style="line-height: 14px;">鍙敤鏁伴噺</div> - <div class="th" @click.stop> + <!-- <div class="th" @click.stop> <el-input type="text" v-model="queryParamTwo.availableStockQuantity" @@ -366,7 +384,7 @@ @clear="handleStockList" size="mini" ></el-input> - </div> + </div> --> </template> <template slot-scope="scope"> <span>{{ scope.row.availableStockQuantity }}</span> @@ -375,7 +393,7 @@ <el-table-column label="搴撳瓨鏁伴噺" prop="stockQuantity" align="center"> <template slot="header"> <div style="line-height: 14px;">搴撳瓨鏁伴噺</div> - <div class="th" @click.stop> + <!-- <div class="th" @click.stop> <el-input type="text" v-model="queryParamTwo.stockQuantity" @@ -384,7 +402,7 @@ @clear="handleStockList" size="mini" ></el-input> - </div> + </div> --> </template> <template slot-scope="scope"> <span>{{ scope.row.stockQuantity }}</span> @@ -397,7 +415,7 @@ > <template slot="header"> <div style="line-height: 14px;">棰勭暀鏁伴噺</div> - <div class="th" @click.stop> + <!-- <div class="th" @click.stop> <el-input type="text" v-model="queryParamTwo.reserveQuantity" @@ -406,7 +424,7 @@ @clear="handleStockList" size="mini" ></el-input> - </div> + </div> --> </template> <template slot-scope="scope"> <span>{{ scope.row.reserveQuantity }}</span> @@ -431,7 +449,7 @@ </template> </el-table-column> </el-table> - <div class="pagin-page" style="margin-top: 0;margin-bottom: 0;"> + <!-- <div class="pagin-page" style="margin-top: 0;margin-bottom: 0;"> <el-pagination :current-page="queryReport.current" :page-sizes="[10, 15, 20, 50, 100]" @@ -442,11 +460,9 @@ :total="queryReport.total" > </el-pagination> - </div> + </div> --> </el-tab-pane> - - <!-- --> - <el-tab-pane name="second" label="绾胯竟浠撳緟澶勭悊鐗╂枡"> + <!-- <el-tab-pane name="second" label="绾胯竟浠撳緟澶勭悊鐗╂枡"> <div class="line-side-warehouse-header"> <div> <el-divider class="pane-divider" direction="vertical"></el-divider @@ -568,9 +584,9 @@ align="center" show-overflow-tooltip > - <template slot="header"> + <template slot="header"> --> <!-- <div style="line-height: 14px;">IFS鎵规鍙�</div> --> - <div class="th" @click.stop> + <!-- <div class="th" @click.stop> <el-input type="text" v-model="queryTodoParam.ifsBatchNo" @@ -765,10 +781,10 @@ > </el-pagination> </div> - </el-tab-pane> + </el-tab-pane> --> <!-- --> - <el-tab-pane name="third" label="閰嶇洏鐗╂枡"> + <!-- <el-tab-pane name="third" label="閰嶇洏鐗╂枡"> <div class="task-reserve-warehouse-header"> <div> <el-divider class="pane-divider" direction="vertical"></el-divider @@ -859,7 +875,7 @@ <span>{{ scope.row.partName }}</span> </template> </el-table-column> - <!-- <el-table-column label="IFS鎵规鍙�" prop="ifsBatchNo" align="center">--> + <el-table-column label="IFS鎵规鍙�" prop="ifsBatchNo" align="center">--> <!-- <template slot="header" slot-scope="scope">--> <!-- <div style="line-height: 14px;">IFS鎵规鍙�</div>--> <!-- <div class="th" @click.stop>--> @@ -876,7 +892,7 @@ <!-- <template slot-scope="scope">--> <!-- <span>{{ scope.row.ifsBatchNo }}</span>--> <!-- </template>--> - <!-- </el-table-column>--> + <!-- </el-table-column> <el-table-column label="SN鍙�" prop="partBatchNo" align="center"> <template slot="header" slot-scope="scope"> <div style="line-height: 14px;">SN鍙�</div> @@ -1000,9 +1016,9 @@ </template> </el-table-column> </el-table> - </el-tab-pane> + </el-tab-pane> --> - <el-tab-pane name="four" label="ERP鐗╂枡"> + <!-- <el-tab-pane name="four" label="ERP鐗╂枡"> <div class="task-reserve-warehouse-header"> <div> <el-divider class="pane-divider" direction="vertical"></el-divider @@ -1106,7 +1122,7 @@ </template> </el-table-column> </el-table> - </el-tab-pane> + </el-tab-pane> --> </el-tabs> <div class="workstation-house-header"> <div> @@ -1114,6 +1130,18 @@ ><span style="font-size:14px;font-weight:bold">宸叉姇鍏ユ湭娑堣�楃墿鏂�</span> </div> <div> + <el-button + class="return-btn" + type="primary" + @click="submitIns()" + >鎶ユ</el-button + > + <el-button + class="return-btn" + type="primary" + @click="inputHandle()" + >灏炬枡澶勭悊</el-button + > <el-button class="return-btn" type="primary" @@ -1174,7 +1202,7 @@ :show-overflow-tooltip="true" > <template slot="header" slot-scope="scope"> - <div style="line-height: 14px;">闆朵欢</div> + <div style="line-height: 14px;">闆朵欢鎻忚堪</div> <div class="th" @click.stop> <el-input type="text" @@ -1208,7 +1236,25 @@ <span>{{ scope.row.ifsBatchNo }}</span> </template> </el-table-column> - <el-table-column label="SN鍙�" prop="partBatchNo" align="center"> + <el-table-column label="WDR鍙�" prop="ifsWdr" align="center"> + <template slot="header" slot-scope="scope"> + <div style="line-height: 14px;">WDR鍙�</div> + <div class="th" @click.stop> + <el-input + type="text" + v-model="queryParamThree.ifsWdr" + @keyup.enter.native="handleFeedList" + clearable + @clear="handleFeedList" + size="mini" + ></el-input> + </div> + </template> + <template slot-scope="scope"> + <span>{{ scope.row.ifsWdr }}</span> + </template> + </el-table-column> + <!-- <el-table-column label="SN鍙�" prop="partBatchNo" align="center"> <template slot="header" slot-scope="scope"> <div style="line-height: 14px;">SN鍙�</div> <div class="th" @click.stop> @@ -1271,7 +1317,7 @@ <template slot-scope="scope"> <span>{{ scope.row.specs }}</span> </template> - </el-table-column> + </el-table-column> --> <el-table-column label="鍙敤鏁伴噺" prop="availableStockQuantity" @@ -1312,13 +1358,13 @@ <span>{{ scope.row.stockQuantity }}</span> </template> </el-table-column> - <el-table-column label="搴撲綅鍙�" prop="locNo" align="center"> + <el-table-column label="搴撲綅鍙�" prop="ifsLocation" align="center"> <template slot="header" slot-scope="scope"> <div style="line-height: 14px;">搴撲綅鍙�</div> <div class="th" @click.stop> <el-input type="text" - v-model="queryParamThree.locNo" + v-model="queryParamThree.ifsLocation" @keyup.enter.native="handleFeedList" clearable @clear="handleFeedList" @@ -1327,7 +1373,7 @@ </div> </template> <template slot-scope="scope"> - <span>{{ scope.row.locNo }}</span> + <span>{{ scope.row.ifsLocation }}</span> </template> </el-table-column> <el-table-column label="鍗曚綅" prop="unit" align="center"> @@ -1348,7 +1394,7 @@ <span>{{ scope.row.unit }}</span> </template> </el-table-column> - <el-table-column label="鎶曟枡浜�" prop="createUser" align="center"> + <!-- <el-table-column label="鎶曟枡浜�" prop="createUser" align="center"> <template slot="header" slot-scope="scope"> <div style="line-height: 14px;">鎶曟枡浜�</div> <div class="th" @click.stop> @@ -1365,8 +1411,8 @@ <template slot-scope="scope"> <span>{{ scope.row.createUser }}</span> </template> - </el-table-column> - <el-table-column + </el-table-column> --> + <!-- <el-table-column label="鎶曟枡鏃堕棿" prop="createTime" align="center" @@ -1394,7 +1440,7 @@ <template slot-scope="scope"> <span>{{ scope.row.createTime }}</span> </template> - </el-table-column> + </el-table-column> --> </el-table> <feedFormDialog :currshowlist.sync="showFeedForm" @@ -1441,7 +1487,7 @@ </template> <script> -import { getStock, getFeed, getTodoStock } from '@/api/product/personboard' +import { getStock, getFeed, getTodoStock, submitInsPart, inputHandle } from '@/api/product/personboard' import { getMaterial } from '@/api/plan/operationtask' import { getERPStockListByPart, @@ -1556,9 +1602,9 @@ .then((response) => { var data = response.data if (data.code === 0) { - // const list = data.data.records - this.stockList = data.data.records - this.queryReport.total = data.data.total + /* this.stockList = data.data.records + this.queryReport.total = data.data.total */ + this.stockList = data.data // this.getReportData() } else { this.$message.error('鑾峰彇绾胯竟浠撲俊鎭け璐�') @@ -1850,6 +1896,57 @@ this.$message.warning('璇烽�夋嫨鎶曟枡闆朵欢') } }, + // 鎶ユ + submitIns(){ + if (this.selectFeeds.length > 0) { + var list = [] + this.selectFeeds.forEach(a=>{ + list.push({ + partNo: a.partNo, + partDesc: a.partName, + qtyToInspect: a.availableStockQuantity, + partId: a.partId, + waivDevRejNo: a.ifsWdr, + targetQualifiedLocationId: a.locationId, + workstationId: a.workstationId, + taskId: this.currOperateTask.id, + locationNo: a.ifsLocation, + lotBatchNo: a.ifsBatchNo, + qtyArrived: a.stockQuantity, + waivDevRejNo: a.ifsWdr, + serialNo: a.serialNo, + operationId: this.currOperateTask.operationId, + stockId: a.id, + engChgLevel: a.engChgLevel, + activitySeq: a.activitySeq + }) + }) + submitInsPart(list).then(res=>{ + this.$message.success('鎶ユ瀹屾垚') + }) + }else{ + this.$message.warning('璇烽�夋嫨鎶ユ闆朵欢') + } + }, + inputHandle(){ + console.log(this.currOperateTask); + if (this.selectFeeds.length > 0) { + var list = [] + this.selectFeeds.forEach(a=>{ + list.push({ + taskId: this.currOperateTask.id, + stockId: a.id, + }) + }) + this.$confirm("姝ゆ搷浣滃皢浼氭妸鎵�閫夌墿鏂欏钩鍧囪绠楀埌鎵�鏈夋姤宸ュ崟鐨勬姇鍏ラ噷").then(()=>{ + inputHandle(list).then(res=>{ + this.$message.success('澶勭悊瀹屾垚') + }) + }).catch(e=>{}) + } else { + this.$message.warning('璇烽�夋嫨灏炬枡澶勭悊鐨勭墿鏂�') + } + }, // 鍒濆鍖栭〉闈㈠彉閲� initFeed() { this.selectStocks = [] -- Gitblit v1.9.3