Browse Source

修改采购操作

dev
caoyizhong 2 years ago
parent
commit
d6e98a06a7
  1. 4
      src/components/custom/Globaler.js
  2. 1
      src/components/jeecg/modal/ProcessPlan.vue
  3. 25
      src/components/jeecg/modal/ProcessStorage.vue
  4. 6
      src/views/activiti/todoManage.vue
  5. 11
      src/views/burst/form/purchase/ProcessIndustrialPurchase.vue
  6. 33
      src/views/burst/form/purchase/ProcessIndustrialPurchaseForm.vue
  7. 2
      src/views/burst/form/purchase/ProcessIndustrialStorageForm.vue
  8. 21
      src/views/industrial/ProcessIndustrialList.vue

4
src/components/custom/Globaler.js

@ -1,4 +1,6 @@
const dictOptions = [];
const dictList = [];
export default {
dictOptions
dictOptions,
dictList
};

1
src/components/jeecg/modal/ProcessPlan.vue

@ -410,6 +410,7 @@ export default {
}
this.loading = true;
getAction(this.url.list, params).then((res) => {
console.log("ere",res);
if (res.success) {
this.dataSource = res.result.records;
this.ipagination.total = res.result.total;

25
src/components/jeecg/modal/ProcessStorage.vue

@ -92,7 +92,6 @@
:scroll="{x:true}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}"
:customRow="clickThenSelect"
@ -154,7 +153,7 @@
<a-tabs defaultActiveKey="1">
<a-tab-pane tab="预算计划采购流程物料清单表" key="1">
<ProcessUdgetPlanMaterialList :mainId="selectedRowKeys"/>
<ProcessIndustrialPurchaseList :mainId="selectedRowKeys"/>
</a-tab-pane>
<!-- <a-tab-pane tab="预算计划采购流程物料已入清单表" key="2">-->
<!-- <ProcessMaterialWarehousingListList :mainId="selectedMainId" />-->
@ -172,9 +171,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getAction } from '@/api/manage'
import { filterObj } from '@/utils/util'
import ProcessUdgetPlanMaterialList from '../../../views/processmaterials/ProcessUdgetPlanMaterialList'
import ProcessMaterialWarehousingListList from '@views/processmaterials/ProcessMaterialWarehousingListList'
import ProcessMaterialWarehousingApplyiList from '../../../views/processmaterials/ProcessMaterialWarehousingApplyiList'
import ProcessIndustrialPurchaseList from '@views/burst/list/purchaseList/ProcessIndustrialPurchaseList'
import JDictSelectTag from '@/components/dict/JDictSelectTag.vue'
import JSuperQuery from '@/components/jeecg/JSuperQuery.vue'
import '@/assets/less/TableExpand.less'
@ -184,9 +181,7 @@ export default {
name: 'ProcessStorage',
props: ['multi', 'code', 'groupId', 'param'],
components: {
ProcessUdgetPlanMaterialList,
ProcessMaterialWarehousingListList,
ProcessMaterialWarehousingApplyiList,
ProcessIndustrialPurchaseList,
JSuperQuery,
JDictSelectTag
},
@ -199,6 +194,7 @@ export default {
title: '预算计划采购流程管理列表',
description: '预算计划采购流程管理页面',
queryParam: {},
dataSourceList:[{warehousingBatch:23}],
//
columns: [
{
@ -215,12 +211,12 @@ export default {
{
title: '采购类型',
align: 'center',
dataIndex: 'planType_dictText'
dataIndex: 'planType'
},
{
title: '流程发起公司',
align: 'center',
dataIndex: 'company_dictText'
dataIndex: 'company'
},
{
title: '流程发起时间',
@ -230,7 +226,7 @@ export default {
{
title: '流程发起部门',
align: 'center',
dataIndex: 'departId_dictText'
dataIndex: 'departId'
},
{
title: '流程发起人',
@ -240,12 +236,12 @@ export default {
{
title: '物资类型',
align: 'center',
dataIndex: 'materialType_dictText'
dataIndex: 'materialType'
},
{
title: '流程计划',
align: 'center',
dataIndex: 'processPlan_dictText'
dataIndex: 'processPlan'
},
{
title: '需求时间',
@ -411,7 +407,8 @@ export default {
this.loading = true;
getAction(this.url.list, params).then((res) => {
if (res.success) {
this.dataSource = res.result.records;
this.dataSource = res.result;
console.log("执行主席",this.dataSource,res.result);
this.ipagination.total = res.result.total;
}
if(res.code===510){

6
src/views/activiti/todoManage.vue

@ -404,8 +404,8 @@
this.$message.error('请填写审批意见')
return
}
console.log('提交')
this.submitLoading = true
// console.log('')
// this.submitLoading = true
var formData = Object.assign({}, this.form)
formData.assignees = formData.assignees.join(',')
if (formData.type == 0) {
@ -611,7 +611,7 @@
this.lcModa.isTable=true;
},
passTask(v) {
// console.log(v.procInstId, '33333333333333333')
console.log(v.procInstId, '33333333333333333')
this.modalTaskTitle = '审批通过'
this.form.id = v.id
this.form.procInstId = v.procInstId

11
src/views/burst/form/purchase/ProcessIndustrialPurchase.vue

@ -3,7 +3,8 @@
<a-tabs style="text-align: center;" >
<a-tab-pane tab="流程正文" key="1" forceRender >
<process-industrial-purchase-form :isNew="isNew" :processData="processData" :disabled="disabled" @afterSubmit="afterSub" @close="close" :task="task" :hieg="hieg" :isPlanType="isPlanType"
<process-industrial-purchase-form :isNew="isNew" :processData="processData" :disabled="disabled" @afterSubmit="afterSub"
@close="close" :task="task" :hieg="hieg" :isPlanType="isPlanType" @passTask="passTask" @backTask="backTask"
:isSourceCapital="isSourceCapital" :routePlanName="routePlanName" :itemId="itemId"/>
</a-tab-pane>
@ -81,6 +82,14 @@ name: "ProcessIndustrialPurchase",
afterSub(formData){
this.$emit('afterSubmit',formData)
},
/*通过审批*/
passTask() {
this.$emit('passTask')
},
/*驳回审批*/
backTask() {
this.$emit('backTask')
},
}
}
</script>

33
src/views/burst/form/purchase/ProcessIndustrialPurchaseForm.vue

@ -512,6 +512,7 @@ import { accMul } from '../../../../../common/common'
queryById: "/burst/processIndustrial/queryById",
queryPurchaseById: "/burst/processIndustrialPurchase/queryById",
list: "/burst/processIndustrial/list",
ownList: "/burst/processIndustrial/ownList",
edit: "/burst/processIndustrialPurchase/edit",
addFromTableApply: "/burst/processIndustrialPurchase/addFromTableApply",
getFirstNode: '/actProcessIns/getFirstNode',
@ -559,7 +560,6 @@ import { accMul } from '../../../../../common/common'
let company = sessionStorage.getItem('PARENT_ID')
let puwwcid = sessionStorage.getItem('PUWWC_Id')
let userInfo = sessionStorage.getItem('USER_INFORMATION');
if (!this.isNew) {
this.init();
}else{
@ -580,8 +580,8 @@ import { accMul } from '../../../../../common/common'
rowKey: id,
values: {
'materialNumber': v.id,
'materialGroup': null,
'materialSeries': !!v.series ? v.series : undefined ,
'materialGroup': v.materialClassify,
'materialSeries': !!v.series ? v.series : null ,
'materialName': v.name,
'materialUnit': v.unit,
'supplierId': v.manufacturer,
@ -685,9 +685,9 @@ import { accMul } from '../../../../../common/common'
let url = '';
if(!!v){
par.id = v;
url = this.url.queryById
url = this.url.queryById;
} else {
url = this.url.list
url = this.url.ownList;
}
par.materialType = this.assigneesText;
await getAction(url,par).then(res => {
@ -704,6 +704,7 @@ import { accMul } from '../../../../../common/common'
},
//
async initialData(newList){
console.log("-=-=-=",newList);
await this.getSurface();
if (this.processIndustrialPurchaseMaterialTable.columns[1].options.length > 0) {
this.processIndustrialPurchaseMaterialTable.columns[1].options = [];
@ -741,11 +742,13 @@ import { accMul } from '../../../../../common/common'
saveAndpassTask() {
this.handleSubmit(true)
},
//
backTask(){},
/*驳回审批*/
backTask() {
this.$emit('backTask')
},
//
passTask(){
this.$emit('passTask');
},
//
applySubmit(e) {
@ -761,7 +764,13 @@ import { accMul } from '../../../../../common/common'
this.$message.error('请填写清单内容')
return
}
let pr = false;
for (let i = 0; i < formData.processIndustrialPurchaseMaterialList.length; i++) {
// console.log("-=-=-=",formData.processIndustrialPurchaseMaterialList[i]);
if(parseInt( formData.processIndustrialPurchaseMaterialList[i].materialPrice ) > 50000){
formData.materialPrice = formData.processIndustrialPurchaseMaterialList[i].materialPrice;
pr = true;
}
if (i == 0) {
this.describes = formData.processIndustrialPurchaseMaterialList[i].materialName
} else {
@ -769,11 +778,9 @@ import { accMul } from '../../../../../common/common'
}
}
formData.fileId = getStringArry(formData.fileId)
// if (this.materialPrice != 0 && this.materialPrice != null) {
// formData.materialPrice = this.materialPrice;
// }else{
// formData.materialPrice = 0;
// }
if (!pr) {
formData.materialPrice = 0;
}
formData.describes = this.describes
if (new Date(formData.createTime).getTime() / 100 > new Date(formData.needTime).getTime() / 100) {
this.$message.error('需求时间不能小于当前流程发起时间')

2
src/views/burst/form/purchase/ProcessIndustrialStorageForm.vue

@ -388,7 +388,7 @@ export default {
this.$nextTick(() => {
this.form.setFieldsValue(fieldval);
console.log("-=-=执行了",fieldval)
// console.log("-=-=",fieldval)
})
},
//

21
src/views/industrial/ProcessIndustrialList.vue

@ -18,7 +18,7 @@
<a-col :xl="5" :lg="7" :md="8" :sm="24">
<a-form-item label="火工品类型">
<!-- <a-input placeholder="请输入类别" v-model="queryParam.type"></a-input>-->
<j-dict-select-tag type="list" v-model="queryParam.type"
<j-dict-select-tag type="list" v-model="queryParam.materialType"
dictCode="explosive_type"
placeholder="请选择火工品类型" />
</a-form-item>
@ -189,9 +189,13 @@
{
title:'火工品类别',
align:"center",
dataIndex: 'type'
dataIndex: 'materialType'
},
{
title:'资产类型',
align:"center",
dataIndex: 'materialAttributes'
},,
{
title:'生产厂家',
align:"center",
@ -207,11 +211,7 @@
// align:"center",
// dataIndex: 'attributes'
// },
{
title:'资产类型',
align:"center",
dataIndex: 'nature'
},
// {
// title:'',
// align:"center",
@ -283,8 +283,8 @@
}
this.dataSource.forEach(item =>{
this.Globaler.dictOptions.forEach(it =>{
if(item.type === it.value){
item.type = it.text;
if(item.materialType === it.value){
item.materialType = it.text;
}
})
})
@ -303,7 +303,6 @@
// console.log(this.dictOptions);
return;
}
//Code,
ajaxGetDictItems('explosive_type', null).then((res) => {
if (res.success) {

Loading…
Cancel
Save