¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: NCç¨åºç¾æ´¾æµç¨é
ç½® List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç§°"> |
| | | <a-input placeholder="è¾å
¥æµç¨åç§°" v-model="queryParam.actName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | |
| | | <ActivitiSignExamineModal ref="modalForm" @ok="modalFormOk"></ActivitiSignExamineModal> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@comp/dict/JDictSelectTag.vue' |
| | | import ActivitiSignExamineModal from './modules/ActivitiSingExamine/ActivitiSignExamineModal__Style#Drawer.vue' |
| | | |
| | | export default { |
| | | name: 'AssignApproveUser', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | ActivitiSignExamineModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'NCç¨åºç¾æ´¾æµç¨é
ç½®', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | | align: "center", |
| | | dataIndex: 'actName', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: 'æå±é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'departId_dictText', |
| | | width: 220, |
| | | }, |
| | | { |
| | | title: 'æ ¡å¯¹äººå', |
| | | align: "center", |
| | | dataIndex: 'proofreaderUser_dictText', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'æ¹å人å', |
| | | align: "center", |
| | | dataIndex: 'approveUser_dictText', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'è¯å人å', |
| | | align: "center", |
| | | dataIndex: 'cutterUser_dictText', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'å®å人å', |
| | | align: "center", |
| | | dataIndex: 'typecastUser_dictText', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'æä½æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/nc/activitiSignExamine/find/page", |
| | | delete: "/nc/activitiSignExamine/delete", |
| | | }, |
| | | dictOptions:{}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: NCç¨åºç¾æ´¾æµç¨é
ç½® Form |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form :form="form" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-item label="æµç¨åç§°" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="formDisabled" v-decorator="['actName', validatorRules.actName]" placeholder="请è¾å
¥æµç¨åç§°"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="æå±é¨é¨" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-dict-select-tag :disabled="formDisabled" type="list" v-decorator="['departId']" :trigger-change="true" dictCode="sys_department,depart_name,depart_id" placeholder="è¯·éæ©æå±é¨é¨"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="æ ¡å¯¹äººå" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-select-multi-user valueKey="id" displayKey="realname" v-decorator="['proofreaderUser']" placeholder="è¯·éæ©å®¡æ¹äºº"/> |
| | | {{ getFormFieldValue('proofreaderUser') }} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="æ¹å人å" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-select-multi-user valueKey="id" displayKey="realname" v-decorator="['approveUser']" placeholder="è¯·éæ©å®¡æ¹äºº"/> |
| | | {{ getFormFieldValue('approveUser') }} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="è¯å人å" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-select-multi-user valueKey="id" displayKey="realname" v-decorator="['cutterUser']" placeholder="è¯·éæ©å®¡æ¹äºº"/> |
| | | {{ getFormFieldValue('cutterUser') }} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item label="å®å人å" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <j-select-multi-user valueKey="id" displayKey="realname" v-decorator="['typecastUser']" placeholder="è¯·éæ©å®¡æ¹äºº"/> |
| | | {{ getFormFieldValue('typecastUser') }} |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center"> |
| | | <a-button @click="submitForm">æ 交</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import pick from 'lodash.pick' |
| | | import JFormContainer from '@/components/jeecg/JFormContainer' |
| | | import JDictSelectTag from "@/components/dict/JDictSelectTag" |
| | | |
| | | export default { |
| | | name: 'ActivitiSignExamineForm', |
| | | components: { |
| | | JFormContainer, |
| | | JDictSelectTag, |
| | | }, |
| | | props: { |
| | | //æµç¨è¡¨ådata |
| | | formData: { |
| | | type: Object, |
| | | default: ()=>{}, |
| | | required: false |
| | | }, |
| | | //è¡¨åæ¨¡å¼ï¼trueæµç¨è¡¨å falseæ®é表å |
| | | formBpm: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | form: this.$form.createForm(this), |
| | | users:"", |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | actName: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥æµç¨åç§°!'}, |
| | | ] |
| | | }, |
| | | departId: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©é¨é¨åç»!'}, |
| | | ] |
| | | }, |
| | | approveUsers: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©å®¡æ¹äºº!'}, |
| | | ] |
| | | }, |
| | | characters: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥ç¹æ®å符!'}, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | add: "/nc/activitiSignExamine/add", |
| | | edit: "/nc/activitiSignExamine/edit", |
| | | // queryById: "/zhshj/wglltwh/query/by/id" |
| | | }, |
| | | userOptions:[] |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | if(this.formBpm===true){ |
| | | if(this.formData.disabled===false){ |
| | | return false |
| | | } |
| | | return true |
| | | } |
| | | return this.disabled |
| | | }, |
| | | showFlowSubmitButton(){ |
| | | if(this.formBpm===true){ |
| | | if(this.formData.disabled===false){ |
| | | return true |
| | | } |
| | | } |
| | | return false |
| | | } |
| | | }, |
| | | created () { |
| | | //å¦ææ¯æµç¨ä¸è¡¨åï¼åéè¦å è½½æµç¨è¡¨ådata |
| | | this.showFlowData(); |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.edit({}); |
| | | }, |
| | | edit (record) { |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model,'actName','departId','approveUsers')) |
| | | }) |
| | | }, |
| | | getFormFieldValue(field){ |
| | | return this.form.getFieldValue(field) |
| | | }, |
| | | //æ¸²ææµç¨è¡¨åæ°æ® |
| | | showFlowData(){ |
| | | if(this.formBpm === true){ |
| | | let params = {id:this.formData.dataId}; |
| | | getAction(this.url.queryById,params).then((res)=>{ |
| | | if(res.success){ |
| | | this.edit (res.result); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | let formData = Object.assign(this.model, values); |
| | | console.log("表åæäº¤æ°æ®",formData) |
| | | httpAction(httpurl,formData,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | popupCallback(row){ |
| | | this.form.setFieldsValue(pick(row,'actName','departId','approveUsers')) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: NCç¨åºç¾æ´¾æµç¨é
ç½® Modal |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <ActivitiSignExamineForm ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></ActivitiSignExamineForm> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import ActivitiSignExamineForm from './ActivitiSignExamineForm.vue' |
| | | export default { |
| | | name: 'AssignApproveUserModal', |
| | | components: { |
| | | ActivitiSignExamineForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: NCç¨åºç¾æ´¾æµç¨é
ç½® Modal-Drawer |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <a-drawer |
| | | :title="title" |
| | | :width="width" |
| | | placement="right" |
| | | :closable="false" |
| | | @close="close" |
| | | destroyOnClose |
| | | :visible="visible"> |
| | | <ActivitiSignExamineForm ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></ActivitiSignExamineForm> |
| | | <div class="drawer-footer"> |
| | | <a-button @click="handleCancel" style="margin-bottom: 0;">å
³é</a-button> |
| | | <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">æäº¤</a-button> |
| | | </div> |
| | | </a-drawer> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | |
| | | |
| | | import ActivitiSignExamineForm from './ActivitiSignExamineForm.vue' |
| | | |
| | | export default { |
| | | name: 'AssignApproveUserModal', |
| | | components: { |
| | | ActivitiSignExamineForm, |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | width: 800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit(record) { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(record); |
| | | }); |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | submitCallback() { |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk() { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /** Buttonæé®é´è· */ |
| | | .ant-btn { |
| | | margin-left: 30px; |
| | | margin-bottom: 30px; |
| | | float: right; |
| | | } |
| | | .drawer-footer{ |
| | | position: absolute; |
| | | bottom: -8px; |
| | | width: 100%; |
| | | border-top: 1px solid #e8e8e8; |
| | | padding: 10px 16px; |
| | | text-align: right; |
| | | left: 0; |
| | | background: #fff; |
| | | border-radius: 0 0 2px 2px; |
| | | } |
| | | </style> |