¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="sync-process-container"> |
| | | <a-spin :spinning="loading"> |
| | | <a-table |
| | | :columns="columns" |
| | | :data-source="syncProcessList" |
| | | rowKey="id" |
| | | :pagination="false" |
| | | class="process-table" |
| | | :scroll="{ y: 400 }" |
| | | > |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm title="ç¡®å®é¢åå?" @confirm="() => handleInspection(record.id)"> |
| | | <a>é¢å</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | </a-table> |
| | | </a-spin> |
| | | |
| | | <!-- 表ååºå --> |
| | | <syncProcessSpecificationInfo-modal ref="modalForm" @ok="modalFormOk"></syncProcessSpecificationInfo-modal> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import SyncProcessSpecificationInfoModal from '../dnc/base/modules/SyncProcessSpecificationInfo/SyncProcessSpecificationInfoModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: "SyncProcessSpecificationInfoList", |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | SyncProcessSpecificationInfoModal |
| | | }, |
| | | data() { |
| | | return { |
| | | syncProcessList: [], |
| | | url: { |
| | | list: '/dnc/home/syncProcessSpecificationInfo', |
| | | isSameNode: '/assign/flow/isSameNode', |
| | | receiveInspectionOrder:"/dnc/home/receiveTree" |
| | | }, |
| | | // è¡¨æ ¼åé
ç½® |
| | | columns: [ |
| | | { |
| | | title: '产å代å·', |
| | | align: "center", |
| | | dataIndex: 'productCode', |
| | | scopedSlots: { customRender: 'productCode' }, |
| | | width: '10%' |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶åç§°', |
| | | align: "center", |
| | | dataIndex: 'partName', |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'partNumber', |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶çæ¬', |
| | | align: "center", |
| | | dataIndex: 'partVersion', |
| | | }, |
| | | { |
| | | title: 'å·¥èºè§ç¨ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'planNumber', |
| | | }, |
| | | { |
| | | title: 'å·¥èºè§ç¨çæ¬', |
| | | align: "center", |
| | | dataIndex: 'planVersion', |
| | | }, |
| | | { |
| | | title: 'å叿¶é´', |
| | | align: "center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: "center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | handleReceive(item) { |
| | | console.log('é¢åä»»å¡', item); |
| | | // å®é
ä¸å¡ä¸è°ç¨é¢åæ¥å£ |
| | | this.$message.success('ä»»å¡é¢åæå'); |
| | | // æ´æ°æ¬å°æ°æ®ç¶æ |
| | | this.syncProcessList = this.syncProcessList.map(i => |
| | | i.id === item.id ? {...i, isReceive: true} : i |
| | | ); |
| | | }, |
| | | loadData() { |
| | | this.syncProcessList = []; |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!'); |
| | | return; |
| | | } |
| | | this.loading = true; |
| | | getAction(this.url.list).then((res) => { |
| | | if (res.success) { |
| | | // 使ç¨ç宿¥å£æ°æ® |
| | | this.syncProcessList = res.result.records || res.result; |
| | | } else { |
| | | this.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** |
| | | * é¢å |
| | | * @param id |
| | | */ |
| | | handleInspection(id) { |
| | | var that = this |
| | | this.loading = true |
| | | getAction(that.url.receiveInspectionOrder, { id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.loadData(); |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | |
| | | .sync-process-container { |
| | | padding: 16px; |
| | | background-color: #fff; |
| | | border-radius: 8px; |
| | | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); |
| | | height: 500px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .table-header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-bottom: 16px; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .table-title { |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | color: #1d2129; |
| | | } |
| | | |
| | | .more-button { |
| | | background-color: #1890ff; |
| | | border-color: #1890ff; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .more-button:hover { |
| | | background-color: #40a9ff; |
| | | border-color: #40a9ff; |
| | | } |
| | | |
| | | /* è¡¨æ ¼æ ·å¼ */ |
| | | .process-table { |
| | | flex: 1; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 产å代å·é¾æ¥æ ·å¼ */ |
| | | .process-table >>> .ant-table-tbody a { |
| | | color: #1890ff; |
| | | transition: color 0.3s; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .process-table >>> .ant-table-tbody a:hover { |
| | | color: #40a9ff; |
| | | text-decoration: underline; |
| | | } |
| | | |
| | | /* æä½æé®æ ·å¼ */ |
| | | .process-table >>> .ant-btn-link { |
| | | padding: 0 4px; |
| | | } |
| | | |
| | | /* è¡¨æ ¼è¡æ¬åææ */ |
| | | .process-table >>> .ant-table-row:hover td { |
| | | background-color: #f0f8ff !important; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | /* è¡¨æ ¼æ»å¨åºåæ ·å¼ */ |
| | | .process-table >>> .ant-table-body { |
| | | overflow-y: auto !important; |
| | | } |
| | | </style> |
| | |
| | | <!-- å³ä¾§ä¸¤ä¸ªå°å¡ç --> |
| | | <div class="right-cards"> |
| | | <div class="card top-card"> |
| | | <h2 class="card-title">å¡ç1</h2> |
| | | <h2 class="card-title">ä¸ç»´å·¥èºçæäº§åç»ææ </h2> |
| | | <h2 class="more-btns" @click = "gotoSyncProcessList">æ´å¤</h2> |
| | | <div class="card-content"> |
| | | <syncProcessList |
| | | ref="syncProcessList" |
| | | ></syncProcessList> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | |
| | | <script> |
| | | import TodoList from '@views/dashboard/TodoList.vue' |
| | | import SyncProcessList from '@views/dashboard/SyncProcessList.vue' |
| | | |
| | | |
| | | export default { |
| | | name: 'DncManagerSignage', |
| | | components: { |
| | | TodoList |
| | | TodoList, |
| | | SyncProcessList |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | methods: { |
| | | gotoTodoList() { |
| | | this.$router.push('/flowable/workflow/FlowTodo') |
| | | } |
| | | }, |
| | | gotoSyncProcessList(){ |
| | | this.$router.push('/dnc/base/SyncProcessSpecificationInfoList') |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | border: none; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .more-btns { |
| | | position: absolute; |
| | | top: 140px; |
| | | right: 40px; |
| | | color: #1890ff; |
| | | font-size: 14px; |
| | | background: none; |
| | | border: none; |
| | | cursor: pointer; |
| | | text-decoration: none; |
| | | z-index: 10; |
| | | } |
| | | .top-card { |
| | | flex: 1; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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.productName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="产å代å·"> |
| | | <a-input placeholder="请è¾å
¥äº§å代å·" v-model="queryParam.productCode"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="é¨ä»¶åç§°"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶åç§°" v-model="queryParam.partName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="é¨ä»¶ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶ç¼å·" v-model="queryParam.partNumber"></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> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm title="ç¡®å®é¢åå?" @confirm="() => handleInspection(record.id)"> |
| | | <a>é¢å</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <syncProcessSpecificationInfo-modal ref="modalForm" @ok="modalFormOk"></syncProcessSpecificationInfo-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@assets/less/TableExpand.less' |
| | | import SyncProcessSpecificationInfoModal from './modules/SyncProcessSpecificationInfo/SyncProcessSpecificationInfoModal.vue' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: "SyncProcessSpecificationInfoList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | SyncProcessSpecificationInfoModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ä¸ç»´å·¥èºå·¥èºè§ç¨ä¿¡æ¯ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: '产ååç§°', |
| | | align:"center", |
| | | dataIndex: 'productName' |
| | | }, |
| | | { |
| | | title: '产å代å·', |
| | | align:"center", |
| | | dataIndex: 'productCode' |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶åç§°', |
| | | align:"center", |
| | | dataIndex: 'partName' |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶ç¼å·', |
| | | align:"center", |
| | | dataIndex: 'partNumber' |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶çæ¬', |
| | | align:"center", |
| | | dataIndex: 'partVersion' |
| | | }, |
| | | { |
| | | title: 'å·¥èºè§ç¨ç¼å·', |
| | | align:"center", |
| | | dataIndex: 'planNumber' |
| | | }, |
| | | { |
| | | title: 'å·¥èºè§ç¨çæ¬', |
| | | align:"center", |
| | | dataIndex: 'planVersion' |
| | | }, |
| | | { |
| | | title: 'æ¯å¦é¢å', |
| | | align:"center", |
| | | dataIndex: 'isReceive_dictText' |
| | | }, |
| | | { |
| | | title: 'å叿¶é´', |
| | | align:"center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/dnc/home/syncProcessSpecificationInfo", |
| | | receiveInspectionOrder:"/dnc/home/receiveTree" |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * é¢å |
| | | * @param id |
| | | */ |
| | | handleInspection(id) { |
| | | var that = this |
| | | this.loading = true |
| | | getAction(that.url.receiveInspectionOrder, { id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-drawer |
| | | :title="title" |
| | | :width="800" |
| | | placement="right" |
| | | :closable="false" |
| | | @close="close" |
| | | :visible="visible"> |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dataType" label="æ°æ®ç±»å"> |
| | | <a-input placeholder="请è¾å
¥æ°æ®ç±»å" v-model="model.dataType" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="changeNo" label="æ´æ¹åå·"> |
| | | <a-input placeholder="请è¾å
¥æ´æ¹åå·" v-model="model.changeNo" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partName" label="é¨ä»¶åç§°"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶åç§°" v-model="model.partName" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partNumber" label="é¨ä»¶ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶ç¼å·" v-model="model.partNumber" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partVersion" label="é¨ä»¶çæ¬"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶çæ¬" v-model="model.partVersion" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planNumber" label="å·¥èºè§ç¨ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥å·¥èºè§ç¨ç¼å·" v-model="model.planNumber" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planVersion" label="å·¥èºè§ç¨çæ¬"> |
| | | <a-input placeholder="请è¾å
¥å·¥èºè§ç¨çæ¬" v-model="model.planVersion" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isReceive" label="æ¯å¦é¢å"> |
| | | <a-input placeholder="请è¾å
¥æ¯å¦é¢å" v-model="model.isReceive" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="createDate" label="å叿¶é´"> |
| | | <a-date-picker showTime valueFormat='YYYY-MM-DD HH:mm:ss' v-model="model.createDate" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jsonData" label="jsonå符串信æ¯"> |
| | | <a-input placeholder="请è¾å
¥jsonå符串信æ¯" v-model="model.jsonData" /> |
| | | </a-form-model-item> |
| | | |
| | | </a-form-model> |
| | | </a-spin> |
| | | |
| | | <div class="drawer-bootom-button"> |
| | | <a-button type="primary" @click="handleOk">ç¡®å®</a-button> |
| | | <a-button type="primary" @click="handleCancel">åæ¶</a-button> |
| | | </div> |
| | | </a-drawer> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction } from '@api/manage' |
| | | import moment from "moment" |
| | | |
| | | export default { |
| | | name: "SyncProcessSpecificationInfoModal", |
| | | data () { |
| | | return { |
| | | title:"æä½", |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules:{ |
| | | }, |
| | | url: { |
| | | add: "/dnc/syncProcessSpecificationInfo/add", |
| | | edit: "/dnc/syncProcessSpecificationInfo/edit", |
| | | }, |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | add () { |
| | | //åå§åé»è®¤å¼ |
| | | this.edit({}); |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }else{ |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /**Buttonæé®é´è·*/ |
| | | .ant-btn { |
| | | margin-left: 30px; |
| | | margin-bottom: 30px; |
| | | float: right; |
| | | } |
| | | /**æ½å±æé®æ ·å¼*/ |
| | | .drawer-bootom-button { |
| | | 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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="800" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="dataType" label="æ°æ®ç±»å"> |
| | | <a-input placeholder="请è¾å
¥æ°æ®ç±»å" v-model="model.dataType" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="changeNo" label="æ´æ¹åå·"> |
| | | <a-input placeholder="请è¾å
¥æ´æ¹åå·" v-model="model.changeNo" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partName" label="é¨ä»¶åç§°"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶åç§°" v-model="model.partName" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partNumber" label="é¨ä»¶ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶ç¼å·" v-model="model.partNumber" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partVersion" label="é¨ä»¶çæ¬"> |
| | | <a-input placeholder="请è¾å
¥é¨ä»¶çæ¬" v-model="model.partVersion" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planNumber" label="å·¥èºè§ç¨ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥å·¥èºè§ç¨ç¼å·" v-model="model.planNumber" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="planVersion" label="å·¥èºè§ç¨çæ¬"> |
| | | <a-input placeholder="请è¾å
¥å·¥èºè§ç¨çæ¬" v-model="model.planVersion" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="isReceive" label="æ¯å¦é¢å"> |
| | | <a-input placeholder="请è¾å
¥æ¯å¦é¢å" v-model="model.isReceive" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="createDate" label="å叿¶é´"> |
| | | <a-date-picker showTime valueFormat='YYYY-MM-DD HH:mm:ss' v-model="model.createDate" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jsonData" label="jsonå符串信æ¯"> |
| | | <a-input placeholder="请è¾å
¥jsonå符串信æ¯" v-model="model.jsonData" /> |
| | | </a-form-model-item> |
| | | |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction } from '@api/manage' |
| | | import moment from "moment" |
| | | |
| | | export default { |
| | | name: "SyncProcessSpecificationInfoModal", |
| | | data () { |
| | | return { |
| | | title:"æä½", |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules:{ |
| | | }, |
| | | url: { |
| | | add: "/dnc/syncProcessSpecificationInfo/add", |
| | | edit: "/dnc/syncProcessSpecificationInfo/edit", |
| | | }, |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | add () { |
| | | //åå§åé»è®¤å¼ |
| | | this.edit({}); |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }else{ |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |