diff --git a/src/api/yh/prodOrder.js b/src/api/yh/prodOrder.js index ff14f55..6c38c2e 100644 --- a/src/api/yh/prodOrder.js +++ b/src/api/yh/prodOrder.js @@ -55,10 +55,11 @@ export function delProdOrder(id) { } // 同步生产订单 -export function syncProdOrder() { +export function syncProdOrder(query) { return request({ url: '/yh/prodOrder/sync', - method: 'put' + method: 'put', + data: query }) } diff --git a/src/views/yh/logImport/index.vue b/src/views/yh/logImport/index.vue index 68c96e0..28ad539 100644 --- a/src/views/yh/logImport/index.vue +++ b/src/views/yh/logImport/index.vue @@ -1,10 +1,10 @@ + @@ -216,7 +229,7 @@ const defaultSort = { export default { name: "LogImport", mixins: [$showColumns], - dicts: ['log_import_status', 'log_import_biz_type'], + dicts: ['log_import_status', 'log_import_biz_type', 'log_import_type'], components: {LogImportView, LogImportDetail, FormCol}, data() { return { @@ -226,6 +239,7 @@ export default { // 字段列表 columns: [ {key: 'logId', visible: true, label: '日志ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: "100"}, + {key: 'type', visible: true, label: '日志类型', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'bizType', visible: true, label: '业务类型', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'status', visible: true, label: '状态', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {key: 'createBy', visible: true, label: '创建人', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, diff --git a/src/views/yh/logImport/view.vue b/src/views/yh/logImport/view.vue index 50e8161..14c6b13 100644 --- a/src/views/yh/logImport/view.vue +++ b/src/views/yh/logImport/view.vue @@ -1,13 +1,16 @@ @@ -280,6 +287,7 @@ export default { {key: 'erpNoStockInQty', visible: true, label: '未入库', minWidth: null, sortable: true, overflow: false, align: 'center', width: "100"}, {key: 'erpBaseNoStockInQty', visible: false, label: '基本未入库', minWidth: null, sortable: true, overflow: false, align: 'center', width: "130"}, {key: 'baseUnitName', visible: false, label: '基本单位', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, + {key: 'syncTime', visible: true, label: '同步时间', minWidth: null, sortable: true, overflow: false, align: 'center', width: "100"}, ], // 排序方式 orderSorts: ['ascending', 'descending', null], @@ -342,8 +350,8 @@ export default { }, methods: { isEmpty, - handleSync() { - syncProdOrder().then(res => { + handleSync(query = {}) { + syncProdOrder(query).then(res => { if (res.code === 200) { this.$message.success("同步成功"); } diff --git a/src/views/yh/reportOrderProd/index.vue b/src/views/yh/reportOrderProd/index.vue index ef2ee9c..89ec5f0 100644 --- a/src/views/yh/reportOrderProd/index.vue +++ b/src/views/yh/reportOrderProd/index.vue @@ -32,27 +32,27 @@ - - 新增 - - - 删除 - + + + + + + + + + + + + + + + + + + + + + {{d.row[column.key]}} + + + - - - + + + + + + + + + + + + + + + + + + @@ -20,7 +20,6 @@