库存查询,库存详情,参数配置等

master
anthonyywj2 3 years ago
parent 91672030a7
commit a7e9731785

@ -1,7 +1,7 @@
{ {
"UDI_SYNC_SERVER_IP": "http://192.168.0.115:9995/", "UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/",
"BASE_URL":"http://192.168.0.115:9991", "BASE_URL":"http://192.168.0.109:9991",
"SERVER_IP": "http://192.168.0.115:9991/", "SERVER_IP": "http://192.168.0.109:9991/",
"WEBSOCKET_URL": "ws://192.168.0.115:9991/UDI_WMS_MC/api/websocket/", "WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/",
"hosp_name": "诏安县总医院(测试)" "hosp_name": "诏安县总医院(测试)"
} }

@ -218,6 +218,7 @@ export default {
scanPreIn: null, scanPreIn: null,
vailInv: null, vailInv: null,
entrutSpms: null, entrutSpms: null,
codeFillCheck: null,
}, },
enableMap: { enableMap: {
true: "是", true: "是",
@ -389,7 +390,9 @@ export default {
ullageFill: row.ullageFill, ullageFill: row.ullageFill,
scanPreIn: row.scanPreIn, scanPreIn: row.scanPreIn,
vailInv: row.vailInv, vailInv: row.vailInv,
entrutSpms: row.entrutSpms entrutSpms: row.entrutSpms,
codeFillCheck: row.codeFillCheck,
}; };
this.modifyDialogVisible = true; this.modifyDialogVisible = true;

@ -213,6 +213,8 @@
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.vailInv">访 <el-checkbox v-model="inputQuery.vailInv">访
</el-checkbox> </el-checkbox>
<el-checkbox v-model="inputQuery.codeFillCheck">
</el-checkbox>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>

@ -30,12 +30,33 @@
<el-table-column label="序号" type="index" fixed></el-table-column> <el-table-column label="序号" type="index" fixed></el-table-column>
<!-- <el-table-column label="ID" prop="id" fixed></el-table-column> --> <!-- <el-table-column label="ID" prop="id" fixed></el-table-column> -->
<el-table-column label="条码" prop="code" fixed></el-table-column> <el-table-column label="条码" prop="code" fixed></el-table-column>
<el-table-column
label="生产日期"
prop="produceDate"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="批次号"
prop="batchNo"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="序列号"
prop="serialNo"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="扫码数量" label="扫码数量"
prop="count" prop="count"
width="220" width="220"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="创建时间" prop="actDate"> <el-table-column label="创建时间" prop="actDate">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>

@ -1,151 +1,172 @@
<template> <template>
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="query.code" placeholder="条码查询"></el-input> <el-input v-model="query.code" placeholder="条码查询"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="search" @click="getCodeList" <el-button type="primary" icon="search" @click="getCodeList"
>查询</el-button >查询
> </el-button
</el-button-group> >
</el-form-item> </el-button-group>
</el-form> </el-form-item>
<el-table v-loading="loading" :data="codeArry" style="width: 100%"> </el-form>
<el-table-column label="序号" type="index"></el-table-column> <el-table v-loading="loading" :data="codeArry" style="width: 100%">
<el-table-column <el-table-column label="序号" type="index"></el-table-column>
label="条码" <el-table-column
prop="code" label="条码"
show-overflow-tooltip prop="code"
></el-table-column> show-overflow-tooltip
<el-table-column ></el-table-column>
label="扫码数量" <el-table-column
prop="count" label="生产日期"
width="180" prop="produceDate"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="创建时间" prop="actDate" width="220" show-overflow-tooltip> <el-table-column
<template slot-scope="scope"> label="失效日期"
<i class="el-icon-time"></i> prop="expireDate"
<span>{{ scope.row.actDate }}</span> show-overflow-tooltip
</template> ></el-table-column>
</el-table-column> <el-table-column
<el-table-column label="操作员" prop="actor" width="180"></el-table-column> label="批次号"
</el-table> prop="batchNo"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="序列号"
prop="serialNo"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="扫码数量"
prop="count"
width="180"
show-overflow-tooltip
></el-table-column>
<el-table-column label="创建时间" prop="actDate" width="220" show-overflow-tooltip>
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span>{{ scope.row.actDate }}</span>
</template>
</el-table-column>
<el-table-column label="操作员" prop="actor" width="180"></el-table-column>
</el-table>
<el-pagination <el-pagination
:page-size="query.limit" :page-size="query.limit"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next,total" layout="prev, pager, next,total"
:total="total" :total="total"
> >
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
import { codeList } from "../../api/inout/order"; import {codeList} from "../../api/inout/order";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
export default { export default {
name: "idQuery", name: "idQuery",
props: { props: {
idQuery: { idQuery: {
type: Object, type: Object,
required: true, required: true,
},
}, },
}, data() {
data() { return {
return { query: {
query: { code: "",
code: "", corpOrderId: "",
corpOrderId: "", page: 1,
page: 1, limit: 20,
limit: 20, },
}, codeArry: [],
codeArry: [], total: 0,
total: 0, loading: true,
loading: true, index: null,
index: null, formLoading: false,
formLoading: false, formVisible: false,
formVisible: false, deleteLoading: false,
deleteLoading: false, orderNo: null,
orderNo: null, };
};
},
components: {
draggable,
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.query = {
code: "",
corpOrderId: "",
page: 1,
limit: 20,
};
this.getCodeList();
}, },
onSubmit() { components: {
this.$router.push({ draggable,
path: "",
query: this.query,
});
this.getCodeList();
},
handleSizeChange(val) {
this.query.limit = val;
this.getCodeList();
},
handleCurrentChange(val) {
this.query.page = val;
this.getCodeList();
}, },
methods: {
onReset() {
this.$router.push({
path: "",
});
this.query = {
code: "",
corpOrderId: "",
page: 1,
limit: 20,
};
this.getCodeList();
},
onSubmit() {
this.$router.push({
path: "",
query: this.query,
});
this.getCodeList();
},
handleSizeChange(val) {
this.query.limit = val;
this.getCodeList();
},
handleCurrentChange(val) {
this.query.page = val;
this.getCodeList();
},
getCodeList() { getCodeList() {
this.loading = true; this.loading = true;
this.query.corpOrderId = this.idQuery.id; this.query.corpOrderId = this.idQuery.id;
codeList(this.query) // codeList(this.query) //
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.codeArry = response.data.list || []; this.codeArry = response.data.list || [];
this.total = response.data.total || 0; this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = []; this.list = [];
this.total = 0; this.total = 0;
}); });
},
intentBack() {
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}});
this.$router.go(-1);
},
}, },
intentBack() { filters: {},
// this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}}); mounted() {
this.$router.go(-1); document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
};
}, },
}, created() {
filters: {}, //
mounted() { let query = this.$route.query;
document.body.ondrop = function (event) { this.orderNo = query.id;
event.preventDefault();
event.stopPropagation();
};
},
created() {
//
let query = this.$route.query;
this.orderNo = query.id;
this.query = Object.assign(this.query, query); this.query = Object.assign(this.query, query);
this.query.limit = parseInt(this.query.limit); this.query.limit = parseInt(this.query.limit);
this.query.corpOrderId = query.id; this.query.corpOrderId = query.id;
// //
this.getCodeList(); this.getCodeList();
}, },
}; };
</script> </script>

@ -31,6 +31,26 @@
<el-table-column label="序号" type="index" fixed></el-table-column> <el-table-column label="序号" type="index" fixed></el-table-column>
<!-- <el-table-column label="ID" prop="id" fixed></el-table-column> --> <!-- <el-table-column label="ID" prop="id" fixed></el-table-column> -->
<el-table-column label="条码" prop="code" fixed></el-table-column> <el-table-column label="条码" prop="code" fixed></el-table-column>
<el-table-column
label="生产日期"
prop="produceDate"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="批次号"
prop="batchNo"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="序列号"
prop="serialNo"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="供应商" label="供应商"
prop="supId" prop="supId"
@ -59,6 +79,13 @@
<!-- >删除--> <!-- >删除-->
<!-- </el-button--> <!-- </el-button-->
<!-- >--> <!-- >-->
<el-button
type="text"
size="small"
@click.native.stop="editCode(scope.row)"
>编辑
</el-button
>
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -113,6 +140,20 @@
v-on:closeBindDialog="closeBindDialog" v-on:closeBindDialog="closeBindDialog"
></selectRlDialog> ></selectRlDialog>
</el-dialog> </el-dialog>
<el-dialog
:title="editTitle"
:visible.sync="editCodeVisible"
append-to-body width="70%"
v-if="editCodeVisible"
>
<editCodeDialog
editTye="2"
:closeCodeDialog="closeCodeDialog"
:codeDetail="codeDetail">
</editCodeDialog>
</el-dialog>
</div> </div>
</template> </template>
@ -125,6 +166,7 @@ import {
import draggable from "vuedraggable"; import draggable from "vuedraggable";
import DialogSelectUnit from "./DialogSelectUnit"; import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl"; import selectRlDialog from "./DialogSelectRl";
import editCodeDialog from "@/views/inout/editCode";
export default { export default {
name: "idQuery", name: "idQuery",
@ -154,10 +196,13 @@ export default {
multipleSelection: [], multipleSelection: [],
selectRlVisible: false, selectRlVisible: false,
dialogTableVisible: false, dialogTableVisible: false,
codeDetail: null,
editTitle: "补齐三期",
editCodeVisible: false,
}; };
}, },
components: { components: {
draggable, DialogSelectUnit, selectRlDialog draggable, DialogSelectUnit, selectRlDialog,editCodeDialog
}, },
methods: { methods: {
handleSelectionChange(val) { handleSelectionChange(val) {
@ -307,6 +352,13 @@ export default {
} }
return rowBackground; return rowBackground;
}, },
closeCodeDialog() {
this.editCodeVisible = false;
},
editCode(row) {
this.codeDetail = row;
this.editCodeVisible = true;
},
}, },
filters: {}, filters: {},
mounted() { mounted() {

Loading…
Cancel
Save