Commit 83dfe960 by LJM

取消发货

parent 6f937fdc
......@@ -124,7 +124,6 @@
source_type: this.formInline.source_type,
}).then(res => {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.total) || 0;
} else {
......
......@@ -43,7 +43,7 @@
</div>
</el-form>
<div class="data-box th-all">
<el-table :data="purOrderDetail.purchase_item_list" border max-height="600" :row-class-name="tableRowClassName" @selection-change="handleSelectionChange" @select="onRowClick">
<el-table :data="purOrderDetail.purchase_item_list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="37"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="15%"></el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="15%"></el-table-column>
......@@ -78,7 +78,6 @@ export default {
purOrderDetail: {},//基本信息,发货信息
purchase_uid: '',
multipleSelection: [],//选中的数据
currentRowIndex: [],//选中数据的索引
rules: {
shipping_id: [{
required: true,
......@@ -141,15 +140,6 @@ export default {
handleSelectionChange(val) {
this.multipleSelection = val;
},
tableRowClassName({row, rowIndex}) {
row.row_index = rowIndex
},
onRowClick(row) {
this.currentRowIndex = []
for (var i = 0; i < row.length; i++) {
this.currentRowIndex.push(row[i].row_index)
}
},
submit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
......@@ -161,10 +151,18 @@ export default {
return false;
}
this.formParam.itemlist = JSON.stringify(this.itemlist);
let filterArr = [];
for (let i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].purchase_item_id == this.itemlist[i].purchase_item_id) {
filterArr.push(this.itemlist[i])
}
}
this.formParam.itemlist = filterArr;
this.$http('POST', "/api/purchase/addSupDelivery", this.formParam).then(res => {
if (res.code === 0) {
this.$router.push({
path: "/orderTrackGoods",
})
} else {
this.$message({
message: res.msg,
......
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 sign in to comment