Authored by 李奇

缺货修改

@@ -7,12 +7,15 @@ @@ -7,12 +7,15 @@
7 </p> 7 </p>
8 <p class="row">缺货数:{{lackNum}}</p> 8 <p class="row">缺货数:{{lackNum}}</p>
9 <p class="row"> 9 <p class="row">
10 - <Button type="error" @click="confirm">上传确认缺货</Button> 10 + <Button type="error" @click="upload">上传确认缺货</Button>
11 </p> 11 </p>
  12 + <UploadStockOut ref="stockOut"></UploadStockOut>
12 </div> 13 </div>
13 </template> 14 </template>
14 15
15 <script> 16 <script>
  17 + import { UploadStockOut } from 'components/modal'
  18 +
16 export default { 19 export default {
17 name: 'CellDeliver', 20 name: 'CellDeliver',
18 props: { 21 props: {
@@ -25,13 +28,15 @@ @@ -25,13 +28,15 @@
25 } 28 }
26 }, 29 },
27 methods: { 30 methods: {
28 - confirm(){  
29 - this.$em  
30 - this.$Message.error('上传缺货') 31 + upload(){
  32 + this.$refs.stockOut.show();
31 }, 33 },
32 change(val){ 34 change(val){
33 this.$emit('num-change', val) 35 this.$emit('num-change', val)
34 } 36 }
  37 + },
  38 + components: {
  39 + UploadStockOut
35 } 40 }
36 } 41 }
37 </script> 42 </script>
1 <template> 1 <template>
2 <Modal 2 <Modal
3 v-model="showModal" 3 v-model="showModal"
4 - @on-ok="ok"  
5 - @on-cancel="cancel" 4 + @on-ok="clickOk"
  5 + @on-cancel="clickCancel"
6 width="auto" 6 width="auto"
7 - class-name="out-stock-modal" 7 + class-name="upload-stock-modal"
8 cancel-text="取消" 8 cancel-text="取消"
9 ok-text="提交"> 9 ok-text="提交">
10 <div class="detail"> 10 <div class="detail">
@@ -59,12 +59,9 @@ export default { @@ -59,12 +59,9 @@ export default {
59 show() { 59 show() {
60 this.showModal = true; 60 this.showModal = true;
61 }, 61 },
62 - ok(){  
63 - 62 + clickOk(){
64 }, 63 },
65 - cancel(){  
66 - this.$Message.info('click cancel')  
67 - 64 + clickCancel(){
68 } 65 }
69 } 66 }
70 }; 67 };
@@ -72,7 +69,7 @@ export default { @@ -72,7 +69,7 @@ export default {
72 69
73 <style lang="scss"> 70 <style lang="scss">
74 71
75 - .out-stock-modal { 72 + .upload-stock-modal {
76 .detail { 73 .detail {
77 height: 200px; 74 height: 200px;
78 } 75 }
@@ -45,7 +45,6 @@ @@ -45,7 +45,6 @@
45 @on-change="pageChange" :page-size="20" show-total></Page> 45 @on-change="pageChange" :page-size="20" show-total></Page>
46 </LayoutList> 46 </LayoutList>
47 47
48 - <UploadStockOut ref="stockOut"></UploadStockOut>  
49 <DeliverProduct ref="deliver"></DeliverProduct> 48 <DeliverProduct ref="deliver"></DeliverProduct>
50 </div> 49 </div>
51 </template> 50 </template>