|
|
@@ -19,8 +19,8 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <!-- v-show="leixingcare" -->
|
|
|
<el-form-item
|
|
|
- v-show="leixingcare"
|
|
|
style="margin-left: 50px"
|
|
|
prop="title"
|
|
|
label="区域名称:"
|
|
|
@@ -162,21 +162,23 @@
|
|
|
>
|
|
|
<div class="top-dsc">
|
|
|
<div class="position">
|
|
|
- <p>位置:{{ it.shi_fou_liu_yang_? liu_yang_wei_zhi_:it.wei_zhi_bian_hao_}}</p>
|
|
|
- <p>样品编号:{{ it.yang_pin_bian_hao }}</p>
|
|
|
- <p>
|
|
|
+ <p>位置:{{ it.wei_zhi_bian_hao_ }}</p>
|
|
|
+ <p>样品编号:{{ it.yang_ben_bian_hao_ }}</p>
|
|
|
+ <p>样品名称:{{ it.yang_ben_ming_che }}</p>
|
|
|
+
|
|
|
+ <!-- <p>
|
|
|
存储条件:{{
|
|
|
it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
|
|
|
}}
|
|
|
</p>
|
|
|
<p >收样日期:{{ it.shou_yang_ri_qi_}}</p>
|
|
|
<p v-if="it.shi_fou_liu_yang_ =='是'">留样期限:{{ it.liu_yang_qi_xian_}}</p>
|
|
|
-
|
|
|
+ -->
|
|
|
<!-- <p>编号:{{it.yang_pin_bian_hao}}</p> -->
|
|
|
<!-- <p>批次:</p>
|
|
|
<p>有效期:</p> -->
|
|
|
</div>
|
|
|
- <div class="right-content" v-if="false">
|
|
|
+ <!-- <div class="right-content" v-if="false">
|
|
|
<p v-if="false">编号:{{ it.liu_yang_qi_xian_ }}</p>
|
|
|
<p>
|
|
|
{{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
|
|
|
@@ -186,13 +188,12 @@
|
|
|
it.cun_chu_tiao_jian || it.cun_chu_yao_qiu_
|
|
|
}}
|
|
|
</p>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="right-content">
|
|
|
<p>
|
|
|
{{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
|
|
|
</p>
|
|
|
</div>
|
|
|
- <!-- <div class="condition">{{ it.cun_chu_tiao_jian }}</div> -->
|
|
|
</div>
|
|
|
<div class="bottom-dsc" v-if="false">
|
|
|
{{ it.wei_zhi_zhuang_ta || it.yang_pin_ming_che }}
|
|
|
@@ -259,32 +260,32 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
firstLoadViewData() {
|
|
|
+ //t_mjypcfwz 存放位置
|
|
|
+ //
|
|
|
var this_ = this;
|
|
|
- var sqlString = `select * from t_mjypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' and huo_jia_hao_ = '1' and huo_jia_lei_xing_ = '冰箱'`;
|
|
|
- this.huojiashow = "1号冰箱";
|
|
|
+ var sqlString = `select * from t_ypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' and huo_jia_hao_ = '1' and huo_jia_lei_xing_ = '医用冷藏箱'`;
|
|
|
+ this.huojiashow = "4号医用冷藏箱";
|
|
|
this.quyuShow = "待检区";
|
|
|
- this.desString = "样品间" + "待检区1号冰箱";
|
|
|
+ this.desString = "样品间" + "待检区医用冷藏箱";
|
|
|
this.queryLoad(sqlString);
|
|
|
this.formInline.fang_jian_hao_value = "样品间";
|
|
|
this.formInline.qu_yu_value = "待检区";
|
|
|
- this.formInline.huo_jia_value = "1号冰箱";
|
|
|
- let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' order by huo_jia_hao_ asc `;
|
|
|
+ this.formInline.huo_jia_value = "4号医用冷藏箱";
|
|
|
+ let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_ypcfwz where fang_jian_lei_xin = '样品间' and qu_yu_ ='待检区' order by huo_jia_hao_ asc `;
|
|
|
curdPost("sql", sql).then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
|
+ console.log(this_.huo_jia_arr, "首次加载货架信息");
|
|
|
});
|
|
|
},
|
|
|
loadQueryData() {
|
|
|
- //查询选择数据查询
|
|
|
+ //查询选择数据查询 房间类型查询
|
|
|
var sqlString =
|
|
|
- "select distinct fang_jian_lei_xin from t_mjypcfwz WHERE fang_jian_lei_xin !=''";
|
|
|
- // var sqlString = "select * from t_mjypcfwz";
|
|
|
+ "select distinct fang_jian_lei_xin from t_ypcfwz WHERE fang_jian_lei_xin !=''";
|
|
|
var this_ = this;
|
|
|
curdPost("sql", sqlString)
|
|
|
.then((response) => {
|
|
|
this_.sampleOption = response.variables.data;
|
|
|
-
|
|
|
- // this_.sampleOption.pop();
|
|
|
- console.log(this_.sampleOption, "11111111111122");
|
|
|
+ console.log(this_.sampleOption, "this_.sampleOption");
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.log(err, "err------>");
|
|
|
@@ -300,22 +301,20 @@ export default {
|
|
|
onSubmits(sql) {
|
|
|
var fang_jian_ = this.formInline.fang_jian_hao_value;
|
|
|
var qu_yu = this.formInline.qu_yu_value;
|
|
|
- var huo_jia_hao_ = this.formInline.huo_jia_value.substr(0, 1);
|
|
|
- let huo_jia_lei_xing_ = this.formInline.huo_jia_value.substr(
|
|
|
- 2,
|
|
|
- this.formInline.huo_jia_value.length
|
|
|
- );
|
|
|
+ var huo_jia_hao_ = this.formInline.huo_jia_value.split("号")[0]
|
|
|
+ let huo_jia_lei_xing_ = this.formInline.huo_jia_value.split("号")[1]
|
|
|
var gua_jia_hao = this.formInline.gua_jia_value.substr(0, 1);
|
|
|
- var sql;
|
|
|
- if (qu_yu != "") {
|
|
|
- sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and qu_yu_ = '${qu_yu}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
|
|
|
- } else {
|
|
|
- if (huo_jia_lei_xing_.includes("冰箱")) {
|
|
|
- sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
|
|
|
- } else if (huo_jia_lei_xing_.includes("液氮罐")) {
|
|
|
- sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}' and gua_jia_hao_= '${gua_jia_hao}'`;
|
|
|
- }
|
|
|
- }
|
|
|
+ var sql= `select * from t_ypcfwz where fang_jian_lei_xin = '${fang_jian_}' and qu_yu_ ='${qu_yu}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
|
|
|
+ console.log(sql);
|
|
|
+ // if (qu_yu != "") {
|
|
|
+ // sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and qu_yu_ = '${qu_yu}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
|
|
|
+ // } else {
|
|
|
+ // if (huo_jia_lei_xing_.includes("冰箱")) {
|
|
|
+ // sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}'`;
|
|
|
+ // } else if (huo_jia_lei_xing_.includes("液氮罐")) {
|
|
|
+ // sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_}' and huo_jia_lei_xing_ = '${huo_jia_lei_xing_}' and huo_jia_hao_ = '${huo_jia_hao_}' and gua_jia_hao_= '${gua_jia_hao}'`;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.describeFn();
|
|
|
this.queryLoad(sql);
|
|
|
},
|
|
|
@@ -335,13 +334,16 @@ export default {
|
|
|
}
|
|
|
// 通过样品货位配置的id外键 查询样品登记表
|
|
|
let yangpingSql =
|
|
|
- "select * from t_mjypdjb WHERE shou_yang_wei_zhi = '" +
|
|
|
+ "select * from t_lhypdjb WHERE cun_fang_wei_zhi_ = '" +
|
|
|
item.id_ +
|
|
|
"'";
|
|
|
+
|
|
|
curdPost("sql", yangpingSql).then((res) => {
|
|
|
var resData = res.variables.data;
|
|
|
+
|
|
|
if (resData.length > 0) {
|
|
|
resData.forEach((it) => {
|
|
|
+ console.log(yangpingSql, item, "样品扽飞机表");
|
|
|
it.wei_zhi_bian_hao_ = item.wei_zhi_bian_hao_;
|
|
|
labelsMap[item.ceng_hao_].push(it);
|
|
|
});
|
|
|
@@ -361,13 +363,14 @@ export default {
|
|
|
this.huo_jia_arrEvent(e.target.innerText);
|
|
|
this.huojiashow = "";
|
|
|
this.guajiashow = "";
|
|
|
- let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${e.target.innerText}' order by huo_jia_hao_ asc`;
|
|
|
+ let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_ypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${e.target.innerText}' order by huo_jia_hao_ asc`;
|
|
|
var this_ = this;
|
|
|
this.qu_yu_value = e.target.innerText;
|
|
|
this.quyuShow = e.target.innerText;
|
|
|
this.formInline.qu_yu_value = e.target.innerText;
|
|
|
curdPost("sql", sqlString).then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
|
+ console.log(this_.huo_jia_arr,"区域点击")
|
|
|
});
|
|
|
this.describeFn();
|
|
|
},
|
|
|
@@ -377,47 +380,46 @@ export default {
|
|
|
let selectText = e.target.innerText;
|
|
|
this.guajiaarrEvent(selectText);
|
|
|
this.huojiashow = selectText;
|
|
|
- let huojiaNum = selectText.substr(0, 1);
|
|
|
+ let huojiaNum = selectText.split("号")[0];
|
|
|
this.formInline.huo_jia_value = selectText;
|
|
|
- let huojialeixing = this.formInline.huo_jia_value.substr(
|
|
|
- 2,
|
|
|
- this.formInline.huo_jia_value.length
|
|
|
- );
|
|
|
+ console.log(this.formInline.huo_jia_value, huojiaNum,"value")
|
|
|
+ let huojialeixing = this.formInline.huo_jia_value.split("号")[1];
|
|
|
+ var sql = `select * from t_ypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${this.formInline.qu_yu_value}' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}'`;
|
|
|
+ console.log(sql, "货架点击");
|
|
|
//区分是冰箱和液氮罐的点击事件
|
|
|
- if (selectText.includes("冰箱")) {
|
|
|
- //如果是冰箱 请求样品货位配置信息 ->查询登记表
|
|
|
- var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${this.formInline.qu_yu_value}' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}'`;
|
|
|
- this.queryLoad(sql);
|
|
|
- this.formInline.gua_jia_value = "";
|
|
|
- } else if (selectText.includes("液氮罐")) {
|
|
|
- //液氮罐 查询该液氮罐下所有的挂架
|
|
|
- console.log(huojiaNum);
|
|
|
- let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
|
|
|
- var this_ = this;
|
|
|
- curdPost("sql", sqlString).then((response) => {
|
|
|
- this_.gua_jia_arr = response.variables.data;
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (selectText.includes("冰箱")) {//如果是冰箱 请求样品货位配置信息 ->查询登记表
|
|
|
+ // var sql = `select * from t_lhypdjb where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${this.formInline.qu_yu_value}' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}'`;
|
|
|
+ this.queryLoad(sql);
|
|
|
+ this.formInline.gua_jia_value = "";
|
|
|
+ // } else if (selectText.includes("液氮罐")) {
|
|
|
+ // //液氮罐 查询该液氮罐下所有的挂架
|
|
|
+ // console.log(huojiaNum);
|
|
|
+ // let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
|
|
|
+ // var this_ = this;
|
|
|
+ // curdPost("sql", sqlString).then((response) => {
|
|
|
+ // this_.gua_jia_arr = response.variables.data;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
this.describeFn();
|
|
|
this.formInline.huo_jia_value = selectText;
|
|
|
},
|
|
|
- gua_jia_Event(e) {
|
|
|
- //液氮罐挂架号点击事件 查询该液氮罐下该挂架的货位位置信息;
|
|
|
- let selectText = e.target.innerText;
|
|
|
- this.formInline.gua_jia_value = selectText;
|
|
|
- this.guajiashow = selectText;
|
|
|
- let hguajiaNum = selectText.substr(0, 1);
|
|
|
- var fang_jian_hao_value = this.formInline.fang_jian_hao_value;
|
|
|
- var huo_jia_value = this.formInline.huo_jia_value;
|
|
|
- var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_hao_value}' and huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huo_jia_value.substring(
|
|
|
- 0,
|
|
|
- 1
|
|
|
- )}' and gua_jia_hao_= '${hguajiaNum}'`;
|
|
|
- this.describeFn();
|
|
|
- this.queryLoad(sql);
|
|
|
- },
|
|
|
- huo_jia_arrEvent(quyu) {
|
|
|
- let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${quyu}' order by huo_jia_hao_ asc`;
|
|
|
+ // gua_jia_Event(e) {
|
|
|
+ // //液氮罐挂架号点击事件 查询该液氮罐下该挂架的货位位置信息;
|
|
|
+ // let selectText = e.target.innerText;
|
|
|
+ // this.formInline.gua_jia_value = selectText;
|
|
|
+ // this.guajiashow = selectText;
|
|
|
+ // let hguajiaNum = selectText.substr(0, 1);
|
|
|
+ // var fang_jian_hao_value = this.formInline.fang_jian_hao_value;
|
|
|
+ // var huo_jia_value = this.formInline.huo_jia_value;
|
|
|
+ // var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${fang_jian_hao_value}' and huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huo_jia_value.substring(
|
|
|
+ // 0,
|
|
|
+ // 1
|
|
|
+ // )}' and gua_jia_hao_= '${hguajiaNum}'`;
|
|
|
+ // this.describeFn();
|
|
|
+ // this.queryLoad(sql);
|
|
|
+ // },
|
|
|
+ huo_jia_arrEvent(quyu) {
|
|
|
+ let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_ypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${quyu}' order by huo_jia_hao_ asc`;
|
|
|
var this_ = this;
|
|
|
curdPost("sql", sqlString).then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
|
@@ -445,19 +447,26 @@ export default {
|
|
|
"formInline.fang_jian_hao_value": function (newdata, olddata) {
|
|
|
//监控房间号 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
this.huo_jia_arr = [];
|
|
|
- let sqlString = `select distinct qu_yu_ ,huo_jia_hao_ from t_mjypcfwz where fang_jian_lei_xin = '${newdata}' `;
|
|
|
+ let sqlString = `select distinct qu_yu_ ,huo_jia_hao_ from t_ypcfwz where fang_jian_lei_xin = '${newdata}' `;
|
|
|
var this_ = this;
|
|
|
this_.formInline.qu_yu_value = "";
|
|
|
this_.formInline.gua_jia_value = "";
|
|
|
this_.formInline.huo_jia_value = "";
|
|
|
this_.describeFn();
|
|
|
curdPost("sql", sqlString).then((response) => {
|
|
|
- this_.quyu_arr = response.variables.data;
|
|
|
+ let person = response.variables.data;
|
|
|
+ let obj = {};
|
|
|
+ let peon = person.reduce((cur, next) => {
|
|
|
+ obj[next.qu_yu_] ? "" : (obj[next.qu_yu_] = true && cur.push(next));
|
|
|
+ return cur;
|
|
|
+ }, []); //设置cur默认类型为数组,并且初始值为空的数组
|
|
|
+ console.log(peon);
|
|
|
+ this_.quyu_arr = peon; //区域获取
|
|
|
this_.quyu_arr.forEach((item) => {
|
|
|
- //待优化 事实上是一个用来判断F
|
|
|
if (item.qu_yu_ == "") {
|
|
|
+ //区域值为空
|
|
|
this_.leixingcare = false;
|
|
|
- let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${newdata}' order by huo_jia_hao_ asc`;
|
|
|
+ let sql = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_ypcfwz where fang_jian_lei_xin = '${newdata}' order by huo_jia_hao_ asc`;
|
|
|
curdPost("sql", sql).then((res) => {
|
|
|
this_.huo_jia_arr = res.variables.data;
|
|
|
});
|
|
|
@@ -473,57 +482,61 @@ export default {
|
|
|
},
|
|
|
"formInline.qu_yu_value": function (newdata, olddata) {
|
|
|
//监控区域变化 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
+
|
|
|
this.quyuShow = newdata;
|
|
|
this.huo_jia_arrEvent(newdata);
|
|
|
this.huojiashow = "";
|
|
|
this.guajiashow = "";
|
|
|
- let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${e.target.innerText}' order by huo_jia_hao_ asc`;
|
|
|
+ this.formInline.qu_yu_value = newdata;
|
|
|
+ let sqlString = `select distinct huo_jia_hao_,huo_jia_lei_xing_ from t_ypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${newdata}' order by huo_jia_hao_ asc`;
|
|
|
var this_ = this;
|
|
|
this.qu_yu_value = newdata;
|
|
|
- this.quyuShow = newdatat;
|
|
|
- this.formInline.qu_yu_value = newdata;
|
|
|
- curdPost("sql", sqlString).then((response) => {
|
|
|
- this_.huo_jia_arr = response.variables.data;
|
|
|
- });
|
|
|
+ this.quyuShow = olddata;
|
|
|
+ console.log(sqlString, "货架变化");
|
|
|
+ curdPost("sql", sqlString)
|
|
|
+ .then((response) => {
|
|
|
+ this_.huo_jia_arr = response.variables.data;
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
this.describeFn();
|
|
|
},
|
|
|
- "formInline.gua_jia_value": function (newdata, olddata) {
|
|
|
- //监控挂架变化 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
- this.guajiashow = newdata;
|
|
|
- },
|
|
|
"formInline.huo_jia_value": function (newdata, olddata) {
|
|
|
- //监控货架变化 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
+ //监控挂架变化 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
this.huojiashow = newdata;
|
|
|
- //货架 冰箱 液氮罐点击事件
|
|
|
- this.guajiashow = "";
|
|
|
- let selectText = newdata;
|
|
|
- this.guajiaarrEvent(selectText);
|
|
|
- this.huojiashow = selectText;
|
|
|
- let huojiaNum = selectText.substr(0, 1);
|
|
|
- this.formInline.huo_jia_value = selectText;
|
|
|
- this.formInline.gua_jia_value = "";
|
|
|
- // let huojialeixing = this.formInline.huo_jia_value.substr(
|
|
|
- // 2,
|
|
|
- // this.formInline.huo_jia_value.length
|
|
|
- // );
|
|
|
- //区分是冰箱和液氮罐的点击事件
|
|
|
- if (selectText.includes("冰箱")) {
|
|
|
- //如果是冰箱 请求样品货位配置信息 ->查询登记表
|
|
|
- // var sql = `select * from t_mjypcfwz where fang_jian_lei_xin = '${this.formInline.fang_jian_hao_value}' and qu_yu_ = '${this.formInline.qu_yu_value}' and huo_jia_lei_xing_ = '${huojialeixing}' and huo_jia_hao_ = '${huojiaNum}'`;
|
|
|
- // this.queryLoad(sql);
|
|
|
- // this.formInline.gua_jia_value = "";
|
|
|
- } else if (selectText.includes("液氮罐")) {
|
|
|
- //液氮罐 查询该液氮罐下所有的挂架
|
|
|
- console.log(huojiaNum);
|
|
|
- let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
|
|
|
- var this_ = this;
|
|
|
- curdPost("sql", sqlString).then((response) => {
|
|
|
- this_.gua_jia_arr = response.variables.data;
|
|
|
- });
|
|
|
- }
|
|
|
- this.describeFn();
|
|
|
- this.formInline.huo_jia_value = selectText;
|
|
|
},
|
|
|
+ // "formInline.huo_jia_value": function (newdata, olddata) {
|
|
|
+ // //监控货架变化 input 输入框数据变化 来改变区域和货架信息(input)
|
|
|
+ // this.huojiashow = newdata;
|
|
|
+ // //货架 冰箱 液氮罐点击事件
|
|
|
+ // this.guajiashow = "";
|
|
|
+ // let selectText = newdata;
|
|
|
+ // this.guajiaarrEvent(selectText);
|
|
|
+ // this.huojiashow = selectText;
|
|
|
+ // let huojiaNum = selectText.substr(0, 1);
|
|
|
+ // this.formInline.huo_jia_value = selectText;
|
|
|
+ // this.formInline.gua_jia_value = "";
|
|
|
+ // //区分是冰箱和液氮罐的点击事件
|
|
|
+ // if (selectText.includes("冰箱")) {
|
|
|
+ // //如果是冰箱 请求样品货位配置信息 ->查询登记表
|
|
|
+ // } else if (selectText.includes("液氮罐")) {
|
|
|
+ // //液氮罐 查询该液氮罐下所有的挂架
|
|
|
+ // console.log(huojiaNum);
|
|
|
+ // let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
|
|
|
+ // var this_ = this;
|
|
|
+ // curdPost("sql", sqlString).then((response) => {
|
|
|
+ // this_.gua_jia_arr = response.variables.data;
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}' order by gua_jia_hao_ asc`;
|
|
|
+ // var this_ = this;
|
|
|
+ // curdPost("sql", sqlString).then((response) => {
|
|
|
+ // this_.gua_jia_arr = response.variables.data;
|
|
|
+ // });
|
|
|
+ // this.describeFn();
|
|
|
+ // this.formInline.huo_jia_value = selectText;
|
|
|
+ // },
|
|
|
},
|
|
|
};
|
|
|
</script>
|