Browse Source

采购回显

dev
0.0 2 years ago
parent
commit
6585e4001f
  1. 4
      src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
  2. 34
      src/views/burst/form/purchase/ProcessIndustrialDeliveryForm.vue
  3. 75
      src/views/burst/form/purchase/ProcessIndustrialPurchaseForm.vue
  4. 34
      src/views/burst/form/purchase/ProcessIndustrialRestoreForm.vue

4
src/views/activiti/form/ProcessMaterialsDeliveryForm.vue

@ -529,6 +529,7 @@
// userInfo.company=company;
if (!this.isNew) {
this.init()
} else {
this.popupCallback(company, userInfo, puwwcid)
}
@ -1489,6 +1490,9 @@
},
popupCallback(company, row, puwwcid) {
let res = JSON.parse(row)
console.log("res>>>>>",res)
console.log("company>>>>>",company)
console.log("puwwcid>>>>>",puwwcid)
if (puwwcid != null) {
let params = {}
params.id = puwwcid

34
src/views/burst/form/purchase/ProcessIndustrialDeliveryForm.vue

@ -6,17 +6,17 @@
<a-row>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planType">
<a-input-number v-model="model.planType" placeholder="请输入计划采购类型" style="width: 100%" />
<j-select-user-by-dep v-model="model.planType" disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起公司" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="company">
<a-input v-model="model.company" placeholder="请输入流程发起公司" ></a-input>
<j-select-company v-model="model.company" multi disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId">
<a-input v-model="model.departId" placeholder="请输入流程发起部门" ></a-input>
<j-select-depart v-model="model.departId" multi disabled/>
</a-form-model-item>
</a-col>
@ -62,12 +62,25 @@
import { FormTypes,getRefPromise,VALIDATE_NO_PASSED } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
import JDate from '@/components/jeecg/JDate'
import JUpload from '@/components/jeecg/JUpload'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
import JDictSelectTag from '@/components/dict/JDictSelectTag'
import JSelectCompany from '../../../../components/jeecgbiz/JSelectCompany'
export default {
name: 'ProcessIndustrialDeliveryForm',
mixins: [JEditableTableMixin],
components: {
JFormContainer,
JDate,
JUpload,
JSelectDepart,
JSelectUserByDep,
JDictSelectTag,
JSelectCompany
},
data() {
return {
@ -80,6 +93,9 @@
sm: { span: 16 },
},
model:{
planType:null,
company:null,
departId:null,
},
validatorRules: {
},
@ -182,8 +198,18 @@
},
},
created () {
let company = sessionStorage.getItem('PARENT_ID')
let puwwcid = sessionStorage.getItem('PUWWC_Id')
let userInfo = sessionStorage.getItem('USER_INFORMATION')
this.popupCallback(company, userInfo, puwwcid)
},
methods: {
popupCallback(company, row, puwwcid) {
let res = JSON.parse(row)
this.model.planType = res.username
this.model.company = company
this.model.departId = res.departIds
},
addBefore(){
this.processIndustrialDeliveryMaterialTable.dataSource=[]
},

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

@ -8,17 +8,20 @@
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planType">
<a-input-number v-model="model.planType" placeholder="请输入计划采购类型" style="width: 100%" />
<!-- <a-input-number v-model="model.planType" placeholder="请输入流程发起人" style="width: 100%" disabled />-->
<j-select-user-by-dep v-model="model.planType" disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起公司" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="company">
<a-input v-model="model.company" placeholder="请输入流程发起公司" ></a-input>
<!-- <a-input v-model="model.company" placeholder="请输入流程发起公司" 流程发起人></a-input>-->
<j-select-company v-model="model.company" multi disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId">
<a-input v-model="model.departId" placeholder="请输入流程发起部门" ></a-input>
<!-- <a-input v-model="model.departId" placeholder="请输入流程发起部门" 流程发起人></a-input>-->
<j-select-depart v-model="model.departId" multi disabled/>
</a-form-model-item>
</a-col>
@ -118,12 +121,25 @@
import { FormTypes,getRefPromise,VALIDATE_NO_PASSED } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
import JDate from '@/components/jeecg/JDate'
import JUpload from '@/components/jeecg/JUpload'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
import JDictSelectTag from '@/components/dict/JDictSelectTag'
import JSelectCompany from '../../../../components/jeecgbiz/JSelectCompany'
export default {
name: 'ProcessIndustrialPurchaseForm',
mixins: [JEditableTableMixin],
components: {
JFormContainer,
JDate,
JUpload,
JSelectDepart,
JSelectUserByDep,
JDictSelectTag,
JSelectCompany
},
data() {
return {
@ -136,6 +152,9 @@
sm: { span: 16 },
},
model:{
planType:null,
company:null,
departId:null,
},
validatorRules: {
planType: [
@ -450,8 +469,56 @@
},
},
created () {
let company = sessionStorage.getItem('PARENT_ID')
let puwwcid = sessionStorage.getItem('PUWWC_Id')
let userInfo = sessionStorage.getItem('USER_INFORMATION')
this.popupCallback(company, userInfo, puwwcid)
},
methods: {
popupCallback(company, row, puwwcid) {
let res = JSON.parse(row)
this.model.planType = res.username
this.model.company = company
this.model.departId = res.departIds
// if (puwwcid != null) {
// let params = {}
// params.id = puwwcid
// this.getAction(this.url.puwwlist, params).then((rest) => {
// if (rest.success) {
// this.libraryAssociationIdInvisible = rest.result.unit
// }
// })
//
// }
// if (res.orgType != 3) {
// let isDepartId = res.departIds
// this.getAction('/officeConfig/queryByDepartId', {
// id: isDepartId
// }).then((res) => {
// if (res.success) {
// if (res.result.length != 0) {
// this.isOffice = 1
// this.deliveryType = 2
// }
// }
// })
// } else if (res.orgType == 3) {
// this.isOffice = 2
// this.deliveryType = 2
// } else {
// this.deliveryType = 1
// }
// let param = {}
// param.createBy = res.username
// param.company = company
// param.departId = res.departIds
// param.createTime = getCurrentTime()
// this.data = param
// let fieldval = pick(this.data, 'createBy', 'company', 'departId', 'createTime')
// this.$nextTick(() => {
// this.form.setFieldsValue(fieldval)
// })
},
addBefore(){
this.processIndustrialPurchaseMaterialTable.dataSource=[]
},

34
src/views/burst/form/purchase/ProcessIndustrialRestoreForm.vue

@ -6,17 +6,17 @@
<a-row>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planType">
<a-input-number v-model="model.planType" placeholder="请输入计划采购类型" style="width: 100%" />
<j-select-user-by-dep v-model="model.planType" disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起公司" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="company">
<a-input v-model="model.company" placeholder="请输入流程发起公司" ></a-input>
<j-select-company v-model="model.company" multi disabled/>
</a-form-model-item>
</a-col>
<a-col :xs="24" :sm="8">
<a-form-model-item label="流程发起部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId">
<a-input v-model="model.departId" placeholder="请输入流程发起部门" ></a-input>
<j-select-depart v-model="model.departId" multi disabled/>
</a-form-model-item>
</a-col>
@ -56,12 +56,25 @@
import { getAction } from '@/api/manage'
import { FormTypes,getRefPromise,VALIDATE_NO_PASSED } from '@/utils/JEditableTableUtil'
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
import JDate from '@/components/jeecg/JDate'
import JUpload from '@/components/jeecg/JUpload'
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
import JDictSelectTag from '@/components/dict/JDictSelectTag'
import JSelectCompany from '../../../../components/jeecgbiz/JSelectCompany'
export default {
name: 'ProcessIndustrialRestoreForm',
mixins: [JEditableTableMixin],
components: {
JFormContainer,
JDate,
JUpload,
JSelectDepart,
JSelectUserByDep,
JDictSelectTag,
JSelectCompany
},
data() {
return {
@ -74,6 +87,9 @@
sm: { span: 16 },
},
model:{
planType:null,
company:null,
departId:null,
},
//
addDefaultRowNum: 1,
@ -191,8 +207,18 @@
},
},
created () {
let company = sessionStorage.getItem('PARENT_ID')
let puwwcid = sessionStorage.getItem('PUWWC_Id')
let userInfo = sessionStorage.getItem('USER_INFORMATION')
this.popupCallback(company, userInfo, puwwcid)
},
methods: {
popupCallback(company, row, puwwcid) {
let res = JSON.parse(row)
this.model.planType = res.username
this.model.company = company
this.model.departId = res.departIds
},
addBefore(){
this.processIndustrialRestoreMaterialTable.dataSource=[]
},

Loading…
Cancel
Save