一些小问题以及bug修复,单据单号自动生成

master
anthonywj 3 years ago
parent 543ba9bd29
commit 76910d2aca

@ -1,4 +1,5 @@
{
"BASE_URL": "http://139.159.187.130/SPMS_SERVER",
"SERVER_IP": "http://192.168.0.109:9996"
"BASE_URL": "http://192.168.0.109:9996",
"SERVER_IP": "http://192.168.0.109:9996",
"hosp_name": "诏安县总医院(测试)"
}

@ -94,7 +94,6 @@
<el-table
:data="udidlList"
style="width: 100%"
@row-click="intentDetail"
v-loading="loading"
highlight-current-row="true"
:row-class-name="tableRowClassName"

@ -74,7 +74,7 @@
</el-card>
<el-dialog
title="库存详情"
title="库存详情"
:visible.sync="codeDetailVisible"
width="85%"
v-if="codeDetailVisible"

@ -585,6 +585,11 @@ export default {
getList() {
this.loading = true;
this.filterQuery.customerId = store.getters.customerId;
if (!this.$isBlank(this.filterQuery.code)) {
console.log(this.filterQuery.code)
let code = this.filterQuery.code;
this.filterQuery.code = code.replace("\r","")
}
filterOrderTrace(this.filterQuery)
.then((response) => {
if (response.code == 20000) {

@ -3,7 +3,7 @@
<div>
<h3 class="toptitle">诏安县总医院</h3>
<h3 class="toptitle">{{hospName}}</h3>
</div>
<el-form
@ -66,7 +66,8 @@
<!--<icon-svg icon-class="tongyong"/>-->
<!--</i>-->
<!--</el-input>-->
<Verify ref="checkV" :showButton="false" :barSize="{width:'305px',height:'37px'}" :vOffset="5" @success="verifyAlert('success')" @error="verifyAlert('error')" :type="3"></Verify>
<Verify ref="checkV" :showButton="false" :barSize="{width:'305px',height:'37px'}" :vOffset="5"
@success="verifyAlert('success')" @error="verifyAlert('error')" :type="3"></Verify>
</el-form-item>
<div style="text-align: center; margin-top: 15px">
<el-button
@ -88,16 +89,14 @@
</el-card>
</el-form>
<div style=" position: absolute; bottom: 0; left: 50%; transform: translate(-50%, -50%);">
<a href="http://www.beian.gov.cn/portal/registerSystemInfo" style="color: white; font-size: 12px" >
厦门高立新鹏软件科技有限公司&nbsp; &nbsp;闽公网安备35020302034269号&nbsp;
</a>
<a href="http://beian.miit.gov.cn" style="color: white; font-size: 10px" >闽ICP备17019234号</a>
<a href="http://beian.miit.gov.cn" style="color: white; font-size: 10px">闽ICP备17019234号-4</a>
</div>
</div>
</template>
<script>
import Verify from 'vue2-verify'
import axios from "axios";
export default {
data() {
@ -125,6 +124,7 @@
loading: false, // loading
showDialog: false, // dialog
redirect: null, //
hospName: "",
};
},
methods: {
@ -188,6 +188,13 @@
// URL Encode
this.redirect = decodeURIComponent(query.redirect);
}
axios.get("./config.json").then(res => {
this.hospName = res.data.hosp_name;
});
}
};
</script>
@ -270,6 +277,7 @@
text-align: center;
font-weight: bold;
}
.login-form {
//@include fxied-center;
margin: 0px 100px auto auto;

@ -391,8 +391,6 @@ import {
} from "../../../api/param/systemPDFTemplate";
import {saveAs} from 'file-saver';
import {BASE_URL, SERVER_IP} from "../../../config/app";
import {authRoleAuthList} from "../../../api/auth/authRole";
import {updateStockOrderDetail} from "@/api/warehouse/stockOrder";
const formJson = {
id: "",

@ -593,7 +593,7 @@ export default {
curRow: null,
successOrderExportPDFSettingVisible: false,
total: 0,
loading: true,
loading: false,
index: null,
formName: null,
orderId: "",

@ -546,6 +546,7 @@ export default {
this.storageList = response.data || [];
if (this.storageList.length > 0) {
this.filterQuery.locStorageCode = this.storageList[0].code;
this.getList();
}
})
.catch(() => {
@ -573,7 +574,7 @@ export default {
this.filterQuery = Object.assign(this.filterQuery, query);
this.filterQuery.limit = parseInt(this.filterQuery.limit);
//
this.getList();
this.getStorage();
},
};

@ -365,7 +365,7 @@ export default {
addOrderVisible: false,
addHosOrderVisible: false,
total: 0,
loading: true,
loading: false,
index: null,
formName: null,
errorDetail: "1111111111111",

@ -498,7 +498,7 @@ export default {
codeDetailVisible: false,
successOrderExportPDFSettingVisible: false,
total: 0,
loading: true,
loading: false,
index: null,
formName: null,
orderId: "",

@ -495,7 +495,7 @@ export default {
codeDetailVisible: false,
successOrderExportPDFSettingVisible: false,
total: 0,
loading: true,
loading: false,
index: null,
formName: null,
orderId: "",

@ -196,6 +196,7 @@
@keypress.enter.native="enterKey($event)"
ref='inputRef'
style="ime-mode:disabled"
type="tel"
v-model="formData.code"
></el-input>
</el-form-item>

@ -127,6 +127,7 @@
@keypress.enter.native="enterKey($event)"
ref='inputRef'
style="ime-mode:disabled"
type="tel"
v-model="formData.code"
></el-input>
</el-form-item>

@ -766,6 +766,7 @@ export default {
this.loading = false;
if (response.code === 20000) {
this.$message.success(tMessage + "成功");
this.formData.billNo = response.data;
this.closeDialog(true);
} else {
this.$message.error(response.message);
@ -1196,23 +1197,23 @@ export default {
intentBack() {
this.$router.go(-1);
},
generateBillNo() {
let tQuery = {
action: this.formData.billType
}
this.loading = true;
stockOrderGenerateBillNo(tQuery)
.then((response) => {
this.loading = false;
if (response.code === 20000) {
this.formData.billNo = response.data;
// this.formData.billdate = parseTime(new Date(), '{y}{m}{d}');
this.formData.billdate = new Date();
} else {
this.closeDialog(true);
}
});
},
// generateBillNo() {
// let tQuery = {
// action: this.formData.billType
// }
// this.loading = true;
// stockOrderGenerateBillNo(tQuery)
// .then((response) => {
// this.loading = false;
// if (response.code === 20000) {
// this.formData.billNo = response.data;
// // this.formData.billdate = parseTime(new Date(), '{y}{m}{d}');
// this.formData.billdate = new Date();
// } else {
// this.closeDialog(true);
// }
// });
// },
getBusType(invCode) {
let query = {
enabled: true,
@ -1325,7 +1326,8 @@ export default {
};
this.iCount = 0;
this.orderEditor = false;
this.generateBillNo();
this.formData.billdate = new Date();
// this.generateBillNo();
}
},
};

@ -637,6 +637,7 @@ export default {
this.loading = false;
if (response.code === 20000) {
this.$message.success(tMessage + "成功");
this.formData.billNo = response.data;
this.closeDialog(true);
} else {
this.$message.error(response.message);
@ -1064,23 +1065,23 @@ export default {
intentBack() {
this.$router.go(-1);
},
generateBillNo() {
let tQuery = {
action: this.formData.billType
}
this.loading = true;
stockOrderGenerateBillNo(tQuery)
.then((response) => {
this.loading = false;
if (response.code === 20000) {
this.formData.billNo = response.data;
// this.formData.billdate = parseTime(new Date(), '{y}{m}{d}');
this.formData.billdate = new Date();
} else {
this.closeDialog(true);
}
});
},
// generateBillNo() {
// let tQuery = {
// action: this.formData.billType
// }
// this.loading = true;
// stockOrderGenerateBillNo(tQuery)
// .then((response) => {
// this.loading = false;
// if (response.code === 20000) {
// this.formData.billNo = response.data;
// // this.formData.billdate = parseTime(new Date(), '{y}{m}{d}');
// this.formData.billdate = new Date();
// } else {
// this.closeDialog(true);
// }
// });
// },
getBusType() {
let query = {
enabled: true,
@ -1155,7 +1156,8 @@ export default {
};
this.iCount = 0;
this.orderEditor = false;
this.generateBillNo();
this.formData.billdate = new Date();
// this.generateBillNo();
}
},
};

Loading…
Cancel
Save