|
@@ -3,13 +3,9 @@
|
|
|
<div class="title-container">
|
|
|
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
</div>
|
|
|
- <div style="margin-top: 27px;">
|
|
|
- <el-card class="box-card" shadow="never">
|
|
|
- <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入产品号" />
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
<y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="getList">
|
|
|
<template slot="left">
|
|
|
+ <el-switch v-model="warehouseDialog" style="margin-top: 5px;margin-left: 20px;" active-text="开启出入库" inactive-text="关闭出入库"></el-switch>
|
|
|
<el-input v-model="listQuery.keyword" placeholder="关键字搜索..." clearable
|
|
|
style="margin-left: 20px;width: 500px;float: left;">
|
|
|
</el-input>
|
|
@@ -77,6 +73,14 @@
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
|
</y-page-list-layout>
|
|
|
+ <el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
|
|
|
+ @closed="cleanWareHouseProductionType()">
|
|
|
+ <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入产品号" />
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="warehouseDialog = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="doWareHouse()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -131,6 +135,8 @@ export default {
|
|
|
}
|
|
|
}]
|
|
|
},
|
|
|
+ warehouseDialog:false,
|
|
|
+ scanEntryData:null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -175,10 +181,34 @@ export default {
|
|
|
}
|
|
|
return '报告';
|
|
|
},
|
|
|
+ cleanWareHouseProductionType() {
|
|
|
+ this.scanEntryData = null;
|
|
|
+ },
|
|
|
+ handleScanEntry(scanData) {
|
|
|
+ this.scanEntryData = scanData;
|
|
|
+ },
|
|
|
+ doWareHouse(){
|
|
|
+ let productionNo = this.scanEntryData;
|
|
|
+ if (!productionNo){
|
|
|
+ productionNo = this.$refs.scanEntry.scanEntryData;
|
|
|
+ }
|
|
|
+ if (productionNo){
|
|
|
+
|
|
|
+ this.$api.businessProduction.commonWareHouse(productionNo).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$message({type:'success',message:"操作成功"});
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message({type:'error',message:"未获取到报告号"});
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
+/deep/.doWarehouseClass {
|
|
|
+ border-radius: 10px;
|
|
|
+}
|
|
|
</style>
|