|
@@ -15,7 +15,7 @@
|
|
|
</template>
|
|
|
<template slot-scope="{ row, index }" slot="menu">
|
|
|
<el-tooltip class="item" effect="dark" content="删除" placement="top">
|
|
|
- <i class="tradingIcon icon-del" @click.stop="rowDel(row, index)"/>
|
|
|
+ <i class="tradingIcon icon-del" @click.stop="rowDel(row, index)" v-if="row.status != 0" />
|
|
|
</el-tooltip>
|
|
|
<!-- <el-tooltip class="item" effect="dark" content="新建销售订单" placement="top">
|
|
|
<i class="tradingIcon icon-add" />
|
|
@@ -48,7 +48,7 @@
|
|
|
<script>
|
|
|
import detailsPage from "./detailsPage";
|
|
|
import { option } from "./js/optionList";
|
|
|
-import { getList,remove} from "@/api/basicData/product";
|
|
|
+import { getList, remove, getAllgoods } from "@/api/basicData/product";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
data() {
|
|
@@ -83,11 +83,24 @@ export default {
|
|
|
// this.findObject(this.option.column, "cname").dicData = res.data.data;
|
|
|
// this.findObject(this.option.column, "ids").dicData = res.data.data;
|
|
|
// })
|
|
|
+ // "/api/blade-system/dict-biz/dictionary?code=label",
|
|
|
+ this.getWorkDicts("label").then(res => {
|
|
|
+ this.findObject(this.option.column, "label").dicData = res.data.data;
|
|
|
+ });
|
|
|
+ this.getWorkDicts("unit").then(res => {
|
|
|
+ this.findObject(this.option.column, "unit").dicData = res.data.data;
|
|
|
+ });
|
|
|
+ this.getWorkDicts("goods_status").then(res => {
|
|
|
+ this.findObject(this.option.column, "status").dicData = res.data.data;
|
|
|
+ });
|
|
|
+ getAllgoods().then(res => {
|
|
|
+ this.findObject(this.option.column, "cname").dicData = res.data.data
|
|
|
+ });
|
|
|
this.$refs.crud.init();
|
|
|
},
|
|
|
searchCriteriaSwitch(type) {
|
|
|
if (type) {
|
|
|
- this.option.height = this.option.height -46;
|
|
|
+ this.option.height = this.option.height - 46;
|
|
|
} else {
|
|
|
this.option.height = this.option.height + 46;
|
|
|
}
|
|
@@ -144,7 +157,7 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- remove({id:row.id}).then(res => {
|
|
|
+ remove({ id: row.id }).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message({
|
|
|
type: "success",
|