|
@@ -199,13 +199,13 @@ export default {
|
|
|
this.loadQueryData();
|
|
this.loadQueryData();
|
|
|
this.firstLoadViewData();
|
|
this.firstLoadViewData();
|
|
|
this.viewShow = !this.viewShow;
|
|
this.viewShow = !this.viewShow;
|
|
|
- console.log(this.viewShow);
|
|
|
|
|
|
|
+ // console.log(this.viewShow);
|
|
|
},
|
|
},
|
|
|
positionClick(values) {
|
|
positionClick(values) {
|
|
|
this.viewShow = !this.viewShow;
|
|
this.viewShow = !this.viewShow;
|
|
|
this.placeValue = values[0].wei_zhi_bian_hao_;
|
|
this.placeValue = values[0].wei_zhi_bian_hao_;
|
|
|
let this_ = this;
|
|
let this_ = this;
|
|
|
- console.log(values[0].id_, "id");
|
|
|
|
|
|
|
+ // console.log(values[0].id_, "id");
|
|
|
this_.$emit("input", values[0].id_); //传导
|
|
this_.$emit("input", values[0].id_); //传导
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
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 `;
|
|
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) => {
|
|
curdPost("sql", sql).then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
this_.huo_jia_arr = response.variables.data;
|
|
|
- console.log(this_.huo_jia_arr, "首次加载货架信息");
|
|
|
|
|
|
|
+ // console.log(this_.huo_jia_arr, "首次加载货架信息");
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
loadQueryData() {
|
|
loadQueryData() {
|
|
@@ -233,7 +233,7 @@ export default {
|
|
|
curdPost("sql", sqlString)
|
|
curdPost("sql", sqlString)
|
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
this_.sampleOption = response.variables.data;
|
|
this_.sampleOption = response.variables.data;
|
|
|
- console.log(this_.sampleOption, "this_.sampleOption");
|
|
|
|
|
|
|
+ // console.log(this_.sampleOption, "this_.sampleOption");
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
console.log(err, "err------>");
|
|
console.log(err, "err------>");
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
let huo_jia_lei_xing_ = this.formInline.huo_jia_value.split("号")[1];
|
|
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 gua_jia_hao = this.formInline.gua_jia_value.substr(0, 1);
|
|
|
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_}'`;
|
|
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);
|
|
|
|
|
|
|
+ // console.log(sql);
|
|
|
this.describeFn();
|
|
this.describeFn();
|
|
|
this.queryLoad(sql);
|
|
this.queryLoad(sql);
|
|
|
},
|
|
},
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
this_.listData = [];
|
|
this_.listData = [];
|
|
|
curdPost("sql", sql).then((res) => {
|
|
curdPost("sql", sql).then((res) => {
|
|
|
datas = res.variables.data;
|
|
datas = res.variables.data;
|
|
|
- console.log(datas, "2222222222 ");
|
|
|
|
|
|
|
+ // console.log(datas, "2222222222 ");
|
|
|
datas.forEach((item) => {
|
|
datas.forEach((item) => {
|
|
|
if (!labelsMap[item.ceng_hao_]) {
|
|
if (!labelsMap[item.ceng_hao_]) {
|
|
|
//没有就创建
|
|
//没有就创建
|
|
@@ -282,7 +282,7 @@ export default {
|
|
|
|
|
|
|
|
if (resData.length > 0) {
|
|
if (resData.length > 0) {
|
|
|
resData.forEach((it) => {
|
|
resData.forEach((it) => {
|
|
|
- console.log(yangpingSql, item, "样品扽飞机表");
|
|
|
|
|
|
|
+ // console.log(yangpingSql, item, "样品扽飞机表");
|
|
|
it.wei_zhi_bian_hao_ = item.wei_zhi_bian_hao_;
|
|
it.wei_zhi_bian_hao_ = item.wei_zhi_bian_hao_;
|
|
|
labelsMap[item.ceng_hao_].push(it);
|
|
labelsMap[item.ceng_hao_].push(it);
|
|
|
});
|
|
});
|
|
@@ -290,7 +290,7 @@ export default {
|
|
|
labelsMap[item.ceng_hao_].push(item);
|
|
labelsMap[item.ceng_hao_].push(item);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- console.log(labelsMap, "3333333333");
|
|
|
|
|
|
|
+ // console.log(labelsMap, "3333333333");
|
|
|
});
|
|
});
|
|
|
// this.loading = true;
|
|
// this.loading = true;
|
|
|
|
|
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
this.formInline.qu_yu_value = e.target.innerText;
|
|
this.formInline.qu_yu_value = e.target.innerText;
|
|
|
curdPost("sql", sqlString).then((response) => {
|
|
curdPost("sql", sqlString).then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
this_.huo_jia_arr = response.variables.data;
|
|
|
- console.log(this_.huo_jia_arr, "区域点击");
|
|
|
|
|
|
|
+ // console.log(this_.huo_jia_arr, "区域点击");
|
|
|
});
|
|
});
|
|
|
this.describeFn();
|
|
this.describeFn();
|
|
|
},
|
|
},
|
|
@@ -321,10 +321,10 @@ export default {
|
|
|
this.huojiashow = selectText;
|
|
this.huojiashow = selectText;
|
|
|
let huojiaNum = selectText.split("号")[0];
|
|
let huojiaNum = selectText.split("号")[0];
|
|
|
this.formInline.huo_jia_value = selectText;
|
|
this.formInline.huo_jia_value = selectText;
|
|
|
- console.log(this.formInline.huo_jia_value, huojiaNum, "value");
|
|
|
|
|
|
|
+ // console.log(this.formInline.huo_jia_value, huojiaNum, "value");
|
|
|
let huojialeixing = this.formInline.huo_jia_value.split("号")[1];
|
|
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}'`;
|
|
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, "货架点击");
|
|
|
|
|
|
|
+ // console.log(sql, "货架点击");
|
|
|
this.queryLoad(sql);
|
|
this.queryLoad(sql);
|
|
|
this.formInline.gua_jia_value = "";
|
|
this.formInline.gua_jia_value = "";
|
|
|
|
|
|
|
@@ -388,7 +388,7 @@ export default {
|
|
|
obj[next.qu_yu_] ? "" : (obj[next.qu_yu_] = true && cur.push(next));
|
|
obj[next.qu_yu_] ? "" : (obj[next.qu_yu_] = true && cur.push(next));
|
|
|
return cur;
|
|
return cur;
|
|
|
}, []); //设置cur默认类型为数组,并且初始值为空的数组
|
|
}, []); //设置cur默认类型为数组,并且初始值为空的数组
|
|
|
- console.log(peon);
|
|
|
|
|
|
|
+ // console.log(peon);
|
|
|
this_.quyu_arr = peon; //区域获取
|
|
this_.quyu_arr = peon; //区域获取
|
|
|
this_.quyu_arr.forEach((item) => {
|
|
this_.quyu_arr.forEach((item) => {
|
|
|
if (item.qu_yu_ == "") {
|
|
if (item.qu_yu_ == "") {
|
|
@@ -420,7 +420,7 @@ export default {
|
|
|
var this_ = this;
|
|
var this_ = this;
|
|
|
this.qu_yu_value = newdata;
|
|
this.qu_yu_value = newdata;
|
|
|
this.quyuShow = olddata;
|
|
this.quyuShow = olddata;
|
|
|
- console.log(sqlString, "货架变化");
|
|
|
|
|
|
|
+ // console.log(sqlString, "货架变化");
|
|
|
curdPost("sql", sqlString)
|
|
curdPost("sql", sqlString)
|
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
this_.huo_jia_arr = response.variables.data;
|
|
this_.huo_jia_arr = response.variables.data;
|