Browse Source

出库流程关联类型

dev
0.0 2 years ago
parent
commit
66854f1b44
  1. 2
      src/components/jeecg/HDelivery.vue
  2. 1
      src/components/jeecg/HPlan.vue
  3. 27
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue
  4. 2
      src/views/activiti/form/ProcessPermissionAuthorizationForm.vue
  5. 17
      src/views/activiti/form/ProcessSmaterialsScrapForm.vue
  6. 12
      src/views/activiti/form/ProcessUdgetPlanForm.vue

2
src/components/jeecg/HDelivery.vue

@ -189,12 +189,14 @@
if (this.triggerChange) { if (this.triggerChange) {
//v-dectriggerChangetrue form setFieldsValue //v-dectriggerChangetrue form setFieldsValue
this.$emit('callback', rows[0].id) this.$emit('callback', rows[0].id)
this.$emit('callType', rows[0].materialType)
console.log(1) console.log(1)
} else { } else {
//v-model field //v-model field
// this.$emit("input",row[orgFieldsArr[destFieldsArr.indexOf(this.field)]]) // this.$emit("input",row[orgFieldsArr[destFieldsArr.indexOf(this.field)]])
this.$emit('input', this.showText, rows[0].id) this.$emit('input', this.showText, rows[0].id)
console.log(rows[0].id) console.log(rows[0].id)
this.$emit('callType', rows[0].materialType)
} }
} }
} }

1
src/components/jeecg/HPlan.vue

@ -193,7 +193,6 @@
this.showText =rows[0].id this.showText =rows[0].id
// update--end--autor:lvdandan-----date:20200630------for------ // update--end--autor:lvdandan-----date:20200630------for------
} }
console.log("传过来的值>>>>>>>>>>>",rows[0].materialType)
if (this.triggerChange) { if (this.triggerChange) {
//v-dectriggerChangetrue form setFieldsValue //v-dectriggerChangetrue form setFieldsValue
this.$emit('callback', rows[0].id) this.$emit('callback', rows[0].id)

27
src/views/activiti/form/ProcessMaterialWarehousingForm.vue

@ -366,23 +366,7 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
throw this.throwNotFunction('classifyIntoFormData') throw this.throwNotFunction('classifyIntoFormData')
} }
let formData = this.classifyIntoFormData(allValues) let formData = this.classifyIntoFormData(allValues)
formData.processUdgetPlanId=this.processUdgetPlanId
// if (formData.materialType === null || formData.materialType ==='' || formData.materialType === undefined){
// this.$message.error("")
// return;
// }
// if (formData.targetLibrary === null || formData.targetLibrary ==='' || formData.targetLibrary === undefined){
// this.$message.error("")
// return;
// }
// if (formData.processUdgetPlanId === null || formData.processUdgetPlanId ==='' || formData.processUdgetPlanId === undefined){
// this.$message.error("")
// return;
// }
// if (formData.warehousingBatch === null || formData.warehousingBatch ==='' || formData.warehousingBatch === undefined){
// this.$message.error("")
// return;
// }
console.log('格式化后的数据',formData) console.log('格式化后的数据',formData)
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
@ -468,7 +452,6 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
// }) // })
}, },
getcallType(type){ getcallType(type){
console.log("传过来的类型>>>>>>>>>>>>",type)
let param={} let param={}
param.materialType = type; param.materialType = type;
this.data=param; this.data=param;
@ -476,19 +459,11 @@ import JSelectCompany from '../../../components/jeecgbiz/JSelectCompany'
this.$nextTick(() => { this.$nextTick(() => {
this.form.setFieldsValue(fieldval) this.form.setFieldsValue(fieldval)
}) })
// params.id=id;
// this.requestSubTableData(this.url.list, params, this.processMaterialWarehousingListTable)
// getAction(this.url.list,params).then((res)=>{
// if(res.success){
// console.log('',res.result)
// }
// })
}, },
popupCallback(company,row) { popupCallback(company,row) {
let res=JSON.parse(row); let res=JSON.parse(row);
console.log('获取我的数据',res.id) console.log('获取我的数据',res.id)
let param={} let param={}
param.createBy=res.username; param.createBy=res.username;
param.company=company; param.company=company;
param.sysOrgCode=res.departIds; param.sysOrgCode=res.departIds;

2
src/views/activiti/form/ProcessPermissionAuthorizationForm.vue

@ -69,7 +69,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center"> <a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center">
<a-button @click="submitForm"> </a-button> <a-button @click="handleSubmit"> </a-button>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>

17
src/views/activiti/form/ProcessSmaterialsScrapForm.vue

@ -31,12 +31,12 @@
</a-col> </a-col>
<a-col :span="8" > <a-col :span="8" >
<a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag type="list" @change="materialType" v-decorator="['materialType',validatorRules.materialType]" :trigger-change="true" dictCode="material_type" placeholder="请选择物资类型" /> <j-dict-select-tag type="list" @change="materialType" v-decorator="['materialType']" :trigger-change="true" dictCode="material_type" placeholder="请选择物资类型" disabled/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8" > <a-col :span="8" >
<a-form-item label="关联出库流程" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="关联出库流程" :labelCol="labelCol" :wrapperCol="wrapperCol">
<h-delivery v-model="processOutflowId" code="demo" field="name" orgFields="name" destFields="name" :multi="true"/> <h-delivery v-model="processOutflowId" code="demo" field="name" orgFields="name" destFields="name" @callType="getcallType" :multi="true"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8" > <a-col :span="8" >
@ -365,10 +365,6 @@
} }
let formData = this.classifyIntoFormData(allValues) let formData = this.classifyIntoFormData(allValues)
formData.processOutflowId=this.processOutflowId; formData.processOutflowId=this.processOutflowId;
// if (formData.materialType === null || formData.materialType ==='' || formData.materialType === undefined){
// this.$message.error("")
// return;
// }
if (formData.processOutflowId === null || formData.processOutflowId ==='' || formData.processOutflowId === undefined){ if (formData.processOutflowId === null || formData.processOutflowId ==='' || formData.processOutflowId === undefined){
this.$message.error("关联的出库流程不能为空") this.$message.error("关联的出库流程不能为空")
return; return;
@ -404,6 +400,15 @@
}) })
}, },
getcallType(type){
let param={}
param.materialType = type;
this.data=param;
let fieldval =pick(this.data,'materialType')
this.$nextTick(() => {
this.form.setFieldsValue(fieldval)
})
},
addBefore(){ addBefore(){
this.form.resetFields() this.form.resetFields()
this.processSmaterialsScrapListTable.dataSource=[] this.processSmaterialsScrapListTable.dataSource=[]

12
src/views/activiti/form/ProcessUdgetPlanForm.vue

@ -107,7 +107,6 @@
</template> </template>
<script> <script>
import { validateTables } from '../../../utils/JEditableTableUtil'
const VALIDATE_NO_PASSED = Symbol() const VALIDATE_NO_PASSED = Symbol()
import pick from 'lodash.pick' import pick from 'lodash.pick'
@ -122,7 +121,6 @@
import JSelectDepart from '@/components/jeecgbiz/JSelectDepart' import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep' import JSelectUserByDep from '@/components/jeecgbiz/JSelectUserByDep'
import JDictSelectTag from '@/components/dict/JDictSelectTag' import JDictSelectTag from '@/components/dict/JDictSelectTag'
import { fetchDescription } from '@/utils/basics/basicsquery'
export default { export default {
@ -722,11 +720,11 @@
// } // }
this.form.validateFields((err, values) => { this.form.validateFields((err, values) => {
if (!err) { if (!err) {
formData.procDefId = this.processData.id; formData.procDefId = this.processData.id;
formData.procDeTitle = this.processData.name; formData.procDeTitle = this.processData.name;
formData.title=this.processData.description; formData.title=this.processData.description;
if (!formData.tableName)formData.tableName = this.processData.businessTable; if (!formData.tableName)formData.tableName = this.processData.businessTable;
console.log('格式化后的数据',formData) console.log('格式化后的数据',formData)
var url = this.url.add; var url = this.url.add;
let method='post'; let method='post';
if (!this.isNew){ if (!this.isNew){

Loading…
Cancel
Save