|
@@ -6,19 +6,15 @@
|
|
|
<h2 class="bg-left title">入库登记</h2>
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="bg-right">
|
|
|
- <el-button
|
|
|
- class="bg-bottom"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="revert()"
|
|
|
- ><img
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="revert()">
|
|
|
+ <img
|
|
|
width="6"
|
|
|
height="10"
|
|
|
style="vertical-align: bottom; margin-right: 3px"
|
|
|
src="../../../public/img/lujing.png"
|
|
|
- alt=""
|
|
|
- />返回</el-button
|
|
|
- >
|
|
|
+ alt
|
|
|
+ />返回
|
|
|
+ </el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
@@ -30,12 +26,13 @@
|
|
|
width="19"
|
|
|
height="19"
|
|
|
src="../../../public/img/cangku.png"
|
|
|
- alt=""
|
|
|
+ alt
|
|
|
/>
|
|
|
{{ deptBudgetList.warehouseName }}库
|
|
|
- <span class="position" v-show="this.$route.query.warehouseType == 1">
|
|
|
- {{ deptBudgetList.binNumber }}仓位
|
|
|
- </span>
|
|
|
+ <span
|
|
|
+ class="position"
|
|
|
+ v-show="this.$route.query.warehouseType == 1"
|
|
|
+ >{{ deptBudgetList.binNumber }}仓位</span>
|
|
|
<span v-show="this.$route.query.warehouseType == 2">(临)</span>
|
|
|
</h2>
|
|
|
<ws-info-table>
|
|
@@ -43,7 +40,7 @@
|
|
|
<ws-form-item label="货名" span="1">
|
|
|
<ws-select
|
|
|
v-model="deptBudgetList.goodsName"
|
|
|
- placeholder=""
|
|
|
+ placeholder
|
|
|
class="typeselect"
|
|
|
@change="selectgoodsName"
|
|
|
>
|
|
@@ -67,12 +64,7 @@
|
|
|
</ws-form-item>
|
|
|
|
|
|
<!--皮重(吨)-->
|
|
|
- <ws-form-item
|
|
|
- label="皮重(吨)"
|
|
|
- span="1"
|
|
|
- prop="tare"
|
|
|
- class="readonly"
|
|
|
- >
|
|
|
+ <ws-form-item label="皮重(吨)" span="1" prop="tare" class="readonly">
|
|
|
<ws-input
|
|
|
@input="tarechange"
|
|
|
v-model="deptBudgetList.tare"
|
|
@@ -96,7 +88,7 @@
|
|
|
<ws-form-item label="品级" span="1" class="readonly">
|
|
|
<ws-select
|
|
|
v-model="deptBudgetList.grade"
|
|
|
- placeholder=""
|
|
|
+ placeholder
|
|
|
class="typeselect"
|
|
|
@change="selectpackingMethod"
|
|
|
>
|
|
@@ -127,12 +119,7 @@
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<!--出库日期-->
|
|
|
- <ws-form-item
|
|
|
- label="入库日期"
|
|
|
- span="1"
|
|
|
- prop="inOutDate"
|
|
|
- class="deliverydate"
|
|
|
- >
|
|
|
+ <ws-form-item label="入库日期" span="1" prop="inOutDate" class="deliverydate">
|
|
|
<ws-date-picker
|
|
|
v-model="deptBudgetList.inOutDate"
|
|
|
type="date"
|
|
@@ -144,7 +131,7 @@
|
|
|
<ws-form-item label="入库类型" span="1">
|
|
|
<ws-select
|
|
|
v-model="deptBudgetList.inOutType"
|
|
|
- placeholder=""
|
|
|
+ placeholder
|
|
|
class="typeselect"
|
|
|
@change="selectstorageType"
|
|
|
>
|
|
@@ -185,17 +172,11 @@
|
|
|
</ws-info-table>
|
|
|
<div v-show="this.$route.query.warehouseType == 2 && this.deptBudgetList.createType == 2">
|
|
|
<el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
|
|
|
- <ws-info-table
|
|
|
- v-show="checked == true && this.deptBudgetList.createType == 2"
|
|
|
- >
|
|
|
+ <ws-info-table v-show="checked == true && this.deptBudgetList.createType == 2">
|
|
|
<!-- 出库类型 -->
|
|
|
<ws-form-item label="出库类型" span="1" prop="temporaryOutType">
|
|
|
- <!-- v-model="deptBudgetList.deliveryType" -->
|
|
|
- <ws-select
|
|
|
- v-model="deptBudgetList.temporaryOutType"
|
|
|
- placeholder=""
|
|
|
- class="typeselect"
|
|
|
- >
|
|
|
+ <!-- v-model="deptBudgetList.deliveryType" -->
|
|
|
+ <ws-select v-model="deptBudgetList.temporaryOutType" placeholder class="typeselect">
|
|
|
<ws-option
|
|
|
v-for="item in deliveryType"
|
|
|
:key="item.constKey"
|
|
@@ -306,20 +287,8 @@
|
|
|
</ws-info-table>
|
|
|
</div>
|
|
|
<div style="text-align: right; padding: 10px">
|
|
|
- <el-button
|
|
|
- class="bg-bottom-up"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="temporaryStorage()"
|
|
|
- >暂存</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- class="bg-bottom-up"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- @click="submit()"
|
|
|
- >提交</el-button
|
|
|
- >
|
|
|
+ <el-button class="bg-bottom-up" type="primary" size="small" @click="temporaryStorage()">暂存</el-button>
|
|
|
+ <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
|
|
|
</div>
|
|
|
</ws-form>
|
|
|
</div>
|
|
@@ -329,7 +298,7 @@ import {
|
|
|
pullDown,
|
|
|
addstorageputList,
|
|
|
xialaNo,
|
|
|
- getstaff,
|
|
|
+ getstaff
|
|
|
} from '@/model/warehouse/index'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
@@ -339,7 +308,7 @@ export default {
|
|
|
name: 'viewSpareMoney',
|
|
|
components: {
|
|
|
WsUpload,
|
|
|
- Pagination,
|
|
|
+ Pagination
|
|
|
},
|
|
|
watch: {
|
|
|
// vesselId(val) {
|
|
@@ -347,7 +316,7 @@ export default {
|
|
|
// },
|
|
|
isShow(val) {
|
|
|
this.showType = val
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -393,9 +362,9 @@ export default {
|
|
|
required: true,
|
|
|
type: 'number',
|
|
|
message: '请输入活动名称',
|
|
|
- trigger: 'blur',
|
|
|
- },
|
|
|
- ],
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
size: 10,
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
@@ -403,20 +372,20 @@ export default {
|
|
|
packtypeList: {},
|
|
|
date: {
|
|
|
year: dayjs().format('YYYY'),
|
|
|
- month: dayjs().format('MM'),
|
|
|
+ month: dayjs().format('MM')
|
|
|
},
|
|
|
contractList: [],
|
|
|
deptBudgetList: {
|
|
|
- warehouseInOutDetail: {},
|
|
|
+ warehouseInOutDetail: {}
|
|
|
},
|
|
|
historyList: [],
|
|
|
|
|
|
pickerBeginDateBefore: {
|
|
|
- disabledDate: (time) => {
|
|
|
+ disabledDate: time => {
|
|
|
return time.getTime() > Date.now()
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
- accessoryTFs: false,
|
|
|
+ accessoryTFs: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -426,7 +395,7 @@ export default {
|
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
|
this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
|
this.deptBudgetList.createType = this.$route.query.createType
|
|
|
-
|
|
|
+
|
|
|
this.getList()
|
|
|
this.deptBudgetList.goodsName = '玉米'
|
|
|
this.deptBudgetList.goodsNameKey = '1'
|
|
@@ -450,7 +419,7 @@ export default {
|
|
|
this.deptBudgetList.staffList = val
|
|
|
if (val) {
|
|
|
//val存在
|
|
|
- this.options = this.staffList.filter((item) => {
|
|
|
+ this.options = this.staffList.filter(item => {
|
|
|
if (
|
|
|
!!~item.staffName.indexOf(val) ||
|
|
|
!!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
|
|
@@ -475,14 +444,14 @@ export default {
|
|
|
if (!this.deptBudgetList.goodsName) {
|
|
|
this.$message({
|
|
|
message: '货名不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.grossWeight) {
|
|
|
this.$message({
|
|
|
message: '毛重不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -496,14 +465,14 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '毛重输入错误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.tare) {
|
|
|
this.$message({
|
|
|
message: '皮重不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -517,14 +486,14 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '皮重输入错误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.agent) {
|
|
|
this.$message({
|
|
|
message: '经办人不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -534,49 +503,51 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '经办人输入有误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.grade) {
|
|
|
this.$message({
|
|
|
message: '品级不能为空!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.inOutDate) {
|
|
|
this.$message({
|
|
|
message: '入库日期不能为空!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.inOutType) {
|
|
|
this.$message({
|
|
|
message: '入库类型不能为空!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (!this.deptBudgetList.carNo) {
|
|
|
this.$message({
|
|
|
message: '车牌号不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
|
this.$message({
|
|
|
message: '车牌号输入错误,请输入7个字符之内',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.contractNo) {
|
|
|
this.$message({
|
|
|
message: '合同编号不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -586,7 +557,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '合同编号长度不符合要求,请输入6-20个字符之内',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -599,7 +570,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '质检员姓名长度错误!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -608,7 +579,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
|
|
|
this.$message({
|
|
|
message: '水分(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -628,7 +599,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -639,7 +610,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
|
|
|
this.$message({
|
|
|
message: '杂质(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -658,7 +629,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -668,7 +639,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
|
this.$message({
|
|
|
message: '霉变粒(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -688,7 +659,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -699,7 +670,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
|
this.$message({
|
|
|
message: '热损伤(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -718,7 +689,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -729,7 +700,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
|
this.$message({
|
|
|
message: '不完整粒(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -749,7 +720,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -759,7 +730,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
|
this.$message({
|
|
|
message: '容重(克/升)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -779,7 +750,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -788,18 +759,19 @@ export default {
|
|
|
this.$confirm(`确定提交入库信息`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ this.$refs.deptBudgetList.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.deptBudgetList.compId =
|
|
|
- sessionStorage.getItem('ws-pf_compId')
|
|
|
+ this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
+ 'ws-pf_compId'
|
|
|
+ )
|
|
|
this.deptBudgetList.inOutFlag = 2
|
|
|
this.deptBudgetList.statusFlag = 3
|
|
|
addstorageputList(this.deptBudgetList)
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$message.success('添加成功')
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
|
})
|
|
@@ -817,14 +789,14 @@ export default {
|
|
|
if (!this.deptBudgetList.goodsName) {
|
|
|
this.$message({
|
|
|
message: '货名不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.grossWeight) {
|
|
|
this.$message({
|
|
|
message: '毛重不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -838,14 +810,14 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '毛重输入错误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.tare) {
|
|
|
this.$message({
|
|
|
message: '皮重不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -859,14 +831,14 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '皮重输入错误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.agent) {
|
|
|
this.$message({
|
|
|
message: '经办人不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -876,28 +848,28 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '经办人输入有误',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.carNo) {
|
|
|
this.$message({
|
|
|
message: '车牌号不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (this.deptBudgetList.carNo.length > 7) {
|
|
|
this.$message({
|
|
|
message: '车牌号输入错误,请输入7个字符之内',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (!this.deptBudgetList.contractNo) {
|
|
|
this.$message({
|
|
|
message: '合同编号不能为空',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -907,7 +879,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '合同编号长度不符合要求,请输入6-20个字符之内',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -927,7 +899,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '质检员姓名长度错误!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -936,7 +908,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
|
|
|
this.$message({
|
|
|
message: '水分(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -956,7 +928,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -967,7 +939,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
|
|
|
this.$message({
|
|
|
message: '杂质(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -986,7 +958,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -996,7 +968,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
|
this.$message({
|
|
|
message: '霉变粒(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1016,7 +988,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1027,7 +999,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
|
this.$message({
|
|
|
message: '热损伤(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1046,7 +1018,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1057,7 +1029,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
|
this.$message({
|
|
|
message: '不完整粒(%)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1077,7 +1049,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1087,7 +1059,7 @@ export default {
|
|
|
if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
|
this.$message({
|
|
|
message: '容重(克/升)非数字!',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1107,7 +1079,7 @@ export default {
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
@@ -1115,18 +1087,19 @@ export default {
|
|
|
this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
- type: 'warning',
|
|
|
+ type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ this.$refs.deptBudgetList.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.deptBudgetList.compId =
|
|
|
- sessionStorage.getItem('ws-pf_compId')
|
|
|
+ this.deptBudgetList.compId = sessionStorage.getItem(
|
|
|
+ 'ws-pf_compId'
|
|
|
+ )
|
|
|
this.deptBudgetList.inOutFlag = 2
|
|
|
this.deptBudgetList.statusFlag = 1
|
|
|
addstorageputList(this.deptBudgetList)
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$message.success('暂存成功')
|
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
|
})
|
|
@@ -1192,47 +1165,47 @@ export default {
|
|
|
// 货名
|
|
|
pullDown({ constId: 'CON2' })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.goodnameList = response
|
|
|
})
|
|
|
// 品级
|
|
|
pullDown({ constId: 'CON3' })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.gradeList = response
|
|
|
})
|
|
|
// 类型
|
|
|
if (this.deptBudgetList.warehouseType == '1') {
|
|
|
pullDown({ constId: 'CON5' })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.storageType = response
|
|
|
})
|
|
|
} else if (this.deptBudgetList.warehouseType == '2') {
|
|
|
pullDown({ constId: 'WARE1' })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.storageType = response
|
|
|
})
|
|
|
|
|
|
pullDown({ constId: 'WARE2' })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.deliveryType = response
|
|
|
})
|
|
|
}
|
|
|
//合同编号
|
|
|
xialaNo({ compId: sessionStorage.getItem('ws-pf_compId') })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.outContractNo = response
|
|
|
})
|
|
|
//经办人
|
|
|
getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
|
|
|
.toPromise()
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.options = response
|
|
|
- this.staffList = response
|
|
|
+ this.staffList = response
|
|
|
// this.agent = response
|
|
|
})
|
|
|
},
|
|
@@ -1260,10 +1233,10 @@ export default {
|
|
|
handleExamine(row) {
|
|
|
this.$router.push({
|
|
|
name: 'salesContractExamine',
|
|
|
- query: { id: row.id },
|
|
|
+ query: { id: row.id }
|
|
|
})
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|