|
@@ -59,12 +59,12 @@
|
|
icon="el-icon-arrow-left">
|
|
icon="el-icon-arrow-left">
|
|
返回列表</el-button>
|
|
返回列表</el-button>
|
|
</el-breadcrumb-item>
|
|
</el-breadcrumb-item>
|
|
- <el-breadcrumb-item style="font-weight: 700">
|
|
|
|
- <el-button-group>
|
|
|
|
- <el-button type="primary" size="mini" icon="el-icon-arrow-left" @click="sequence(true)">向前</el-button>
|
|
|
|
- <el-button type="primary" size="mini" @click="sequence(true)">向后<i class="el-icon-arrow-right el-icon--right"></i></el-button>
|
|
|
|
- </el-button-group>
|
|
|
|
- </el-breadcrumb-item>
|
|
|
|
|
|
+<!-- <el-breadcrumb-item style="font-weight: 700">-->
|
|
|
|
+<!-- <el-button-group>-->
|
|
|
|
+<!-- <el-button type="primary" size="mini" icon="el-icon-arrow-left" :disabled="forward" @click="sequence(true)">向前</el-button>-->
|
|
|
|
+<!-- <el-button type="primary" size="mini" :disabled="backward" @click="sequence(true)">向后<i class="el-icon-arrow-right el-icon--right"></i></el-button>-->
|
|
|
|
+<!-- </el-button-group>-->
|
|
|
|
+<!-- </el-breadcrumb-item>-->
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
</div>
|
|
</div>
|
|
<h1 style="text-align: center;margin-top: -42px">采购申请单</h1>
|
|
<h1 style="text-align: center;margin-top: -42px">采购申请单</h1>
|
|
@@ -209,6 +209,8 @@ export default {
|
|
before:'',
|
|
before:'',
|
|
lander:'',
|
|
lander:'',
|
|
operator:'',
|
|
operator:'',
|
|
|
|
+ forward:false,
|
|
|
|
+ backward:false,
|
|
addOrUpdateVisible: false,
|
|
addOrUpdateVisible: false,
|
|
addOrUpdateVisib: false,
|
|
addOrUpdateVisib: false,
|
|
total:0,
|
|
total:0,
|
|
@@ -915,21 +917,21 @@ export default {
|
|
this.cancelTwo();
|
|
this.cancelTwo();
|
|
},
|
|
},
|
|
sequence(res){
|
|
sequence(res){
|
|
- if (res === true){
|
|
|
|
- console.log(this.$refs.avatar.form.fId)
|
|
|
|
- let i = 0
|
|
|
|
- for ( i ; i <= this.tableData.length;i++){
|
|
|
|
- if (this.$refs.avatar.form.fId == this.tableData[i].fId) {
|
|
|
|
- console.log(i)
|
|
|
|
- console.log(this.tableData[i].fId)
|
|
|
|
- console.log(this.tableData[--i].fId)
|
|
|
|
- console.log(i)
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }else {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ // let i = 0
|
|
|
|
+ // for ( i ; i <= this.tableData.length;i++){
|
|
|
|
+ // if (this.$refs.avatar.form.fId == this.tableData[i].fId) {
|
|
|
|
+ // console.log(i)
|
|
|
|
+ // if (i >= 0) this.forward = true
|
|
|
|
+ // if (this.tableData.length != Number(i+1)) this.backward = false
|
|
|
|
+ // if (i !== 0){
|
|
|
|
+ // console.log(this.tableData[--i].fId)
|
|
|
|
+ // }
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // if (res === true){
|
|
|
|
+ //
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
addOrUpdateHandle() {
|
|
addOrUpdateHandle() {
|
|
this.addOrUpdateVisible = true;
|
|
this.addOrUpdateVisible = true;
|