12/3 发票登记优化1.0

dev2.0
wangwei 7 months ago
parent 68c55d88c9
commit 59a81b78fa

@ -155,99 +155,99 @@
</el-card> </el-card>
</el-form> </el-form>
<el-tabs type="border-card" style="margin: 15px"> <!--<el-tabs type="border-card" style="margin: 15px">-->
<!--单据业务详情--> <!-- &lt;!&ndash;单据业务详情&ndash;&gt;-->
<el-tab-pane> <!-- <el-tab-pane>-->
<span slot="label">单据 {{ input.billNo }}-单据详情</span> <!-- <span slot="label">单据 {{ input.billNo }}-单据详情</span>-->
<el-table <!-- <el-table-->
v-loading="bizDetailLoading" <!-- v-loading="bizDetailLoading"-->
:data="codeDetailList" <!-- :data="codeDetailList"-->
style="width: 100%" <!-- style="width: 100%"-->
border <!-- border-->
@current-change="BizDetailInv" <!-- @current-change="BizDetailInv"-->
@selection-change="handleSelectionUdiChange" <!-- @selection-change="handleSelectionUdiChange"-->
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="发票编码"-->
prop="invoiceCodes" <!-- prop="invoiceCodes"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="物资名称" <!-- label="物资名称"-->
prop="coName" <!-- prop="coName"-->
width="150" <!-- width="150"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="规格型号" <!-- label="规格型号"-->
width="150" <!-- width="150"-->
prop="spec" <!-- prop="spec"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="批次号" <!-- label="批次号"-->
width="100" <!-- width="100"-->
prop="batchNo" <!-- prop="batchNo"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="数量" <!-- label="数量"-->
prop="count" <!-- prop="count"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="扫码数量" <!-- label="扫码数量"-->
prop="reCount" <!-- prop="reCount"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="价格" <!-- label="价格"-->
prop="price" <!-- prop="price"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="金额" <!-- label="金额"-->
prop="amount" <!-- prop="amount"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="生产日期" <!-- label="生产日期"-->
prop="productDate" <!-- prop="productDate"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="失效日期" <!-- label="失效日期"-->
prop="expireDate" <!-- prop="expireDate"-->
width="100" <!-- width="100"-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column width="100" label="计量单位" prop="measname"> <!-- <el-table-column width="100" label="计量单位" prop="measname">-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="生产企业" <!-- label="生产企业"-->
prop="manufacturer" <!-- prop="manufacturer"-->
width="160" <!-- width="160"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
></el-table-column> <!-- ></el-table-column>-->
<el-table-column <!-- <el-table-column-->
label="注册/备案号" <!-- label="注册/备案号"-->
width="160" <!-- width="160"-->
prop="certCode" <!-- prop="certCode"-->
show-overflow-tooltip <!-- show-overflow-tooltip-->
></el-table-column> <!-- ></el-table-column>-->
</el-table> <!-- </el-table>-->
<pagination <!-- <pagination-->
v-show="codeTotal > 0" <!-- v-show="codeTotal > 0"-->
:total="codeTotal" <!-- :total="codeTotal"-->
:page.sync="codeQuery.page" <!-- :page.sync="codeQuery.page"-->
:limit.sync="codeQuery.limit" <!-- :limit.sync="codeQuery.limit"-->
@pagination="getCodeDetailLists" <!-- @pagination="getCodeDetailLists"-->
/> <!-- />-->
</el-tab-pane> <!-- </el-tab-pane>-->
</el-tabs> <!--</el-tabs>-->
<el-image-viewer <el-image-viewer
v-if="imgViewerVisible" v-if="imgViewerVisible"
style="z-index: 9999" style="z-index: 9999"
@ -306,7 +306,7 @@ export default {
data() { data() {
return { return {
idList: [], idList: [],
invoiceRow: [], // invoiceRow: [],
statusCode: null, statusCode: null,
choiceFile: "选取文件", choiceFile: "选取文件",
fileList: [], fileList: [],
@ -482,10 +482,10 @@ export default {
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer}, components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer},
methods: { methods: {
onSubmit() { onSubmit() {
if (this.invoiceRow == null|| this.invoiceRow.length === 0) { // if (this.invoiceRow == null|| this.invoiceRow.length === 0) {
this.$message.error("请选择要登记的物资! "); // this.$message.error("! ");
return false; // return false;
} // }
if (this.$isBlank(this.inputQuery.invoiceEncode)) { if (this.$isBlank(this.inputQuery.invoiceEncode)) {
this.$message.error("发票编码不能为空!"); this.$message.error("发票编码不能为空!");
return; return;
@ -536,8 +536,12 @@ export default {
this.$message.error(response.message); this.$message.error(response.message);
}); });
let query = {
list : this.inputQuery.list
}
// //
updateorderBiz(this.inputQuery.list).then((res) => { updateorderBiz(query).then((res) => {
this.closeDialog(); this.closeDialog();
}); });
}, },

@ -792,11 +792,13 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
v-if="checkInvoice" v-if="checkInvoice"
@close="closecheckInvoice"
> >
<checkInvoice <checkInvoice
:closeDialog="closecheckInvoice" :closeDialog="closecheckInvoice"
:input="inputInv" :input="inputInv"
:getOrderDetails="getOrderDetails" :getOrderDetails="getOrderDetails"
:invoiceRow="detaillist"
></checkInvoice> ></checkInvoice>
</el-dialog> </el-dialog>
@ -1059,6 +1061,7 @@ export default {
acceptQuery: null, acceptQuery: null,
acceptOrderVisible: false, acceptOrderVisible: false,
subRow: null, subRow: null,
detaillist:[],
}; };
}, },
components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer, InvoiceRegistrationDetermine, checkInvoice}, components: {AcceptOrder, DialogInvoice, InvoiceRegister, ElImageViewer, InvoiceRegistrationDetermine, checkInvoice},
@ -1087,11 +1090,13 @@ export default {
this.getList(); this.getList();
}, },
InvoiceRegister1(_this,row) { InvoiceRegister1(_this,row) {
_this.savebillno = row.billNo _this.savebillno = _this.currentRow.billNo
_this.inputInv = row; _this.inputInv = row;
_this.detaillist.push(row)
_this.checkInvoice = true; _this.checkInvoice = true;
}, },
closecheckInvoice() { closecheckInvoice() {
this.detaillist = []
this.checkInvoice = false; this.checkInvoice = false;
this.getList(); this.getList();
this.currentRow.billNo = this.savebillno; this.currentRow.billNo = this.savebillno;

Loading…
Cancel
Save