|
@@ -107,13 +107,23 @@
|
|
<el-table-column label="纯度" prop="chemicalPurity" width="150" show-overflow-tooltip/>
|
|
<el-table-column label="纯度" prop="chemicalPurity" width="150" show-overflow-tooltip/>
|
|
<el-table-column label="厂家" prop="factory" width="210" show-overflow-tooltip>
|
|
<el-table-column label="厂家" prop="factory" width="210" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input
|
|
|
|
|
|
+ <el-select
|
|
class="table-date"
|
|
class="table-date"
|
|
|
|
+ style="width:186px;"
|
|
v-model="scope.row.factory"
|
|
v-model="scope.row.factory"
|
|
- placeholder="请输入厂家名称"
|
|
|
|
- maxLength="30"
|
|
|
|
- style="width:186px;">
|
|
|
|
- </el-input>
|
|
|
|
|
|
+ filterable
|
|
|
|
+ remote
|
|
|
|
+ reserve-keyword
|
|
|
|
+ @change="factoryChange"
|
|
|
|
+ placeholder="请搜索选择厂家"
|
|
|
|
+ :remote-method="factorySelectList">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in factoryOptions"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.producerName"
|
|
|
|
+ :value="item.producerName">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="过期时间" prop="expireTime" width="170" show-overflow-tooltip>
|
|
<el-table-column label="过期时间" prop="expireTime" width="170" show-overflow-tooltip>
|
|
@@ -241,6 +251,7 @@
|
|
import addChemicals from "@/views/chemicalManage/components/addChemicals.vue";
|
|
import addChemicals from "@/views/chemicalManage/components/addChemicals.vue";
|
|
import { getDicts, systemSubjectGetList } from '@/api/commonality/noPermission'
|
|
import { getDicts, systemSubjectGetList } from '@/api/commonality/noPermission'
|
|
import {
|
|
import {
|
|
|
|
+ chemicalAioSearchProducer,
|
|
chemicalApplyAdd, chemicalApplyGetUserInfo,
|
|
chemicalApplyAdd, chemicalApplyGetUserInfo,
|
|
chemicalApplyUpdate, chemicalChemicalGetList, chemicalStockGetStockBysubId,
|
|
chemicalApplyUpdate, chemicalChemicalGetList, chemicalStockGetStockBysubId,
|
|
chemicalStockWaitAdd, chemicalStockWaitUpdate,
|
|
chemicalStockWaitAdd, chemicalStockWaitUpdate,
|
|
@@ -268,6 +279,7 @@
|
|
{ required: true, message: "请搜索选择化学品", validator: this.spaceJudgment, trigger: "blur" }
|
|
{ required: true, message: "请搜索选择化学品", validator: this.spaceJudgment, trigger: "blur" }
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ factoryOptions:[],
|
|
// 化学品列表
|
|
// 化学品列表
|
|
chemicalsOptions:[],
|
|
chemicalsOptions:[],
|
|
// 化学品列表临时存储
|
|
// 化学品列表临时存储
|
|
@@ -578,6 +590,29 @@
|
|
this.$set(this,'subOptions',[]);
|
|
this.$set(this,'subOptions',[]);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //选中厂家
|
|
|
|
+ factoryChange(val){
|
|
|
|
+ let self = this;
|
|
|
|
+ // for(let i=0;i<self.subOptions.length;i++){
|
|
|
|
+ // if(self.subOptions[i].subId == val){
|
|
|
|
+ // this.$set(this.newData,'subId',self.subOptions[i].subId);
|
|
|
|
+ // this.$set(this.newData,'subName',self.subOptions[i].subName);
|
|
|
|
+ // this.$set(this.newData,'roomNum',self.subOptions[i].roomNum);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ },
|
|
|
|
+ //搜索厂家
|
|
|
|
+ factorySelectList(query){
|
|
|
|
+ if (query !== '' && query.length>1) {
|
|
|
|
+ chemicalAioSearchProducer({"name":query,}).then(response => {
|
|
|
|
+ this.$set(this,'factoryOptions',response.data);
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(this,'factoryOptions',[]);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
//实验室-固体液体液体已存储量
|
|
//实验室-固体液体液体已存储量
|
|
chemicalStockGetStockBysubId(subId){
|
|
chemicalStockGetStockBysubId(subId){
|
|
chemicalStockGetStockBysubId({"subId":subId}).then(response => {
|
|
chemicalStockGetStockBysubId({"subId":subId}).then(response => {
|