diff --git a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue
index 1142861..547f3d5 100644
--- a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue
+++ b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue
@@ -84,7 +84,7 @@
:disabled="formDisabled"
:rowNumber="true"
:rowSelection="true"
- :actionButton="true" />
+ :actionButton="false" />
diff --git a/src/views/activiti/form/ProcessMaterialsAllotForm.vue b/src/views/activiti/form/ProcessMaterialsAllotForm.vue
index 4a67b83..317be20 100644
--- a/src/views/activiti/form/ProcessMaterialsAllotForm.vue
+++ b/src/views/activiti/form/ProcessMaterialsAllotForm.vue
@@ -365,10 +365,10 @@
if (item.merchandiseNewsId === record.row.equipment) {
materialName = {
name: item.merchandiseName,
- unit: item.unit,
+ unit: item.materialsUnit,
supplierName: item.supplierName,
- price: item.price,
- number : item.number === undefined ? 0 : item.number,
+ price: item.materialPrice,
+ number : item.residueNumber === undefined ? 0 : item.residueNumber,
}
}
})
@@ -398,7 +398,7 @@
this.bigIdMerchandiseNewsList.forEach(item => {
if (item.merchandiseNewsId === record.row.equipment) {
materialName = {
- number : item.number === undefined ? 0 : item.number,
+ number : item.residueNumber === undefined ? 0 : item.residueNumber,
}
}
})
@@ -501,6 +501,7 @@
let par = {
delFlag: 0,
accountingAttributes: value,
+ sysOrgCode: this.data.sysOrgCode
}
getAction(this.url.descriptionRake,par).then((res)=>{
if(res.success){
diff --git a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
index 5dba608..7f440b9 100644
--- a/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
+++ b/src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
@@ -941,9 +941,8 @@
init(){
this.btndisabled = true;
var r = this.processData;
- this.getAction(this.url.getForm,{
- tableId:r.tableId,
- tableName:r.tableName,
+ this.getAction(this.url.queryById,{
+ id:r.tableId
}).then((res)=>{
if (res.success){
let formData = res.result;
@@ -973,11 +972,13 @@
this.getAllTable().then(tables => {
return validateFormAndTables(this.form, tables)
}).then(allValues=>{
- console.log('所有数据',allValues)
+
if (typeof this.classifyIntoFormData !== 'function') {
throw this.throwNotFunction('classifyIntoFormData')
}
let formData = this.classifyIntoFormData(allValues)
+ formData.fileId = getStringArry(formData.fileId)
+ console.log('所有数据',formData)
if (new Date(formData.createTime).getTime()/100>new Date(formData.deliveryTime).getTime()/100){
this.$message.error("出库时间不能小于当前流程发起时间")
return;
@@ -1033,6 +1034,12 @@
},
/** 调用完edit()方法之后会自动调用此方法 */
editAfter() {
+ if (this.data.id != null && this.data.id != '' && this.data.id != undefined && this.data.fileId != null && this.data.fileId != '') {
+ //1、文件回显
+ this.data = getRecord(this.data)
+
+ }
+ console.log('回显数据',this.data)
let fieldval = pick(this.data,'id','company','createTime','sysOrgCode','createBy','materialType','deliveryTime','fileId')
this.$nextTick(() => {
this.form.setFieldsValue(fieldval)
diff --git a/src/views/activiti/form/ProcessUdgetPlanForm.vue b/src/views/activiti/form/ProcessUdgetPlanForm.vue
index fa36c57..9564e96 100644
--- a/src/views/activiti/form/ProcessUdgetPlanForm.vue
+++ b/src/views/activiti/form/ProcessUdgetPlanForm.vue
@@ -34,7 +34,7 @@
+ placeholder="请选择物资类型" @change="elect" />
@@ -73,12 +73,23 @@
:maxHeight="300"
:action-button="true"
:rowNumber="true"
+ :disabled="hieg"
:rowSelection="true"
:actionButton="true">
+
+
+
+
- 历史价格:{{ item }}
+ 历史价格:{{ item }}
查看
@@ -134,7 +145,13 @@
data() {
return {
bigId:[],
+ bigIdRake:[],
+ materialGroups:'',
+ materialId :'',
+ bigIdRakeList:[],
+ hieg:true,
historyBigId:[],
+ isHistoryBigId:false,
bigIdMerchandiseNews:[],
bigIdMerchandiseNewsList:[],
labelCol: {
@@ -168,12 +185,13 @@
key: 'materialGroup',
// type: FormTypes.slot, // <-------------改为 slot 格式
// slotName: 'actions', // <-------------slot 的名称,对应 v-slot 冒号后面和等号前面的内容
- type: FormTypes.sel_search,
- dictCode: '',
+ type: FormTypes.slot,
+ // type: FormTypes.sel_search,
+ slotName: 'group',
+
width: '200px',
- placeholder: '请输入${title}',
+
options: [],
- props:{title: 'show title'}
// scopedSlots: { customRender: 'edit' },//引入的插槽
// customRender:function (t,r,index) {
// console.log(t,r);
@@ -191,14 +209,6 @@
options: [],
},
// {
- // title: '物料描述',
- // key: 'materialDescription',
- // type: FormTypes.input,
- // width: '200px',
- // placeholder: '请输入${title}',
- // defaultValue: ''
- // },
- // {
// title: '仓储地点_id',
// key: 'unitWasteWarehouseCodeId',
// type: FormTypes.input,
@@ -295,7 +305,7 @@
title: '对比单价',
key: 'action',
type: FormTypes.slot,
- width: '70px',
+ width: '80px',
// placeholder: '请输入${title}',
// defaultValue: '',
slotName: 'action'
@@ -317,6 +327,14 @@
placeholder: '请输入${title}',
defaultValue: ''
},
+ {
+ title: '供应商',
+ key: 'supplierId',
+ type: FormTypes.input,
+ width: '200px',
+ placeholder: '请输入${title}',
+ defaultValue: ''
+ },
{
title: '执行标准',
key: 'materialStandard',
@@ -348,6 +366,7 @@
edit: '/hy/processUdgetPlan/edit',
queryById: '/hy/processUdgetPlan/queryById',
selectdeparment:'/sys/selectByUser',
+ descriptionRakeUrl: "/description/processDescription/list",
descriptionRake: "/description/processDescription/descriptionName",
merchandiseNewsList: "/merchandisenews/processMerchandiseNews/merchandiseNewsList",
historyUrl: '/suppliesstronger/processSuppliesStronger/list',
@@ -426,81 +445,149 @@
let userInfo=sessionStorage.getItem("USER_INFORMATION");
// userInfo.company=company;
this.popupCallback(company,userInfo);
- this.fetchData();
+
},
methods: {
+ elect(val){
+ if(val != undefined){
+ this.hieg = false;
+ // this.fetchData();
+ this.fetchDataRake();
+ }
+ },
+ //物料组选择触发
+ onSelectRake(props,value) {
+ // console.log('onSelect', value,props);
+ this.searchRake(value,props);
+ },
+ //物料组输入触发
+ onSearchRake(searchText) {
+ // console.log(searchText)
+ this.fetchDataRake(searchText);
+ },
+ fetchDataRake(value){
+ //查询大品类数据
+ let par = {
+ delFlag: 0,
+ descriptionName: value,
+
+ pageSize: 100
+ }
+ this.bigIdRake = [];
+ this.bigIdRakeList = [];
+ getAction(this.url.descriptionRakeUrl,par).then((res)=>{
+ if(res.success){
+ // console.log(res.result);
+ res.result.records.forEach( item => {
+ this.bigIdRake.push(item.descriptionName);
+ })
+ this.bigIdRakeList = res.result.records;
+ }
+ });
+ },
+ //物料组触发集合
+ searchRake(val,pro){
+ this.bigIdRakeList.forEach(item =>{
+ // console.log(item);
+ if(item.descriptionName === val){
+ this.fetchMerchandiseNews(item.id);
+ this.materialId=item.id
+ }
+ })
+ // console.log(this.materialId);
+ },
+
+
//查看历史价格
async chaKan(log){
- this.historyBigId = [];
+
let pas = await log.target.getValuesPromise(log.rowIds);
+ // console.log(pas);
if(pas[0].materialNumber !== '' && pas[0].materialNumber !== null ){
+ this.historyBigId = [];
//查询大品类数据
let par = {
delFlag: 0,
- merchandisenewsId: pas[0].materialNumber,
+ merchandiseNewsId: pas[0].materialNumber,
pageSize:5
}
-
+ this.isHistoryBigId = false;
getAction(this.url.historyUrl,par).then((res)=>{
+ // console.log(res);
if(res.success) {
res.result.records.forEach( item => {
- this.historyBigId.push(item.price);
+ if(parseInt(res.result.total) > 0){
+ this.isHistoryBigId = true;
+ this.historyBigId.push(item.materialPrice);
+ }
+
})
}
});
}
-
},
//table 值改变触发
onSelect(record) {
- if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.materialNumber === ''){
- this.fetchMerchandiseNews(record.row.materialGroup);
- }
- if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.materialNumber !== ''){
+ // if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.materialNumber === ''){
+ // console.log("1出发了",record.row);
+ // this.fetchMerchandiseNews(record.row.materialGroup);
+ // }
+ // console.log("5555出发了",record.row);
+ if(record.row.materialGroup === '' || record.row.materialGroup === undefined && record.row.materialNumber !== ''){
+ // console.log("2出发了",record.row);
let materialName = { }
this.bigIdMerchandiseNewsList.forEach( item => {
if( item.id === record.row.materialNumber ){
materialName ={
name: item.merchandiseName,
unit: item.materialsUnit,
+ supplierId: item.supplierId,
}
}
})
- let values = [
- {
- rowKey: record.row.id,
- values: {
- 'materialNumber': record.row.materialNumber,
- 'materialGroup': record.row.materialGroup,
- 'materialSeries': "SM-JD36-BA",
- 'materialName': materialName.name,
- 'materialUnit': materialName.unit,
+ if(record.row.id !== undefined){
+ let values = [
+ {
+ rowKey: record.row.id,
+ values: {
+ 'materialNumber': record.row.materialNumber,
+ 'materialGroup': this.materialId,
+ 'materialSeries': "SM-JD36-BA",
+ 'materialName': materialName.name,
+ 'materialUnit': materialName.unit,
+ 'supplierId': materialName.supplierId
+ },
},
- },
- ]
- this.$refs.processUdgetPlanMaterial.setValues(values);
+ ]
+ // console.log(values);
+ this.$refs.processUdgetPlanMaterial.setValues(values);
+ }
}
if(record.row.materialQuantity !== '' && record.row.materialPrice !== '' && record.row.materialQuantity !== undefined && record.row.materialPrice !== undefined){
// record.row.materialAmount = record.row.materialQuantity * record.row.materialPrice;
- let values = [
- {
- rowKey: record.row.id,
- values: {
- 'materialNumber': record.row.materialNumber,
- 'materialGroup': record.row.materialGroup,
- 'materialSeries': record.row.materialSeries,
- 'materialName': record.row.materialName,
- 'materialUnit': record.row.materialUnit,
- 'materialAmount': record.row.materialQuantity * record.row.materialPrice,
- 'materialType': this.data.materialType
+ // console.log("3出发了",record.row);
+ if(record.row.id !== undefined){
+ let values = [
+ {
+ rowKey: record.row.id,
+ values: {
+ 'materialNumber': record.row.materialNumber,
+ 'materialGroup': record.row.materialGroup,
+ 'materialSeries': record.row.materialSeries,
+ 'materialName': record.row.materialName,
+ 'materialUnit': record.row.materialUnit,
+ 'materialAmount': record.row.materialQuantity * record.row.materialPrice,
+ 'materialType': this.data.materialType
+ },
},
- },
- ]
- this.$refs.processUdgetPlanMaterial.setValues(values);
+ ]
+ this.$refs.processUdgetPlanMaterial.setValues(values);
+ }
+
}
},
@@ -525,6 +612,7 @@
});
});
getAction(this.url.merchandiseNewsList,par).then((res)=>{
+ console.log(res.result);
if(res.success){
let newList = res.result;
if(numberList.length > 0){
@@ -563,19 +651,19 @@
delFlag: 0,
}
this.bigId = [];
- getAction(this.url.descriptionRake,par).then((res)=>{
- if(res.success){
- if(this.processUdgetPlanMaterialTable.columns[0].options.length > 0){
- this.processUdgetPlanMaterialTable.columns[0].options = [];
- }
- res.result.forEach( item => {
- this.processUdgetPlanMaterialTable.columns[0].options.push({
- title : item.descriptionName,
- value : item.id,
- })
- })
- }
- });
+ // getAction(this.url.descriptionRake,par).then((res)=>{
+ // if(res.success){
+ // if(this.processUdgetPlanMaterialTable.columns[0].options.length > 0){
+ // this.processUdgetPlanMaterialTable.columns[0].options = [];
+ // }
+ // res.result.forEach( item => {
+ // this.processUdgetPlanMaterialTable.columns[0].options.push({
+ // title : item.descriptionName,
+ // value : item.id,
+ // })
+ // })
+ // }
+ // });
},
/*回显数据*/
init(){
diff --git a/src/views/activiti/mixins/activitiMixin.js b/src/views/activiti/mixins/activitiMixin.js
index c8a2f60..2f32b5b 100644
--- a/src/views/activiti/mixins/activitiMixin.js
+++ b/src/views/activiti/mixins/activitiMixin.js
@@ -82,6 +82,10 @@ export const activitiMixin = {
},
historicDetail:function () {
return () => import(`@/views/activiti/historicDetail`)
+ },
+ //流程操作记录显示地址
+ operatingRecordDetail:function (){
+ return () => import('@/views/operationlog/ProcessOperationLogList')
}
},
methods:{
diff --git a/src/views/activiti/processInsManage.vue b/src/views/activiti/processInsManage.vue
index 11f463f..181387a 100644
--- a/src/views/activiti/processInsManage.vue
+++ b/src/views/activiti/processInsManage.vue
@@ -142,6 +142,11 @@
:processData="lcModa.processData" :isNew = "lcModa.isNew"
@close="lcModa.visible=false,lcModa.disabled = false">
+
+
+
+
+
@@ -187,6 +192,9 @@ export default {
},
modalLsVisible: false,
procInstId: '',
+ //用于控制流程操作记录的显示
+ operatingRecord: false,
+ tableId: '',
lcModa: {
title:'',
disabled:false,
@@ -274,12 +282,8 @@ export default {
this.$message.error("流程主表id不存在");
return;
}
- this.lcModa.disabled = true;
- this.lcModa.title = '查看流程业务信息:'+v.name;
- this.lcModa.formComponent = this.getFormComponent(v.routeName).component;
- this.lcModa.processData = v;
- this.lcModa.isNew = false;
- this.lcModa.visible = true;
+ this.tableId = v.tableId;
+ this.operatingRecord = true;
},
detail(r) {
if (!r.routeName) {
diff --git a/src/views/operationlog/ProcessOperationLogList.vue b/src/views/operationlog/ProcessOperationLogList.vue
index 9697cf4..00311d1 100644
--- a/src/views/operationlog/ProcessOperationLogList.vue
+++ b/src/views/operationlog/ProcessOperationLogList.vue
@@ -48,6 +48,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ProcessOperationLogModal from './modules/ProcessOperationLogModal'
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue'
+ import { getAction } from '@api/manage'
export default {
name: 'ProcessOperationLogList',
@@ -56,8 +57,18 @@
ProcessOperationLogModal,
JSuperQuery,
},
+ props: {
+ tableId: {
+ type: String,
+ default: '',
+ required: true
+ },
+ },
data () {
return {
+ queryParam: {
+ processRelevanceId: this.tableId
+ },
description: '流程操作记录',
// 表头
columns: [
@@ -88,14 +99,6 @@
customRender:function (text) {
return !text?"":(text.length>10?text.substr(0,10):text)
}
- },
- {
- title: '操作',
- dataIndex: 'action',
- align:"center",
- fixed:"right",
- width:147,
- scopedSlots: { customRender: 'action' }
}
],
url: {
@@ -119,6 +122,7 @@
},
},
methods: {
+
initDictConfig(){
},
getSuperFieldList(){
diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue
index 50830dc..50dd3e8 100644
--- a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue
+++ b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue
@@ -203,7 +203,7 @@
methods: {
handleDetaills(record){
console.log(record);
- this.$router.push({name:'src-views-suppliesstronger-ProcessSuppliesStrongerLists',params:{item: record.materialsNumber}})
+ this.$router.push({name:'src-views-suppliesstronger-ProcessSuppliesStrongerLists',params:{item: record.merchandiseNewsId}})
},
initDictConfig(){
},
diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue
index 10ef51e..771f6d2 100644
--- a/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue
+++ b/src/views/suppliesstronger/ProcessSuppliesStrongerLists.vue
@@ -163,7 +163,7 @@
queryParam: {
supplier: null,
itemGroup: null,
- materialsNumber: this.$route.params.item,
+ merchandiseNewsId: this.$route.params.item,
itemDescription: null,
unitWasteWarehouseCodeId: null,
freightSpace: null,
@@ -314,7 +314,7 @@
},
watch: {
$route() {
- this.queryParam.materialsNumber = this.$route.params.item
+ this.queryParam.merchandiseNewsId = this.$route.params.item
this.loadData()
}
},
diff --git a/src/views/wastematerials/ProcessWasteMaterialsLists.vue b/src/views/wastematerials/ProcessWasteMaterialsLists.vue
index 252126f..b797be7 100644
--- a/src/views/wastematerials/ProcessWasteMaterialsLists.vue
+++ b/src/views/wastematerials/ProcessWasteMaterialsLists.vue
@@ -232,7 +232,7 @@
{
title:'单价(元)',
align:"center",
- dataIndex: 'price'
+ dataIndex: 'materialPrice'
},
{
title:'金额(元)',
@@ -369,7 +369,7 @@
fieldList.push({type:'string',value:'freightSpace',text:'库存仓位',dictCode:''})
fieldList.push({type:'string',value:'materialsUnit',text:'计量单位',dictCode:''})
fieldList.push({type:'int',value:'materialQuantity',text:'数量',dictCode:''})
- fieldList.push({type:'BigDecimal',value:'price',text:'单价',dictCode:''})
+ fieldList.push({type:'BigDecimal',value:'materialPrice',text:'单价',dictCode:''})
fieldList.push({type:'BigDecimal',value:'materialAmount',text:'金额',dictCode:''})
fieldList.push({type:'date',value:'productionDate',text:'生产日期'})
fieldList.push({type:'String',value:'expirationDate',text:'保质期'})