|
@@ -1,4 +1,4 @@
|
|
|
-<!--出入库任务-->
|
|
|
+<!--入库单-->
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
<BaseHeaderLayout :leftSpan="16">
|
|
@@ -83,9 +83,10 @@
|
|
|
<el-table-column prop="deliveryWarehouse" label="发货库" width="80"></el-table-column>
|
|
|
<el-table-column prop="goodsName" label="货名" width="80">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="inWarehouseWeight" width="130" class="table_td" label="入库重量(吨)">
|
|
|
+ <el-table-column prop="inWarehouseWeight" width="200" class="table_td" label="入库重量(吨)">
|
|
|
<template scope="scope">
|
|
|
- <span>{{scope.row.inWarehouseWeight}}</span>
|
|
|
+ <span v-if='!scope.row.weightedit&&scope.row.weightshow'>{{scope.row.inWarehouseWeight}}</span>
|
|
|
+ <el-input style='width:80%;' v-if='scope.row.weightedit&&scope.row.weightshow' v-model='scope.row.inWarehouseWeight'></el-input>
|
|
|
<i @click="changeWeight(scope.row)" v-if="
|
|
|
scope.row.weightedit&&scope.row.weightshow" class="iconfont icon-dui"></i>
|
|
|
<img v-if="!scope.row.weightedit&&scope.row.weightshow" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
@@ -116,17 +117,17 @@
|
|
|
<el-input v-else v-model='scope.row.requestFunds'></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="taskStatus" label="请款状态" width="90">
|
|
|
+ <el-table-column prop="approveStatus" label="请款状态" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
<template>
|
|
|
<span slot="reference">
|
|
|
- <span v-if="scope.row.taskStatus == '待审核'" class="executory"></span>
|
|
|
- <span v-if="scope.row.taskStatus == '执行中'" class="inExecution"></span>
|
|
|
- <span v-if="scope.row.taskStatus == '已完成'" class="done"></span>
|
|
|
- {{ scope.row.taskStatus }}
|
|
|
+ <span v-if="scope.row.approveStatus == '待审核'" class="executory"></span>
|
|
|
+ <span v-if="scope.row.approveStatus == '执行中'" class="inExecution"></span>
|
|
|
+ <span v-if="scope.row.approveStatus == '已完成'" class="done"></span>
|
|
|
+ {{ scope.row.approveStatus }}
|
|
|
</span>
|
|
|
</template>
|
|
|
- <img v-if="scope.row.taskStatus == '执行中'" width="17" height="18"
|
|
|
+ <img v-if="scope.row.approveStatus == '执行中'" width="17" height="18"
|
|
|
style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
@click="editClick(scope.row)" alt />
|
|
|
</template>
|
|
@@ -393,13 +394,12 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
item.payshow=false
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
this.multipleSelection[i].select=true
|
|
|
-
|
|
|
}
|
|
|
}else{
|
|
|
- this.$message({
|
|
|
- message: '至少选择一条待请款条目',
|
|
|
- type: 'warning'
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: '至少选择一条待请款条目',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -432,7 +432,8 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return false
|
|
|
}else{
|
|
|
if(row.amountNotPayable>0){
|
|
|
- if(row.taskStatus!='请款中'){
|
|
|
+ console.log(row.approveStatus)
|
|
|
+ if(row.approveStatus!='请款中'){
|
|
|
return true
|
|
|
}else{
|
|
|
return false
|
|
@@ -828,7 +829,9 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
-
|
|
|
+/deep/.el-table .cell .el-input {
|
|
|
+ width: 60%;
|
|
|
+}
|
|
|
.el-select {
|
|
|
width: 30%;
|
|
|
margin-right: 10px;
|