diff --git a/dist.zip b/dist.zip deleted file mode 100644 index d0afe3d..0000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/views/common/ex-warehouse.vue b/src/views/common/ex-warehouse.vue index b3d31a7..1e8ec34 100644 --- a/src/views/common/ex-warehouse.vue +++ b/src/views/common/ex-warehouse.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-15 15:17:30 * @LastEditors: zwq - * @LastEditTime: 2022-07-08 23:18:46 + * @LastEditTime: 2022-07-13 09:51:46 * @Description: --> + + + + { + if (data && data.code === 0) { + this.processList = data.data.records + } else { + this.processList.splice(0, this.processList.length) + } + }) }, methods: { // 获取数据列表 @@ -184,7 +213,15 @@ export default { }) }).then(({ data }) => { if (data && data.code === 0) { - this.dataList = data.data.records + const resData = data.data.records + resData.forEach(item => { + if (item.craftCodeId) { + this.processList.find(item1 => { + if (item1.id === item.craftCodeId) { item.craftName = item1.craftCode } + }) + } + }) + this.dataList = resData this.totalPage = data.data.total } else { this.dataList = [] @@ -232,18 +269,38 @@ export default { } }) }, + topList (id) { + this.$http({ + url: this.$http.adornUrl('/currTask/top'), + method: 'post', + data: this.$http.adornData({ id }) + }).then(({ data }) => { + if (data && data.code === 0) { + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + this.getDataList() + } + }) + } else { + this.$message.error(data.msg) + } + }) + }, // 删除 - deleteHandle (sheetNo) { - this.$confirm(`确定对[生产单编号=${sheetNo}]进行删除操作?`, '提示', { + deleteHandle (id) { + this.$confirm(`确定对[${id}]进行删除操作?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }) .then(() => { this.$http({ - url: this.$http.adornUrl('/currTask/deleteBySheetNo'), + url: this.$http.adornUrl('/currTask/deleteById'), method: 'post', - data: this.$http.adornData({sheetNo}) + data: this.$http.adornData({ id }) }).then(({ data }) => { if (data && data.code === 0) { this.$message({