Commit 66a1063f102cf86f92219031428865313050e23b
1 parent
1b185fe0
plm抓取页面优化
Showing
5 changed files
with
84 additions
and
19 deletions
src/views/prodectplm/modules/PlmPnoForm.vue
... | ... | @@ -8,11 +8,16 @@ |
8 | 8 | <a-input v-decorator="['pno', validatorRules.pno]" placeholder="请输入节点编码" ></a-input> |
9 | 9 | </a-form-item> |
10 | 10 | </a-col> |
11 | - <a-col :span="24" v-if="play"> | |
12 | - <a-form-item label="是否抓取过" :labelCol="labelCol" :wrapperCol="wrapperCol"> | |
13 | - <a-input v-decorator="['falg']" placeholder="请输入是否抓取过" ></a-input> | |
14 | - </a-form-item> | |
15 | - </a-col> | |
11 | + | |
12 | + | |
13 | + <a-form-item v-if="play" | |
14 | + :labelCol="labelCol" | |
15 | + :wrapperCol="wrapperCol" | |
16 | + label="是否抓取过"> | |
17 | + <j-search-select-tag placeholder="请选择生产令号" v-decorator="['falg']" :dictOptions="searchOptions"> | |
18 | + </j-search-select-tag> | |
19 | + </a-form-item> | |
20 | + | |
16 | 21 | <a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center"> |
17 | 22 | <a-button @click="submitForm">提 交</a-button> |
18 | 23 | </a-col> |
... | ... | @@ -28,6 +33,7 @@ |
28 | 33 | import pick from 'lodash.pick' |
29 | 34 | import { checkPno } from '@api/api' |
30 | 35 | import { validateDuplicateValue } from '@/utils/util' |
36 | + import {ajaxGetDictItems} from "../../../api/api"; | |
31 | 37 | |
32 | 38 | export default { |
33 | 39 | name: 'PlmPnoForm', |
... | ... | @@ -58,6 +64,7 @@ |
58 | 64 | form: this.$form.createForm(this), |
59 | 65 | model: {}, |
60 | 66 | play:false, |
67 | + searchOptions:[], | |
61 | 68 | labelCol: { |
62 | 69 | xs: { span: 24 }, |
63 | 70 | sm: { span: 5 }, |
... | ... | @@ -104,6 +111,7 @@ |
104 | 111 | created () { |
105 | 112 | //如果是流程中表单,则需要加载流程表单data |
106 | 113 | this.showFlowData(); |
114 | + this.getPlmStatus(); | |
107 | 115 | }, |
108 | 116 | methods: { |
109 | 117 | add () { |
... | ... | @@ -133,24 +141,36 @@ |
133 | 141 | }); |
134 | 142 | } |
135 | 143 | }, |
144 | + | |
145 | + getPlmStatus() { | |
146 | + ajaxGetDictItems('pstatus').then((res) => { | |
147 | + if (res.success) { | |
148 | + this.searchOptions = res.result | |
149 | + } | |
150 | + }) | |
151 | + }, | |
152 | + | |
136 | 153 | validatePno(rule, value, callback){ |
137 | 154 | var params = { |
138 | 155 | pno: value, |
139 | 156 | }; |
140 | - checkPno(params).then((res) => { | |
141 | - if (res.success) { | |
142 | - callback() | |
143 | - } else { | |
144 | - callback("节点编号已存在!") | |
145 | - } | |
146 | - }) | |
157 | + if (this.play==false){ | |
158 | + checkPno(params).then((res) => { | |
159 | + if (res.success) { | |
160 | + callback() | |
161 | + } else { | |
162 | + callback("节点编号已存在!") | |
163 | + } | |
164 | + }) | |
165 | + }else{ | |
166 | + callback() | |
167 | + } | |
147 | 168 | }, |
148 | 169 | |
149 | 170 | submitForm () { |
150 | 171 | const that = this; |
151 | 172 | // 触发表单验证 |
152 | 173 | this.form.validateFields((err, values) => { |
153 | - debugger | |
154 | 174 | if (!err) { |
155 | 175 | that.confirmLoading = true; |
156 | 176 | let httpurl = ''; |
... | ... |
src/views/scheduler/SchedulerDetailList.vue
... | ... | @@ -108,7 +108,7 @@ |
108 | 108 | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
109 | 109 | import SchedulerDetailModal from './modules/SchedulerDetailModal' |
110 | 110 | import SchedulerCompleteModal from '@views/scheduler/modules/SchedulerCompleteModal' |
111 | -import { getTechnology, getTechnologyType } from '@api/api' | |
111 | +import { getTechnology, getTechnologyType,deletePl } from '@api/api' | |
112 | 112 | import { queryDetailList } from '../../api/schedulerApi' |
113 | 113 | |
114 | 114 | export default { |
... | ... | @@ -140,6 +140,7 @@ export default { |
140 | 140 | description: '生产计划管理页面', |
141 | 141 | disableMixinCreated: true, |
142 | 142 | expandedRowKeys: [], |
143 | + id:'', | |
143 | 144 | // 表头 |
144 | 145 | columns: [ |
145 | 146 | { |
... | ... | @@ -261,7 +262,8 @@ export default { |
261 | 262 | url: { |
262 | 263 | list: '/scheduler/schedulerDetail/list', |
263 | 264 | delete: '/scheduler/schedulerHeader/deleteSchedulerDetail', |
264 | - deleteBatch: '/scheduler/schedulerHeader/deleteBatchSchedulerDetail', | |
265 | + // deleteBatch: '/scheduler/schedulerHeader/deleteBatchSchedulerDetail', | |
266 | + deleteBatch: '/scheduler/schedulerDetail/deleteBatch', | |
265 | 267 | exportXlsUrl: '/scheduler/schedulerHeader/exportSchedulerDetail', |
266 | 268 | importUrl: '/scheduler/schedulerHeader/importSchedulerDetail' |
267 | 269 | }, |
... | ... | @@ -313,9 +315,13 @@ export default { |
313 | 315 | this.$refs.modalForm.title = '增加' |
314 | 316 | this.$refs.modalForm.disableSubmit = false |
315 | 317 | }, |
316 | - selectChanges(selectedRowKeys, selectionRows) { | |
317 | 318 | |
319 | + | |
320 | + selectChanges(selectedRowKeys, selectionRows) { | |
321 | + this.selectedRowKeys = selectedRowKeys; | |
322 | + this.selectionRows = selectionRows; | |
318 | 323 | }, |
324 | + | |
319 | 325 | getTechnologyTypeList() { |
320 | 326 | const that = this |
321 | 327 | let obj = getTechnologyType() |
... | ... |
src/views/scheduler/modules/PBOMList.vue
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | </template> |
11 | 11 | |
12 | 12 | <a-row :gutter="12"> |
13 | - <a-col :md="7" :sm="8"> | |
13 | + <a-col :md="5" :sm="8"> | |
14 | 14 | <a-form-item label="节点编码" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> |
15 | 15 | <!-- <a-input placeholder="请输入节点编码" v-model="no" @keyup.enter="searchEnterFun($event)" ></a-input>--> |
16 | 16 | <a-select |
... | ... | @@ -25,12 +25,18 @@ |
25 | 25 | </a-form-item> |
26 | 26 | </a-col> |
27 | 27 | |
28 | - <a-col :md="7" :sm="8"> | |
28 | + <a-col :md="4" :sm="8"> | |
29 | 29 | <a-form-item label="物料名称" :labelCol="{span: 6}" :wrapperCol="{span: 14, offset: 1}"> |
30 | 30 | <a-input placeholder="请输入物料名称" v-model="name" @keyup.enter="searchEnterFun($event)" ></a-input> |
31 | 31 | </a-form-item> |
32 | 32 | </a-col> |
33 | 33 | |
34 | + <a-col :md="5" :sm="8"> | |
35 | + <a-form-item label="图号" :labelCol="{span: 3}" :wrapperCol="{span: 14, offset: 1}"> | |
36 | + <a-input placeholder="请输入图号" v-model="f08" @keyup.enter="searchEnterFun($event)" ></a-input> | |
37 | + </a-form-item> | |
38 | + </a-col> | |
39 | + | |
34 | 40 | <a-col :md="6" :sm="8"> |
35 | 41 | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
36 | 42 | <a-button type="primary" @click="queryBom" icon="search">查询</a-button> |
... | ... | @@ -88,6 +94,7 @@ export default { |
88 | 94 | no: '', |
89 | 95 | cno:'', |
90 | 96 | name:'', |
97 | + f08:'', | |
91 | 98 | loading: false, |
92 | 99 | dataSource:[], |
93 | 100 | bomIdList:[], |
... | ... | @@ -224,6 +231,7 @@ export default { |
224 | 231 | var params = this.getQueryParams()//查询条件 |
225 | 232 | params.pno=this.no |
226 | 233 | params.name=this.name |
234 | + params.f08=this.f08 | |
227 | 235 | this.uuid=this.no |
228 | 236 | queryBomProcess(params).then((res) => { |
229 | 237 | if (res.code==200) { |
... | ... | @@ -241,6 +249,8 @@ export default { |
241 | 249 | searchReset() { |
242 | 250 | var that = this; |
243 | 251 | that.no = ""; |
252 | + that.name=""; | |
253 | + that.f08=""; | |
244 | 254 | } |
245 | 255 | |
246 | 256 | |
... | ... |
src/views/scheduler/modules/importBom.vue
... | ... | @@ -38,6 +38,13 @@ |
38 | 38 | </j-search-select-tag> |
39 | 39 | </a-form-item> |
40 | 40 | |
41 | + <a-form-item | |
42 | + :labelCol="labelCol" | |
43 | + :wrapperCol="wrapperCol" | |
44 | + label="bom套数"> | |
45 | + <a-input placeholder="请输入正整数" :disabled="roleDisabled" v-decorator.trim="['multiple',validatorRules.multiple]" /> | |
46 | + </a-form-item> | |
47 | + | |
41 | 48 | </a-form> |
42 | 49 | </a-spin> |
43 | 50 | </a-modal> |
... | ... | @@ -83,7 +90,12 @@ export default { |
83 | 90 | },{ |
84 | 91 | validator: this.validateName, |
85 | 92 | }] |
86 | - }, | |
93 | + },multiple:{ | |
94 | + rules: [ | |
95 | + {validator: this.validateDigits}, | |
96 | + ] | |
97 | + } | |
98 | + | |
87 | 99 | }, |
88 | 100 | } |
89 | 101 | }, |
... | ... | @@ -136,6 +148,7 @@ export default { |
136 | 148 | }, |
137 | 149 | |
138 | 150 | handleOk () { |
151 | + | |
139 | 152 | const that = this; |
140 | 153 | // 触发表单验证 |
141 | 154 | this.form.validateFields((err, values) => { |
... | ... | @@ -144,6 +157,7 @@ export default { |
144 | 157 | values.projectName = (values.projectName || '').trim() |
145 | 158 | values.orderNo = (values.orderNo || '').trim() |
146 | 159 | values.no = (values.no || '').trim() |
160 | + //values.multiple = (values.multiple || '').trim() | |
147 | 161 | let formData = Object.assign(this.model, values); |
148 | 162 | let obj; |
149 | 163 | obj=importBom(formData); |
... | ... | @@ -177,6 +191,14 @@ export default { |
177 | 191 | }) |
178 | 192 | }, |
179 | 193 | |
194 | + validateDigits(rule, value, callback){ | |
195 | + if(!(/(^[1-9]\d*$)/.test(value))){ | |
196 | + callback("输入正整数!") | |
197 | + }else{ | |
198 | + callback() | |
199 | + } | |
200 | + }, | |
201 | + | |
180 | 202 | } |
181 | 203 | } |
182 | 204 | </script> |
... | ... |
src/views/system/ProjectList.vue
... | ... | @@ -77,6 +77,13 @@ export default { |
77 | 77 | list: '/oa/projectc/list' |
78 | 78 | }, |
79 | 79 | dataSource: [], |
80 | + pagination: { | |
81 | + defaultPageSize: 5, | |
82 | + showTotal: total => `共 ${total} 条数据`, | |
83 | + showSizeChanger: true, | |
84 | + pageSizeOptions: ['5', '10', '15', '20'], | |
85 | + onShowSizeChange: (current, pageSize) => this.pageSize = pageSize | |
86 | + }, | |
80 | 87 | columns:[ |
81 | 88 | { |
82 | 89 | title: '项目名称', |
... | ... |