入库
This commit is contained in:
@@ -41,23 +41,17 @@
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<div class="search-label">载具号</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item">
|
||||
<div class="search-label">备注</div>
|
||||
<div class="filter_input_wraper">
|
||||
<input type="text" class="filter-input">
|
||||
<input type="text" class="filter-input" v-model="val1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="search-item_2 flexend">
|
||||
<button class="button button--primary">确认入库</button>
|
||||
<button class="button button--primary">作业查询</button>
|
||||
<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">删除一行</button>
|
||||
<button class="button button--primary" @click="toDel">删除一行</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,7 +71,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.material_code}" @click="toRadio(e)">
|
||||
<td>i</td>
|
||||
<td>{{i + 1}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.sale_qty}}</td>
|
||||
@@ -93,7 +87,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getBcpStor, getBillType, getPoint } from '../../../config/getData1.js'
|
||||
import { getBcpStor, getBillType, getPoint, confirmIn } from '../../../config/getData1.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -105,7 +99,8 @@ export default {
|
||||
value3: '',
|
||||
dataList: [{material_code: '030301010031'}],
|
||||
pkId: '',
|
||||
pkObj: {}
|
||||
pkObj: {},
|
||||
disabled1: false
|
||||
}
|
||||
},
|
||||
beforeRouteLeave (to, from, next) {
|
||||
@@ -137,12 +132,28 @@ export default {
|
||||
let res = await getPoint()
|
||||
this.options3 = [...res.data]
|
||||
},
|
||||
toInConfirm () {
|
||||
this._confirmIn()
|
||||
},
|
||||
async _confirmIn () {
|
||||
try {
|
||||
let res = await confirmIn(this.value1, this.value2, this.value3, this.val1, this.dataList)
|
||||
this.toast(res.message)
|
||||
} catch (e) {
|
||||
}
|
||||
},
|
||||
toAddBillMater () {
|
||||
this.$router.push('/selectfinishedmater')
|
||||
},
|
||||
toSearch () {
|
||||
this.$router.push('/finishedinstoresearch')
|
||||
},
|
||||
toRadio (e) {
|
||||
this.pkId = this.pkId === e.material_code ? '' : e.material_code
|
||||
this.pkObj = this.pkId === e.material_code ? e : {}
|
||||
},
|
||||
toDel () {
|
||||
console.log('del')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user