This commit is contained in:
2023-04-13 19:31:12 +08:00
parent 537b349a9f
commit 40bab7f486
5 changed files with 18 additions and 52 deletions

View File

@@ -77,7 +77,7 @@
},
async _releasepoint (type) {
try {
let res = await inOutExceptionInstConfirm(this.index1, this.val1, type)
let res = await releasepoint(this.index1, this.val1, type)
this.disabled1 = false
this.disabled2 = false
this.index1 = ''

View File

@@ -74,11 +74,12 @@
};
},
onShow () {
console.log(this.$store.getters.publicObj)
if (this.$store.getters.publicObj !== '') {
this.val2 = this.$store.getters.publicObj.material_code
this.val3 = this.$store.getters.publicObj.material_name
this.val4 = this.$store.getters.publicObj.material_spec
this.val7 = this.$store.getters.publicObj.material_id
this.val7 = this.$store.getters.publicObj.material_uuid
}
},
destroyed () {

View File

@@ -29,7 +29,7 @@
</tr>
</thead>
<tbody>
<tr v-for="e in dataList" :key="e.sale_code" :class="{'checked': e.checked}">
<tr v-for="e in dataList" :key="e.material_id" :class="{'checked': e.checked}">
<td>
<view class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)">&#xe608;</view>
</td>
@@ -83,7 +83,7 @@
},
/** 初始化查询 */
async _orderSearch () {
let res = await orderSearch(this.val1, this.pageNum + '', this.pageSize + '')
let res = await orderSearch(this.pageNum + '', this.pageSize + '', this.val1)
this.totalCount = res.totalElements
if (res.totalElements > 0) {
res.content.map(el => {

View File

@@ -112,52 +112,14 @@ export const deleteBox = (obj) => request({
/** 物料列表 */
// 根据订单获取订单信息
// export const orderSearch = (page, size, order) => request({
// url:'api/pda/finishproduct/order',
// data: {
// order: order,
// page: page,
// size: size
// }
// })
export const orderSearch = (page, size, order) => {
let res = {
"content": [
{
"sale_id": "1638477659967197184",
"plandeliver_date": "",
"sale_type": "YBO1",
"produce_seq": "1",
"order_line_code": "abe23eb6-d906-11ed-aaf6-20283eb8db7f",
"remark": "",
"is_success": "0",
"update_time": "2023-03-22 17:48:10",
"material_spec": "M1/2",
"update_optname": "管理员",
"create_id": "1",
"sale_qty": "2060",
"sale_code": "0022058857",
"cust_name": "",
"material_name": "紫铜直通连接帽\\CG\\M1/2\\ZM-BA40104",
"seq_no": "100",
"qty_unit_id": "1638470541201510400",
"create_time": "2023-03-22 17:48:10",
"unit_name": "PC",
"cust_code": "",
"material_id": "1528699594626699264",
"cust_id": "",
"status": "10",
"create_name": "管理员",
"update_optid": "1",
"material_code": "24005459",
"in_qty": '0.000',
"checked": true
}, {sale_code: '1'}
],
"totalElements": 14
export const orderSearch = (page, size, order) => request({
url:'api/pda/finishproduct/order',
data: {
order: order,
page: page,
size: size
}
return res
}
})
/** 成品入库 */
// 入库

View File

@@ -16,9 +16,12 @@ const actions = {
}
}
const mutations = {
[types.PUBLIC_ARR] (state, res) {
state.publicArr = res
}
[types.PUBLIC_OBJ] (state, res) {
state.publicObj = res
},
[types.PUBLIC_ARR] (state, res) {
state.publicArr = res
}
}
export default {
state,