¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title='title' |
| | | :width='1200' |
| | | :visible='visible' |
| | | :maskClosable='false' |
| | | @ok='handleOk' |
| | | cancelText='å
³é' |
| | | @cancel='handleCancel' |
| | | :confirmLoading='confirmLoading' |
| | | > |
| | | |
| | | <a-spin :spinning='confirmLoading'> |
| | | <a-form-model :form='form' ref='form' :model='model' :rules='validatorRules'> |
| | | <a-row :span='12'> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='åæ®å·' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder='请è¾å
¥åæ®å·' :disabled="disableSubmit"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='è°å
¥å
¬å¸' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='inEnterpriseId'> |
| | | <a-tree-select |
| | | style='width:100%' |
| | | tree-default-expand-all |
| | | :dropdown-style="{ maxHeight: '500px', overflow: 'auto' }" |
| | | :treeData='treeDataSource' |
| | | v-model='model.inEnterpriseId' |
| | | placeholder='è¯·éæ©è°å
¥å
¬å¸' |
| | | :replace-fields='replaceFields' |
| | | :disabled="disableSubmit" |
| | | @change='handleChangeInEnterpriseId'> |
| | | </a-tree-select> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :Span='24'> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='è°åºå
¬å¸' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='outEnterpriseId'> |
| | | <a-tree-select |
| | | style='width:100%' |
| | | tree-default-expand-all |
| | | :dropdown-style="{ maxHeight: '500px', overflow: 'auto' }" |
| | | :treeData='treeDataSource' |
| | | v-model='model.outEnterpriseId' |
| | | placeholder='è¯·éæ©è°åºå
¬å¸' |
| | | :replace-fields='replaceFields' |
| | | :disabled="disableSubmit" |
| | | @change='handleChangeOutEnterpriseId' /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='夿³¨' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='remark'> |
| | | <a-textarea v-model='model.remark' placeholder='请è¾å
¥å¤æ³¨' :disabled="disableSubmit"></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | <a-button |
| | | type='primary' |
| | | :style="{ marginRight: '8px',marginBottom:'8px' }" |
| | | :loading='confirmLoading' |
| | | @click='selectInspectionProjects()' |
| | | >设å¤ä¿¡æ¯ |
| | | </a-button> |
| | | |
| | | <a-table |
| | | ref='table' |
| | | bordered |
| | | size='middle' |
| | | rowKey='id' |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :scroll="{ x: 'calc(980px + 40%)', y: 900 }" |
| | | > |
| | | |
| | | <template |
| | | v-for='col in columns' |
| | | :slot='col.dataIndex' |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key='col.dataIndex'> |
| | | |
| | | |
| | | <a-select |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | v-if="col.dataIndex == 'inDepartId'" |
| | | :options='record.departVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'inManagerId'" |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | :options='record.userVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | <a-input |
| | | :value='text' |
| | | placeholder='请è¾å
¥' |
| | | :disabled="disableSubmit" |
| | | v-if="col.dataIndex == 'position'" |
| | | @change='(e)=>handleChange(e, record.key, col, index)' |
| | | /> |
| | | |
| | | |
| | | <a-select |
| | | v-if="col.dataIndex == 'responsibilityUserId'" |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | :options='record.userVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'responsibilityTeamId'" |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | :options='record.teamVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | <!-- <a-input |
| | | :value='text' |
| | | placeholder='请è¾å
¥' |
| | | v-if="col.dataIndex == 'responsibilityTeamId'" |
| | | @change='(e)=>handleChange(e, record.key, col, index)' |
| | | />--> |
| | | |
| | | <a-select |
| | | v-if="col.dataIndex == 'useDepartId'" |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | :options='record.departVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | <a-date-picker |
| | | |
| | | v-if="col.dataIndex == 'demandDate'" |
| | | :value='text' |
| | | :disabled="disableSubmit" |
| | | format='YYYY-MM-DD HH:mm:ss' |
| | | @change='(e)=>handleChange(e, record.key, col, index)' |
| | | /> |
| | | <a-date-picker |
| | | v-if="col.dataIndex == 'actualInDate'" |
| | | :value='text' |
| | | :disabled="disableSubmit" |
| | | format='YYYY-MM-DD HH:mm:ss' |
| | | @change='(e)=>handleChange(e, record.key, col, index)' |
| | | /> |
| | | |
| | | <a-select |
| | | v-if="col.dataIndex == 'equipmentTransferCatrgoryId'" |
| | | :value='text' |
| | | placeholder='è¯·éæ©' |
| | | :disabled="disableSubmit" |
| | | :options='record.transferMethodVoList' |
| | | @change='(e) => handleChange(e, record.key, col, index)' |
| | | style='width: 100%' |
| | | /> |
| | | |
| | | </div> |
| | | </template> |
| | | <span |
| | | slot='action' |
| | | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <a-popconfirm |
| | | title='ç¡®å®å é¤å?' |
| | | :disabled="disableSubmit" |
| | | @confirm='() => handleDelete(text,record, index)' |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | <template slot='footer'> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click='handleCancel()' |
| | | > |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button |
| | | @click='handleOk()' |
| | | type='primary' |
| | | :disabled="disableSubmit" |
| | | :loading='confirmLoading' |
| | | >ç¡®å® |
| | | </a-button> |
| | | </template> |
| | | <j-select-equipment-modal |
| | | ref='equipmentTransferInModalForm'></j-select-equipment-modal> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import JMultiSelectTag from '@/components/dict/JMultiSelectTag' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import pick from 'lodash.pick' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import JSelectEquipmentModal from '@views/common/JSelectEquipmentModal' |
| | | |
| | | export default { |
| | | name: 'EquipmentTransferInDetailModal', |
| | | components: { |
| | | JMultiSelectTag, |
| | | Tooltip, |
| | | JSelectEquipmentModal |
| | | }, |
| | | data() { |
| | | return { |
| | | replaceFields: { |
| | | value: 'key' |
| | | }, |
| | | |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 100 |
| | | }, |
| | | { |
| | | title: '设å¤ç¼ç ', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'equipmentName' |
| | | }, |
| | | { |
| | | title: 'è§æ ¼', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'specification' |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | | width: 100, |
| | | align: 'center', |
| | | dataIndex: 'model' |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | align: 'center', |
| | | width: 100, |
| | | dataIndex: 'technicalStatus' |
| | | }, |
| | | { |
| | | title: 'éæ±æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'demandDate', |
| | | width: 200, |
| | | scopedSlots: { |
| | | customRender: 'demandDate' |
| | | } |
| | | |
| | | }, |
| | | { |
| | | title: 'è°å
¥æ¥æ', |
| | | align: 'center', |
| | | width: 200, |
| | | dataIndex: 'actualInDate', |
| | | scopedSlots: { |
| | | customRender: 'actualInDate' |
| | | } |
| | | |
| | | }, |
| | | { |
| | | title: 'å¢å æ¹å¼', |
| | | align: 'center', |
| | | width: 150, |
| | | dataIndex: 'equipmentTransferCatrgoryId', |
| | | scopedSlots: { |
| | | customRender: 'equipmentTransferCatrgoryId' |
| | | } |
| | | }, |
| | | |
| | | { |
| | | title: 'è°å
¥ç®¡çé¨é¨', |
| | | align: 'center', |
| | | width: 150, |
| | | dataIndex: 'inDepartId', |
| | | |
| | | scopedSlots: { |
| | | customRender: 'inDepartId' |
| | | } |
| | | }, |
| | | { |
| | | title: 'è°å
¥ç®¡ç人', |
| | | align: 'center', |
| | | width: 150, |
| | | dataIndex: 'inManagerId', |
| | | scopedSlots: { |
| | | customRender: 'inManagerId' |
| | | } |
| | | }, |
| | | { |
| | | title: 'è°å
¥è´£ä»»çç»', |
| | | width: 150, |
| | | align: 'center', |
| | | dataIndex: 'responsibilityTeamId', |
| | | scopedSlots: { |
| | | customRender: 'responsibilityTeamId' |
| | | } |
| | | }, |
| | | { |
| | | title: 'è°å
¥è´£ä»»äºº', |
| | | width: 150, |
| | | align: 'center', |
| | | dataIndex: 'responsibilityUserId', |
| | | scopedSlots: { |
| | | customRender: 'responsibilityUserId' |
| | | } |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | width: 150, |
| | | align: 'center', |
| | | dataIndex: 'useDepartId', |
| | | scopedSlots: { |
| | | customRender: 'useDepartId' |
| | | } |
| | | }, |
| | | |
| | | { |
| | | title: 'è°å
¥ä½ç½®', |
| | | width: 150, |
| | | align: 'center', |
| | | dataIndex: 'position', |
| | | scopedSlots: { |
| | | customRender: 'position' |
| | | } |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | width: 100, |
| | | align: 'center', |
| | | dataIndex: 'action', |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | } |
| | | } |
| | | ], |
| | | title: 'æä½', |
| | | visible: false, |
| | | visible4Confirm: false, |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | model: {}, |
| | | dateFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | transferMethodVoList: {}, |
| | | text: '', |
| | | position: '', |
| | | userVoList: {}, |
| | | teamVoList: {}, |
| | | departVoList: {}, |
| | | workOrder: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请è¾å
¥åå·!' }, |
| | | { validator: (rule, value, callback) => validateDuplicateValue('mom_eam_equipment_transfer', 'num', value, this.model.id, callback) } |
| | | ], |
| | | outEnterpriseId: [ |
| | | { required: true, message: '请è¾å
¥è°åºä¼ä¸!' } |
| | | |
| | | ], |
| | | inEnterpriseId: [ |
| | | { required: true, message: '请è¾å
¥è°å
¥ä¼ä¸!' } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | url: { |
| | | add: '/eam/equipmentTransfer/add', |
| | | edit: '/eam/equipmentTransfer/edit', |
| | | loadTree: '/base/enterprise/enterpriseTree', |
| | | getTransferMethod: '/eam/equipmentTransferInDetail/getTransferMethod', |
| | | userVoList: '/eam/equipmentTransferInDetail/getUser', |
| | | teamVoList: '/eam/equipmentTransferInDetail/getTeam', |
| | | departVoList: 'eam/equipmentTransferInDetail/getDepart' |
| | | }, |
| | | treeDataSource: [], |
| | | dataSource: [], |
| | | enterpriseId: '', |
| | | inEnterpriseId: '' |
| | | |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.queryTreeData() |
| | | }, |
| | | |
| | | mounted() { |
| | | this.$bus.$on('selectionRows', (data) => { |
| | | for (let i = 0; i < data.length; i++) { |
| | | this.dataSource.push({ |
| | | id: data[i].id, |
| | | equipmentId: data[i].id, |
| | | equipmentNum: data[i].num, |
| | | equipmentName: data[i].name, |
| | | model: data[i].model, |
| | | specification: data[i].specification, |
| | | technicalStatus: data[i].technologyStatus_dictText, |
| | | transferMethodVoList: this.transferMethodVoList, |
| | | userVoList: this.userVoList, |
| | | teamVoList: this.teamVoList, |
| | | departVoList: this.departVoList |
| | | |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | | getTransferMethod() { |
| | | getAction(this.url.getTransferMethod, { type: 'add' }).then((res) => { |
| | | if (res.success) { |
| | | this.transferMethodVoList = res.result |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /*è·åé¨é¨å表*/ |
| | | getInDepartList() { |
| | | getAction(this.url.departVoList).then((res) => { |
| | | if (res.success) { |
| | | this.departVoList = res.result |
| | | |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | /*è·å管ç人å表*/ |
| | | getInUseList() { |
| | | getAction(this.url.userVoList).then((res) => { |
| | | if (res.success) { |
| | | |
| | | this.userVoList = res.result |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /*è·å责任çç»å表*/ |
| | | getInTeamList() { |
| | | getAction(this.url.teamVoList).then((res) => { |
| | | if (res.success) { |
| | | |
| | | this.teamVoList = res.result |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /*è·åä¼ä¸æ ä¿¡æ¯*/ |
| | | queryTreeData() { |
| | | this.loading = true |
| | | this.cardLoading = true |
| | | getAction(this.url.loadTree, { version: 4 }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | this.treeDataSource = res.result |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }) |
| | | .finally((res) => { |
| | | this.loading = false |
| | | this.cardLoading = false |
| | | }) |
| | | }, |
| | | //éæ©ç¹æ£é¡¹ç® |
| | | selectInspectionProjects: function() { |
| | | let ids = [] |
| | | for (let i = 0; i < this.dataSource.length; i++) { |
| | | ids.push(this.dataSource[i].equipmentId) |
| | | } |
| | | this.$refs.equipmentTransferInModalForm.showModals(ids) |
| | | this.$refs.equipmentTransferInModalForm.title = 'éæ©è®¾å¤ä¿¡æ¯' |
| | | this.$refs.equipmentTransferInModalForm.disableSubmit = false |
| | | }, |
| | | |
| | | add() { |
| | | this.model.transferType = 'add' |
| | | this.edit(this.model, { equipmentTransferInDetailList: [] }) |
| | | }, |
| | | |
| | | |
| | | edit(record) { |
| | | let that = this |
| | | this.getTransferMethod() |
| | | this.getInDepartList() |
| | | this.getInUseList() |
| | | this.getInTeamList() |
| | | that.dataSource = [] |
| | | this.form.resetFields() |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | | if (record.equipmentTransferInDetailList != undefined) { |
| | | const temp = [...record.equipmentTransferInDetailList] |
| | | that.dataSource = temp |
| | | } |
| | | that.$nextTick(() => { |
| | | that.form.setFieldsValue(pick(that.model, 'num', 'inEnterpriseId', 'outEnterpriseId', 'remark')) |
| | | }) |
| | | if (record.id) { |
| | | this.codeDisable = true |
| | | } else { |
| | | this.codeDisable = false |
| | | } |
| | | }, |
| | | |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | handleChangeInEnterpriseId(value) { |
| | | this.enterpriseId = value |
| | | console.log('è°åº' + this.enterpriseId) |
| | | }, |
| | | handleChangeOutEnterpriseId(value) { |
| | | this.inEnterpriseId = value |
| | | console.log('è°å
¥' + this.inEnterpriseId) |
| | | }, |
| | | |
| | | handleChange(value, key, column, index) { |
| | | let that = this |
| | | const temp = [...that.dataSource] |
| | | const target = temp.filter(item => key === item.key)[index] |
| | | if (target) { |
| | | |
| | | if (column.dataIndex == 'demandDate') { |
| | | |
| | | target[column.dataIndex] = value |
| | | |
| | | } else if (column.dataIndex == 'actualInDate') { |
| | | target[column.dataIndex] = value |
| | | |
| | | } else if (column.dataIndex == 'inManagerId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | } else if (column.dataIndex == 'equipmentTransferCatrgoryId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | this.text = value |
| | | |
| | | } else if (column.dataIndex == 'inDepartId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | |
| | | } else if (column.dataIndex == 'responsibilityUserId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | |
| | | } else if (column.dataIndex == 'useDepartId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | |
| | | } else if (column.dataIndex == 'position') { |
| | | |
| | | target[column.dataIndex] = value.target.value |
| | | } else if (column.dataIndex == 'responsibilityTeamId') { |
| | | |
| | | target[column.dataIndex] = value |
| | | } |
| | | //æ¾ç¤ºå¸¦è¿æ¥çæ°æ® |
| | | |
| | | that.dataSource = temp |
| | | |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let formData = Object.assign(this.model, valid) |
| | | formData.equipmentTransferInDetailList = that.dataSource |
| | | if (that.dataSource.length ===0){ |
| | | that.confirmLoading = false |
| | | that.$message.warning("请添å è°å
¥æç»") |
| | | return |
| | | } |
| | | formData.equipmentTransferCatrgoryId = this.text |
| | | for (let annItem of that.dataSource) { |
| | | if (annItem.specification == undefined || annItem.specification == null || annItem.specification == '') { |
| | | that.$message.warning('请填åè§æ ¼') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.model == undefined || annItem.model == null || annItem.model == '') { |
| | | that.$message.warning('请填ååå·') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.equipmentName == undefined || annItem.equipmentName == null || annItem.equipmentName == '') { |
| | | that.$message.warning('设å¤åç§°ä¸è½ä¸ºç©º') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.equipmentId == undefined || annItem.equipmentId == null || annItem.equipmentId == '') { |
| | | that.$message.warning('å½å设å¤ä¿¡æ¯é误ï¼éæ°éæ©è®¾å¤') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.demandDate == undefined || annItem.demandDate == null || annItem.demandDate == '') { |
| | | that.$message.warning('请填åéæ±æ¥æ') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.inDepartId == undefined || annItem.inDepartId == null || annItem.inDepartId == '') { |
| | | that.$message.warning('请填åè°å
¥ç®¡çé¨é¨') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.inManagerId == undefined || annItem.inManagerId == null || annItem.inManagerId == '') { |
| | | that.$message.warning('请填åè°å
¥ç®¡ç人') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | if (annItem.inManagerId == undefined || annItem.useDepartId == null || annItem.useDepartId == '') { |
| | | that.$message.warning('请填åè°å
¥è´£ä»»é¨é¨') |
| | | that.confirmLoading = false |
| | | return |
| | | } |
| | | |
| | | |
| | | } |
| | | let obj |
| | | if (!this.model.id) { |
| | | obj = postAction(this.url.add, formData) |
| | | } else { |
| | | obj = requestPut(this.url.edit, formData, { id: this.model.id }) |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.model = {} |
| | | that.confirmLoading = false |
| | | this.$set(this.model, 'auditStatus', 'notSubmitted') |
| | | that.close() |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1) |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang='less' scoped> |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | </style> |