|
|
@ -43,6 +43,15 @@ |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="searchTable()">查询</el-button> |
|
|
<el-button type="primary" @click="searchTable()">查询</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="' '"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
class="yzzButtonAn" |
|
|
|
|
|
@click="generateCountResult()" |
|
|
|
|
|
:disabled="generateLoading"> |
|
|
|
|
|
{{ generateLoading ? '生成中...' : '生成盘点结果' }} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -181,7 +190,8 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
searchRfidCountSnapshotList |
|
|
|
|
|
|
|
|
searchRfidCountSnapshotList, |
|
|
|
|
|
generateCountResultFromSnapshot |
|
|
} from "@/api/check/rfidCount.js" |
|
|
} from "@/api/check/rfidCount.js" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
@ -192,6 +202,7 @@ |
|
|
|
|
|
|
|
|
// 加载状态 - rqrq |
|
|
// 加载状态 - rqrq |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
|
|
|
generateLoading: false, |
|
|
|
|
|
|
|
|
// 数据列表 - rqrq |
|
|
// 数据列表 - rqrq |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
@ -262,6 +273,45 @@ |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 生成盘点结果 - rqrq |
|
|
|
|
|
* @Title generateCountResult |
|
|
|
|
|
* @author rqrq |
|
|
|
|
|
*/ |
|
|
|
|
|
generateCountResult() { |
|
|
|
|
|
// 二次确认 - rqrq |
|
|
|
|
|
this.$confirm('确认将RFID盘点快照生成为正式盘点单吗?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.generateLoading = true |
|
|
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
username: this.$store.state.user.name |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
generateCountResultFromSnapshot(params).then(({data}) => { |
|
|
|
|
|
this.generateLoading = false |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.$message.success(data.msg || '生成成功') |
|
|
|
|
|
// 刷新列表 - rqrq |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.generateLoading = false |
|
|
|
|
|
this.$message.error('生成失败') |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
// 取消操作 - rqrq |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 每页数变化 - rqrq |
|
|
* @Description 每页数变化 - rqrq |
|
|
* @Title sizeChangeHandle |
|
|
* @Title sizeChangeHandle |
|
|
|