发票问题

pro
anthonywj 2 years ago
parent e2ab90dfa4
commit 6092a68ae7

@ -7,7 +7,7 @@ ENV = 'production'
#林纪裕 #林纪裕
# VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:5005/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:82/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_SPMS_SERVER/'
@ -15,14 +15,18 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_SPMS_SERVER/'
# 平潭 # 平潭
# VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/' VUE_APP_BASE_API = 'http://121.204.169.96:9150/UDI_SPMS_SERVER/'
# 文明懂 # 文明懂
VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://192.168.0.62:9150/UDI_SPMS_SERVER/'
# 刘恩典 # 刘恩典
# VUE_APP_BASE_API = 'http://192.168.0.54:9150/UDI_SPMS_SERVER/' # VUE_APP_BASE_API = 'http://192.168.0.54:9150/UDI_SPMS_SERVER/'
# 漳州中医院
# VUE_APP_BASE_API = 'http://116.204.116.198:9150/UDI_SPMS_SERVER/'
# 应用访问路径 例如使用前缀 /admin/ # 应用访问路径 例如使用前缀 /admin/
VUE_APP_CONTEXT_PATH = '/UDI_SPMS_CLIENT/' VUE_APP_CONTEXT_PATH = '/UDI_SPMS_CLIENT/'

@ -169,7 +169,7 @@
row-key="id" row-key="id"
highlight-current-row highlight-current-row
> >
<el-table-column type="selection" width="55"> </el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="发票编码" label="发票编码"
@ -265,15 +265,16 @@ import {
insertInvoice, insertInvoice,
updateOrder, updateOrder,
filterBizOrderList, filterBizOrderList,
updateorderBiz,parseInvoice updateorderBiz, parseInvoice
} from "@/api/inout/orderDetailBiz"; } from "@/api/inout/orderDetailBiz";
import AcceptOrder from "@/views/inout/DialogReviewOrder"; import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogInvoice from "@/views/inout/DialogInvoice"; import DialogInvoice from "@/views/inout/DialogInvoice";
import InvoiceRegister from "@/views/inout/InvoiceRegister"; import InvoiceRegister from "@/views/inout/InvoiceRegister";
import { previewImage } from "@/api/purchase/supCompany"; import {previewImage} from "@/api/purchase/supCompany";
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
import store from "@/store"; import store from "@/store";
import {deleteRe} from "@/api/auth/register";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -354,10 +355,10 @@ export default {
// { required: true, message: "", trigger: "blur" }, // { required: true, message: "", trigger: "blur" },
// ], // ],
invoiceEncode: [ invoiceEncode: [
{ required: true, message: "请输入发票编码", trigger: "blur" }, {required: true, message: "请输入发票编码", trigger: "blur"},
], ],
price: [{ required: true, message: "请输入发票价格", trigger: "blur" }], price: [{required: true, message: "请输入发票价格", trigger: "blur"}],
invoiceDate: [{ required: true, message: "请输入备注", trigger: "blur" }], invoiceDate: [{required: true, message: "请输入备注", trigger: "blur"}],
}, },
certFileUrl: "", certFileUrl: "",
Upinvoice: false, Upinvoice: false,
@ -478,21 +479,13 @@ export default {
subRow: null, subRow: null,
}; };
}, },
components: { AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer }, components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer},
methods: { methods: {
onSubmit() { onSubmit() {
if (this.invoiceRow == null) { if (this.invoiceRow == null) {
this.$message.error("请选择要登记的物资! "); this.$message.error("请选择要登记的物资! ");
return false; return false;
} }
// if (this.$isBlank(this.inputQuery.machineNo)) {
// this.$message.error("");
// return;
// }
// if (this.$isBlank(this.inputQuery.invoiceCode)) {
// this.$message.error("");
// return;
// }
if (this.$isBlank(this.inputQuery.invoiceEncode)) { if (this.$isBlank(this.inputQuery.invoiceEncode)) {
this.$message.error("发票编码不能为空!"); this.$message.error("发票编码不能为空!");
return; return;
@ -506,15 +499,30 @@ export default {
return; return;
} }
this.inputQuery.list = this.invoiceRow; this.inputQuery.list = this.invoiceRow;
let mount=0; let mount = 0;
for(var i=0;i<this.invoiceRow.length;i++){ for (var i = 0; i < this.invoiceRow.length; i++) {
mount+=this.invoiceRow[i].amount mount += this.invoiceRow[i].amount
} }
if(mount != this.inputQuery.price){ if (mount != this.inputQuery.price) {
this.$message.error("价格不匹配!"); this.$confirm("价格不匹配,是否确定提交?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.postInvoice();
})
.catch(() => {
});
return; return;
} else {
this.postInvoice();
} }
},
postInvoice() {
insertInvoice(this.inputQuery) insertInvoice(this.inputQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
@ -537,14 +545,14 @@ export default {
event.currentTarget.select(); event.currentTarget.select();
}, },
enterKey(){ enterKey() {
let param={ let param = {
code :this.inputQuery.code code: this.inputQuery.code
} }
parseInvoice(param) parseInvoice(param)
.then((res)=>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.inputQuery=res.data; this.inputQuery = res.data;
} }
}) })
@ -552,7 +560,8 @@ export default {
}, },
uploadHandleError() {}, uploadHandleError() {
},
uploadHandleSuccess(response, file, fileList) { uploadHandleSuccess(response, file, fileList) {
debugger; debugger;
if (response.code === 20000) { if (response.code === 20000) {
@ -681,7 +690,8 @@ export default {
.then((res) => { .then((res) => {
this.closeDialog(); this.closeDialog();
}) })
.catch((error) => {}); .catch((error) => {
});
}, },
showImgViewer(row) { showImgViewer(row) {
this.certFileUrl = this.certFileUrl =

@ -2,7 +2,7 @@
<div class="login-container"> <div class="login-container">
<div> <div>
<el-row> <el-row>
<h3 class="toptitle">协和医院平潭分</h3> <h3 class="toptitle">平潭协和医院</h3>
</el-row> </el-row>
<el-row> <el-row>
<h3 class="topSubtitle">医院UDI管理系统</h3> <h3 class="topSubtitle">医院UDI管理系统</h3>
@ -18,7 +18,7 @@
> >
<el-card class="box-card"> <el-card class="box-card">
<div style="text-align: center; margin-top: 10px; margin-bottom: 15px"> <div style="text-align: center; margin-top: 10px; margin-bottom: 15px">
<img alt="element-logo" src="@/assets/logo/logo.png" /> <img alt="element-logo" src="@/assets/logo/logo.png"/>
</div> </div>
<h3 class="title">用户登录</h3> <h3 class="title">用户登录</h3>
<el-form-item prop="username" class="item" style="margin-top: -20px"> <el-form-item prop="username" class="item" style="margin-top: -20px">
@ -30,7 +30,7 @@
v-model="loginForm.username" v-model="loginForm.username"
> >
<i slot="prefix" class="el-input__icon"> <i slot="prefix" class="el-input__icon">
<icon-svg icon-class="user" /> <icon-svg icon-class="user"/>
</i> </i>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -45,14 +45,14 @@
autocomplete="on" autocomplete="on"
> >
<i slot="prefix" class="el-input__icon"> <i slot="prefix" class="el-input__icon">
<icon-svg icon-class="pwd" /> <icon-svg icon-class="pwd"/>
</i> </i>
<i <i
slot="suffix" slot="suffix"
class="el-input__icon" class="el-input__icon"
@click="isShowPwd = !isShowPwd" @click="isShowPwd = !isShowPwd"
> >
<icon-svg icon-class="eye" /> <icon-svg icon-class="eye"/>
</i> </i>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -120,7 +120,7 @@
import Verify from "vue2-verify"; import Verify from "vue2-verify";
import axios from "axios"; import axios from "axios";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import { decrypt, encrypt } from "@/utils/jsencrypt"; import {decrypt, encrypt} from "@/utils/jsencrypt";
export default { export default {
data() { data() {
@ -148,9 +148,9 @@ export default {
}, },
rules: { rules: {
userName: [ userName: [
{ required: true, message: "请输入登录名", trigger: "blur" }, {required: true, message: "请输入登录名", trigger: "blur"},
], ],
pwd: [{ validator: validatePwd, trigger: "blur" }], pwd: [{validator: validatePwd, trigger: "blur"}],
}, },
isShowPwd: false, // isShowPwd: false, //
loading: false, // loading loading: false, // loading
@ -230,7 +230,7 @@ export default {
if (this.loginForm.verificationCode) { if (this.loginForm.verificationCode) {
this.loading = true; this.loading = true;
if (this.loginForm.rememberMe) { if (this.loginForm.rememberMe) {
Cookies.set("username", this.loginForm.username, { expires: 30 }); Cookies.set("username", this.loginForm.username, {expires: 30});
Cookies.set("password", encrypt(this.loginForm.password), { Cookies.set("password", encrypt(this.loginForm.password), {
expires: 30, expires: 30,
}); });
@ -245,8 +245,9 @@ export default {
.dispatch("Login", this.loginForm) .dispatch("Login", this.loginForm)
.then((res) => { .then((res) => {
this.$router this.$router
.push({ path: this.redirect || "/" }) .push({path: this.redirect || "/"})
.catch((res) => {}); .catch((res) => {
});
}) })
.catch((res) => { .catch((res) => {
this.loading = false; this.loading = false;
@ -366,6 +367,7 @@ $light_gray: #eee;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
.topSubtitle { .topSubtitle {
position: absolute; position: absolute;
font-size: 45px; font-size: 45px;
@ -406,6 +408,7 @@ $light_gray: #eee;
width: 490px; width: 490px;
} }
} }
.el-input--mini .el-input__icon { .el-input--mini .el-input__icon {
line-height: 32px; line-height: 32px;
} }

Loading…
Cancel
Save