联调
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
},
|
},
|
||||||
async _releasepoint (type) {
|
async _releasepoint (type) {
|
||||||
try {
|
try {
|
||||||
let res = await inOutExceptionInstConfirm(this.index1, this.val1, type)
|
let res = await releasepoint(this.index1, this.val1, type)
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
|
|||||||
@@ -74,11 +74,12 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow () {
|
onShow () {
|
||||||
|
console.log(this.$store.getters.publicObj)
|
||||||
if (this.$store.getters.publicObj !== '') {
|
if (this.$store.getters.publicObj !== '') {
|
||||||
this.val2 = this.$store.getters.publicObj.material_code
|
this.val2 = this.$store.getters.publicObj.material_code
|
||||||
this.val3 = this.$store.getters.publicObj.material_name
|
this.val3 = this.$store.getters.publicObj.material_name
|
||||||
this.val4 = this.$store.getters.publicObj.material_spec
|
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 () {
|
destroyed () {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<td>
|
||||||
<view class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)"></view>
|
<view class="iconfont icon_unchecked" :class="{'icon_checked': e.checked}" @tap="toCheck(e)"></view>
|
||||||
</td>
|
</td>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
},
|
},
|
||||||
/** 初始化查询 */
|
/** 初始化查询 */
|
||||||
async _orderSearch () {
|
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
|
this.totalCount = res.totalElements
|
||||||
if (res.totalElements > 0) {
|
if (res.totalElements > 0) {
|
||||||
res.content.map(el => {
|
res.content.map(el => {
|
||||||
|
|||||||
@@ -112,52 +112,14 @@ export const deleteBox = (obj) => request({
|
|||||||
|
|
||||||
/** 物料列表 */
|
/** 物料列表 */
|
||||||
// 根据订单获取订单信息
|
// 根据订单获取订单信息
|
||||||
// export const orderSearch = (page, size, order) => request({
|
export const orderSearch = (page, size, order) => request({
|
||||||
// url:'api/pda/finishproduct/order',
|
url:'api/pda/finishproduct/order',
|
||||||
// data: {
|
data: {
|
||||||
// order: order,
|
order: order,
|
||||||
// page: page,
|
page: page,
|
||||||
// size: size
|
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
|
|
||||||
}
|
}
|
||||||
return res
|
})
|
||||||
}
|
|
||||||
|
|
||||||
/** 成品入库 */
|
/** 成品入库 */
|
||||||
// 入库
|
// 入库
|
||||||
|
|||||||
@@ -16,9 +16,12 @@ const actions = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const mutations = {
|
const mutations = {
|
||||||
[types.PUBLIC_ARR] (state, res) {
|
[types.PUBLIC_OBJ] (state, res) {
|
||||||
state.publicArr = res
|
state.publicObj = res
|
||||||
}
|
},
|
||||||
|
[types.PUBLIC_ARR] (state, res) {
|
||||||
|
state.publicArr = res
|
||||||
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
state,
|
state,
|
||||||
|
|||||||
Reference in New Issue
Block a user