diff --git a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js index b52c44d..6941eef 100644 --- a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js +++ b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js @@ -66,7 +66,7 @@ export const getWorkList = (params) =>{ // 获取工序下拉数据 export const getProcessList = (params) =>{ return request({ - url:'/api/blade-desk/dsProcess/list', + url:'/api/blade-desk/bsProcessSet/list', method:'get', params }) diff --git a/src/api/storeManagement/materialMaintenance.js b/src/api/storeManagement/materialMaintenance.js index 61b2b80..ea0f8ef 100644 --- a/src/api/storeManagement/materialMaintenance.js +++ b/src/api/storeManagement/materialMaintenance.js @@ -13,9 +13,9 @@ export const getGoodsList = params =>{ // 新增物料 export const addGoods = data =>{ return request({ - url:'/api/blade-wms/stGoods/save', + url:`/api/blade-wms/stGoods/save`, method:'post', - data + params:data }) } diff --git a/src/views/basicData/components/addRuleDialog.vue b/src/views/basicData/components/addRuleDialog.vue index a0d841d..011ecfb 100644 --- a/src/views/basicData/components/addRuleDialog.vue +++ b/src/views/basicData/components/addRuleDialog.vue @@ -27,6 +27,8 @@ v-model="scope.row.craftAbilityId" placeholder="请选择" style="width: 100%" + filterable + > @@ -153,6 +158,8 @@ v-model="scope.row.centerId" placeholder="请选择作业中心" style="width: 100%" + filterable + clearable > @@ -204,6 +211,7 @@ export default { form:{ tableData:[] }, + craftloading:false, formRules:{ craftAbilityId:[ { required: true, message: '请选择工艺能力', trigger: ['change', 'submit'] } @@ -253,6 +261,16 @@ export default { }, methods:{ + // remoteMethodCraft(query){ + // console.log('query', query) + // if(query){ + + // }else{ + // getCapability().then(res =>{ + // this.capabilityData = res.data.data + // }) + // } + // }, getPointRule(){ getPointRule().then(res =>{ this.pointRule = res.data.data @@ -311,16 +329,16 @@ export default { }); return; } - this.form.tableData.map(item =>{ - if(item.pointType == 1 && (!item.oemId || item.oemId == '')){ - this.formError = '指定类型为外协时,请选择外协厂商'; - return - } - if(item.pointType == 0 && (!item.centerId || item.centerId == '')){ - this.formError = '指定类型为厂内时,请选择作业中心'; - return - } - }) + // this.form.tableData.map(item =>{ + // if(item.pointType == 1 && (!item.oemId || item.oemId == '')){ + // this.formError = '指定类型为外协时,请选择外协厂商'; + // return + // } + // if(item.pointType == 0 && (!item.centerId || item.centerId == '')){ + // this.formError = '指定类型为厂内时,请选择作业中心'; + // return + // } + // }) console.log('form----------',this.form.tableData) // 校验通过:准备提交数据(过滤无用字段) diff --git a/src/views/basicData/materialQuota/components/KAu.vue b/src/views/basicData/materialQuota/components/KAu.vue index 5b84661..fcbdf94 100644 --- a/src/views/basicData/materialQuota/components/KAu.vue +++ b/src/views/basicData/materialQuota/components/KAu.vue @@ -41,8 +41,8 @@ - @@ -107,7 +107,7 @@ export default { tip: false, simplePage: true, searchShow: true, - searchMenuSpan: 18, + searchMenuSpan: 6, searchIcon: true, searchIndex: 3, tree: false, @@ -148,7 +148,7 @@ export default { { label: '零件号', prop: 'partCode', - search: false, + search: true, sortable: true, overHidden: true, width: 210, @@ -160,7 +160,7 @@ export default { label: '零件名称', prop: 'partName', sortable: true, - search: false, + search: true, overHidden: true, width: 170, headerAlign: 'center', @@ -348,3 +348,10 @@ export default { }, }; + diff --git a/src/views/processManagement/sinTer/index.vue b/src/views/processManagement/sinTer/index.vue index 5e7367b..2acdb8f 100644 --- a/src/views/processManagement/sinTer/index.vue +++ b/src/views/processManagement/sinTer/index.vue @@ -31,7 +31,8 @@
-
+
+
{ let resData = res.data.data; + this.dataTree = res.data.data; let arr = JSON.parse(JSON.stringify(resData).replace(/partName/g, 'name')); this.$nextTick(() => { this.createBarChart(arr); @@ -201,8 +204,6 @@ export default { this.isComponentOpen = false; } }, - // 获取组织树 - // 获取子件列表 resetFn() { @@ -240,6 +241,7 @@ export default { borderWidth: 2, borderColor: '#fff', borderRadius: 4, // 圆角半径,值越大圆角越明显 + paddingLeft: 10, }, // 动态计算节点大小:宽度=最长文本宽度,高度=行数*行高+内边距 symbolSize: (val, params) => { @@ -247,9 +249,18 @@ export default { const nodeName = params?.name || '未知节点'; const childCount = params?.children?.length || 0; const childText = `${childCount}个子件`; + const nodeQuota = nodeData?.quota !== undefined ? nodeData.quota : ''; + // 计算文本宽度 const textWidth = Math.max(nodeName.length * 12, childText.length * 12) + 30; - return [Math.max(textWidth, 100), 60]; // 高度设为60px(适配两行文本) + // 动态计算行数 + let lineCount = 2; // 默认 2 行(partCode + name) + if (nodeQuota !== '' && nodeQuota !== null) { + lineCount = 3; // 有 quota 时 3 行 + } + // 计算高度:每行 20px + 上下内边距 20px + const height = lineCount * 20 + 10; + return [Math.max(textWidth, 100), height]; // 高度设为60px(适配两行文本) }, label: { diff --git a/src/views/productionManagement/blbWorkOrder/components/glass.vue b/src/views/productionManagement/blbWorkOrder/components/glass.vue index 5607a78..f4178ed 100644 --- a/src/views/productionManagement/blbWorkOrder/components/glass.vue +++ b/src/views/productionManagement/blbWorkOrder/components/glass.vue @@ -142,7 +142,7 @@ export default { option: { height: 'auto', calcHeight: 32, - rowKey: 'cardNo', + rowKey: 'woId', tip: false, simplePage: true, searchShow: true, diff --git a/src/views/productionManagement/blbWorkOrder/components/others.vue b/src/views/productionManagement/blbWorkOrder/components/others.vue index 9a705b2..35a6c56 100644 --- a/src/views/productionManagement/blbWorkOrder/components/others.vue +++ b/src/views/productionManagement/blbWorkOrder/components/others.vue @@ -142,7 +142,7 @@ export default { option: { height: 'auto', calcHeight: 32, - rowKey: 'cardNo', + rowKey: 'woId', tip: false, simplePage: true, searchShow: true, diff --git a/src/views/productionManagement/components/batchesDialog.vue b/src/views/productionManagement/components/batchesDialog.vue index 4674265..5133fa7 100644 --- a/src/views/productionManagement/components/batchesDialog.vue +++ b/src/views/productionManagement/components/batchesDialog.vue @@ -24,7 +24,7 @@ - +