diff --git a/src/views/app-update/index.vue b/src/views/app-update/index.vue index 9b93d14..241f1b4 100644 --- a/src/views/app-update/index.vue +++ b/src/views/app-update/index.vue @@ -128,6 +128,7 @@ import {getToken} from '@/utils/auth' const defaultForm = {id: null, name: '', versionCode: '', versionName: '', modifyContent: ''} export default { + name: 'SysAppUpdate', components: {pagination, crudOperation, udOperation}, mixins: [presenter(), header(), form(defaultForm), crud()], cruds() { diff --git a/src/views/base-data/baseZcjxb/zcjxb/index.vue b/src/views/base-data/baseZcjxb/zcjxb/index.vue index 2c5a48c..dd703f6 100644 --- a/src/views/base-data/baseZcjxb/zcjxb/index.vue +++ b/src/views/base-data/baseZcjxb/zcjxb/index.vue @@ -200,6 +200,7 @@ const defaultForm = { readValue: null, errorTxt: null } export default { + name: 'ZcJxb', components: {pagination, crudOperation, rrOperation, udOperation}, mixins: [presenter(), header(), form(defaultForm), crud()], cruds() { diff --git a/src/views/base-data/box/smallLine.vue b/src/views/base-data/box/smallLine.vue index c8c23e4..d99fcc2 100644 --- a/src/views/base-data/box/smallLine.vue +++ b/src/views/base-data/box/smallLine.vue @@ -201,7 +201,7 @@ const defaultForm = { lampCode: null } export default { - name: 'Box', + name: 'SmallLine', components: {pagination, crudOperation, rrOperation, udOperation, BindOrderNumber}, mixins: [presenter(), header(), form(defaultForm), crud()], dicts: ['base_staus', 'lamp_status', 'lamp_code'], diff --git a/src/views/base-data/item/index.vue b/src/views/base-data/item/index.vue index 34497b4..8465e49 100644 --- a/src/views/base-data/item/index.vue +++ b/src/views/base-data/item/index.vue @@ -220,6 +220,7 @@ export default { crud.toQuery() }, handleErr(err, file, fileList) { + console.log(err) this.crud.notify(err.toString(), CRUD.NOTIFICATION_TYPE.ERROR) }, // 钩子:在获取表格数据之前执行,false 则代表不获取数据 diff --git a/src/views/base-data/stock/index.vue b/src/views/base-data/stock/index.vue index 85b18a6..ae973ca 100644 --- a/src/views/base-data/stock/index.vue +++ b/src/views/base-data/stock/index.vue @@ -306,7 +306,6 @@ export default { }, methods: { handleSuccess(response, file, fileList, crud) { - let myError = response.toString()//转字符串 this.crud.notify(response['message'], CRUD.NOTIFICATION_TYPE.SUCCESS) crud.toQuery() }, diff --git a/src/views/business-data/businessTask/asnTask.vue b/src/views/business-data/businessTask/asnTask.vue index af8fb15..fe58b90 100644 --- a/src/views/business-data/businessTask/asnTask.vue +++ b/src/views/business-data/businessTask/asnTask.vue @@ -159,7 +159,7 @@ const defaultForm = { updateTime: null } export default { - name: 'asnTask', + name: 'AsnTask', components: {DateRangePicker, pagination, crudOperation, rrOperation, udOperation}, mixins: [presenter(), header(), form(defaultForm), crud()], dicts: ['task_status'], diff --git a/src/views/business-data/inventory/index.vue b/src/views/business-data/inventory/index.vue index a8b0d3f..f214fd5 100644 --- a/src/views/business-data/inventory/index.vue +++ b/src/views/business-data/inventory/index.vue @@ -3,17 +3,6 @@
- - - - + + 重置 @@ -47,9 +40,24 @@
- - + + + 大件批量入库 + + + @@ -166,6 +174,8 @@ import rrOperation from '@crud/RR.operation' import crudOperation from '@crud/CRUD.operation' import udOperation from '@crud/UD.operation' import pagination from '@crud/Pagination' +import {mapGetters} from "vuex"; +import {getToken} from "@/utils/auth"; const defaultForm = { id: null, @@ -199,7 +209,8 @@ export default { cruds() { return CRUD({ query: { - quantity: 0 + quantity: 0, + areaName: '小件存储区' }, title: '库存信息', url: 'api/inventory', @@ -215,8 +226,15 @@ export default { } }) }, + computed: { + ...mapGetters([ + 'baseApi' + ]) + }, data() { return { + headers: {'Authorization': getToken()}, + fileList: [], radio3: '小件', points: [], stocks: [], @@ -230,6 +248,16 @@ export default { } }, methods: { + handleSuccess(response, file, fileList, crud) { + this.crud.notify(response['message'], CRUD.NOTIFICATION_TYPE.SUCCESS) + crud.toQuery() + }, + handleErr(err, file, fileList) { + let myError = err.toString()//转字符串 + myError = myError.replace('Error: ', '') // 去掉前面的" Error: " + myError = JSON.parse(myError)//转对象 + this.crud.notify(myError['message'], CRUD.NOTIFICATION_TYPE.ERROR) + }, // 钩子:在获取表格数据之前执行,false 则代表不获取数据 [CRUD.HOOK.beforeRefresh]() { return true @@ -244,7 +272,8 @@ export default { }) }) }, - deleteDataM(id) {//删除数据的方法 + //删除数据的方法 + deleteDataM(id) { let ids = []; ids.push(id); crudInventory.del(ids).then(res => { @@ -288,7 +317,7 @@ export default { }, clickChange(lab) { if (lab === '全部') { - this.query.status = '' + this.query.areaName = '' this.crud.toQuery() } else if (lab === '小件') { this.query.areaName = '小件存储区' @@ -300,10 +329,11 @@ export default { this.query.areaName = ['小件翻包区', '大件翻包区'] this.crud.toQuery() } else if (lab === '叫料') { - this.query.areaName = ['小件翻包存储区', '小件翻包存储区'] + this.query.areaName = ['小件翻包存储区', '大件翻包存储区'] this.crud.toQuery() } } + } } diff --git a/src/views/business-data/inventoryLog/index.vue b/src/views/business-data/inventoryLog/index.vue index d989b59..b3301f5 100644 --- a/src/views/business-data/inventoryLog/index.vue +++ b/src/views/business-data/inventoryLog/index.vue @@ -2,45 +2,51 @@
- - - - - {{ item.code }} - {{ item.name }} - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + +
+ + + + + +
+ +
+ @@ -70,6 +76,11 @@
{{ scope.row.itemKey.propC1 }}
+ + +