|
@@ -113,7 +113,7 @@
|
|
|
:size="searchSize"
|
|
|
type="success"
|
|
|
style="float: right"
|
|
|
- @click="openModal({}, '003','0')"
|
|
|
+ @click="openModal({}, '003', '0')"
|
|
|
>
|
|
|
添加
|
|
|
</el-button>
|
|
@@ -141,7 +141,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
- @click="openModal(scope.row, '007',scope.row.status)"
|
|
|
+ @click="openModal(scope.row, '007', scope.row.status)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
@@ -152,7 +152,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-edit tb-icon"
|
|
|
- @click="openModal(scope.row, '005',scope.row.status)"
|
|
|
+ @click="openModal(scope.row, '005', scope.row.status)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
@@ -208,7 +208,7 @@
|
|
|
<script>
|
|
|
import addEdit from "./addEdit";
|
|
|
import asyncRequest from "@/apis/service/goodStore/specs";
|
|
|
-import {statusList} from "@/assets/js/statusList";
|
|
|
+import { statusList } from "@/assets/js/statusList";
|
|
|
import roleLevel from "@/assets/js/roleLevel";
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import { mapGetters } from "vuex";
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
end: "",
|
|
|
status: "",
|
|
|
creater: "",
|
|
|
- spec_name:""
|
|
|
+ spec_name: "",
|
|
|
},
|
|
|
// 状态
|
|
|
statusOptions: [
|
|
@@ -323,14 +323,14 @@ export default {
|
|
|
end: "",
|
|
|
status: "",
|
|
|
creater: "",
|
|
|
- spec_name:""
|
|
|
+ spec_name: "",
|
|
|
};
|
|
|
|
|
|
this.searchList();
|
|
|
},
|
|
|
// 新建/编辑/详情
|
|
|
- openModal(row, type,status) {
|
|
|
- if (type === "005" && status === "1") {
|
|
|
+ openModal(row, type, status) {
|
|
|
+ if (type === "005" && status === "1") {
|
|
|
this.$message.warning("禁用后,才可以修改!");
|
|
|
return;
|
|
|
}
|
|
@@ -416,6 +416,13 @@ export default {
|
|
|
},
|
|
|
// 刷新表格
|
|
|
async searchList() {
|
|
|
+ if (
|
|
|
+ (this.parmValue.start !== "" && this.parmValue.end === "") ||
|
|
|
+ (this.parmValue.start === "" && this.parmValue.end !== "")
|
|
|
+ ) {
|
|
|
+ this.$message.warning("时间区间不完整!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|