diff --git a/.env.dev b/.env.dev index e1f6a260..6fd1b3f3 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-10-21 16:41:54 + # @LastEditTime: 2024-11-07 09:29:23 # @LastEditors: zwq # @Description: ### @@ -12,16 +12,7 @@ ENV = 'development' VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://100.64.0.26:48082' -# VUE_APP_BASE_API = 'http://192.168.0.33:48082' -# VUE_APP_BASE_API = 'http://192.168.4.173:48080' -# VUE_APP_BASE_API = 'http://192.168.2.173:48080' -# VUE_APP_BASE_API = 'http://192.168.1.81:48082' -# VUE_APP_BASE_API = 'http://192.168.1.8:48082' -# VUE_APP_BASE_API = 'http://192.168.4.159:48080' -# VUE_APP_BASE_API = 'http://192.168.1.56:48082' -# VUE_APP_BASE_API = 'http://192.168.4.159:48080' -# VUE_APP_BASE_API = 'http://192.168.1.64:48082' +# VUE_APP_BASE_API = 'http://172.16.21.222:48082' VUE_APP_BASE_API = 'http://mes2.kszny.picaiba.com' diff --git a/src/api/base/orderManage.js b/src/api/base/orderManage.js index 5d9af080..6c806a83 100644 --- a/src/api/base/orderManage.js +++ b/src/api/base/orderManage.js @@ -207,11 +207,11 @@ export function getDetailTree(data) { params: data }) } -export function getDetailTreeInfo(data) { +export function getDetailTreeInfo(query) { return request({ - url: 'base/order/getDetailTreeInfoById', + url: 'base/order/getDetailTreeInfoByIdNew', method: 'get', - params: data + params: query }) } diff --git a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue index de5a6be7..e29f9034 100644 --- a/src/views/produce/order/base/orderManage/components/addWorkOrder.vue +++ b/src/views/produce/order/base/orderManage/components/addWorkOrder.vue @@ -1,290 +1,417 @@ - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - {{ item.specifications }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + 绑定工单 + 新增工单 + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + {{ item.specifications }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/produce/order/base/orderManage/components/orderSplit.vue b/src/views/produce/order/base/orderManage/components/orderSplit.vue index 31a6942e..6d93486d 100644 --- a/src/views/produce/order/base/orderManage/components/orderSplit.vue +++ b/src/views/produce/order/base/orderManage/components/orderSplit.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2024-09-26 14:08:58 * @LastEditors: zwq - * @LastEditTime: 2024-11-05 14:19:46 + * @LastEditTime: 2024-11-06 09:52:59 * @Description: --> @@ -27,7 +27,7 @@ @@ -49,6 +49,7 @@ import { parseTime } from '@/utils/ruoyi'; import inputArea from './inputArea.vue'; import selectMember from './selectMember'; import selectTime from './selectTime'; +import { publicFormatter } from '@/utils/dict' const tableProps = [ { prop: 'name', @@ -61,19 +62,16 @@ const tableProps = [ prop: 'code', label: '订单编码', minWidth: 180, - subcomponent: inputArea, }, { prop: 'productName', label: '产品', showOverflowtooltip: true, - subcomponent: inputArea, }, { prop: 'specifications', label: '产品规格', showOverflowtooltip: true, - subcomponent: inputArea, }, // { // prop: 'priority', @@ -97,19 +95,20 @@ const tableProps = [ prop: 'customerId', label: '客户', showOverflowtooltip: true, - subcomponent: selectMember, + // subcomponent: selectMember, }, { prop: 'price', label: '单价', width: 100, - subcomponent: inputArea, + // subcomponent: inputArea, }, { prop: 'packSpec', label: '包装规格', width: 100, - subcomponent: selectMember, + filter: publicFormatter('pack_spec') + // subcomponent: selectMember, }, { prop: 'remark', @@ -171,6 +170,7 @@ export default { this.list = res.data; this.list.forEach((item, index) => { item.name = item.name + '-' + (index + 1); + item.code = item.code + '-' + (index + 1); }); }); } else { @@ -220,7 +220,7 @@ export default { // 客户 getCustomerList().then((res) => { this.customerList = res.data || []; - this.$set(this.tableProps[6], 'customerList', this.customerList); + this.$set(this.tableProps[6], 'customerList', this.customerList); }); // 工艺 // getProcessFlowList().then(res => { @@ -249,13 +249,12 @@ export default { // } // }, inputChange(data) { - console.log(data) switch (data.sType) { case 1: this.list[data._pageIndex - 1][data.prop] = data[data.prop]; break; case 2: - this.list[data._pageIndex - 1][data.prop] = data[data.prop]; + this.list[data._pageIndex - 1][data.prop] = data[data.prop]; break; case 3: this.list[data._pageIndex - 1][data.prop] = data.deliveTime; diff --git a/src/views/produce/order/base/orderManage/index.vue b/src/views/produce/order/base/orderManage/index.vue index 5fe0ef7d..338b8616 100644 --- a/src/views/produce/order/base/orderManage/index.vue +++ b/src/views/produce/order/base/orderManage/index.vue @@ -1,540 +1,573 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + {{ + scope.row.grade != null + ? ['一级订单', '二级订单', '三级订单'][scope.row.grade - 1] + : '-' + }} + + + + + {{ parseTime(scope.row.createTime) }} + + + + + + + + + {{ getDictDataLabel(DICT_TYPE.ORDER_STATUS, scope.row.status) }} + + + + + + + + + {{ parseTime(scope.row.deliveTime) }} + + + + + + {{ scope.row.workOrderNum }} + + + + + + + 拆分订单 + + | + + 绑定工单 + + + | + + 完成 + + | + + + + | + + + + | + + 作废 + + | + + 终止 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/produce/order/base/orderManage/orderDetailData.vue b/src/views/produce/order/base/orderManage/orderDetailData.vue index c93fc161..13a0f32d 100644 --- a/src/views/produce/order/base/orderManage/orderDetailData.vue +++ b/src/views/produce/order/base/orderManage/orderDetailData.vue @@ -38,11 +38,18 @@ {{ getDictDataLabel(DICT_TYPE.PACK_SPEC, orderMsg.packSpec) }} - - 物料计算方式 - {{orderMsg.materialMethod ? (orderMsg.materialMethod === 1 ? '产品基础' : '工艺扩展') : ''}} - - + + 物料计算方式 + + {{ + orderMsg.materialMethod + ? orderMsg.materialMethod === 1 + ? '产品基础' + : '工艺扩展' + : '' + }} + +