Commit da8c34bc19e5995f608158f481dd0f5a840d3a99
1 parent
aae5f85d
完善缺料和领料信息
Showing
2 changed files
with
49 additions
and
0 deletions
src/views/material/MaterialCollection.vue
... | ... | @@ -92,6 +92,11 @@ |
92 | 92 | <span slot="receive" slot-scope="text, record"> |
93 | 93 | <a @click="receiveClick(record)">{{ numFormat(record.llqty) }}</a> |
94 | 94 | </span> |
95 | + | |
96 | + <span slot="openPlan" slot-scope="text, record"> | |
97 | + <a @click="openPlan(record)">{{ record.plan }}</a> | |
98 | + </span> | |
99 | + | |
95 | 100 | <span slot="inStock" slot-scope="text, record"> |
96 | 101 | <a @click="inventoryClick(record)">{{ numFormat(record.qty) }}</a> |
97 | 102 | </span> |
... | ... | @@ -122,6 +127,24 @@ |
122 | 127 | org-fields="username" |
123 | 128 | dest-fields="popup" |
124 | 129 | field="popup"/> |
130 | + | |
131 | + <j-popup | |
132 | + v-show="showRentPrise" | |
133 | + ref="getPlanProcess" | |
134 | + code="getPlanProcess" | |
135 | + :param="processParam" | |
136 | + org-fields="username" | |
137 | + dest-fields="popup" | |
138 | + field="popup"/> | |
139 | + | |
140 | + <j-popup | |
141 | + v-show="showRentPrise" | |
142 | + ref="shipment_details" | |
143 | + code="find_shipment_detail" | |
144 | + :param="shipmentParam" | |
145 | + org-fields="username" | |
146 | + dest-fields="popup" | |
147 | + field="popup"/> | |
125 | 148 | <j-popup |
126 | 149 | v-show="showRentPrise" |
127 | 150 | ref="inventory_details" |
... | ... | @@ -151,6 +174,7 @@ export default { |
151 | 174 | return { |
152 | 175 | materialParam:{code:''}, |
153 | 176 | shipmentParam:{code:'',moCode:''}, |
177 | + processParam:{no:'',workno:''}, | |
154 | 178 | inventoryParam:{code:''}, |
155 | 179 | param1:{field0054:'',field0057:''}, |
156 | 180 | description: '菜单管理页面', |
... | ... | @@ -211,6 +235,14 @@ export default { |
211 | 235 | dataIndex: 'f04' |
212 | 236 | }, |
213 | 237 | { |
238 | + title: '计划', | |
239 | + align: 'center', | |
240 | + dataIndex: 'plan', | |
241 | + scopedSlots:{ | |
242 | + customRender:'openPlan' | |
243 | + } | |
244 | + }, | |
245 | + { | |
214 | 246 | title: '领料', |
215 | 247 | align: 'center', |
216 | 248 | dataIndex: 'llqty', |
... | ... | @@ -287,6 +319,18 @@ export default { |
287 | 319 | this.shipmentParam['moCode'] = "'"+data.workno+"'"; |
288 | 320 | this.$refs.shipment_details.openModal(); |
289 | 321 | }, |
322 | + | |
323 | + openPlan(data){ | |
324 | + if(data.f04=='自制'){ | |
325 | + this.processParam['no'] = "'"+data.cno+"'"; | |
326 | + this.processParam['workno'] ="''"+data.workno+"''"; | |
327 | + this.$refs.getPlanProcess.openModal(); | |
328 | + }else{ | |
329 | + | |
330 | + } | |
331 | + | |
332 | + }, | |
333 | + | |
290 | 334 | inventoryClick(data){ |
291 | 335 | this.inventoryParam['code'] = "'"+data.cno+"'"; |
292 | 336 | this.$refs.inventory_details.openModal(); |
... | ... |
src/views/material/MissingMaterialsPlease.vue