|
@@ -106,7 +106,13 @@
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="contractNo" label="合同编号" width="130"></el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="contractNo" label="合同编号" width="190">
|
|
|
|
+ <template scope="scope">
|
|
|
|
+ <span>
|
|
|
|
+ {{ scope.row.contractNo }} ({{ scope.row.inType }})
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="buyer" label="买方" width="150"></el-table-column>
|
|
<el-table-column prop="buyer" label="买方" width="150"></el-table-column>
|
|
<el-table-column prop="goodsSource" label="货源" width="130">
|
|
<el-table-column prop="goodsSource" label="货源" width="130">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
@@ -121,7 +127,7 @@
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
<el-table-column prop="goodsName" label="货名" width="120">
|
|
<el-table-column prop="goodsName" label="货名" width="120">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="inWarehouseWeight1" width="170" class="table_td" label="加权水分">
|
|
|
|
|
|
+ <el-table-column prop="inWarehouseWeight1" width="130" class="table_td" label="加权水分">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-if='scope.row.edit == false'>{{ scope.row.weightedMoisture }}</span>
|
|
<span v-if='scope.row.edit == false'>{{ scope.row.weightedMoisture }}</span>
|
|
<el-input style='width:80%;' v-if='scope.row.edit' v-model='scope.row.weightedMoisture'></el-input>
|
|
<el-input style='width:80%;' v-if='scope.row.edit' v-model='scope.row.weightedMoisture'></el-input>
|
|
@@ -164,13 +170,13 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="avgCost" width="90" class="table_td" label="平均成本"></el-table-column>
|
|
<el-table-column prop="avgCost" width="90" class="table_td" label="平均成本"></el-table-column>
|
|
- <el-table-column prop="requestFunds" width="150" class="table_td tablerequestFunds" label="请款">
|
|
|
|
|
|
+ <el-table-column prop="requestFunds" width="100" class="table_td tablerequestFunds" label="请款">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
|
|
<span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
|
|
<el-input @focus="qingkuan(scope.row, item.id)" v-else v-model='scope.row.requestFunds'></el-input>
|
|
<el-input @focus="qingkuan(scope.row, item.id)" v-else v-model='scope.row.requestFunds'></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="remark" width="150" class="table_td" label="请款备注">
|
|
|
|
|
|
+ <el-table-column prop="remark" width="100" class="table_td" label="请款备注">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
|
|
<div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
|
|
<span class="text_css">查看</span>
|
|
<span class="text_css">查看</span>
|
|
@@ -187,7 +193,9 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
- :page-size="pageSize" layout="total, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
|
|
|
|
|
|
+ style="text-align: center" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
+ :total="deptBudgetTotal">
|
|
|
|
+ </el-pagination>
|
|
<el-dialog title="付款" :visible.sync="aduitshow" width="50%" :before-close="handleClose">
|
|
<el-dialog title="付款" :visible.sync="aduitshow" width="50%" :before-close="handleClose">
|
|
<div style='display:flex;'>
|
|
<div style='display:flex;'>
|
|
<div style='width:50%;'>
|
|
<div style='width:50%;'>
|
|
@@ -352,7 +360,7 @@
|
|
</div>
|
|
</div>
|
|
<el-form ref="form" :model="form" label-width="140px">
|
|
<el-form ref="form" :model="form" label-width="140px">
|
|
<el-form-item label="折干前重量(吨)">
|
|
<el-form-item label="折干前重量(吨)">
|
|
- <el-input v-model="fieldrationsList.beforeWeight"></el-input>
|
|
|
|
|
|
+ <el-input v-model="fieldrationsList.beforeWeight" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- <el-form-item label="折干前成本(元/吨)">
|
|
<!-- <el-form-item label="折干前成本(元/吨)">
|
|
<el-input disabled placeholder="自动计算,不可编辑" v-model="fieldrationsList.beforeCost"></el-input>
|
|
<el-input disabled placeholder="自动计算,不可编辑" v-model="fieldrationsList.beforeCost"></el-input>
|
|
@@ -365,7 +373,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="折干后重量(吨)">
|
|
<el-form-item label="折干后重量(吨)">
|
|
- <el-input @input="afterWeightchange" v-model="fieldrationsList.afterWeight"></el-input>
|
|
|
|
|
|
+ <el-input @input="afterWeightchange" v-model="fieldrationsList.afterWeight" disabled></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- <el-form-item label="折干后成本(元/吨)">
|
|
<!-- <el-form-item label="折干后成本(元/吨)">
|
|
<el-input disabled placeholder="自动计算,不可编辑" v-model="fieldrationsList.afterCost"></el-input>
|
|
<el-input disabled placeholder="自动计算,不可编辑" v-model="fieldrationsList.afterCost"></el-input>
|
|
@@ -453,6 +461,25 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="title1"
|
|
|
|
+ :visible.sync="rejectshow"
|
|
|
|
+ width="30%"
|
|
|
|
+ :before-close="handleClose5">
|
|
|
|
+ <span>{{title1=='驳回'?'驳回审核':'通过审核'}}</span>
|
|
|
|
+ <div>
|
|
|
|
+ <el-input
|
|
|
|
+ type="textarea"
|
|
|
|
+ :rows="2"
|
|
|
|
+ placeholder="请输入审核意见"
|
|
|
|
+ v-model="auditMind">
|
|
|
|
+ </el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="rejectshow = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="rejectclick">确 定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -514,6 +541,8 @@ export default {
|
|
interestrateshow: false,
|
|
interestrateshow: false,
|
|
dataList: [],
|
|
dataList: [],
|
|
payeeinfo: [],
|
|
payeeinfo: [],
|
|
|
|
+ title1:'',
|
|
|
|
+ rejectshow:false,
|
|
options: [],
|
|
options: [],
|
|
textarea: '',
|
|
textarea: '',
|
|
dialogVisiblecontent: false,
|
|
dialogVisiblecontent: false,
|
|
@@ -593,12 +622,14 @@ export default {
|
|
value1: '',
|
|
value1: '',
|
|
value: '',
|
|
value: '',
|
|
value2: '',
|
|
value2: '',
|
|
|
|
+ deptBudgetTotal: 0,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchType: '',
|
|
searchType: '',
|
|
searchTypeText: '待审核',
|
|
searchTypeText: '待审核',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
inOutType: '',
|
|
inOutType: '',
|
|
contractType: 2,
|
|
contractType: 2,
|
|
|
|
+ auditdata:[],
|
|
fieldrationsshow: false,
|
|
fieldrationsshow: false,
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
@@ -614,10 +645,9 @@ export default {
|
|
endDate: '',
|
|
endDate: '',
|
|
startDate: '',
|
|
startDate: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
- goodsName:"",
|
|
|
|
- reserves:"",
|
|
|
|
|
|
+ goodsName:'',
|
|
|
|
+ reserves:'',
|
|
goodsList:[],
|
|
goodsList:[],
|
|
- deptBudgetTotal: 0,
|
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
historyList: [],
|
|
historyList: [],
|
|
money: 0,
|
|
money: 0,
|
|
@@ -640,7 +670,8 @@ export default {
|
|
dialogTitle: '',
|
|
dialogTitle: '',
|
|
titletype: '',
|
|
titletype: '',
|
|
remark: '',
|
|
remark: '',
|
|
- baseId:""
|
|
|
|
|
|
+ baseId:'',
|
|
|
|
+ auditMind:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// activated() {
|
|
// activated() {
|
|
@@ -648,6 +679,9 @@ export default {
|
|
// this.showType = this.isShow
|
|
// this.showType = this.isShow
|
|
// },
|
|
// },
|
|
activated() {
|
|
activated() {
|
|
|
|
+ if(this.$route.query.status==1){
|
|
|
|
+ this.searchType='2'
|
|
|
|
+ }
|
|
this.value2 = this.getNowTime()
|
|
this.value2 = this.getNowTime()
|
|
selectWarehouseSelf({
|
|
selectWarehouseSelf({
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
@@ -679,7 +713,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
return prev;
|
|
return prev;
|
|
}
|
|
}
|
|
- }, 0).toFixed(2)
|
|
|
|
|
|
+ }, 0).toFixed(3)
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
@@ -693,8 +727,8 @@ export default {
|
|
if (e == '全部仓库' || e == '') {
|
|
if (e == '全部仓库' || e == '') {
|
|
this.warehouseName = ''
|
|
this.warehouseName = ''
|
|
this.goodsList = []
|
|
this.goodsList = []
|
|
- this.goodsName = ""
|
|
|
|
- this.baseId = ""
|
|
|
|
|
|
+ this.goodsName = ''
|
|
|
|
+ this.baseId = ''
|
|
}else{
|
|
}else{
|
|
for(let i =0 ; i<this.warehouseList.length;i++){
|
|
for(let i =0 ; i<this.warehouseList.length;i++){
|
|
if(this.warehouseList[i].warehouseName == e){
|
|
if(this.warehouseList[i].warehouseName == e){
|
|
@@ -715,8 +749,8 @@ export default {
|
|
break
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.goodsName= ""
|
|
|
|
- this.reserves = ""
|
|
|
|
|
|
+ this.goodsName= ''
|
|
|
|
+ this.reserves = ''
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
@@ -860,11 +894,11 @@ export default {
|
|
item.summation = 0
|
|
item.summation = 0
|
|
for (let i = 0; i < val.length; i++) {
|
|
for (let i = 0; i < val.length; i++) {
|
|
if (val[i].surplusWeight) {
|
|
if (val[i].surplusWeight) {
|
|
- item.summation += val[i].surplusWeight
|
|
|
|
|
|
+ item.summation += Number(val[i].surplusWeight)
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- item.summation = item.summation.toFixed(2)
|
|
|
|
|
|
+ item.summation = item.summation.toFixed(3)
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
// console.log(val,item.summation,1111111111)
|
|
// console.log(val,item.summation,1111111111)
|
|
this.multipleSelection1[item.id] = val
|
|
this.multipleSelection1[item.id] = val
|
|
@@ -1133,7 +1167,7 @@ export default {
|
|
console.log(this.currectdata)
|
|
console.log(this.currectdata)
|
|
this.fieldrationsList.warehousingOrderList = this.currectdata
|
|
this.fieldrationsList.warehousingOrderList = this.currectdata
|
|
this.fieldrationsList.baseId = this.currectdata[0].baseId
|
|
this.fieldrationsList.baseId = this.currectdata[0].baseId
|
|
- this.fieldrationsList.beforeWeight = weight.toFixed(2)
|
|
|
|
|
|
+ this.fieldrationsList.beforeWeight = weight.toFixed(3)
|
|
getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
|
|
getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
if (response) {
|
|
if (response) {
|
|
@@ -1146,7 +1180,7 @@ export default {
|
|
weight2 += ((deductWeight / 100) * this.currectdata[i].surplusWeight)
|
|
weight2 += ((deductWeight / 100) * this.currectdata[i].surplusWeight)
|
|
}
|
|
}
|
|
console.log(this.currectdata)
|
|
console.log(this.currectdata)
|
|
- this.fieldrationsList.afterWeight = weight2.toFixed(2)
|
|
|
|
|
|
+ this.fieldrationsList.afterWeight = weight2.toFixed(3)
|
|
this.fieldrationsshow = true
|
|
this.fieldrationsshow = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1174,7 +1208,6 @@ export default {
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
if (currectData.length == 0) {
|
|
if (currectData.length == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请选择一条数据!',
|
|
message: '请选择一条数据!',
|
|
@@ -1444,11 +1477,18 @@ export default {
|
|
this.form.distributionIng = ''
|
|
this.form.distributionIng = ''
|
|
this.fieldrationsshow = false
|
|
this.fieldrationsshow = false
|
|
this.getList()
|
|
this.getList()
|
|
- }).catch(() => {
|
|
|
|
- this.$message({
|
|
|
|
- message: '折干失败',
|
|
|
|
- type: 'warning'
|
|
|
|
- });
|
|
|
|
|
|
+ }).catch((response) => {
|
|
|
|
+ if (response.code == null) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: response.data.message,
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '折干失败',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
// this.$message({
|
|
// this.$message({
|
|
@@ -1637,6 +1677,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var arr3 = this.filtertask(arr2)
|
|
var arr3 = this.filtertask(arr2)
|
|
|
|
+
|
|
this.$confirm('审核请款信息', {
|
|
this.$confirm('审核请款信息', {
|
|
confirmButtonText: '通过',
|
|
confirmButtonText: '通过',
|
|
cancelButtonText: '驳回',
|
|
cancelButtonText: '驳回',
|
|
@@ -1644,22 +1685,34 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
-
|
|
|
|
- this.aduithandle(arr3, 0, true)
|
|
|
|
|
|
+ this.title1='通过'
|
|
|
|
+ this.auditdata=arr3
|
|
|
|
+ this.rejectshow=true
|
|
|
|
+ // this.aduithandle(arr3, 0, true)
|
|
}).catch((action) => {
|
|
}).catch((action) => {
|
|
console.log(action)
|
|
console.log(action)
|
|
if (action == 'cancel') {
|
|
if (action == 'cancel') {
|
|
- this.aduithandle(arr3, 0, false)
|
|
|
|
|
|
+ this.title1='驳回'
|
|
|
|
+ this.auditdata=arr3
|
|
|
|
+ this.rejectshow=true
|
|
|
|
+ // this.aduithandle(arr3, 0, false)
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ rejectclick(){
|
|
|
|
+ if(this.title=='通过'){
|
|
|
|
+ this.aduithandle(this.auditdata, 0, true)
|
|
|
|
+ }else{
|
|
|
|
+ this.aduithandle(this.auditdata, 0, false)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
aduithandle(item, index, status) {
|
|
aduithandle(item, index, status) {
|
|
if (index < item.length) {
|
|
if (index < item.length) {
|
|
workflowhandle({
|
|
workflowhandle({
|
|
taskId: item[index].taskId,
|
|
taskId: item[index].taskId,
|
|
approved: status,
|
|
approved: status,
|
|
- auditMind: '34',
|
|
|
|
|
|
+ auditMind: this.auditMind,
|
|
needReapply: true,
|
|
needReapply: true,
|
|
}).toPromise()
|
|
}).toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -1733,10 +1786,10 @@ export default {
|
|
for (let q = 0; q < data.length; q++) {
|
|
for (let q = 0; q < data.length; q++) {
|
|
if (data[q].inType == '收购入库') {
|
|
if (data[q].inType == '收购入库') {
|
|
data[q].inWarehouseWeight1 = Number((data[q].inWarehouseWeight).toFixed(3))
|
|
data[q].inWarehouseWeight1 = Number((data[q].inWarehouseWeight).toFixed(3))
|
|
- data[q].surplusWeight = (data[q].inWarehouseWeight) - data[q].outWarehouseWeight + data[q].profitAndLoss
|
|
|
|
|
|
+ data[q].surplusWeight = ((data[q].inWarehouseWeight) - data[q].outWarehouseWeight + data[q].profitAndLoss).toFixed(3)
|
|
} else {
|
|
} else {
|
|
data[q].inWarehouseWeight1 = data[q].inWarehouseWeight.toFixed(3)
|
|
data[q].inWarehouseWeight1 = data[q].inWarehouseWeight.toFixed(3)
|
|
- data[q].surplusWeight = data[q].inWarehouseWeight - data[q].outWarehouseWeight + data[q].profitAndLoss
|
|
|
|
|
|
+ data[q].surplusWeight =(data[q].inWarehouseWeight - data[q].outWarehouseWeight + data[q].profitAndLoss).toFixed(3)
|
|
}
|
|
}
|
|
console.log(response.records[i].warehouseType)
|
|
console.log(response.records[i].warehouseType)
|
|
data[q].select = false
|
|
data[q].select = false
|
|
@@ -1871,6 +1924,9 @@ export default {
|
|
handleClose() {
|
|
handleClose() {
|
|
this.aduitshow = false
|
|
this.aduitshow = false
|
|
},
|
|
},
|
|
|
|
+ handleClose5() {
|
|
|
|
+ this.rejectshow = false
|
|
|
|
+ },
|
|
handleClose3() {
|
|
handleClose3() {
|
|
this.customershow = false
|
|
this.customershow = false
|
|
},
|
|
},
|