| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-tabs v-model="activeName"> |
| | | <el-tab-pane name="first" label="线边仓合格物料"> |
| | | <!-- <el-tab-pane name="first" label="线边仓合格物料"> --> |
| | | <div class="line-side-warehouse-header"> |
| | | <div> |
| | | <el-divider class="pane-divider" direction="vertical"></el-divider |
| | |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="零件描述" |
| | | prop="partDescription" |
| | | label="零件" |
| | | prop="partName" |
| | | align="center" show-overflow-tooltip |
| | | > |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">零件描述</div> |
| | | <div style="line-height: 14px;">零件</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.partDescription" |
| | | v-model="queryParamTwo.partName" |
| | | @keyup.enter.native="handleStockList" |
| | | clearable |
| | | @clear="handleStockList" |
| | |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.partDescription }}</span> |
| | | <span>{{ scope.row.partName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="IFS批次号" prop="ifsBatchNo" align="center"> |
| | | <el-table-column label="批次号" prop="ifsBatchNo" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">IFS批次号</div> |
| | | <div style="line-height: 14px;">批次号</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | |
| | | <span>{{ scope.row.ifsBatchNo }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="WDR号" prop="ifsWdr" 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> |
| | |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.ifsWdr }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <!-- <el-table-column label="SN号" prop="partBatchNo" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">SN号</div> |
| | |
| | | > |
| | | <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" |
| | |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.availableStockQuantity }}</span> |
| | |
| | | <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" |
| | |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.stockQuantity }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="预留数量" |
| | | prop="reserveQuantity" |
| | | align="center" |
| | | > |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">预留数量</div> |
| | | <div style="line-height: 14px;">预留数量</div> --> |
| | | <!-- <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | |
| | | size="mini" |
| | | ></el-input> |
| | | </div> --> |
| | | </template> |
| | | <!-- </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.reserveQuantity }}</span> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="是否工序库存" prop="operationStockStatus" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.operationStockStatus">是</span> |
| | | <span v-else>否</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="所属工序" prop="name" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">所属工序</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.name" |
| | | @keyup.enter.native="handleStockList" |
| | | clearable |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="库位号" prop="locationNo" align="center"> |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> --> |
| | | </el-tab-pane> |
| | | <!-- </el-tab-pane> --> |
| | | <!-- <el-tab-pane name="second" label="线边仓待处理物料"> |
| | | <div class="line-side-warehouse-header"> |
| | | <div> |
| | |
| | | >扫码投料</el-button |
| | | > |
| | | <el-button |
| | | class="feeding-btn" |
| | | class="feeding-btn"locationNo |
| | | type="primary" |
| | | icon="feed-btn-feeding" |
| | | @click="addFeed()" |
| | |
| | | :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" |
| | |
| | | <span>{{ scope.row.partName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="IFS批次号" prop="ifsBatchNo" align="center"> |
| | | <el-table-column label="批次号" prop="ifsBatchNo" align="center"> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="line-height: 14px;">IFS批次号</div> |
| | | <div style="line-height: 14px;">批次号</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | |
| | | <span>{{ scope.row.ifsBatchNo }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="WDR号" prop="ifsWdr" 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> |
| | |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.ifsWdr }}</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> |
| | |
| | | <span>{{ scope.row.stockQuantity }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否工序库存" prop="operationStockStatus" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.operationStockStatus">是</span> |
| | | <span v-else>否</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="所属工序" prop="name" align="center"> |
| | | <template slot="header"> |
| | | <div style="line-height: 14px;">所属工序</div> |
| | | <div class="th" @click.stop> |
| | | <el-input |
| | | type="text" |
| | | v-model="queryParamTwo.name" |
| | | @keyup.enter.native="handleStockList" |
| | | clearable |
| | | @clear="handleStockList" |
| | | size="mini" |
| | | ></el-input> |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="库位号" prop="ifsLocation" align="center"> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="line-height: 14px;">库位号</div> |
| | |
| | | </div> |
| | | </template> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.ifsLocation }}</span> |
| | | <span>{{ scope.row.locNo }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="单位" prop="unit" align="center"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getStock, getFeed, getTodoStock, submitInsPart, inputHandle } from '@/api/product/personboard' |
| | | import { getStock, getFeed,getFeed2, getTodoStock, submitInsPart, inputHandle } from '@/api/product/personboard' |
| | | import { getMaterial } from '@/api/plan/operationtask' |
| | | import { |
| | | getERPStockListByPart, |
| | | fetchList |
| | | fetchList, |
| | | } from '@/api/warehouse/joinstockorder' |
| | | import feedFormDialog from './feed-form' |
| | | import returnMaterialFormDialog from './returnmaterial-form' |
| | |
| | | this.paramObject, |
| | | this.queryParamThree |
| | | ) |
| | | getFeed(query, stationId) |
| | | getFeed2(query, stationId) |
| | | .then((response) => { |
| | | var data = response.data |
| | | if (data.code === 0) { |
| | |
| | | } |
| | | }, |
| | | inputHandle(){ |
| | | console.log(this.currOperateTask); |
| | | if (this.selectFeeds.length > 0) { |
| | | var list = [] |
| | | this.selectFeeds.forEach(a=>{ |
| | |
| | | getERPStockListByPart({ |
| | | partNo: part.partNo, |
| | | partBatchNo: part.partBatchNo |
| | | }) |
| | | .then((resp) => { |
| | | }).then((resp) => { |
| | | const respCode = resp.data.code |
| | | const respData = resp.data.data |
| | | if (respCode === 0) { |
| | |
| | | this.isSubmit = false |
| | | this.$message.error('库存列表查询失败') |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | }).catch(() => { |
| | | this.isSubmit = false |
| | | console.log('查询零件对应的库存列表时,发生错误') |
| | | }) |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | showFeedForm:{ |
| | | handler(newVal,oldVal){ |
| | | if(!newVal){ |
| | | this.$refs.stockTable.toggleAllSelection(false) |
| | | } |
| | | }, |
| | | deep: true |
| | | }, |
| | | workstationId() { |
| | | this.$nextTick(() => { |
| | | if (this.currItem != null && this.currItem === 'feed') { |