|
|
@@ -89,13 +89,19 @@
|
|
|
:key="index"
|
|
|
class="goods-dsc"
|
|
|
:style="{
|
|
|
- background:
|
|
|
- it.cun_fang_wei_zhi_ == '空' ? '' : '#67c23a',
|
|
|
+ background: it.wu_liao_bian_ma_ ? '' : '#67c23a',
|
|
|
}"
|
|
|
>
|
|
|
<div class="top-dsc">
|
|
|
<div class="position">
|
|
|
- <p>名称:{{ it.wu_liao_ming_chen || 空 }}</p>
|
|
|
+ <div style="display:flex;justify-content: flex-start;text-align: left;">
|
|
|
+ <span> 名称:</span>
|
|
|
+ <p style="width: 80px">
|
|
|
+
|
|
|
+ {{ it.wu_liao_ming_chen || 空 }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+
|
|
|
<p>
|
|
|
编码:{{
|
|
|
it.wu_liao_bian_ma_ || it.wu_liao_bian_ma_
|
|
|
@@ -208,9 +214,7 @@ export default {
|
|
|
let sqlString = `select distinct qu_yu_,cun_chu_tiao_jian from t_ck where cang_ku_ming_chen = '${cang_ku}' order by qu_yu_ asc`;
|
|
|
var this_ = this;
|
|
|
curdPost("sql", sqlString).then((response) => {
|
|
|
-
|
|
|
this_.quyu_arr = response.variables.data;
|
|
|
- console.log(this_.quyu_arr)
|
|
|
if (!this.firstLoadActive) {
|
|
|
this_.formInline.qu_yu_value = "";
|
|
|
}
|
|
|
@@ -264,7 +268,6 @@ export default {
|
|
|
// var sqlString = `select * from t_mjwlgl where cang_ku_ming_chen = '${this.formInline.cang_ku_ming_chen_value}' and qu_yu_ = '${this.formInline.qu_yu_value}'`;
|
|
|
let py = this.formInline.qu_yu_value.split("号")[1].replace(/^\s*/g, "");
|
|
|
let num = this.formInline.qu_yu_value.split("号")[0];
|
|
|
- console.log(py, "111111111");
|
|
|
let quyu = this.sqlSlice(py);
|
|
|
let type = (quyu + num).replace(/^\s*/g, "");
|
|
|
var sqlString =
|
|
|
@@ -274,7 +277,6 @@ export default {
|
|
|
"'%" +
|
|
|
type +
|
|
|
"%'";
|
|
|
- console.log(sqlString, type, "按钮");
|
|
|
this.queryLoad(sqlString, type);
|
|
|
},
|
|
|
queryLoad(sql, py) {
|
|
|
@@ -292,10 +294,9 @@ export default {
|
|
|
" and cang_ku_ming_chen ='" +
|
|
|
this.formInline.cang_ku_ming_chen_value +
|
|
|
"' ORDER BY wei_zhi_ ASC ";
|
|
|
- console.log(py)
|
|
|
- let weiSlice ="SUBSTR(wei_zhi_, 1, 6)"
|
|
|
+ let weiSlice = "SUBSTR(wei_zhi_, 1, 6)";
|
|
|
if (py.includes("WHPG")) {
|
|
|
- weiSlice = 'SUBSTR(wei_zhi_, 1, 7)';
|
|
|
+ weiSlice = "SUBSTR(wei_zhi_, 1, 7)";
|
|
|
}
|
|
|
let classSql =
|
|
|
`select DISTINCT ${weiSlice} AS wei_zhi_ from t_ck where wei_zhi_ like ` +
|
|
|
@@ -305,31 +306,32 @@ export default {
|
|
|
" and cang_ku_ming_chen ='" +
|
|
|
this.formInline.cang_ku_ming_chen_value +
|
|
|
"' ORDER BY wei_zhi_ ASC ";
|
|
|
- console.log(classSql, "classSql");
|
|
|
curdPost("sql", sqltype).then((res) => {
|
|
|
typeData = res.variables.data; //查询具体仓库某个货架的所有位置
|
|
|
- console.log(typeData, "位置");
|
|
|
curdPost("sql", sql).then((res) => {
|
|
|
datas = res.variables.data; //具体仓库某个货架的所有物料数据
|
|
|
- console.log(datas, "数据");
|
|
|
typeData.forEach((item) => {
|
|
|
typeArr[item.wei_zhi_] = [];
|
|
|
if (datas.length == 0) {
|
|
|
+ //没有物料信息
|
|
|
typeArr[item.wei_zhi_].push(item);
|
|
|
} else {
|
|
|
datas.forEach((it, index) => {
|
|
|
+ console.log(item.wei_zhi_, it.cun_fang_wei_zhi_);
|
|
|
if (item.wei_zhi_ == it.cun_fang_wei_zhi_) {
|
|
|
typeArr[item.wei_zhi_].push(it);
|
|
|
} else if (
|
|
|
item.wei_zhi_ != it.cun_fang_wei_zhi_ &&
|
|
|
index == datas.length - 1
|
|
|
) {
|
|
|
- typeArr[item.wei_zhi_].push(item);
|
|
|
+ if (!typeArr[item.wei_zhi_].length) {
|
|
|
+ typeArr[item.wei_zhi_].push(item);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- console.log(typeArr, "22222222222222");
|
|
|
+ console.log(typeArr);
|
|
|
curdPost("sql", classSql).then((res2) => {
|
|
|
let resData = res2.variables.data;
|
|
|
resData.forEach((item) => {
|
|
|
@@ -338,10 +340,8 @@ export default {
|
|
|
labelsMap[layer] = [];
|
|
|
for (var prop in typeArr) {
|
|
|
if (typeArr.hasOwnProperty(prop)) {
|
|
|
- // console.log(prop,item.wei_zhi_);
|
|
|
if (prop.includes(item.wei_zhi_)) {
|
|
|
labelsMap[layer].push(...typeArr[prop]);
|
|
|
- // console.log(labelsMap)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -371,7 +371,6 @@ export default {
|
|
|
" and cang_ku_ming_chen = '" +
|
|
|
this.formInline.cang_ku_ming_chen_value +
|
|
|
"'";
|
|
|
- // console.log(sqlString, type);
|
|
|
this.queryLoad(sqlString, type);
|
|
|
this.formInline.qu_yu_value = value;
|
|
|
this.quyuShow = value;
|
|
|
@@ -546,7 +545,7 @@ p {
|
|
|
cursor: pointer;
|
|
|
// width: 170px;
|
|
|
// height: 80px;
|
|
|
- padding: 6px 12px;
|
|
|
+ padding: 6px 6px;
|
|
|
border-radius: 5px;
|
|
|
background: #e6a23c;
|
|
|
margin-left: 12px;
|
|
|
@@ -557,14 +556,14 @@ p {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
font-size: 12px;
|
|
|
- height: 18px;
|
|
|
- line-height: 18px;
|
|
|
+ // height: 18px;
|
|
|
+ // line-height: 18px;
|
|
|
.position > p {
|
|
|
text-align: left;
|
|
|
// color: #fbe8ff;
|
|
|
}
|
|
|
.right-content > p {
|
|
|
- margin-left: 15px;
|
|
|
+ margin-left: 2px;
|
|
|
// color: #fbe8ff;
|
|
|
text-align: left;
|
|
|
}
|
|
|
@@ -575,9 +574,9 @@ p {
|
|
|
.bottom-dsc {
|
|
|
width: 100%;
|
|
|
font-size: 18px;
|
|
|
- height: 42px;
|
|
|
- line-height: 60px;
|
|
|
- margin-top: 20px;
|
|
|
+ // height: 42px;
|
|
|
+ // line-height: 60px;
|
|
|
+ // margin-top: 20px;
|
|
|
// color: #fbe8ff;
|
|
|
}
|
|
|
.goods-demo {
|