|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|