[update] 企标流程联调
This commit is contained in:
@@ -313,7 +313,7 @@ export default {
|
|||||||
const paramObj = {} // 需要传给后端的数据
|
const paramObj = {} // 需要传给后端的数据
|
||||||
paramObj.common = { ...values, ...approvalValues }
|
paramObj.common = { ...values, ...approvalValues }
|
||||||
paramObj.flowUser = personnelObj
|
paramObj.flowUser = personnelObj
|
||||||
paramObj.dataList = [data.formInline]
|
paramObj.data = data.formInline
|
||||||
enStandardAnnulApproval(paramObj).then(res => {
|
enStandardAnnulApproval(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -183,13 +183,14 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="partName">
|
<a-form-model-item class="item-model" prop="partName">
|
||||||
<a-tree-select v-model="formInline.partName"
|
<tree-selection :placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.partName')"
|
||||||
:disabled="disabled"
|
v-model="formInline.partName"
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
@nameChange="treeSelectNameChange"
|
||||||
style="width: 100%"
|
filedName="partName"
|
||||||
:tree-data="partNameOptions"
|
type="radio"
|
||||||
:label-in-value="false"
|
:nameStr="formInline.partName_dictText"
|
||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.partName')" />
|
dict-id="1696007957666533377"
|
||||||
|
:disabled="disabled" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
<!-- 主起草人 -->
|
<!-- 主起草人 -->
|
||||||
@@ -332,17 +333,18 @@
|
|||||||
<script>
|
<script>
|
||||||
import { StandardSource } from '@/enums/commonEnums'
|
import { StandardSource } from '@/enums/commonEnums'
|
||||||
import { getTreeList, getEnterpriseStandardInfoById } from '@/api/enterpriseStandardLibraryApi'
|
import { getTreeList, getEnterpriseStandardInfoById } from '@/api/enterpriseStandardLibraryApi'
|
||||||
import { getFormDictTreeList } from '@/api/api'
|
|
||||||
import StandardSelection from '@/components/selection/StandardSelection'
|
import StandardSelection from '@/components/selection/StandardSelection'
|
||||||
import UserSelection from '@/components/selection/UserSelection'
|
import UserSelection from '@/components/selection/UserSelection'
|
||||||
import UploadFile from '@/components/UploadFile'
|
import UploadFile from '@/components/UploadFile'
|
||||||
|
import TreeSelection from '@/components/selection/TreeSelection'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseInfoForm',
|
name: 'BaseInfoForm',
|
||||||
components: {
|
components: {
|
||||||
StandardSelection,
|
StandardSelection,
|
||||||
UserSelection,
|
UserSelection,
|
||||||
UploadFile
|
UploadFile,
|
||||||
|
TreeSelection
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
disabled: {
|
disabled: {
|
||||||
@@ -366,7 +368,6 @@ export default {
|
|||||||
StandardSource,
|
StandardSource,
|
||||||
loading: false,
|
loading: false,
|
||||||
standardSystemOptions: [], // 标准体系下拉框数据
|
standardSystemOptions: [], // 标准体系下拉框数据
|
||||||
partNameOptions: [], // 零部件名称下拉框数据
|
|
||||||
formInline: {},
|
formInline: {},
|
||||||
rules: {
|
rules: {
|
||||||
// 企标编号
|
// 企标编号
|
||||||
@@ -423,8 +424,6 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
// 获取标准体系下拉框数据
|
// 获取标准体系下拉框数据
|
||||||
this.initStandardSystemOptions()
|
this.initStandardSystemOptions()
|
||||||
// 获取零部件名称下拉框数据
|
|
||||||
this.initPartNameOptions()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取标准体系下拉框数据
|
// 获取标准体系下拉框数据
|
||||||
@@ -435,14 +434,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取零部件名称下拉框数据
|
|
||||||
initPartNameOptions () {
|
|
||||||
getFormDictTreeList({ dictId: '1696821512600637441' }).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.partNameOptions = res.result
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 选完企标编号了,需要回显内容
|
// 选完企标编号了,需要回显内容
|
||||||
listChange (value) {
|
listChange (value) {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
@@ -472,6 +463,7 @@ export default {
|
|||||||
this.formInline.trialPeriod = result.trial_period
|
this.formInline.trialPeriod = result.trial_period
|
||||||
// 零部件名称
|
// 零部件名称
|
||||||
this.formInline.partName = result.part_name
|
this.formInline.partName = result.part_name
|
||||||
|
this.formInline.partName_dictText = result.part_name_dictText
|
||||||
// 主起草人
|
// 主起草人
|
||||||
this.formInline.mainDraftingUser = result.main_drafting_user
|
this.formInline.mainDraftingUser = result.main_drafting_user
|
||||||
this.formInline.mainDraftingUser_dictText = result.main_drafting_user_dictText
|
this.formInline.mainDraftingUser_dictText = result.main_drafting_user_dictText
|
||||||
@@ -493,6 +485,10 @@ export default {
|
|||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 零部件名称选择完成的回调
|
||||||
|
treeSelectNameChange (value, fieldName) {
|
||||||
|
this.formInline[fieldName + '_dictText'] = value
|
||||||
|
},
|
||||||
// 选择用户得到用户名
|
// 选择用户得到用户名
|
||||||
userSelectNameChange (value, fieldName) {
|
userSelectNameChange (value, fieldName) {
|
||||||
this.formInline[fieldName + '_dictText'] = value
|
this.formInline[fieldName + '_dictText'] = value
|
||||||
|
|||||||
+1
@@ -44,6 +44,7 @@
|
|||||||
disabled
|
disabled
|
||||||
v-model="formInline.originEnStandardName"
|
v-model="formInline.originEnStandardName"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -335,7 +335,7 @@ export default {
|
|||||||
const paramObj = {} // 需要传给后端的数据
|
const paramObj = {} // 需要传给后端的数据
|
||||||
paramObj.common = { ...values, ...approvalValues }
|
paramObj.common = { ...values, ...approvalValues }
|
||||||
paramObj.flowUser = personnelObj
|
paramObj.flowUser = personnelObj
|
||||||
paramObj.dataList = [data.formInline]
|
paramObj.data = data.formInline
|
||||||
enStandardRecheckApproval(paramObj).then(res => {
|
enStandardRecheckApproval(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ import {
|
|||||||
enStandardSealSaveApproval,
|
enStandardSealSaveApproval,
|
||||||
enStandardSealSaveTurnTo,
|
enStandardSealSaveTurnTo,
|
||||||
enStandardSealSaveAgree,
|
enStandardSealSaveAgree,
|
||||||
enStandardSealSaveReject,
|
enStandardSealSaveReject
|
||||||
} from '@/api/workCenter'
|
} from '@/api/workCenter'
|
||||||
import BaseInfoForm from './modules/BaseInfoForm'
|
import BaseInfoForm from './modules/BaseInfoForm'
|
||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
const paramObj = {} // 需要传给后端的数据
|
const paramObj = {} // 需要传给后端的数据
|
||||||
paramObj.common = { ...values, ...approvalValues }
|
paramObj.common = { ...values, ...approvalValues }
|
||||||
paramObj.flowUser = personnelObj
|
paramObj.flowUser = personnelObj
|
||||||
paramObj.dataList = [data.formInline]
|
paramObj.data = data.formInline
|
||||||
enStandardSealSaveApproval(paramObj).then(res => {
|
enStandardSealSaveApproval(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ export default {
|
|||||||
const paramObj = {} // 需要传给后端的数据
|
const paramObj = {} // 需要传给后端的数据
|
||||||
paramObj.common = { ...values, ...approvalValues }
|
paramObj.common = { ...values, ...approvalValues }
|
||||||
paramObj.flowUser = personnelObj
|
paramObj.flowUser = personnelObj
|
||||||
paramObj.dataList = [data.formInline]
|
paramObj.data = data.formInline
|
||||||
enStandardStartUseApproval(paramObj).then(res => {
|
enStandardStartUseApproval(paramObj).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user