|  | @@ -37,7 +37,7 @@
 | 
	
		
			
				|  |  |          :page.sync="queryParms.pageNum"
 | 
	
		
			
				|  |  |          :limit.sync="queryParms.pageSize"
 | 
	
		
			
				|  |  |          @pagination="getList"
 | 
	
		
			
				|  |  | -        :page-sizes="[100,200,500,1000]"
 | 
	
		
			
				|  |  | +        :page-sizes="[10,100,200,500,1000]"
 | 
	
		
			
				|  |  |        />
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </div>
 | 
	
	
		
			
				|  | @@ -153,13 +153,14 @@ import MainForm from '@/combination/MainForm'
 | 
	
		
			
				|  |  |  import { listInStock, addSave, getSave, getArea,
 | 
	
		
			
				|  |  |    getustomer,getEntry, getwarehouse, getGoodName,
 | 
	
		
			
				|  |  |    canBedelet, delRows, getWarehousekeeper, addWarehous,
 | 
	
		
			
				|  |  | -  deletMain, delFee, copyNew, listQuery} from '@/api/warehouse/inStock'
 | 
	
		
			
				|  |  | +  deletMain, delFee, copyNew, listQuery,revokeBill, queryUserVal} from '@/api/warehouse/inStock'
 | 
	
		
			
				|  |  |  import Cookies from 'js-cookie'
 | 
	
		
			
				|  |  |  import { getliable } from '@/api/project'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'inStock',
 | 
	
		
			
				|  |  |    data(){
 | 
	
		
			
				|  |  |      return{
 | 
	
		
			
				|  |  | +      lander:'',
 | 
	
		
			
				|  |  |        copyeId:'',
 | 
	
		
			
				|  |  |        hasPermi:{
 | 
	
		
			
				|  |  |          lookup:['anpin:stockControl:query'],
 | 
	
	
		
			
				|  | @@ -859,6 +860,10 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  | +    //获取登陆人
 | 
	
		
			
				|  |  | +    queryUserVal().then((response) => {
 | 
	
		
			
				|  |  | +      this.lander = response.user.userName
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  |      let data = {
 | 
	
		
			
				|  |  |        tableName: this.queryList.tableName,
 | 
	
		
			
				|  |  |        userId: Cookies.get("userName"),
 | 
	
	
		
			
				|  | @@ -1167,6 +1172,16 @@ export default {
 | 
	
		
			
				|  |  |              this.$set(this.detailData[li],'fStltypeid',JSON.stringify(this.detailData[li].fStltypeid))
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            this.detailButton = this.$options.data().detailButton
 | 
	
		
			
				|  |  | +          if(this.lander == this.detailForm.createBy && this.detailForm.fBillstatus == 6){
 | 
	
		
			
				|  |  | +            console.log(this.detailForm.createBy)
 | 
	
		
			
				|  |  | +            this.detailButton.push({
 | 
	
		
			
				|  |  | +              type: 'danger',
 | 
	
		
			
				|  |  | +              size: 'mini',
 | 
	
		
			
				|  |  | +              icon: 'el-icon-edit-outline',
 | 
	
		
			
				|  |  | +              name: '撤销入库',
 | 
	
		
			
				|  |  | +              disabled: false
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            for(let li in this.detailButton){
 | 
	
		
			
				|  |  |              if(this.detailForm.fBillstatus == '6'){
 | 
	
		
			
				|  |  |                if(this.detailButton[li].name == '录入明细' || this.detailButton[li].name == '保存' ||
 | 
	
	
		
			
				|  | @@ -1251,6 +1266,18 @@ export default {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        // if(){
 | 
	
		
			
				|  |  | +        //   let data = {
 | 
	
		
			
				|  |  | +        //     fId: this.$refs.avatar.form.fId
 | 
	
		
			
				|  |  | +        //   }
 | 
	
		
			
				|  |  | +        //   revokeBill(data).then(res => {
 | 
	
		
			
				|  |  | +        //     if (res.code == 200) {
 | 
	
		
			
				|  |  | +        //       this.$message.success('撤销成功')
 | 
	
		
			
				|  |  | +        //       this.getList()
 | 
	
		
			
				|  |  | +        //       this.pageDisplay = true
 | 
	
		
			
				|  |  | +        //     }
 | 
	
		
			
				|  |  | +        //   })
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  |          this.MainTable = true
 | 
	
		
			
				|  |  |          this.inDex = this.detailOption.length
 | 
	
		
			
				|  |  |        })
 | 
	
	
		
			
				|  | @@ -1578,6 +1605,18 @@ export default {
 | 
	
		
			
				|  |  |                    this.detailButton[li].disabled = false
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  | +              this.detailButton = this.$options.data().detailButton
 | 
	
		
			
				|  |  | +              if(this.lander == this.detailForm.createBy && this.detailForm.fBillstatus == 6){
 | 
	
		
			
				|  |  | +                console.log(this.detailForm.createBy)
 | 
	
		
			
				|  |  | +                this.detailButton.push({
 | 
	
		
			
				|  |  | +                  type: 'danger',
 | 
	
		
			
				|  |  | +                  size: 'mini',
 | 
	
		
			
				|  |  | +                  icon: 'el-icon-edit-outline',
 | 
	
		
			
				|  |  | +                  name: '撤销入库',
 | 
	
		
			
				|  |  | +                  disabled: false
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            }
 | 
	
	
		
			
				|  | @@ -1599,6 +1638,19 @@ export default {
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  | +        case '撤销入库':
 | 
	
		
			
				|  |  | +          let data = {
 | 
	
		
			
				|  |  | +            fId:this.detailForm.fId,
 | 
	
		
			
				|  |  | +            fBilltype:'RK'
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          revokeBill(data).then(res=>{
 | 
	
		
			
				|  |  | +            if(res.code == 200){
 | 
	
		
			
				|  |  | +              this.$message.success("撤销成功")
 | 
	
		
			
				|  |  | +              this.getList()
 | 
	
		
			
				|  |  | +              this.MainTable = false
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          break
 | 
	
		
			
				|  |  |          case '复制新增':
 | 
	
		
			
				|  |  |              let formDate = {
 | 
	
		
			
				|  |  |                fBilltype:'RK',
 |