|
|
@ -5,26 +5,9 @@ |
|
|
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg> |
|
|
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
<el-button @click="searchList()" type="primary">{{buttons.search}}</el-button> |
|
|
|
|
|
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button> |
|
|
|
|
|
<el-form v-show="searchShow" :inline="true" :model="queryData" @keyup.enter.native="getDataList()"> |
|
|
|
|
|
<excelUpload></excelUpload> |
|
|
|
|
|
<el-form-item label="呆滞天数"> |
|
|
|
|
|
<el-input oninput="value=value.replace(/[^\d]/g,'')" v-model="queryData.day" clearable> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="rollno"> |
|
|
|
|
|
<el-input v-model="queryData.rollno" clearable> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="partno"> |
|
|
|
|
|
<el-input v-model="queryData.partno" clearable> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form :inline="true"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button @click="getDataList()" type="primary">{{ buttons.search }}</el-button> |
|
|
|
|
|
|
|
|
<excelUpload v-on:excelUploadChild="excelUploadChild"></excelUpload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
@ -128,62 +111,20 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
activated() { |
|
|
activated() { |
|
|
this.getDataList() |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
childByValue(childValue) { |
|
|
|
|
|
|
|
|
excelUploadChild(childValue) { |
|
|
// childValue就是子组件传过来的值 |
|
|
// childValue就是子组件传过来的值 |
|
|
console.log(childValue) |
|
|
console.log(childValue) |
|
|
this.getDataList(childValue) |
|
|
|
|
|
}, |
|
|
|
|
|
// 打开搜索页面 |
|
|
|
|
|
searchList() { |
|
|
|
|
|
if (this.searchShow) { |
|
|
|
|
|
this.searchShow = false |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
if (childValue.list.length>0){ |
|
|
|
|
|
this.dataList = childValue.list |
|
|
|
|
|
this.$message.success("批量出库成功") |
|
|
}else { |
|
|
}else { |
|
|
this.searchShow = true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取数据列表 |
|
|
|
|
|
getDataList() { |
|
|
|
|
|
this.dataListLoading = true |
|
|
|
|
|
let query = [] |
|
|
|
|
|
let f = { |
|
|
|
|
|
queryAttributes: "parttypeFlag", |
|
|
|
|
|
queryType: "string", |
|
|
|
|
|
queryValue: "F", |
|
|
|
|
|
} |
|
|
|
|
|
query.push(f) |
|
|
|
|
|
let toexpiredays = { |
|
|
|
|
|
queryAttributes: "toexpiredays", |
|
|
|
|
|
queryType: "number", |
|
|
|
|
|
queryValue: this.queryData.day, |
|
|
|
|
|
|
|
|
this.$message.warning("批量出库失败") |
|
|
} |
|
|
} |
|
|
query.push(toexpiredays) |
|
|
|
|
|
if (this.queryData.rollno != '') { |
|
|
|
|
|
let rollno = { |
|
|
|
|
|
queryAttributes: "rollno", |
|
|
|
|
|
queryType: "string", |
|
|
|
|
|
queryValue: this.queryData.rollno, |
|
|
|
|
|
} |
|
|
|
|
|
query.push(rollno) |
|
|
|
|
|
} |
|
|
|
|
|
if (this.queryData.partno != '') { |
|
|
|
|
|
let partno = { |
|
|
|
|
|
queryAttributes: "partno", |
|
|
|
|
|
queryType: "string", |
|
|
|
|
|
queryValue: this.queryData.partno, |
|
|
|
|
|
} |
|
|
|
|
|
query.push(partno) |
|
|
|
|
|
} |
|
|
|
|
|
getCRollInfoList(query).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.dataList = data.list |
|
|
|
|
|
} |
|
|
|
|
|
this.dataListLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
// this.searchShow = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 校验用户是否收藏 |
|
|
// 校验用户是否收藏 |
|
|
favoriteIsOk() { |
|
|
favoriteIsOk() { |
|
|
|