|
|
|
@ -24,7 +24,14 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAddClick">新增</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table v-loading="loading" :data="list" @current-change="handleDetail" border highlight-current-row
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
@ -35,21 +42,27 @@
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.status)">{{ statusMap[scope.row.status] }}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="备注" prop="remark" width="260"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="备注" prop="remark" width="260"></el-table-column>-->
|
|
|
|
|
<el-table-column label="规格" prop="ggxh" width="260"></el-table-column>
|
|
|
|
|
<el-table-column label="价格" prop="price" width="260">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.price == "null" ? "0.00":scope.row.price }}
|
|
|
|
|
{{ scope.row.price == "null" ? "0.00" : scope.row.price }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="单位" prop="unit" width="260"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="单位" prop="unit" width="260"></el-table-column>-->
|
|
|
|
|
<el-table-column label="创建人" prop="createByName" width="260"></el-table-column>
|
|
|
|
|
<el-table-column label="创建时间" prop="createTime" width="260"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="220" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="handleModifyClick(scope.row)" :disabled="scope.row.status != 1">编辑</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" :disabled="scope.row.status != 1" >删除</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="onSubmitSkSkProject(scope.row)" v-if="scope.row.status == 1">提交</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="handleModifyClick(scope.row)"
|
|
|
|
|
:disabled="scope.row.status != 1">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
:disabled="scope.row.status != 1">删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="onSubmitSkSkProject(scope.row)"
|
|
|
|
|
v-if="scope.row.status == 1">提交
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -68,7 +81,7 @@
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-button type="primary" style="float: right;margin-bottom: 12px;margin-right: 20px" size="small"
|
|
|
|
|
icon="search" @click="selectProduct"
|
|
|
|
|
v-if="this.delectQuery.id != null ">新增产品
|
|
|
|
|
v-if="this.delectQuery.id != null ">新增产品
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -92,7 +105,7 @@
|
|
|
|
|
<el-table-column label="价格" prop="price"></el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh"></el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="220" >
|
|
|
|
|
<el-table-column label="操作" width="220">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" :disabled="scope.row.index === selectedIndex"
|
|
|
|
|
@click.native.stop="rowChange(scope.row)">编辑
|
|
|
|
@ -129,21 +142,21 @@
|
|
|
|
|
></destinyModelEdit>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- <el-dialog-->
|
|
|
|
|
<!-- title="选入产品"-->
|
|
|
|
|
<!-- :visible.sync="selectFormVisible"-->
|
|
|
|
|
<!-- :close-on-click-modal="false"-->
|
|
|
|
|
<!-- :close-on-press-escape="false"-->
|
|
|
|
|
<!-- width="80%"-->
|
|
|
|
|
<!-- :before-close="closeDialog"-->
|
|
|
|
|
<!-- v-if="selectFormVisible"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <destinyModelSelectProduct-->
|
|
|
|
|
<!-- :editQuery="editQuery"-->
|
|
|
|
|
<!-- :codeArray="codeArray"-->
|
|
|
|
|
<!-- :closeDialog="closeDialog"-->
|
|
|
|
|
<!-- ></destinyModelSelectProduct>-->
|
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
<!-- <el-dialog-->
|
|
|
|
|
<!-- title="选入产品"-->
|
|
|
|
|
<!-- :visible.sync="selectFormVisible"-->
|
|
|
|
|
<!-- :close-on-click-modal="false"-->
|
|
|
|
|
<!-- :close-on-press-escape="false"-->
|
|
|
|
|
<!-- width="80%"-->
|
|
|
|
|
<!-- :before-close="closeDialog"-->
|
|
|
|
|
<!-- v-if="selectFormVisible"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <destinyModelSelectProduct-->
|
|
|
|
|
<!-- :editQuery="editQuery"-->
|
|
|
|
|
<!-- :codeArray="codeArray"-->
|
|
|
|
|
<!-- :closeDialog="closeDialog"-->
|
|
|
|
|
<!-- ></destinyModelSelectProduct>-->
|
|
|
|
|
<!-- </el-dialog>-->
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="选入产品"
|
|
|
|
@ -170,7 +183,7 @@ import {
|
|
|
|
|
addModeldestiny,
|
|
|
|
|
delectModeldestiny,
|
|
|
|
|
filterDestinyDelect,
|
|
|
|
|
getBasicDestinyfilter, delectModeldestinyProduct, downloadBasicProject, uploadModeldestinyProduct,submitSkSkProject
|
|
|
|
|
getBasicDestinyfilter, delectModeldestinyProduct, downloadBasicProject, uploadModeldestinyProduct, submitSkSkProject
|
|
|
|
|
} from "@/api/basic/basicDestinyRel";
|
|
|
|
|
import destinyModelEdit from "@/views/basic/destiny/destinyModelEdit";
|
|
|
|
|
import destinyModelSelectProduct from "@/views/basic/destiny/destinyModelSelectProduct";
|
|
|
|
@ -277,7 +290,7 @@ export default {
|
|
|
|
|
this.selectedIndex = null
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
rowChange(val) {
|
|
|
|
@ -338,7 +351,7 @@ export default {
|
|
|
|
|
this.formVisible = true;
|
|
|
|
|
this.editQuery = row;
|
|
|
|
|
},
|
|
|
|
|
onSubmitSkSkProject(row){
|
|
|
|
|
onSubmitSkSkProject(row) {
|
|
|
|
|
submitSkSkProject(row).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.getList();
|
|
|
|
@ -418,7 +431,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
components: {
|
|
|
|
|
destinyModelEdit, destinyModelSelectProduct,destinySelectProduct
|
|
|
|
|
destinyModelEdit, destinyModelSelectProduct, destinySelectProduct
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
created() {
|
|
|
|
|