选择物料
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<button class="button button--primary" @click="toInConfirm">确认入库</button>
|
||||
<button class="button button--primary" @click="toSearch">作业查询</button>
|
||||
<button class="button button--primary" @click="toAddBillMater">添加单据物料</button>
|
||||
<button class="button button--primary" @click="toDel">删除一行</button>
|
||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="delRow">删除一行</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -152,6 +152,7 @@ export default {
|
||||
}
|
||||
},
|
||||
toAddBillMater () {
|
||||
this.$store.dispatch('setMaterArr', [])
|
||||
this.$router.push('/selectfinishedmater')
|
||||
},
|
||||
toSearch () {
|
||||
@@ -161,8 +162,12 @@ export default {
|
||||
this.pkId = this.pkId === e.sale_code ? '' : e.sale_code
|
||||
this.pkObj = this.pkId === e.sale_code ? e : {}
|
||||
},
|
||||
toDel () {
|
||||
console.log('del')
|
||||
delRow () {
|
||||
if (!this.pkId) {
|
||||
return
|
||||
}
|
||||
this.dataList = this.dataList.filter(el => el.sale_code !== this.pkId)
|
||||
this.$store.dispatch('setMaterArr', this.dataList)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user