|
@@ -48,7 +48,7 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item prop="goodsName" label="品级">
|
|
|
|
|
|
+ <el-form-item prop="grade" label="品级">
|
|
<el-select v-model="deptBudgetList.grade" placeholder="请选择品级">
|
|
<el-select v-model="deptBudgetList.grade" placeholder="请选择品级">
|
|
<el-option label="一等" value="一等"></el-option>
|
|
<el-option label="一等" value="一等"></el-option>
|
|
<el-option label="二等" value="二等"></el-option>
|
|
<el-option label="二等" value="二等"></el-option>
|
|
@@ -128,7 +128,8 @@
|
|
renown: '',
|
|
renown: '',
|
|
grade: '',
|
|
grade: '',
|
|
bank: '',
|
|
bank: '',
|
|
- three: ''
|
|
|
|
|
|
+ three: '',
|
|
|
|
+ goodsName:"",
|
|
},
|
|
},
|
|
size: 10,
|
|
size: 10,
|
|
compId: '',
|
|
compId: '',
|
|
@@ -149,8 +150,12 @@
|
|
activated() {
|
|
activated() {
|
|
this.compId = localStorage.getItem('ws-pf_compId')
|
|
this.compId = localStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId = this.compId
|
|
this.deptBudgetList.compId = this.compId
|
|
|
|
+ let i = localStorage.getItem("pageUp")
|
|
|
|
+ if(i != 1){
|
|
this.getcompList()
|
|
this.getcompList()
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
inputChange(e) {
|
|
inputChange(e) {
|
|
@@ -208,18 +213,24 @@
|
|
this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].baseId : ''
|
|
this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].baseId : ''
|
|
}
|
|
}
|
|
if(response[0].goodsNameInfos){
|
|
if(response[0].goodsNameInfos){
|
|
|
|
+ this.goodsList = []
|
|
for(let i = 0 ; i < response[0].goodsNameInfos.length ; i++){
|
|
for(let i = 0 ; i < response[0].goodsNameInfos.length ; i++){
|
|
if(response[0].goodsNameInfos[i].binNumber == this.deptBudgetList.warehouseNo ){
|
|
if(response[0].goodsNameInfos[i].binNumber == this.deptBudgetList.warehouseNo ){
|
|
this.goodsList.push(response[0].goodsNameInfos[i])
|
|
this.goodsList.push(response[0].goodsNameInfos[i])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(this.goodsList)
|
|
|
|
- // this.goodsList = response[0].goodsNameInfos
|
|
|
|
- this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
|
|
|
|
- this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
|
|
|
|
- // this.deptBudgetList.goodsName = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsName : ''
|
|
|
|
- this.deptBudgetList.goodsName = this.goodsList[0].goodsName
|
|
|
|
- this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
|
|
|
|
|
|
+ if(this.goodsList.length > 0 ){
|
|
|
|
+ this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
|
|
|
|
+ this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
|
|
|
|
+ this.deptBudgetList.goodsName = this.goodsList[0].goodsName
|
|
|
|
+ this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
|
|
|
|
+ }else {
|
|
|
|
+ this.deptBudgetList.nowWeight = ""
|
|
|
|
+ this.deptBudgetList.useWeight = ""
|
|
|
|
+ this.deptBudgetList.goodsName =""
|
|
|
|
+ this.deptBudgetList.goodsNameKey = ""
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
this.deptBudgetList.warehouseId = response[0].id
|
|
this.deptBudgetList.warehouseId = response[0].id
|
|
@@ -235,7 +246,7 @@
|
|
this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
|
|
this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
|
|
this.deptBudgetList.goodsName = _data[i].goodsName
|
|
this.deptBudgetList.goodsName = _data[i].goodsName
|
|
this.deptBudgetList.nowWeight = _data[i].storage
|
|
this.deptBudgetList.nowWeight = _data[i].storage
|
|
- this.deptBudgetList.useWeight = _data[i].useStorag
|
|
|
|
|
|
+ this.deptBudgetList.useWeight = _data[i].useStorage
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -400,6 +411,7 @@
|
|
}).then(() => {
|
|
}).then(() => {
|
|
addList(this.deptBudgetList).toPromise().then((response) => {
|
|
addList(this.deptBudgetList).toPromise().then((response) => {
|
|
// this.tableData = response.records
|
|
// this.tableData = response.records
|
|
|
|
+ localStorage.removeItem("pageUp")
|
|
this.$message.success('提交成功')
|
|
this.$message.success('提交成功')
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'warehouseReceiptRegulation'
|
|
path: 'warehouseReceiptRegulation'
|
|
@@ -423,6 +435,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
cancel() {
|
|
cancel() {
|
|
|
|
+ localStorage.removeItem("pageUp")
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'warehouseReceiptRegulation'
|
|
path: 'warehouseReceiptRegulation'
|
|
})
|
|
})
|