|
@@ -111,6 +111,22 @@
|
|
|
</div>
|
|
|
<!-- 选择物料 -->
|
|
|
<productModal ref="product" :mulit="true" @confirm="confirmProduct" />
|
|
|
+
|
|
|
+ <vxe-modal v-model="vxeValue" width="60%" height="70%" show-zoom resize transfer show-footer>
|
|
|
+ <template #title>
|
|
|
+ <span>选择物料</span>
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <by-table :propConfig="config" ref="form" style="margin-top: 10px;"></by-table>
|
|
|
+ </template>
|
|
|
+ <template #footer>
|
|
|
+ <div class="btn">
|
|
|
+ <el-button size="small" @click="vxeValue=false">取消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="doConfirm">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </vxe-modal>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
@@ -120,12 +136,13 @@
|
|
|
import ForTab from "@/components/ForTab/index.vue";
|
|
|
import productModal from "../orderTask/components/productModal.vue";
|
|
|
import brandType from "./components/brandType.vue";
|
|
|
- import selectKin from "./components/selectKin.vue";
|
|
|
+ // import selectKin from "./components/selectKin.vue";
|
|
|
@Component({ components: { ForTab, productModal, brandType } })
|
|
|
export default class productManagement extends Vue {
|
|
|
tagsData : any = [] // 标签值
|
|
|
isShow = 'home'
|
|
|
isEdit = true
|
|
|
+ vxeValue = false
|
|
|
editInfo : any = ''
|
|
|
isSingle : any = true
|
|
|
timeNum = 0;
|
|
@@ -215,10 +232,10 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- width: '55px',
|
|
|
- component: selectKin
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // width: '55px',
|
|
|
+ // component: selectKin
|
|
|
+ // },
|
|
|
{
|
|
|
width: '140px',
|
|
|
title: '财务编号',
|
|
@@ -345,6 +362,21 @@
|
|
|
title: '体积/cm³',
|
|
|
field: 'volume',
|
|
|
},
|
|
|
+ {
|
|
|
+ width: '100px',
|
|
|
+ title: '操作',
|
|
|
+ action: true,
|
|
|
+ plugins: [{
|
|
|
+ icon: 'el-icon-edit',
|
|
|
+ name: '选择物料',
|
|
|
+ audit: '',
|
|
|
+ event: {
|
|
|
+ click: () => {
|
|
|
+ (this as any).openVxeData(1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
tableConfig : any = {
|
|
@@ -389,10 +421,10 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- width: '55px',
|
|
|
- component: selectKin
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // width: '55px',
|
|
|
+ // component: selectKin
|
|
|
+ // },
|
|
|
{
|
|
|
width: '140px',
|
|
|
title: '财务编号',
|
|
@@ -519,10 +551,19 @@
|
|
|
field: 'volume',
|
|
|
},
|
|
|
{
|
|
|
- width: '80px',
|
|
|
+ width: '180px',
|
|
|
title: '操作',
|
|
|
action: true,
|
|
|
plugins: [{
|
|
|
+ icon: 'el-icon-edit',
|
|
|
+ name: '选择物料',
|
|
|
+ audit: '',
|
|
|
+ event: {
|
|
|
+ click: () => {
|
|
|
+ (this as any).openVxeData(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
icon: 'el-icon-delete',
|
|
|
name: '删除',
|
|
|
audit: '',
|
|
@@ -1355,6 +1396,16 @@
|
|
|
})
|
|
|
}).catch(() => { });
|
|
|
}
|
|
|
+ // 打开物料选择
|
|
|
+ openVxeData(){
|
|
|
+ this.vxeValue = true
|
|
|
+ }
|
|
|
+ // 确定仓库仓位
|
|
|
+ doConfirm() {
|
|
|
+ // let data : any = (this as any).$refs.form.getValue();
|
|
|
+ // this.$emit('onChange', data);
|
|
|
+ this.vxeValue = false;
|
|
|
+ }
|
|
|
// 切换组合商品
|
|
|
openMakeup() {
|
|
|
(this.$refs.product as any).setShow(true); // 打开sku弹窗
|