Commit 80db0bcc authored by hangjun83's avatar hangjun83

罗恩工具类更新

parent 0bfee1f7
......@@ -142,7 +142,7 @@ export default {
columns: [{
title: "ID",
key: "id",
minWidth: 55,
minWidth: 80,
},
{
title: "任务名称",
......
......@@ -137,7 +137,7 @@ export default {
columns: [{
title: "ID",
key: "id",
minWidth: 55,
minWidth: 80,
},
{
title: "任务名称",
......@@ -398,6 +398,11 @@ export default {
key: "dpdNum",
minWidth: 125,
},
{
title: "是否开票",
key: "dpdInvoicedStatus",
minWidth: 125,
},
{
title: "退货数量",
key: "refundNums",
......@@ -439,6 +444,7 @@ export default {
data: [],
selectRowData: [],
selectedOrderId: 0,
selectedSid: [],
searchData: [],
logData: [],
total: 0,
......@@ -503,6 +509,8 @@ export default {
changeRefundNums(p, e) {
if (e != null) {
this.selectRowData[p.index].refundNums = e
this.selectRowData[p.index]._checked = true
this.showSelect([this.selectRowData[p.index]])
}
},
selectRow(v) {
......@@ -511,11 +519,20 @@ export default {
this.stockModalVisible = true
this.searchLoading = true;
let addItem = false
if (this.selectedOrderId != v.soNo) {
this.selectRowData = []
this.selectedOrderId = v.soNo
this.selectedSid.push(v.siId)
addItem = true
} else {
if (this.selectedSid.indexOf(v.siId) == -1) {
this.selectedSid.push(v.siId)
addItem = true
}
}
if (addItem) {
getRhawnSordersStock({
'orderItemId': v.siId
}).then((res) => {
......@@ -529,6 +546,7 @@ export default {
rowData.pCode = v.pCode
rowData.pCnName = v.pCnName
rowData.refundNums = rowData.dpdNum
rowData._disabled = !rowData.selected
this.selectRowData.push(rowData)
}
}
......@@ -542,6 +560,7 @@ export default {
}
});
}
}
},
showSelect(e) {
this.form.refundNums = []
......@@ -608,7 +627,19 @@ export default {
});
},
cleanAll() {
this.$refs.form.resetFields();
this.form = {
name: '',
orderNo: '',
itemId: 0,
pId: 0,
handleFee: 0,
refundNums: [],
transferPre: true,
futuresNum: 0
},
this.selectedOrderId = 0
this.selectedSid = []
this.selectRowData = [];
this.searchData = [];
},
......@@ -662,8 +693,6 @@ export default {
let data = JSON.parse(str);
let content = JSON.parse(data.execContent)
this.$refs.form.resetFields();
this.form.taskId = data.id
this.form.name = data.name
this.form.futuresNum = parseInt(content.futures_num)
......@@ -684,13 +713,13 @@ export default {
for (let index in res.data) {
res.data[index]._checked = true
this.selectRowData.push(res.data[index])
this.selectedSid.push(res.data[index].siId)
this.showSelect([res.data[index]])
}
}
})
this.type = 1;
this.showAddSorderTask = true;
},
showLog(v) {
this.searchLoading = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment