|
@@ -271,7 +271,6 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { pullDown, addstorageputList } from '@/model/warehouse/index'
|
|
import { pullDown, addstorageputList } from '@/model/warehouse/index'
|
|
-import { downloadFile } from '@/utils/batchDown'
|
|
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
@@ -353,7 +352,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log(this.$route.query)
|
|
|
|
this.deptBudgetList.baseId = this.$route.query.baseId
|
|
this.deptBudgetList.baseId = this.$route.query.baseId
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
@@ -390,6 +388,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if(!this.deptBudgetList.grossWeight){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '毛重不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
this.deptBudgetList.grossWeight < 0 ||
|
|
this.deptBudgetList.grossWeight < 0 ||
|
|
this.deptBudgetList.grossWeight > 10000 ||
|
|
this.deptBudgetList.grossWeight > 10000 ||
|
|
@@ -403,6 +408,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.tare){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '皮重不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
this.deptBudgetList.tare < 0 ||
|
|
this.deptBudgetList.tare < 0 ||
|
|
@@ -417,9 +429,16 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.agent){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '经办人不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.car.length < 2 ||
|
|
|
|
|
|
+ this.deptBudgetList.agent.length < 2 ||
|
|
this.deptBudgetList.agent.length > 10
|
|
this.deptBudgetList.agent.length > 10
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -427,6 +446,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.carNo){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '车牌号不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -434,6 +460,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.contractNo){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '合同编号不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
@@ -475,13 +508,20 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
temporaryStorage() {
|
|
temporaryStorage() {
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '货名不能为空',
|
|
message: '货名不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if(!this.deptBudgetList.grossWeight){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '毛重不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
this.deptBudgetList.grossWeight < 0 ||
|
|
this.deptBudgetList.grossWeight < 0 ||
|
|
this.deptBudgetList.grossWeight > 10000 ||
|
|
this.deptBudgetList.grossWeight > 10000 ||
|
|
@@ -495,6 +535,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.tare){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '皮重不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
this.deptBudgetList.tare < 0 ||
|
|
this.deptBudgetList.tare < 0 ||
|
|
@@ -509,9 +556,16 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.agent){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '经办人不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.car.length < 2 ||
|
|
|
|
|
|
+ this.deptBudgetList.agent.length < 2 ||
|
|
this.deptBudgetList.agent.length > 10
|
|
this.deptBudgetList.agent.length > 10
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -519,6 +573,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.carNo){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '车牌号不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -526,6 +587,13 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }
|
|
|
|
+ if(!this.deptBudgetList.contractNo){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '合同编号不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
@@ -663,17 +731,16 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
- handleCloe() {
|
|
|
|
- this.dialogViewSpareMoney = false
|
|
|
|
- },
|
|
|
|
- history(row) {
|
|
|
|
- console.log(row)
|
|
|
|
- billoperatehis({ id: row.id })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.historyList = response
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // handleCloe() {
|
|
|
|
+ // this.dialogViewSpareMoney = false
|
|
|
|
+ // },
|
|
|
|
+ // history(row) {
|
|
|
|
+ // billoperatehis({ id: row.id })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.historyList = response
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
// deletecontract(){},
|
|
// deletecontract(){},
|
|
//删除
|
|
//删除
|
|
approve() {},
|
|
approve() {},
|
|
@@ -757,15 +824,13 @@ export default {
|
|
//仓位
|
|
//仓位
|
|
|
|
|
|
.position{
|
|
.position{
|
|
-
|
|
|
|
background: #AFB5CB;
|
|
background: #AFB5CB;
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
-font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
display: inline-grid;
|
|
display: inline-grid;
|
|
- padding: 2px 4px;
|
|
|
|
|
|
+padding: 2px 4px;
|
|
}
|
|
}
|
|
// .position {
|
|
// .position {
|
|
// width: 52px;
|
|
// width: 52px;
|
|
@@ -776,7 +841,6 @@ display: inline-grid;
|
|
// font-family: PingFangSC-Medium, PingFang SC;
|
|
// font-family: PingFangSC-Medium, PingFang SC;
|
|
// color: #ffffff;
|
|
// color: #ffffff;
|
|
// line-height: 20px;
|
|
// line-height: 20px;
|
|
-
|
|
|
|
// }
|
|
// }
|
|
//表格文字
|
|
//表格文字
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
/deep/.ws-info-table .el-form-item .el-form-item__label {
|