|
@@ -40,7 +40,6 @@ export default {
|
|
puOrderExecuteList: [],
|
|
puOrderExecuteList: [],
|
|
},
|
|
},
|
|
checkedList: [],
|
|
checkedList: [],
|
|
- checkedTabList: [],
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -63,7 +62,6 @@ export default {
|
|
if (code === 200) {
|
|
if (code === 200) {
|
|
this.page.total = total;
|
|
this.page.total = total;
|
|
this.tableData = rows;
|
|
this.tableData = rows;
|
|
- this.$notify.success({ title: msg });
|
|
|
|
}
|
|
}
|
|
} catch (err) {
|
|
} catch (err) {
|
|
//
|
|
//
|
|
@@ -73,9 +71,9 @@ export default {
|
|
},
|
|
},
|
|
handleSearchChange() {
|
|
handleSearchChange() {
|
|
this.isSimpleSearch = !this.isSimpleSearch;
|
|
this.isSimpleSearch = !this.isSimpleSearch;
|
|
- this.$notify.info({
|
|
|
|
- title: this.isSimpleSearch ? "Simple Search" : "All Search",
|
|
|
|
- });
|
|
|
|
|
|
+ // this.$notify.info({
|
|
|
|
+ // title: this.isSimpleSearch ? "Simple Search" : "All Search",
|
|
|
|
+ // });
|
|
},
|
|
},
|
|
// 页大小变
|
|
// 页大小变
|
|
handleSizeChange(prop) {
|
|
handleSizeChange(prop) {
|
|
@@ -146,7 +144,6 @@ export default {
|
|
for (const key in this.tabTableDatas) {
|
|
for (const key in this.tabTableDatas) {
|
|
this.tabTableDatas[key] = data[key];
|
|
this.tabTableDatas[key] = data[key];
|
|
}
|
|
}
|
|
- this.$notify.success({ title: msg });
|
|
|
|
}
|
|
}
|
|
} catch (err) {
|
|
} catch (err) {
|
|
//
|
|
//
|
|
@@ -190,18 +187,17 @@ export default {
|
|
},
|
|
},
|
|
// 判断“退回”按钮
|
|
// 判断“退回”按钮
|
|
judgeIsAllSendBack() {
|
|
judgeIsAllSendBack() {
|
|
-
|
|
|
|
if (this.checkedList.length == 1) {
|
|
if (this.checkedList.length == 1) {
|
|
|
|
|
|
// 非手工、状态非审批通过
|
|
// 非手工、状态非审批通过
|
|
- if (this.checkedList[0].source != 3 && this.checkedList[0].status != 2) {
|
|
|
|
|
|
+ if (this.checkedList[0].source != 3 && (this.checkedList[0].status == 0 || this.checkedList[0].status == 3)) {
|
|
|
|
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
- // 退回
|
|
|
|
|
|
+ // 整单退回
|
|
handleAllSendBack() {
|
|
handleAllSendBack() {
|
|
let data = {
|
|
let data = {
|
|
id: this.checkedList[0].id,
|
|
id: this.checkedList[0].id,
|
|
@@ -211,7 +207,7 @@ export default {
|
|
console.log(data);
|
|
console.log(data);
|
|
try {
|
|
try {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- // let { code, msg } = orderApi.documentsReturn(data);
|
|
|
|
|
|
+ let { code, msg } = orderApi.documentsReturn(data);
|
|
|
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
|
|
@@ -268,9 +264,6 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- handleTabSelect(selection, row) {
|
|
|
|
- this.checkedTabList = selection;
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -311,22 +304,24 @@ export default {
|
|
<el-row :gutter="24" style="padding: 0 20px">
|
|
<el-row :gutter="24" style="padding: 0 20px">
|
|
<!-- <el-col :span="6">123</el-col> -->
|
|
<!-- <el-col :span="6">123</el-col> -->
|
|
<el-col :span="24" style="text-align: right;margin: 0 10px 0 0">
|
|
<el-col :span="24" style="text-align: right;margin: 0 10px 0 0">
|
|
|
|
+
|
|
|
|
+ <!-- <el-button-group style="margin-left: 10px"> -->
|
|
|
|
+ <el-button size="mini" type="primary" plain @click="handleOpenAddDrawer"
|
|
|
|
+ v-hasPermi="['material:order:add']">新增</el-button>
|
|
|
|
+ <!-- </el-button-group> -->
|
|
|
|
+
|
|
<el-button-group style="margin-left: 10px">
|
|
<el-button-group style="margin-left: 10px">
|
|
- <el-button size="mini" type="danger" @click="handleOpenAddDrawer"
|
|
|
|
- v-hasPermi="['material:order:add']">新增</el-button>
|
|
|
|
<el-button size="mini" :disabled="checkedList.length != 1" @click="handleCopy">复制</el-button>
|
|
<el-button size="mini" :disabled="checkedList.length != 1" @click="handleCopy">复制</el-button>
|
|
-
|
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
|
|
|
- <!-- <el-button-group style="margin-left: 10px">
|
|
|
|
- <el-button size="mini" @click="handleAllSendBack" :key="checkedList.length"
|
|
|
|
- :disabled="judgeIsAllSendBack()">整单退回</el-button>
|
|
|
|
- </el-button-group> -->
|
|
|
|
|
|
+ <el-button-group style="margin-left: 10px" :key="checkedList.length + 1">
|
|
|
|
+ <el-button size="mini" @click="handleAllSendBack" :disabled="judgeIsAllSendBack()">整单退回</el-button>
|
|
|
|
+ <el-button size="mini" @click="handleAllClose" :disabled="judgeIsAllClose()">整单关闭</el-button>
|
|
|
|
+ </el-button-group>
|
|
|
|
|
|
<el-button-group style="margin-left: 10px">
|
|
<el-button-group style="margin-left: 10px">
|
|
<!-- <el-button size="mini">采购退货</el-button> -->
|
|
<!-- <el-button size="mini">采购退货</el-button> -->
|
|
- <el-button size="mini" @click="handleAllClose" :key="checkedList.length"
|
|
|
|
- :disabled="judgeIsAllClose()">整单关闭</el-button>
|
|
|
|
|
|
+
|
|
<!-- <el-button size="mini">附件管理</el-button>
|
|
<!-- <el-button size="mini">附件管理</el-button>
|
|
<el-button size="mini">单据追溯</el-button> -->
|
|
<el-button size="mini">单据追溯</el-button> -->
|
|
</el-button-group>
|
|
</el-button-group>
|
|
@@ -373,9 +368,8 @@ export default {
|
|
<el-tabs v-model="tabName" @tab-click="handleTabClick" style="width: 100%;padding: 20px 10px">
|
|
<el-tabs v-model="tabName" @tab-click="handleTabClick" style="width: 100%;padding: 20px 10px">
|
|
<el-tab-pane v-for="(column, index) in tabColumns" :key="index" :label="column.title" :name="column.key">
|
|
<el-tab-pane v-for="(column, index) in tabColumns" :key="index" :label="column.title" :name="column.key">
|
|
|
|
|
|
- <el-table :data="tabTableDatas[column.key]" style="width: 100%" highlight-current-row @select="handleTabSelect"
|
|
|
|
|
|
+ <el-table :data="tabTableDatas[column.key]" style="width: 100%" highlight-current-row
|
|
:height="tabTableDatas[column.key].length ? 300 : 100">
|
|
:height="tabTableDatas[column.key].length ? 300 : 100">
|
|
- <el-table-column type="selection" width="45"></el-table-column>
|
|
|
|
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
|
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
|
<el-table-column v-for="(cColumn, cIndex) in column.tableColumns" :key="cIndex" :prop="cColumn.key"
|
|
<el-table-column v-for="(cColumn, cIndex) in column.tableColumns" :key="cIndex" :prop="cColumn.key"
|
|
:label="cColumn.title" :width="cColumn.width || 180"
|
|
:label="cColumn.title" :width="cColumn.width || 180"
|