发票bug修改

dev
wangwei 2 years ago
parent 0d05c1b764
commit 8c141a11ae

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-form :model="inputQuery" :rules="formRules" ref="dataForm"> <el-form :model="inputQuery" :rules="formRules" ref="dataForm" label-width="150px">
<el-card style="margin-top: -30px"> <el-card style="margin-top: -30px">
<el-button-group style="display: flex"> <el-button-group style="display: flex">
<el-button type="primary" @click.native="submitUpload()" style="margin: 0 60px 10px auto; height: 35px" <el-button type="primary" @click.native="submitUpload()" style="margin: 0 60px 10px auto; height: 35px"
@ -8,98 +8,60 @@
</el-button> </el-button>
</el-button-group> </el-button-group>
<el-row> <el-row>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="规格型号:" prop="name">
<span>规格型号</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="inputQuery.ggxh" auto-complete="off" :disabled="true"></el-input> <el-input v-model="inputQuery.ggxh" auto-complete="off" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="产品名称:" prop="code">
<span>产品名称</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-input v-model="inputQuery.cpmctymc" auto-complete="off" :disabled="true"></el-input> <el-input v-model="inputQuery.cpmctymc" auto-complete="off" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3">
<div class="ao-text"> <el-col :span="11">
<span>机械编码</span> <el-form-item label="机械编码:" prop="name">
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="inputQuery.machineNo" auto-complete="off" ></el-input> <el-input v-model="inputQuery.machineNo" auto-complete="off" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="发票编码:" prop="invoiceEncode">
<span>发票代码</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-input v-model="inputQuery.invoiceEncode" auto-complete="off" ></el-input> <el-input v-model="inputQuery.invoiceEncode" auto-complete="off" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="发票代码:" prop="invoiceCode">
<span>发票编码</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="name">
<el-input v-model="inputQuery.invoiceCode" auto-complete="off" ></el-input> <el-input v-model="inputQuery.invoiceCode" auto-complete="off" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="发票价格:" prop="price">
<span>发票价格</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-input v-model="inputQuery.price" auto-complete="off" ></el-input> <el-input v-model="inputQuery.price" auto-complete="off" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3">
<div class="ao-text"> <el-col :span="11">
<span>备注</span> <el-form-item label="备注:" prop="code">
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-input v-model="inputQuery.remark" auto-complete="off" ></el-input> <el-input v-model="inputQuery.remark" auto-complete="off" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="开票日期:" prop="invoiceDate">
<span>开票日期</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item prop="code">
<el-date-picker <el-date-picker
v-model="inputQuery.invoiceDate" v-model="inputQuery.invoiceDate"
type="datetime" type="datetime"
placeholder="请选择日期" placeholder="请选择日期"
clearable clearable
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
style="width: 90%" style="width: 100%"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -109,13 +71,8 @@
<el-row> <el-row>
<el-col :span="3"> <el-col :span="11">
<div class="ao-text"> <el-form-item label="文件:">
<span>文件</span>
</div>
</el-col>
<el-col :span="8">
<el-form-item>
<el-upload <el-upload
:disabled="formData.auditStatus == 1" :disabled="formData.auditStatus == 1"
class="upload-demo" class="upload-demo"
@ -158,6 +115,7 @@ import draggable from "vuedraggable";
import store from "@/store"; import store from "@/store";
import {insertCompanyCert, updateCompanyCert} from "@/api/purchase/companyCert"; import {insertCompanyCert, updateCompanyCert} from "@/api/purchase/companyCert";
import {updateById} from '@/api/inout/orderDetailBiz' import {updateById} from '@/api/inout/orderDetailBiz'
import {isBlank} from "@/utils/strUtil";
export default { export default {
name: "DialogInvoice", name: "DialogInvoice",
@ -187,14 +145,17 @@ export default {
remark:"", remark:"",
licenseUrl:"" licenseUrl:""
}, },
// formRules: { formRules: {
// name: [ invoiceCode: [
// {required: true, message: "", trigger: "blur"} {required: true, message: "请输入发票代码", trigger: "blur"}
// ], ],
// code: [ price: [
// {required: true, message: "", trigger: "blur"} {required: true, message: "请输入发票价格", trigger: "blur"}
// ], ],
// }, invoiceDate: [
{required: true, message: "请输入开票日期", trigger: "blur"}
],
},
loading: false, loading: false,
uploadUrl: "", uploadUrl: "",
fileList: [], fileList: [],
@ -208,6 +169,19 @@ export default {
}, },
methods: { methods: {
submitUpload() { submitUpload() {
if(isBlank(this.inputQuery.invoiceCode)){
this.$message.error("请输入发票代码!")
return;
}
if(isBlank(this.inputQuery.price)){
this.$message.error("请输入发票价格!")
return;
}
if(isBlank(this.inputQuery.invoiceDate)){
this.$message.error("请输入开票日期!")
return;
}
updateById(this.inputQuery).then((res) =>{ updateById(this.inputQuery).then((res) =>{
if(res.code==20000){ if(res.code==20000){
this.$message({ this.$message({

@ -43,9 +43,9 @@
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="发票编码:" prop="invoiceCode"> <el-form-item label="发票编码:" prop="invoiceEncode">
<el-input <el-input
v-model="inputQuery.invoiceCode" v-model="inputQuery.invoiceEncode"
auto-complete="off" auto-complete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -53,9 +53,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="发票代码:" prop="invoiceEncode"> <el-form-item label="发票代码:" prop="invoiceCode">
<el-input <el-input
v-model="inputQuery.invoiceEncode" v-model="inputQuery.invoiceCode"
auto-complete="off" auto-complete="off"
></el-input> ></el-input>
</el-form-item> </el-form-item>

@ -13,7 +13,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item class="query-form-item" label="发票代码:"> <el-form-item class="query-form-item" label="发票代码:">
<el-input v-model="invoiceQuery.invoiceEncode" placeholder="请输入发票代码" style="width: 90%" <el-input v-model="invoiceQuery.invoiceCode" placeholder="请输入发票代码" style="width: 90%"
clearable="true" clearable="true"
></el-input> ></el-input>
</el-form-item> </el-form-item>

Loading…
Cancel
Save