|
@@ -2,6 +2,7 @@
|
|
|
<div class="wmsProduct">
|
|
|
<module-view :propConfig="config" ref="view" v-loading="load" @pagination="pagination" @modalHandle="modalHandle" @onRefresh="getList"
|
|
|
@resert="queryList" @search="queryList" @clickHandle="clickHandle" @detail="detail" />
|
|
|
+ <itemsModal ref="itemsModal" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -10,7 +11,8 @@ import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
import TagState from "./component/tagState.vue";
|
|
|
import ItemSku from "./component/ItemSku.vue";
|
|
|
import {query,WMSCreateEntryOrder} from '@/api/WMSInstoreBill'
|
|
|
-@Component({components:{}})
|
|
|
+import itemsModal from './component/itemsModal.vue'
|
|
|
+@Component({components:{itemsModal}})
|
|
|
export default class WMSProduct extends Vue {
|
|
|
load=false;
|
|
|
time:any;
|
|
@@ -152,27 +154,36 @@ export default class WMSProduct extends Vue {
|
|
|
field:'orderConfirmTime',
|
|
|
width:150
|
|
|
},
|
|
|
- // {
|
|
|
- // title:'操作',
|
|
|
- // action:true,
|
|
|
- // width:100,
|
|
|
- // plugins:[{
|
|
|
- // name:'删除',
|
|
|
- // event:{
|
|
|
- // click:(item:any) => {
|
|
|
- // this.del(item);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }]
|
|
|
- // }
|
|
|
+ {
|
|
|
+ title:'操作',
|
|
|
+ action:true,
|
|
|
+ width:100,
|
|
|
+ plugins:[{
|
|
|
+ name:'查看商品',
|
|
|
+ event:{
|
|
|
+ click:(item:any) => {
|
|
|
+ this.itemInfo(item.items);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
modal:{
|
|
|
tool:{
|
|
|
tools:{
|
|
|
return:true,
|
|
|
- add:true
|
|
|
- }
|
|
|
+ // add:true
|
|
|
+ },
|
|
|
+ customTools:[{
|
|
|
+ name: '入库推送',
|
|
|
+ icon: 'el-icon-plus',
|
|
|
+ event:{
|
|
|
+ click:() => {
|
|
|
+ (this.$refs.view as any).getFormValidate(this.addInStore)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
},
|
|
|
form:{
|
|
|
attr:{
|
|
@@ -252,6 +263,21 @@ export default class WMSProduct extends Vue {
|
|
|
this.getList()
|
|
|
})
|
|
|
}
|
|
|
+ //查看商品信息
|
|
|
+ itemInfo(item:any){
|
|
|
+ if(!item){
|
|
|
+ this.$message('无法查到商品信息!');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ try{
|
|
|
+ let data = JSON.parse(item);
|
|
|
+ (this.$refs.itemsModal as any).setShow(true);
|
|
|
+ (this.$refs.itemsModal as any).setData(data);
|
|
|
+ }catch(e){
|
|
|
+ this.$message('商品信息有误,请检查!');
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
//分页
|
|
|
pagination(){
|
|
|
if(this.isSearch){
|