diff --git a/src/utils/basics/basicsquery.js b/src/utils/basics/basicsquery.js new file mode 100644 index 0000000..39912af --- /dev/null +++ b/src/utils/basics/basicsquery.js @@ -0,0 +1,27 @@ +import { getAction } from '@api/manage' + + + export function fetchDescription(url,open){ //查询物料组 + //查询大品类数据 + let par = { + delFlag: 0, + } + let bigId = open; + getAction(url,par).then((res)=>{ + if(res.success){ + // console.log(res.result); + if(bigId.length > 0){ + bigId = []; + } + res.result.forEach( item => { + bigId.push({ + title : item.descriptionName, + value : item.id, + }) + }) + } + }); + return bigId; +}; + +// export default { fetchData }; \ No newline at end of file diff --git a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue index 8d9e59d..607311e 100644 --- a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue +++ b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue @@ -130,7 +130,24 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' dataSource: [], columns: [ { - title: '器材编号', + title: '物料组', + key: 'materialGroup', + // type: FormTypes.slot, // <-------------改为 slot 格式 + // slotName: 'actions', // <-------------slot 的名称,对应 v-slot 冒号后面和等号前面的内容 + type: FormTypes.sel_search, + dictCode: '', + width: '200px', + placeholder: '请输入${title}', + options: [], + props:{title: 'show title'} + // scopedSlots: { customRender: 'edit' },//引入的插槽 + // customRender:function (t,r,index) { + // console.log(t,r); + // + // } + }, + { + title: '物资编号', key: 'equipment', type: FormTypes.sel_search, dictCode:"", @@ -141,7 +158,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' { title: 'WBS', key: 'wbs', - type: FormTypes.sel_search, + type: FormTypes.input, dictCode:"", width:"200px", placeholder: '请输入${title}', @@ -150,7 +167,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' { title: '物料名称及规格型号', key: 'materialName', - type: FormTypes.sel_search, + type: FormTypes.input, dictCode:"", width:"200px", placeholder: '请输入${title}', @@ -159,7 +176,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' { title: '单位', key: 'materialUnit', - type: FormTypes.select, + type: FormTypes.input, dictCode:"", width:"200px", placeholder: '请输入${title}', @@ -184,7 +201,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' { title: '供货商', key: 'supplier', - type: FormTypes.sel_search, + type: FormTypes.input, dictCode:"", width:"200px", placeholder: '请输入${title}', @@ -237,6 +254,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' add: "/hy/processMaterialsDelivery/add", edit: "/hy/processMaterialsDelivery/edit", queryById: "/hy/processMaterialsDelivery/queryById", + descriptionRake: "/suppliesstronger/processSuppliesStronger/descriptionName", //查询物料组 processMaterialsDeliveryList: { list: '/hy/processMaterialsDelivery/queryProcessMaterialsDeliveryListByMainId' }, @@ -310,8 +328,29 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany' console.log(userInfo) // userInfo.company=company; this.popupCallback(company,userInfo); + this.fetchData(); }, methods: { + fetchData(){ //查询物料组 + //查询大品类数据 + let par = { + delFlag: 0, + } + getAction(this.url.descriptionRake,par).then((res)=>{ + if(res.success){ + if(this.processMaterialsDeliveryListTable.columns[0].options.length > 0){ + this.processMaterialsDeliveryListTable.columns[0].options = []; + } + res.result.forEach( item => { + this.processMaterialsDeliveryListTable.columns[0].options.push({ + title : item.descriptionName, + value : item.descriptionId, + }) + }) + } + }); + }, + /*回显数据*/ init(){ this.btndisabled = true; diff --git a/src/views/activiti/form/ProcessUdgetPlanForm.vue b/src/views/activiti/form/ProcessUdgetPlanForm.vue index 40613ae..93b9968 100644 --- a/src/views/activiti/form/ProcessUdgetPlanForm.vue +++ b/src/views/activiti/form/ProcessUdgetPlanForm.vue @@ -77,13 +77,10 @@ :actionButton="true">