|
@@ -29,7 +29,7 @@
|
|
</el-select> -->
|
|
</el-select> -->
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="仓库名称" span="1" prop="warehouseName" class="forlist">
|
|
<el-form-item label="仓库名称" span="1" prop="warehouseName" class="forlist">
|
|
- <el-select v-model="deptBudgetList.warehouseName" placeholder="请选择仓库" @change="changeWarehouse" filterable
|
|
|
|
|
|
+ <el-select disabled v-model="deptBudgetList.warehouseName" placeholder="请选择仓库" @change="changeWarehouse" filterable
|
|
clearable>
|
|
clearable>
|
|
<el-option :label="item.warehouseName" :value="item.id" v-for="(item,index) in warehouseList" :key="index">
|
|
<el-option :label="item.warehouseName" :value="item.id" v-for="(item,index) in warehouseList" :key="index">
|
|
</el-option>
|
|
</el-option>
|
|
@@ -45,6 +45,11 @@
|
|
<el-form-item label="仓库地址" span="1" prop="warehouseAddress" class="forlist">
|
|
<el-form-item label="仓库地址" span="1" prop="warehouseAddress" class="forlist">
|
|
<el-input disabled v-model="deptBudgetList.warehouseAddress" placeholder="请输入仓库地址" size="small"></el-input>
|
|
<el-input disabled v-model="deptBudgetList.warehouseAddress" placeholder="请输入仓库地址" size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="货源" prop="weight" class="forlist supplyofgoods">
|
|
|
|
+ <el-input disabled v-model="goodstext" placeholder="" size="small" >
|
|
|
|
+ </el-input>
|
|
|
|
+ <el-button @click='selectgoods' type="primary">选择货源</el-button>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item prop="goodsName" label="货名" span="1">
|
|
<el-form-item prop="goodsName" label="货名" span="1">
|
|
<el-select v-model="deptBudgetList.goodsName" disabled placeholder="请选择货名" @change="changeGoodsName" filterable
|
|
<el-select v-model="deptBudgetList.goodsName" disabled placeholder="请选择货名" @change="changeGoodsName" filterable
|
|
clearable>
|
|
clearable>
|
|
@@ -66,21 +71,17 @@
|
|
<el-form-item label="可用储量(吨)" span="1" prop="useWeight" class="forlist">
|
|
<el-form-item label="可用储量(吨)" span="1" prop="useWeight" class="forlist">
|
|
<el-input disabled v-model="deptBudgetList.useWeight" placeholder="请输入可用储量" size="small"></el-input>
|
|
<el-input disabled v-model="deptBudgetList.useWeight" placeholder="请输入可用储量" size="small"></el-input>
|
|
</el-form-item> -->
|
|
</el-form-item> -->
|
|
- <el-form-item label="货源" prop="weight" class="forlist supplyofgoods">
|
|
|
|
- <el-input disabled v-model="goodstext" placeholder="" size="small" >
|
|
|
|
- </el-input>
|
|
|
|
- <el-button @click='selectgoods' type="primary">选择货源</el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
<el-form-item label="本单重量(吨)" span="1" prop="weight" class="forlist">
|
|
<el-form-item label="本单重量(吨)" span="1" prop="weight" class="forlist">
|
|
- <el-input v-model="deptBudgetList.weight" placeholder="输入本次仓单申请所需的重量" size="small">
|
|
|
|
|
|
+ <el-input disabled v-model="deptBudgetList.weight" placeholder="输入本次仓单申请所需的重量" size="small">
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="折干重量(吨)" prop="weight" class="forlist">
|
|
<el-form-item label="折干重量(吨)" prop="weight" class="forlist">
|
|
<el-input v-model="deptBudgetList.dryOutWeight" placeholder="输入折干重量" size="small" @input='inputChange'>
|
|
<el-input v-model="deptBudgetList.dryOutWeight" placeholder="输入折干重量" size="small" @input='inputChange'>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="单价(元/吨)" span="1" prop="unitPrice" class="forlist" @input='inputChange'>
|
|
|
|
- <el-input v-model="deptBudgetList.unitPrice" placeholder="输入粮食单价" size="small"></el-input>
|
|
|
|
|
|
+ <el-form-item label="单价(元/吨)" span="1" prop="unitPrice" class="forlist">
|
|
|
|
+ <el-input v-model="deptBudgetList.unitPrice" placeholder="输入粮食单价" @input='inputChange' size="small"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="货值(元)" span="1" prop="totalValue" class="forlist">
|
|
<el-form-item label="货值(元)" span="1" prop="totalValue" class="forlist">
|
|
<el-input type='number' v-model="deptBudgetList.totalValue" disabled placeholder="自动计算,不可编辑" size="small">
|
|
<el-input type='number' v-model="deptBudgetList.totalValue" disabled placeholder="自动计算,不可编辑" size="small">
|
|
@@ -188,7 +189,7 @@
|
|
|
|
|
|
if(localStorage.getItem('warehouseReceipteditdata')){
|
|
if(localStorage.getItem('warehouseReceipteditdata')){
|
|
this.deptBudgetList=JSON.parse(localStorage.getItem('warehouseReceipteditdata'))
|
|
this.deptBudgetList=JSON.parse(localStorage.getItem('warehouseReceipteditdata'))
|
|
- var data=await global.default.getDataByKey(this.db,'signalChat',1)
|
|
|
|
|
|
+ var data=await global.default.getDataByKey(this.db,'signalChat',2)
|
|
if(data){
|
|
if(data){
|
|
this.deptBudgetList.weight=''
|
|
this.deptBudgetList.weight=''
|
|
var weight = 0
|
|
var weight = 0
|
|
@@ -216,8 +217,12 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- selectgoods(){
|
|
|
|
|
|
+ async selectgoods(){
|
|
localStorage.setItem('warehouseReceipteditdata',JSON.stringify(this.deptBudgetList))
|
|
localStorage.setItem('warehouseReceipteditdata',JSON.stringify(this.deptBudgetList))
|
|
|
|
+ // var data=await global.default.getDataByKey(this.db,'signalChat',2)
|
|
|
|
+ // if(data){
|
|
|
|
+ // global.default.deleteDB(this.db,'signalChat',2)
|
|
|
|
+ // }
|
|
console.log(this.deptBudgetList)
|
|
console.log(this.deptBudgetList)
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'warehouseReceipteditgoods',
|
|
name: 'warehouseReceipteditgoods',
|
|
@@ -227,6 +232,7 @@
|
|
warehouseName: this.deptBudgetList.warehouseName,
|
|
warehouseName: this.deptBudgetList.warehouseName,
|
|
warehouseType: this.deptBudgetList.warehouseType,
|
|
warehouseType: this.deptBudgetList.warehouseType,
|
|
warehouseNo:this.deptBudgetList.warehouseNo,
|
|
warehouseNo:this.deptBudgetList.warehouseNo,
|
|
|
|
+ billNo:this.deptBudgetList.billNo,
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -237,15 +243,37 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//银行改变
|
|
//银行改变
|
|
- bankChange(e) {
|
|
|
|
- this.deptBudgetList.bank = e
|
|
|
|
|
|
+ bankChange(e){
|
|
|
|
+ for (let i = 0; i < this.bankList.length; i++) {
|
|
|
|
+ if(this.bankList[i].compName == e){
|
|
|
|
+ this.deptBudgetList.bankId = this.bankList[i].compId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//第三方
|
|
//第三方
|
|
- threeChange(e) {
|
|
|
|
- this.deptBudgetList.three = e
|
|
|
|
|
|
+ threeChange(e){
|
|
|
|
+ for (let i = 0; i < this.threeList.length; i++) {
|
|
|
|
+ if(this.threeList[i].compName == e){
|
|
|
|
+ this.deptBudgetList.threeId = this.threeList[i].compId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//返回
|
|
//返回
|
|
cancel() {
|
|
cancel() {
|
|
|
|
+ localStorage.removeItem('warehouseReceipteditdata')
|
|
|
|
+ global.default.deleteDB(this.db,'signalChat',2)
|
|
|
|
+ this.goodstext='已选0辆车'
|
|
|
|
+ this.deptBudgetList={
|
|
|
|
+ goodsName:'',
|
|
|
|
+ goodsNameKey:'',
|
|
|
|
+ useWeight:'',
|
|
|
|
+ nowWeight:'',
|
|
|
|
+ warehouseNo:'',
|
|
|
|
+ warehouseName:'',
|
|
|
|
+ renown:'',
|
|
|
|
+ weight:'',
|
|
|
|
+ interest:''
|
|
|
|
+ },
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'warehouseReceiptRegulation'
|
|
path: 'warehouseReceiptRegulation'
|
|
})
|
|
})
|
|
@@ -293,17 +321,15 @@
|
|
let _data = this.warehouseList
|
|
let _data = this.warehouseList
|
|
for (let i = 0; i < _data.length; i++) {
|
|
for (let i = 0; i < _data.length; i++) {
|
|
if (_data[i].id == val) {
|
|
if (_data[i].id == val) {
|
|
- var data=await global.default.getDataByKey(this.db,'signalChat',1)
|
|
|
|
|
|
+ var data=await global.default.getDataByKey(this.db,'signalChat',2)
|
|
if(data){
|
|
if(data){
|
|
if(data.modification&&data.modification.length>0){
|
|
if(data.modification&&data.modification.length>0){
|
|
- global.default.deleteDB(this.db,'signalChat',1)
|
|
|
|
|
|
+ global.default.deleteDB(this.db,'signalChat',2)
|
|
this.deptBudgetList.weight = ''
|
|
this.deptBudgetList.weight = ''
|
|
this.deptBudgetList.dryOutWeight = ''
|
|
this.deptBudgetList.dryOutWeight = ''
|
|
|
|
+ this.goodstext='已选0辆车'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- this.goodstext='已选0辆车'
|
|
|
|
-
|
|
|
|
this.deptBudgetList.warehouseName = _data[i].warehouseName
|
|
this.deptBudgetList.warehouseName = _data[i].warehouseName
|
|
this.deptBudgetList.warehouseType =_data[i].warehouseType
|
|
this.deptBudgetList.warehouseType =_data[i].warehouseType
|
|
this.cwNumberList = _data[i].positionInfos.length != 0 ? _data[i].positionInfos : []
|
|
this.cwNumberList = _data[i].positionInfos.length != 0 ? _data[i].positionInfos : []
|
|
@@ -352,13 +378,17 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getcompList() {
|
|
getcompList() {
|
|
- //公司名下拉
|
|
|
|
- getcompList()
|
|
|
|
|
|
+ //获取银行
|
|
|
|
+ getcompList({reserved01:1})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- this.compOptionList = res
|
|
|
|
- // this.deptBudgetList.renown = res[0].compName
|
|
|
|
- this.changeCompOptionList(res[0].compId)
|
|
|
|
|
|
+ this.bankList = res
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {})
|
|
|
|
+ getcompList({reserved01:2})
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.threeList = res
|
|
})
|
|
})
|
|
.catch((err) => {})
|
|
.catch((err) => {})
|
|
},
|
|
},
|
|
@@ -368,7 +398,7 @@
|
|
compId: this.compId,
|
|
compId: this.compId,
|
|
warehouseType:1
|
|
warehouseType:1
|
|
}).toPromise()
|
|
}).toPromise()
|
|
- var data=await global.default.getDataByKey(this.db,'signalChat',1)
|
|
|
|
|
|
+ var data=await global.default.getDataByKey(this.db,'signalChat',2)
|
|
if(data){
|
|
if(data){
|
|
if(!data.modification||data.modification.length==0){
|
|
if(!data.modification||data.modification.length==0){
|
|
this.changeWarehouse(this.deptBudgetList.warehouseId)
|
|
this.changeWarehouse(this.deptBudgetList.warehouseId)
|
|
@@ -390,6 +420,9 @@
|
|
workflowId: this.$route.query.workflowId
|
|
workflowId: this.$route.query.workflowId
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
|
|
+ if(this.deptBudgetList.warehouseInOutInfoList.length>0){
|
|
|
|
+ this.goodstext=`已选${this.deptBudgetList.warehouseInOutInfoList.length}辆车`
|
|
|
|
+ }
|
|
//审核记录
|
|
//审核记录
|
|
this.taskhistories = await getWarehouseReceiptExamine({
|
|
this.taskhistories = await getWarehouseReceiptExamine({
|
|
businessKey: this.$route.query.id,
|
|
businessKey: this.$route.query.id,
|
|
@@ -398,7 +431,7 @@
|
|
this.getcompList()
|
|
this.getcompList()
|
|
},
|
|
},
|
|
async submit() {
|
|
async submit() {
|
|
- var data=await global.default.getDataByKey(this.db,'signalChat',1)
|
|
|
|
|
|
+ var data=await global.default.getDataByKey(this.db,'signalChat',2)
|
|
if(data){
|
|
if(data){
|
|
if(data.modification){
|
|
if(data.modification){
|
|
this.deptBudgetList.warehouseInOutInfoList=data.modification
|
|
this.deptBudgetList.warehouseInOutInfoList=data.modification
|
|
@@ -412,7 +445,20 @@
|
|
.then((response) => {
|
|
.then((response) => {
|
|
localStorage.removeItem('warehouseReceipteditdata')
|
|
localStorage.removeItem('warehouseReceipteditdata')
|
|
this.$message.success('提交成功')
|
|
this.$message.success('提交成功')
|
|
- global.default.deleteDB(this.db,'signalChat',1)
|
|
|
|
|
|
+ global.default.deleteDB(this.db,'signalChat',2)
|
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
|
+ this.goodstext='已选0辆车'
|
|
|
|
+ this.deptBudgetList={
|
|
|
|
+ goodsName:'',
|
|
|
|
+ goodsNameKey:'',
|
|
|
|
+ useWeight:'',
|
|
|
|
+ nowWeight:'',
|
|
|
|
+ warehouseNo:'',
|
|
|
|
+ warehouseName:'',
|
|
|
|
+ renown:'',
|
|
|
|
+ weight:'',
|
|
|
|
+ interest:''
|
|
|
|
+ }
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'warehouseReceiptRegulation'
|
|
path: 'warehouseReceiptRegulation'
|
|
})
|
|
})
|