|
@@ -382,14 +382,14 @@ export default {
|
|
|
},
|
|
|
//提交按钮
|
|
|
submit() {
|
|
|
- if (this.deptBudgetList.goodsName=="") {
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
|
this.$message({
|
|
|
message: '货名不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.grossWeight=="") {
|
|
|
+ if (!this.deptBudgetList.grossWeight) {
|
|
|
this.$message({
|
|
|
message: '毛重不能为空!',
|
|
|
type: 'warning',
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.tare=="") {
|
|
|
+ if (!this.deptBudgetList.tare) {
|
|
|
this.$message({
|
|
|
message: '皮重不能为空!',
|
|
|
type: 'warning',
|
|
@@ -417,7 +417,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.netWeight=="") {
|
|
|
+ if (!this.deptBudgetList.netWeight) {
|
|
|
this.$message({
|
|
|
message: '净重不能为空!',
|
|
|
type: 'warning',
|
|
@@ -431,42 +431,42 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.grade=="") {
|
|
|
+ if (!this.deptBudgetList.grade) {
|
|
|
this.$message({
|
|
|
message: '品级不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.agent=="") {
|
|
|
+ if (!this.deptBudgetList.agent) {
|
|
|
this.$message({
|
|
|
message: '经办人不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.agent.length<2 && this.deptBudgetList.agent.length>10) {
|
|
|
+ if (this.deptBudgetList.agent.length < 2 && this.deptBudgetList.agent.length > 10) {
|
|
|
this.$message({
|
|
|
message: '经办人姓名输入有误!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.inOutDate=="") {
|
|
|
+ if (!this.deptBudgetList.inOutDate) {
|
|
|
this.$message({
|
|
|
message: '出库日期不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.inOutType=="") {
|
|
|
+ if (!this.deptBudgetList.inOutType) {
|
|
|
this.$message({
|
|
|
message: '出库类型不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.carNo=="") {
|
|
|
+ if (!this.deptBudgetList.carNo) {
|
|
|
this.$message({
|
|
|
message: '车牌号不能为空!',
|
|
|
type: 'warning',
|
|
@@ -480,7 +480,7 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.contractNo=="") {
|
|
|
+ if (!this.deptBudgetList.contractNo) {
|
|
|
this.$message({
|
|
|
message: '合同编号不能为空!',
|
|
|
type: 'warning',
|
|
@@ -640,29 +640,29 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- async exportlist() {
|
|
|
- const { data } = await export1(
|
|
|
- {
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- contractType: this.contractType,
|
|
|
- currentPage: this.currentPage,
|
|
|
- pageSize: this.pageSize,
|
|
|
- searchType: this.searchType,
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
- startDate: this.startDate,
|
|
|
- endDate: this.endDate,
|
|
|
- },
|
|
|
- {},
|
|
|
- { responseType: 'blob' }
|
|
|
- ).toPromise()
|
|
|
- downloadFile({
|
|
|
- res: data,
|
|
|
- fileName: `${
|
|
|
- this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
- }_采购合同`,
|
|
|
- type: 'xls',
|
|
|
- })
|
|
|
- },
|
|
|
+ // async exportlist() {
|
|
|
+ // const { data } = await export1(
|
|
|
+ // {
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ // contractType: this.contractType,
|
|
|
+ // currentPage: this.currentPage,
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // searchType: this.searchType,
|
|
|
+ // searchKeyWord: this.searchKeyWord,
|
|
|
+ // startDate: this.startDate,
|
|
|
+ // endDate: this.endDate,
|
|
|
+ // },
|
|
|
+ // {},
|
|
|
+ // { responseType: 'blob' }
|
|
|
+ // ).toPromise()
|
|
|
+ // downloadFile({
|
|
|
+ // res: data,
|
|
|
+ // fileName: `${
|
|
|
+ // this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
+ // }_采购合同`,
|
|
|
+ // type: 'xls',
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// deletecontract(){},
|
|
|
//删除
|
|
|
approve() {},
|