|
@@ -98,9 +98,9 @@
|
|
|
<el-button v-if="istab2Del && row.isAcceptance == 0" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
|
|
|
<el-button v-if="row.isAcceptance == 0" style="display:inline-block" type="success" size="mini" @click="form_submit(row)">提交</el-button>
|
|
|
<el-button v-if="istab2Close && row.isAcceptance == 0" style="display:inline-block" type="warning" size="mini" @click="form_closeSubmit(row)">关单</el-button>
|
|
|
- <el-button v-if="istab2Shenhe1 && row.isAcceptance == 1 && (row.flowCompeleted == 1) " style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
|
|
|
- <el-button v-if="istab2Shenhe2 && row.isAcceptance == 1 && (row.flowCompeleted == 2) " style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
|
|
|
- <el-button v-if="istab2Shenhe3 && row.isAcceptance == 1 && (row.flowCompeleted == 4) " style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
|
|
|
+ <el-button v-if="istab2Shenhe1 && row.isAcceptance == 1 && (row.flowCompeleted == 1) && row.isPasturd " style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
|
|
|
+ <el-button v-if="istab2Shenhe2 && row.isAcceptance == 1 && (row.flowCompeleted == 2) && row.isPasturd " style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
|
|
|
+ <el-button v-if="istab2Shenhe3 && row.isAcceptance == 1 && (row.flowCompeleted == 4) && row.isPasturd " style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<el-button type="primary" size="mini" @click="form_see(row)">查看</el-button>
|
|
@@ -1117,7 +1117,20 @@ export default {
|
|
|
|
|
|
GetDataByName(this.tableObj1.getdataListParm).then(response => {
|
|
|
if (response.data.list !== null) {
|
|
|
- this.tableObj1.list = response.data.list
|
|
|
+ this.tableObj1.list = response.data.list.map((item) => {
|
|
|
+ // 如果当前牧场塞四, 且是塞二和塞三的牧场,则 可展示审核1 按钮,其他状态不变
|
|
|
+ // 1. 如果是自身牧场 按照之前的走,都是true
|
|
|
+ // 2. 如果是塞四 且是审核1状态 也为true
|
|
|
+ // 3. 如果其他状况都返回false
|
|
|
+ if(item.pastureId == Cookies.get('pastureid') || item.pastureId == Cookies.get('mainpasture')) {
|
|
|
+ item.isPasturd = true
|
|
|
+ } else if(item.pastureId != Cookies.get('mainpasture') && item.flowCompeleted == 1) {
|
|
|
+ item.isPasturd = true;
|
|
|
+ } else {
|
|
|
+ item.isPasturd = false;
|
|
|
+ }
|
|
|
+ return item
|
|
|
+ })
|
|
|
this.tableObj1.pageNum = response.data.pageNum
|
|
|
this.tableObj1.pageSize = response.data.pageSize
|
|
|
this.tableObj1.total = response.data.total
|