|
@@ -256,7 +256,6 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { pullDown, addstorageputList, goodsname } from '@/model/warehouse/index'
|
|
|
-import { downloadFile } from '@/utils/batchDown'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
@@ -351,6 +350,103 @@ export default {
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
|
},
|
|
|
temporaryStorage() {
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
|
+ this.$message({
|
|
|
+ message: '货名不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.deptBudgetList.grossWeight){
|
|
|
+ this.$message({
|
|
|
+ message: '毛重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.grossWeight < 0 ||
|
|
|
+ this.deptBudgetList.grossWeight > 10000 ||
|
|
|
+ (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.grossWeight).length -
|
|
|
+ (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
|
|
|
+ 3)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '毛重输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.deptBudgetList.tare){
|
|
|
+ this.$message({
|
|
|
+ message: '皮重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.tare < 0 ||
|
|
|
+ this.deptBudgetList.tare > 10000 ||
|
|
|
+ (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.tare).length -
|
|
|
+ (String(this.deptBudgetList.tare).indexOf('.') + 1) >
|
|
|
+ 3)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.deptBudgetList.agent){
|
|
|
+ this.$message({
|
|
|
+ message: '经办人不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.agent.length < 2 ||
|
|
|
+ this.deptBudgetList.agent.length > 10
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '经办人输入有误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.deptBudgetList.carNo){
|
|
|
+ this.$message({
|
|
|
+ message: '车牌号不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.deptBudgetList.carNo.length > 7) {
|
|
|
+ this.$message({
|
|
|
+ message: '车牌号输入错误,请输入7个字符之内',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.deptBudgetList.contractNo){
|
|
|
+ this.$message({
|
|
|
+ message: '合同编号不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.contractNo.length < 6 ||
|
|
|
+ this.deptBudgetList.contractNo.length > 20
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '合同编号长度不符合要求,请输入6-20个字符之内',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
@@ -398,10 +494,14 @@ export default {
|
|
|
}
|
|
|
if (
|
|
|
this.deptBudgetList.grossWeight < 0 ||
|
|
|
- this.deptBudgetList.grossWeight >= 10000
|
|
|
+ this.deptBudgetList.grossWeight > 10000 ||
|
|
|
+ (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.grossWeight).length -
|
|
|
+ (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
|
|
|
+ 3)
|
|
|
) {
|
|
|
this.$message({
|
|
|
- message: '毛重输入错误!',
|
|
|
+ message: '毛重输入错误',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -413,9 +513,16 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.tare < 0 || this.deptBudgetList.tare >= 10000) {
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.tare < 0 ||
|
|
|
+ this.deptBudgetList.tare > 10000 ||
|
|
|
+ (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.tare).length -
|
|
|
+ (String(this.deptBudgetList.tare).indexOf('.') + 1) >
|
|
|
+ 3)
|
|
|
+ ) {
|
|
|
this.$message({
|
|
|
- message: '皮重输入错误!',
|
|
|
+ message: '皮重输入错误',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
@@ -509,7 +616,13 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ this.$confirm(`确定提交出库信息`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
this.deptBudgetList.inOutFlag = 1
|
|
@@ -525,6 +638,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
})
|
|
|
+ })
|
|
|
},
|
|
|
tarechange(e) {
|
|
|
if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
|
|
@@ -621,44 +735,6 @@ export default {
|
|
|
query: { id: row.id },
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- // 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
- handleCloe() {
|
|
|
- this.dialogViewSpareMoney = false
|
|
|
- },
|
|
|
- history(row) {
|
|
|
- console.log(row)
|
|
|
- billoperatehis({ id: row.id })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.historyList = response
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 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() {},
|
|
|
listQuery() {},
|