|
@@ -47,24 +47,26 @@
|
|
|
<el-button @click.stop="" size="medium" type="primary">上下架记录</el-button>
|
|
<el-button @click.stop="" size="medium" type="primary">上下架记录</el-button>
|
|
|
<el-button @click.stop="" size="medium" type="primary">路上记录</el-button>
|
|
<el-button @click.stop="" size="medium" type="primary">路上记录</el-button>
|
|
|
<el-button @click.stop="" size="medium" type="primary">待采记录</el-button>
|
|
<el-button @click.stop="" size="medium" type="primary">待采记录</el-button>
|
|
|
- <el-button @click.stop="" size="medium" type="primary">库存明细</el-button>
|
|
|
|
|
|
|
+ <el-button @click.stop="getStock(scope.row)" size="medium" type="primary">库存明细</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
</x-crud>
|
|
</x-crud>
|
|
|
|
|
|
|
|
|
|
+ <stock-detail ref="stockDetail" :itemData="itemData" />
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import SelOrder from './components/sel-order';
|
|
import SelOrder from './components/sel-order';
|
|
|
-import OrderDetail from './components/order-detail';
|
|
|
|
|
import { getLodop } from '@/utils/lodop';
|
|
import { getLodop } from '@/utils/lodop';
|
|
|
import { mapGetters } from 'vuex';
|
|
import { mapGetters } from 'vuex';
|
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
|
|
|
+import stockDetail from './components/stock-detail';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
SelOrder,
|
|
SelOrder,
|
|
|
- OrderDetail
|
|
|
|
|
|
|
+ stockDetail
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(['shopInfo', 'userInfo'])
|
|
...mapGetters(['shopInfo', 'userInfo'])
|
|
@@ -117,7 +119,8 @@ export default {
|
|
|
printData:{},
|
|
printData:{},
|
|
|
shop:{},
|
|
shop:{},
|
|
|
T:null,
|
|
T:null,
|
|
|
- search:''
|
|
|
|
|
|
|
+ search:'',
|
|
|
|
|
+ itemData:{id:0}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -131,6 +134,12 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getStock(info){
|
|
|
|
|
+ this.itemData = {id:info.itemId,name:info.name}
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$refs.stockDetail.init()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
myCgOrder(){
|
|
myCgOrder(){
|
|
|
let staffId = this.shopInfo && this.shopInfo.staff.id ? this.shopInfo.staff.id: 0
|
|
let staffId = this.shopInfo && this.shopInfo.staff.id ? this.shopInfo.staff.id: 0
|
|
|
let staffName = this.shopInfo && this.shopInfo.staff.name ? this.shopInfo.staff.name: ''
|
|
let staffName = this.shopInfo && this.shopInfo.staff.name ? this.shopInfo.staff.name: ''
|
|
@@ -240,7 +249,7 @@ export default {
|
|
|
op: {
|
|
op: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
props: {
|
|
props: {
|
|
|
- width: 900,
|
|
|
|
|
|
|
+ width: 750,
|
|
|
align: 'left',
|
|
align: 'left',
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
label: '操作'
|
|
label: '操作'
|