From d5180347e71b748596d81eed0c066c4faee1e3b7 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Wed, 9 Nov 2022 23:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProcessMaterialWarehousingRecord.vue | 2 +- .../ProcessMaterialsDeliveryRecord.vue | 2 +- .../form/ProcessMaterialsDeliveryForm.vue | 30 ++++++++--- .../ProcessSuppliesStrongerList.vue | 51 ++++++++++++++++--- .../ProcessSuppliesStrongerLists.vue | 4 +- .../ProcessWasteMaterialsList.vue | 14 ++++- .../ProcessWasteMaterialsLists.vue | 6 ++- 7 files changed, 88 insertions(+), 21 deletions(-) diff --git a/src/views/accessrecords/ProcessMaterialWarehousingRecord.vue b/src/views/accessrecords/ProcessMaterialWarehousingRecord.vue index fba0843..5d2dead 100644 --- a/src/views/accessrecords/ProcessMaterialWarehousingRecord.vue +++ b/src/views/accessrecords/ProcessMaterialWarehousingRecord.vue @@ -220,7 +220,7 @@ dataIndex: 'createBy' }, { - title:'物资信息', + title:'描述信息', align:"center", dataIndex: 'describes' }, diff --git a/src/views/accessrecords/ProcessMaterialsDeliveryRecord.vue b/src/views/accessrecords/ProcessMaterialsDeliveryRecord.vue index ddf68ba..8bbc3e1 100644 --- a/src/views/accessrecords/ProcessMaterialsDeliveryRecord.vue +++ b/src/views/accessrecords/ProcessMaterialsDeliveryRecord.vue @@ -254,7 +254,7 @@ dataIndex: 'createBy' }, { - title:'物资信息', + title:'描述信息', align:"center", dataIndex: 'describes', }, diff --git a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue index 3b8b9d8..9e61098 100644 --- a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue +++ b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue @@ -202,7 +202,7 @@ defaultValue:'', }, { - title: '物料名称及规格型号', + title: '物料名称', key: 'materialName', type: FormTypes.input, dictCode:"", @@ -210,6 +210,23 @@ placeholder: '请输入${title}', defaultValue:'', }, + { + title: '规格', + key: 'specification', + type: FormTypes.input, + dictCode:"", + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, { + title: '型号', + key: 'type', + type: FormTypes.input, + dictCode:"", + width:"200px", + placeholder: '请输入${title}', + defaultValue:'', + }, { title: '单位', key: 'materialUnit', @@ -243,6 +260,7 @@ width:"200px", placeholder: '请输入${title}', defaultValue:'', + disabled:true, }, { title: '供货商', @@ -260,6 +278,7 @@ width:"200px", placeholder: '请输入${title}', defaultValue:'', + disabled:true, }, { title: '金额(元)', @@ -268,6 +287,7 @@ width:"200px", placeholder: '请输入${title}', defaultValue:'', + disabled:true, }, { title: '用途', @@ -349,7 +369,7 @@ }, computed: { formDisabled() { - console.log("执行了") + // console.log("执行了") if (this.formBpm === true) { if (this.formData.disabled === false) { return false @@ -466,10 +486,9 @@ } } - // 根据请发数量计算 if(record.row.pleaseSendNumber !== '' && record.row.pleaseSendNumber !== undefined && isMA ){ - // console.log("执行了",record.row) + // console.log("执行了根据请发数量计算") let res = record.row; let materialName = {} this.bigIdMerchandiseNewsList.forEach(item => { @@ -511,9 +530,6 @@ }) } - - // console.log('****>',value) - } }, diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue index 195048a..8fc1ae5 100644 --- a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue +++ b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue @@ -90,7 +90,7 @@ - 明细 + 明细 @@ -110,6 +110,7 @@ import JDate from '@/components/jeecg/JDate.vue' import JSearchSelectTag from '@/components/dict/JSearchSelectTag' import JSuperQuery from '@/components/jeecg/JSuperQuery.vue' + import { getAction } from '@api/manage' export default { @@ -172,15 +173,19 @@ { title:'总库数量', align:"center", - dataIndex: 'materialQuantity1', - customRender:function (t,r,index) { - return 0; - } + dataIndex: 'materialQuantity', }, { title:'项目部数量', align:"center", - dataIndex: 'materialQuantity' + dataIndex: 'itemQuantity', + // customRender:function (t,r,index) { + // console.log(r) + // if(r.itemQuantity === undefined){ + // + // } + // return 0; + // } }, { title:'核算属性', @@ -216,6 +221,40 @@ }, }, methods: { + // loadData(arg) { + // if(!this.url.list){ + // this.$message.error("请设置url.list属性!") + // return + // } + // //加载数据 若传入参数1则加载第一页的内容 + // if (arg === 1) { + // this.ipagination.current = 1; + // } + // let ue= sessionStorage.getItem('USER_INFORMATION'); + // let res=JSON.parse(ue); + // if(res.realname !== "管理员"){ + // return ; + // } + // console.log(res); + // var params = this.getQueryParams();//查询条件 + // this.loading = true; + // getAction(this.url.list, params).then((res) => { + // if (res.success) { + // this.dataSource = res.result.records||res.result; + // if(res.result.total) + // { + // this.ipagination.total = res.result.total; + // } + // } + // if(res.code===510){ + // this.$message.warning(res.message) + // } + // this.loading = false; + // }) + // }, + + + handleDetaills(record){ console.log(record); this.$router.push({ diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue index da9aef4..f9e97b1 100644 --- a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue +++ b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue @@ -318,8 +318,8 @@ // console.log(t,r,ind); if(r.arrivalNotice === '1'){ return "是"; - }else{ - return "否"; + }else if(r.arrivalNotice === undefined){ + return "是"; } } }, diff --git a/src/views/wastematerials/ProcessWasteMaterialsList.vue b/src/views/wastematerials/ProcessWasteMaterialsList.vue index f97142d..783cbcc 100644 --- a/src/views/wastematerials/ProcessWasteMaterialsList.vue +++ b/src/views/wastematerials/ProcessWasteMaterialsList.vue @@ -82,7 +82,7 @@ - 详情 + 明细 @@ -144,10 +144,20 @@ dataIndex: 'materialNumber' }, { - title:'物料描述', + title:'物料名称', align:"center", dataIndex: 'materialDescription' }, + { + title:'型号', + align:"center", + dataIndex: 'type' + }, + { + title:'规格', + align:"center", + dataIndex: 'specification' + }, { title:'计量单位', align:"center", diff --git a/src/views/wastematerials/ProcessWasteMaterialsLists.vue b/src/views/wastematerials/ProcessWasteMaterialsLists.vue index 6523e81..ae96981 100644 --- a/src/views/wastematerials/ProcessWasteMaterialsLists.vue +++ b/src/views/wastematerials/ProcessWasteMaterialsLists.vue @@ -336,8 +336,9 @@ this.createProductTime = [], this.createInnerTime = [], this.queryParam = { - descriptionId: this.$route.query.descriptionId, - del_flag: 0 + merchandiseNewsId : this.$route.query.merchandiseNewsId, + materialStorageId : this.$route.query.materialStorageId, + del_flag: 0 }, getAction(this.url.list,this.queryParam).then((res)=>{ if(res.success){ @@ -349,6 +350,7 @@ }); }, loadData(){ + console.log(this.queryParam); getAction(this.url.list,this.queryParam).then((res)=>{ if(res.success){ console.log("result :")