bug修改

featFunction
anthonywj 3 years ago
parent ca14317d66
commit 54b6d39f16

@ -1,6 +1,6 @@
{ {
"BASE_URL": "http://192.168.0.66:8500/SPMS_SERVER", "BASE_URL": "http://192.168.0.109:9906",
"SERVER_IP": "http://192.168.0.66:8500/SPMS_SERVER", "SERVER_IP": "http://192.168.0.109:9906",
"hosp_name": "诏安县总医院(测试)" "hosp_name": "诏安县总医院(测试)"
} }

@ -693,6 +693,7 @@
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
type='number' type='number'
step="0.01"
v-model="editQuery.price" v-model="editQuery.price"
></el-input> ></el-input>
</div> </div>

@ -338,7 +338,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
type="selection" type="selection"
:reserve-selection="false" :reserve-selection="true"
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column label="单据类型编码" prop="action" fixed></el-table-column> <el-table-column label="单据类型编码" prop="action" fixed></el-table-column>
@ -894,7 +894,7 @@ export default {
bussinessTypeQuery: { bussinessTypeQuery: {
enabled: true, enabled: true,
page: 1, page: 1,
limit: 10 limit: 100
}, },
bussinessTypeTotal: 0, bussinessTypeTotal: 0,
curSeleUser: null, curSeleUser: null,

@ -122,8 +122,11 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
} },
getRowKeys(row) {
return row.id
},
}, },
created() { created() {

@ -20,7 +20,6 @@
style="width: 500px" style="width: 500px"
@keypress.enter.native="enterKey($event)" @keypress.enter.native="enterKey($event)"
></el-input> ></el-input>
<el-checkbox v-model="sitcomScan" style="margin-left: 15px"></el-checkbox>
</el-form-item> </el-form-item>
</el-row> </el-row>
@ -487,12 +486,8 @@ export default {
}, },
enterKey(event) { enterKey(event) {
if (this.sitcomScan) {
return;
} else {
this.$refs.inputRef.select(); this.$refs.inputRef.select();
this.onSubmit(); this.onSubmit();
}
}, },
onSubmit() { onSubmit() {
this.getList(); this.getList();
@ -584,7 +579,7 @@ export default {
this.filterQuery.customerId = store.getters.customerId; this.filterQuery.customerId = store.getters.customerId;
if (!this.$isBlank(this.filterQuery.code)) { if (!this.$isBlank(this.filterQuery.code)) {
let code = this.filterQuery.code; let code = this.filterQuery.code;
this.filterQuery.code = code.replace("\r","") this.filterQuery.code = code.replace("\r", "")
} }
filterOrderTrace(this.filterQuery) filterOrderTrace(this.filterQuery)
.then((response) => { .then((response) => {
@ -976,9 +971,8 @@ export default {
}; };
var that = this; var that = this;
var inputer = document.getElementById("inputer"); var inputer = document.getElementById("inputer");
window.sc = new A.KeyScaner(inputer);//DOM window.sc = new A.KeyScaner(inputer);
sc.onInput = function (text) { sc.onInput = function (text) {
//onInput500ms
if (text.includes("delete")) { if (text.includes("delete")) {
that.formData.code = ""; that.formData.code = "";
return; return;
@ -1009,7 +1003,30 @@ export default {
</script> </script>
<style> <style scoped>
#inputer {
width: 100%;
min-height: 30px;
background-color: white;
border: #d0d0d0;
border-style: solid;
border-width: 0.1px;
color: #4a4a4a;
}
#inputer:focus {
width: 100%;
min-height: 30px;
background-color: white;
border: #0080FF;
border-style: solid;
border-width: 0.1px;
color: #4a4a4a;
}
.el-table .warning-row { .el-table .warning-row {
background: #ffb5b5; background: #ffb5b5;
} }

@ -702,7 +702,6 @@ export default {
}, },
findSubStorageMethod() { findSubStorageMethod() {
let cQuery = { let cQuery = {
pcode: this.formData.corpId, pcode: this.formData.corpId,
@ -793,9 +792,7 @@ export default {
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event != null) {
// this.$refs.inputRef.focus();
} else {
event.target.select(); event.target.select();
} }
if (this.$isBlank(event)) { if (this.$isBlank(event)) {

@ -76,24 +76,6 @@
<span>{{ scope.row.actDate }}</span> <span>{{ scope.row.actDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- label="审核时间"-->
<!-- prop="actDate"-->
<!-- width="150"-->
<!-- show-overflow-tooltip="true"-->
<!-- >-->
<!-- <template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.auditTime }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="校验状态" prop="contrastStatus" width="120">-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag :type="(scope.row.contrastStatus === 1) | statusFilterType">-->
<!-- {{ erpCheckStatus[scope.row.contrastStatus] }}-->
<!-- </el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="操作" fixed="right" width="150"> <el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -243,13 +225,13 @@
</template> </template>
<script> <script>
import {filterOrderForDelete, orderDetail, deleteByOrderId, updateOrderInfo} from "../../api/warehouse/order"; import {filterOrderForDelete, orderDetail, deleteByOrderId, updateOrderInfo} from "../../api/warehouse/order";
import store from "../../store"; import store from "../../store";
import {getBussinessType} from "../../api/basic/bussinessType"; import {getBussinessType} from "../../api/basic/bussinessType";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import codeReplace from "./codeReplace"; import codeReplace from "./codeReplace";
export default { export default {
name: "stockOrderDelete", name: "stockOrderDelete",
data() { data() {
return { return {
@ -579,12 +561,12 @@
this.getBusType(); this.getBusType();
this.getStorage(); this.getStorage();
} }
} }
</script> </script>
<style scoped> <style scoped>
.el-dialog { .el-dialog {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 0 !important; margin: 0 !important;
@ -592,17 +574,17 @@
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.el-dialog .el-dialog__body { .el-dialog .el-dialog__body {
flex: 1; flex: 1;
overflow: auto; overflow: auto;
} }
.el-table /deep/ .highlight-row { .el-table /deep/ .highlight-row {
background: #cae3f9; background: #cae3f9;
} }
</style> </style>

@ -372,9 +372,6 @@ export default {
invWarehouseCode: [ invWarehouseCode: [
{required: true, message: "请选择当前分库", trigger: "blur"} {required: true, message: "请选择当前分库", trigger: "blur"}
], ],
// type: [
// {required: true, message: "", trigger: "blur"}
// ],
}, },
codeArray: [], codeArray: [],
total: 0, total: 0,
@ -559,10 +556,9 @@ export default {
}); });
}, },
selectProductFunction(event) { selectProductFunction(event) {
if (event == null) { if (event != null)
} else event.target.select(); event.target.select();
if (this.$isBlank(event)) { if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.billType)) { if (this.$isBlank(this.formData.billType)) {
this.$message.error("单据类型不能为空!") this.$message.error("单据类型不能为空!")
return; return;
@ -580,6 +576,7 @@ export default {
this.thisData.code = ""; this.thisData.code = "";
this.thisData.orderEditor = this.orderEditor; this.thisData.orderEditor = this.orderEditor;
this.thisData.orderId = ""; this.thisData.orderId = "";
this.thisData.billType = this.formData.billType;
this.thisData.stockOrderLists = this.codeArray; this.thisData.stockOrderLists = this.codeArray;
if (this.orderEditor) { if (this.orderEditor) {
this.thisData.orderId = this.formData.id this.thisData.orderId = this.formData.id
@ -605,7 +602,6 @@ export default {
}; };
stockOrderDetailQueryProduct(tQuery).then((response) => { stockOrderDetailQueryProduct(tQuery).then((response) => {
this.loading = false; this.loading = false;
console.log(response)
if (response.code === 20000) { if (response.code === 20000) {
if (response.data.getType === "1") { if (response.data.getType === "1") {
this.loading = true; this.loading = true;
@ -673,20 +669,15 @@ export default {
}, },
iCountChange() { iCountChange() {
// console.log(this.iCount)
// this.currentRow.count = this.iCount;
// this.currentRow.reCount = this.iCount;
}, },
iCountEnterFunction() { iCountEnterFunction() {
if (this.$isNotBlank(this.currentRow)) { if (this.$isNotBlank(this.currentRow)) {
this.currentRow.count = this.iCount; this.currentRow.count = this.iCount;
// this.currentRow.reCount = this.iCount;
} }
this.focusNext('inputRef'); this.focusNext('inputRef');
}, },
tableCountChange(row) { tableCountChange(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
// row.count = row.reCount;
} }
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
@ -816,7 +807,6 @@ export default {
this.iCount = 0; this.iCount = 0;
this.detailLoading = true; this.detailLoading = true;
// row.count = row.reCount;
let tQuery = row; let tQuery = row;
uploadStockOrderDetail(tQuery).then((response) => { uploadStockOrderDetail(tQuery).then((response) => {
this.detailLoading = false; this.detailLoading = false;
@ -875,21 +865,6 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { }).then(() => {
// let tQuery = {
// id: row.id
// }
// this.detailLoading = true;
// copyStockOrderDetail(tQuery)
// .then((response) => {
// this.detailLoading = false;
// if (response.code === 20000) {
// this.$message.success("");
// this.getStockOrderDetailList();
// } else {
// this.$message.error(response.message);
// }
// });
let rData = JSON.parse(JSON.stringify(row)); let rData = JSON.parse(JSON.stringify(row));
rData.id = null; rData.id = null;
if (this.codeArray.length === 0) { if (this.codeArray.length === 0) {

@ -125,7 +125,7 @@
append-to-body append-to-body
v-if="udiRlDetailVisible" v-if="udiRlDetailVisible"
> >
<udiRlDetailDialog :editQuery="currentRow" ></udiRlDetailDialog> <udiRlDetailDialog :editQuery="currentRow"></udiRlDetailDialog>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -137,8 +137,9 @@ import {
} from "../../api/warehouse/stockOrder"; } from "../../api/warehouse/stockOrder";
import store from "../../store"; import store from "../../store";
import udiRlDetailDialog from "./../basic/UdiRlDetailDialog"; import udiRlDetailDialog from "./../basic/UdiRlDetailDialog";
export default { export default {
name: "closeDialog", name: "stockOrderNewSelectProduct",
props: { props: {
data: { data: {
type: Object, type: Object,
@ -168,7 +169,7 @@ export default {
total: 1, total: 1,
currentRow: null, currentRow: null,
loading: false, loading: false,
udiRlDetailVisible:false, udiRlDetailVisible: false,
multipleUdiSelection: [], multipleUdiSelection: [],
thirdSys: [], thirdSys: [],
thirdSysFk: null, thirdSysFk: null,
@ -321,6 +322,8 @@ export default {
this.multipleUdiSelection = val; this.multipleUdiSelection = val;
}, },
}, },
components: {udiRlDetailDialog},
created() { created() {
if (this.$isNotBlank(this.data)) { if (this.$isNotBlank(this.data)) {
this.listQuery.nameCode = this.data.udi; this.listQuery.nameCode = this.data.udi;
@ -328,13 +331,15 @@ export default {
this.listQuery.billType = this.data.billType; this.listQuery.billType = this.data.billType;
} else } else
this.listQuery.billType = this.data.formData.billType; this.listQuery.billType = this.data.formData.billType;
if (this.data.formData != null) {
this.listQuery.corpId = this.data.formData.corpId; this.listQuery.corpId = this.data.formData.corpId;
}
this.orderEditor = this.data.orderEditor; this.orderEditor = this.data.orderEditor;
this.orderId = this.data.orderId; this.orderId = this.data.orderId;
this.getList();
} }
this.getList();
}, },
components: {udiRlDetailDialog},
}; };
</script> </script>

Loading…
Cancel
Save