|
@@ -67,7 +67,7 @@
|
|
style="width:150px"
|
|
style="width:150px"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
- <el-button type="primary" class="btn" @click="onclick()">
|
|
|
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>
|
|
<i class="el-icon-search"></i>
|
|
</el-button>
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -784,6 +784,15 @@
|
|
type="number"
|
|
type="number"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="发票日期">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="statementTime"
|
|
|
|
+ type="date"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="发票图片" style="">
|
|
<el-form-item label="发票图片" style="">
|
|
<el-upload
|
|
<el-upload
|
|
ref="statementUpload"
|
|
ref="statementUpload"
|
|
@@ -828,6 +837,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ statementTime:null,
|
|
saleOrderMaterialIds: [],
|
|
saleOrderMaterialIds: [],
|
|
batchAddressProvince: '',
|
|
batchAddressProvince: '',
|
|
batchAddressDistrict: '',
|
|
batchAddressDistrict: '',
|
|
@@ -884,6 +894,10 @@ export default {
|
|
{
|
|
{
|
|
value: '下货地址',
|
|
value: '下货地址',
|
|
lable: '下货地址'
|
|
lable: '下货地址'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '收款客户',
|
|
|
|
+ lable: '收款客户'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
options1: [
|
|
options1: [
|
|
@@ -902,6 +916,10 @@ export default {
|
|
{
|
|
{
|
|
value: '下货地址',
|
|
value: '下货地址',
|
|
lable: '下货地址'
|
|
lable: '下货地址'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value: '收款客户',
|
|
|
|
+ lable: '收款客户'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
//合计净重(磅重)
|
|
//合计净重(磅重)
|
|
@@ -1550,8 +1568,8 @@ export default {
|
|
},
|
|
},
|
|
generateStatement() {
|
|
generateStatement() {
|
|
this.isLoading = true
|
|
this.isLoading = true
|
|
- if (!this.excludeTax) {
|
|
|
|
- this.$message.warning('请填写发票金额')
|
|
|
|
|
|
+ if (!this.excludeTax ||! this.statementTime) {
|
|
|
|
+ this.$message.warning('请填写所有信息!')
|
|
this.isLoading = false
|
|
this.isLoading = false
|
|
} else if (this.statementList.length < 1) {
|
|
} else if (this.statementList.length < 1) {
|
|
this.$message.warning('请上传发票')
|
|
this.$message.warning('请上传发票')
|
|
@@ -1574,6 +1592,8 @@ export default {
|
|
formData.append('orderList', orderList)
|
|
formData.append('orderList', orderList)
|
|
formData.append('excludeTax', this.excludeTax)
|
|
formData.append('excludeTax', this.excludeTax)
|
|
formData.append('userId', getCookie('userId'))
|
|
formData.append('userId', getCookie('userId'))
|
|
|
|
+ console.log("statementTime:",this.statementTime);
|
|
|
|
+ formData.append('statementTime',this.statementTime.getTime());
|
|
let options = {
|
|
let options = {
|
|
url: '/api/v1/bms/addTruckStatement',
|
|
url: '/api/v1/bms/addTruckStatement',
|
|
data: formData,
|
|
data: formData,
|
|
@@ -3236,6 +3256,9 @@ export default {
|
|
this.selecteddetailsOrderAmount = 0
|
|
this.selecteddetailsOrderAmount = 0
|
|
this.amsPriceList = []
|
|
this.amsPriceList = []
|
|
this.isRowClick = 0
|
|
this.isRowClick = 0
|
|
|
|
+ if(!obj){
|
|
|
|
+ obj=new Object();
|
|
|
|
+ }
|
|
if (this.activeName == 'first') {
|
|
if (this.activeName == 'first') {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -3268,6 +3291,16 @@ export default {
|
|
JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
|
|
JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
|
|
obj.consigneeLoginName = consigneeLoginName
|
|
obj.consigneeLoginName = consigneeLoginName
|
|
}
|
|
}
|
|
|
|
+ if (this.screen == '收款客户' && this.screen1 == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input, this.input1]
|
|
|
|
+ }else {
|
|
|
|
+ if (this.screen == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input]
|
|
|
|
+ }
|
|
|
|
+ if (this.screen1 == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input1]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (this.screen == '客户') {
|
|
if (this.screen == '客户') {
|
|
consigneeName = this.input
|
|
consigneeName = this.input
|
|
} else if (this.screen == '承运商') {
|
|
} else if (this.screen == '承运商') {
|
|
@@ -3277,7 +3310,7 @@ export default {
|
|
} else if (this.screen == '分录ID') {
|
|
} else if (this.screen == '分录ID') {
|
|
console.log('进入了分录')
|
|
console.log('进入了分录')
|
|
easPrimaryId = this.input
|
|
easPrimaryId = this.input
|
|
- } else {
|
|
|
|
|
|
+ } else if(!this.screen && this.input){
|
|
remark = this.input
|
|
remark = this.input
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
@@ -3298,7 +3331,7 @@ export default {
|
|
this.input1 != ''
|
|
this.input1 != ''
|
|
) {
|
|
) {
|
|
capacityNo = this.input1
|
|
capacityNo = this.input1
|
|
- } else if (this.input1 != null && this.input1 != '') {
|
|
|
|
|
|
+ } else if (!this.screen1 && this.input1) {
|
|
remark = this.input1
|
|
remark = this.input1
|
|
}
|
|
}
|
|
this.axios
|
|
this.axios
|
|
@@ -3379,6 +3412,16 @@ export default {
|
|
obj.consigneeLoginName = consigneeLoginName
|
|
obj.consigneeLoginName = consigneeLoginName
|
|
}
|
|
}
|
|
console.log(this.screen1, this.input1, 'here')
|
|
console.log(this.screen1, this.input1, 'here')
|
|
|
|
+ if (this.screen == '收款客户' && this.screen1 == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input, this.input1]
|
|
|
|
+ }else {
|
|
|
|
+ if (this.screen == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input]
|
|
|
|
+ }
|
|
|
|
+ if (this.screen1 == '收款客户') {
|
|
|
|
+ obj.paymentCustomer = [this.input1]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (this.screen == '客户') {
|
|
if (this.screen == '客户') {
|
|
consigneeName = this.input
|
|
consigneeName = this.input
|
|
} else if (this.screen == '承运商') {
|
|
} else if (this.screen == '承运商') {
|
|
@@ -3388,7 +3431,7 @@ export default {
|
|
} else if (this.screen == '分录ID') {
|
|
} else if (this.screen == '分录ID') {
|
|
console.log('进入了分录')
|
|
console.log('进入了分录')
|
|
easPrimaryId = this.input
|
|
easPrimaryId = this.input
|
|
- } else {
|
|
|
|
|
|
+ } else if(!this.screen && this.input){
|
|
remark = this.input
|
|
remark = this.input
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
@@ -3409,7 +3452,7 @@ export default {
|
|
this.input1 != ''
|
|
this.input1 != ''
|
|
) {
|
|
) {
|
|
capacityNo = this.input1
|
|
capacityNo = this.input1
|
|
- } else if (this.input1 != null && this.input1 != '') {
|
|
|
|
|
|
+ } else if(!this.screen1 && this.input1) {
|
|
remark = this.input1
|
|
remark = this.input1
|
|
}
|
|
}
|
|
this.axios
|
|
this.axios
|