重复提交

product
杨世强 2 years ago
parent 84bbb1053d
commit da9f10c3af

@ -226,7 +226,7 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -239,4 +239,4 @@ export default {
}
}
}
</script>
</script>

@ -283,7 +283,7 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -313,7 +313,7 @@ export default {
table thead{border-bottom:0!important;display:none;}
.el-table__body, tr td .cell{width:100%!important}
.el-table th.gutter{display: none;}
.el-table colgroup.gutter{display: none;}
.el-table colgroup.gutter{display: none;}
</style><body>`;
//
let printForm = this.$refs.print1.innerHTML;
@ -425,4 +425,4 @@ export default {
>>> .el-upload-list__item:first-child {
margin-top: 4px;
}
</style>
</style>

@ -223,7 +223,7 @@
</el-input> -->
<el-input-number v-model="scope.row.invoiceQuantity" placeholder="数字文本" :step="1"
:style='{"width":"100%"}' @change="invoiceQuantityChange">
</el-input-number>
</template>
</el-table-column>
@ -234,7 +234,7 @@
</el-input> -->
<el-input-number v-model="scope.row.invoiceAmount" placeholder="数字文本" :step="1" :precision="6"
:style='{"width":"100%"}' @change="invoiceAmountChange">
</el-input-number>
</template>
</el-table-column>
@ -250,7 +250,7 @@
<template slot-scope="scope">
<el-input-number v-model="scope.row.taxAmount" placeholder="数字文本" :step="1" :precision="6"
:style='{"width":"100%"}'>
</el-input-number>
</template>
</el-table-column>
@ -258,7 +258,7 @@
<template slot-scope="scope">
<el-input-number v-model="scope.row.amountNotTax" placeholder="数字文本" :step="1" :precision="6"
:style='{"width":"100%"}'>
</el-input-number>
</template>
</el-table-column>
@ -501,7 +501,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -526,7 +526,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}

@ -326,7 +326,7 @@
<span slot="footer" class="dialog-footer">
<el-button type="primary" icon="el-icon-upload2" @click="uploadForm"></el-button>
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
<ImportForm v-if="importFormVisible" ref="importForm" @importData="importData" />
</el-dialog>
@ -345,6 +345,7 @@
props: [],
data() {
return {
submitDisabled: false,
importFormVisible: false,
visible: false,
loading: false,
@ -689,6 +690,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -701,6 +703,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -717,6 +720,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -381,7 +381,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}

@ -249,7 +249,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -266,6 +266,7 @@
props: [],
data() {
return {
submitDisabled: false,
excludeFields: [],
visible: false,
loading: false,
@ -458,6 +459,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -470,6 +472,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -486,6 +489,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -208,7 +208,7 @@
</template>
</el-form>
</el-row>
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" :disabled="submitDisabled"/>
</div>
</template>
<script>
@ -224,6 +224,7 @@
props: [],
data() {
return {
submitDisabled: false,
visible: false,
loading: false,
setting: {},
@ -503,6 +504,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -515,6 +517,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('close', true)
}
@ -531,6 +534,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('close', true)
}

@ -395,7 +395,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}

@ -198,7 +198,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
<!-- <el-button type="primary" @click="continueUpload()"> </el-button>-->
</span>
</el-dialog>
@ -216,6 +216,7 @@
props: [],
data() {
return {
submitDisabled: false,
unit: "0",
transportType: "0",
advance: "0",
@ -620,6 +621,7 @@
})
},
request2() {
this.submitDisabled = true;
var _data = this.dataList()
debugger
if (!this.dataForm.id) {
@ -633,6 +635,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -649,6 +652,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -570,7 +570,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -587,6 +587,7 @@
props: [],
data() {
return {
submitDisabled: false,
visible: false,
loading: false,
isDetail: false,
@ -979,6 +980,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -991,6 +993,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -1007,6 +1010,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -182,7 +182,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
<!-- <el-button type="primary" @click="continueUpload()"> </el-button>-->
</span>
</el-dialog>
@ -200,6 +200,7 @@
props: [],
data() {
return {
submitDisabled: false,
unit: "0",
transportType: "0",
advance: "0",
@ -604,6 +605,7 @@
})
},
request2() {
this.submitDisabled = true;
var _data = this.dataList()
debugger
if (!this.dataForm.id) {
@ -617,6 +619,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -633,6 +636,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -487,7 +487,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}

@ -674,7 +674,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -687,11 +687,12 @@
props: [],
data() {
return {
submitDisabled: false,
excludeFields: [],
visible: false,
loading: false,
isDetail: false,
dataForm: {
dataForm: {
documentNo : '',
contractId: "",
@ -984,6 +985,7 @@
})
},
request() {
this.submitDisabled = true;
var _data =this.dataList()
if (!this.dataForm.id) {
request({
@ -996,6 +998,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -1012,6 +1015,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -169,7 +169,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -186,6 +186,7 @@
props: [],
data() {
return {
submitDisabled: false,
bissId: '380716763022647941',
excludeFields: [],
formVisible: false,
@ -372,7 +373,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -457,6 +458,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -469,6 +471,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -485,6 +488,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -549,7 +549,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -566,6 +566,7 @@
props: [],
data() {
return {
submitDisabled: false,
visible: false,
loading: false,
isDetail: false,
@ -903,6 +904,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -915,6 +917,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -931,6 +934,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -297,7 +297,7 @@
<span slot="footer" class="dialog-footer">
<el-button type="primary" icon="el-icon-upload2" @click="uploadForm"></el-button>
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
<ImportForm v-if="importFormVisible" ref="importForm" @importData="importData" />
</el-dialog>
@ -316,6 +316,7 @@
props: [],
data() {
return {
submitDisabled: false,
importFormVisible: false,
visible: false,
loading: false,
@ -514,7 +515,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev, curr);
} else {
return prev;
}
@ -539,7 +540,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -664,6 +665,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -676,6 +678,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -692,6 +695,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -267,7 +267,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -282,6 +282,7 @@
props: [],
data() {
return {
submitDisabled: false,
excludeFields: [],
visible: false,
loading: false,
@ -431,6 +432,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -443,6 +445,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -459,6 +462,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -166,7 +166,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -183,6 +183,7 @@
props: [],
data() {
return {
submitDisabled: false,
bissId: '380716763022647941',
excludeFields: [],
formVisible: false,
@ -368,7 +369,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -458,6 +459,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -470,6 +472,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -486,6 +489,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -259,7 +259,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -276,6 +276,7 @@
props: [],
data() {
return {
submitDisabled: false,
excludeFields: [],
visible: false,
loading: false,
@ -477,7 +478,7 @@
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -625,6 +626,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -637,6 +639,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -653,6 +656,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -259,7 +259,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
</span>
</el-dialog>
</template>
@ -276,6 +276,7 @@
props: [],
data() {
return {
submitDisabled: false,
excludeFields: [],
visible: false,
loading: false,
@ -605,6 +606,7 @@
})
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -617,6 +619,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -633,6 +636,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -190,8 +190,8 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="continueUpload()"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
<el-button type="primary" @click="continueUpload()" :disabled="submitDisabled"> 继续上传</el-button>
</span>
</el-dialog>
</template>
@ -213,6 +213,7 @@
props: [],
data() {
return {
submitDisabled: false,
fileList: [],
uploadHeaders: {
Authorization: this.$store.getters.token
@ -513,6 +514,9 @@
var grossWeight = this.dataForm.grossWeight; //
var buckleWeight = this.dataForm.buckleWeight; //
var netWeight = this.dataForm.netWeight; //
this.dataForm.unit = this.dataForm.unit ? this.dataForm.unit : 0;
this.dataForm.transportType = this.dataForm.transportType ? this.dataForm.transportType : 0;
this.dataForm.advance = this.dataForm.advance ? this.dataForm.advance : 0;
if (grossWeight != this.jnpf.floatAdd(tareWeight, this.jnpf.floatAdd(buckleWeight, netWeight))) {
this.$message({
message: '毛重必须等于皮重+扣重+净重',
@ -603,6 +607,7 @@
})
},
request2() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -615,6 +620,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -631,6 +637,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -639,6 +646,7 @@
}
},
request3() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -651,6 +659,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.dataForm.id = '';
this.dataForm.tareWeight = 0; //
this.dataForm.grossWeight = 0; //
@ -672,6 +681,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.dataForm.id = '';
this.dataForm.tareWeight = 0; //
this.dataForm.grossWeight = 0; //
@ -685,6 +695,7 @@
}
},
request() {
this.submitDisabled = true;
var _data = this.dataList()
if (!this.dataForm.id) {
request({
@ -697,6 +708,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
@ -713,6 +725,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -197,7 +197,7 @@
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail" :disabled="submitDisabled"> </el-button>
<!-- <el-button type="primary" @click="continueUpload()"> </el-button>-->
</span>
</el-dialog>
@ -215,6 +215,7 @@
props: [],
data() {
return {
submitDisabled: false,
unit: "0",
transportType: "0",
advance: "0",
@ -585,6 +586,7 @@
})
},
request2() {
this.submitDisabled = true;
var _data = this.dataList()
debugger
if (!this.dataForm.id) {
@ -598,8 +600,9 @@
type: 'success',
duration: 1000,
onClose: () => {
this.visible = false
this.$emit('refresh', true)
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}
})
})
@ -614,6 +617,7 @@
type: 'success',
duration: 1000,
onClose: () => {
this.submitDisabled = false;
this.visible = false
this.$emit('refresh', true)
}

@ -445,7 +445,7 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
return this.jnpf.floatAdd(prev,curr);
} else {
return prev;
}
@ -539,4 +539,4 @@ export default {
overflow: auto;
overflow-x: hidden;
}
</style>
</style>

Loading…
Cancel
Save