12/24 页面优化1.0

dev_unify
wangwei 6 months ago
parent 107c04268d
commit ce7bf9f444

@ -457,6 +457,10 @@ export default {
getLocalJoinByUser(query) getLocalJoinByUser(query)
.then((response) => { .then((response) => {
this.busTypeOptions = response.data.list || []; this.busTypeOptions = response.data.list || [];
if (this.busTypeOptions.length == 1 && this.orderFormData.action == null) {
this.orderFormData.action = this.busTypeOptions[0].action;
this.actionChange(this.orderFormData.action )
}
}) })
.catch(() => { .catch(() => {
}); });

@ -62,7 +62,7 @@
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="发票价格:" prop="price"> <el-form-item label="发票金额:" prop="price">
<el-input <el-input
v-model="inputQuery.price" v-model="inputQuery.price"
auto-complete="off" auto-complete="off"
@ -502,7 +502,7 @@ export default {
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
mount += this.invoiceRow[i].price mount += this.invoiceRow[i].amount
} }
if (mount != this.inputQuery.price) { if (mount != this.inputQuery.price) {
this.$confirm("价格不匹配,是否确定提交?", "提示", { this.$confirm("价格不匹配,是否确定提交?", "提示", {

@ -7,7 +7,7 @@
style="display: flex; margin: 0px 0 15px 75%; height: 35px"> style="display: flex; margin: 0px 0 15px 75%; height: 35px">
<el-button size="mini" type="primary" @click.native="selectOrder()" <el-button size="mini" type="primary" @click.native="selectOrder()"
v-if="curAction.checkWebNew != 2 || viewType !=1" v-if="curAction.checkWebNew != 2 || viewType !=1"
>选入阿里单据 >选入码上放心单据
</el-button> </el-button>
<el-button <el-button
size="mini" size="mini"
@ -242,7 +242,7 @@
<el-dialog <el-dialog
title="选入阿里单据" title="选入码上放心单据"
:visible.sync="selectOrderVisible" :visible.sync="selectOrderVisible"
append-to-body width="80%" append-to-body width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -479,6 +479,10 @@ export default {
getLocalJoinByUser(query) getLocalJoinByUser(query)
.then((response) => { .then((response) => {
this.busTypeOptions = response.data.list || []; this.busTypeOptions = response.data.list || [];
if (this.busTypeOptions.length == 1 && this.orderFormData.action == null) {
this.orderFormData.action = this.busTypeOptions[0].action;
this.actionChange(this.orderFormData.action )
}
}) })
.catch(() => { .catch(() => {
}); });

@ -115,7 +115,7 @@
prop="manufacturer" prop="manufacturer"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="操作" width="140" fixed="right"> <el-table-column label="操作" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -154,14 +154,14 @@
>绑定产品 >绑定产品
</el-button </el-button
> >
<el-button <!--<el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
v-if="scope.row.supId==null" <!-- v-if="scope.row.supId==null"-->
@click.native.stop="handleUnitClick(scope.row)" <!-- @click.native.stop="handleUnitClick(scope.row)"-->
>绑定供应商 <!--&gt;绑定供应商-->
</el-button <!--</el-button-->
> <!--&gt;-->
<el-button <el-button
type="text" type="text"

@ -408,7 +408,7 @@ export default {
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].price mount += this.invoiceRow[i].amount
} }
if (mount != this.inputQuery.price) { if (mount != this.inputQuery.price) {
this.$confirm("价格不匹配,是否确定提交?", "提示", { this.$confirm("价格不匹配,是否确定提交?", "提示", {

Loading…
Cancel
Save