diff --git a/vue/src/views/pg-fis/basedate/m100Online/budaMB.vue b/vue/src/views/pg-fis/basedate/m100Online/budaMB.vue
index 869cf912..6196c222 100644
--- a/vue/src/views/pg-fis/basedate/m100Online/budaMB.vue
+++ b/vue/src/views/pg-fis/basedate/m100Online/budaMB.vue
@@ -292,13 +292,12 @@ export default {
//this.tableHeight = offsetHei -260
});
},
- created() {
- this.getList();
- },
+ // created() {
+ // this.getList();
+ // },
watch: {
customerInfosMB: {
handler(newVal) {
-
console.log("门板-接收的父组件的值:" + JSON.stringify(newVal));
if (newVal == "" || newVal == "undefined") {
//TODO
diff --git a/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue b/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue
index 79bce13c..32402b78 100644
--- a/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue
+++ b/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue
@@ -304,7 +304,7 @@ export default {
newVal.forEach((element) => {
this.customerInfo.printType = 2; //2时补打
this.customerInfo.productLine = element.ProductLine;
- this.customerInfo.productGroup = element.productGroup
+ this.customerInfo.Groupname = element.Groupname
});
if (this.customerInfo.productLine != "") {
this.getList();
@@ -472,7 +472,8 @@ export default {
if (this.customerInfo.productLine != "") {
inputParam.productLine = this.customerInfo.productLine;
}
- inputParam.Groupname = this.customerInfo.productGroup;
+ inputParam.Groupname = this.customerInfo.Groupname;
+ console.log(476,inputParam)
console.log('取柱护板补打列表replenish-print-zhb-list方法输入参数:' + JSON.stringify(this.listQuery));
this.$axios
.gets(
@@ -507,7 +508,7 @@ export default {
var params = {
printType: 2,
productLine: this.customerInfo.productLine,
- Groupname: this.customerInfo.productGroup,
+ Groupname: this.customerInfo.Groupname,
beginVin: beginVin1,
endVin: endVin1,
m100IdList: []
diff --git a/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue b/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue
index 03ce580c..5ae9103f 100644
--- a/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue
+++ b/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue
@@ -46,16 +46,16 @@
u.productType === parseInt(this.listQuery.productType)
).sort((a, b) => {
return a.productLineCode - b.productLineCode;
});
+ this.listQuery.productLine = this.PLChildList[0].productLineCode;
+ this.listQuery.Groupname = this.listQuery.productType == '1' ? undefined : this.PLChildGroupList[0]
this.changeMainTableHeight()
+ this.valueselectChange()
//变更打印按钮文字
if (this.listQuery.productType === 1) {
this.$refs.btn1.$el.innerText = "打印门板发货排序单";
diff --git a/vue/src/views/pg-fis/basedate/select/index.vue b/vue/src/views/pg-fis/basedate/select/index.vue
index e82a6e73..190875d0 100644
--- a/vue/src/views/pg-fis/basedate/select/index.vue
+++ b/vue/src/views/pg-fis/basedate/select/index.vue
@@ -32,7 +32,7 @@
clearable
placeholder="请选择"
size="medium"
- style="margin-right: 15px"
+ style="margin-right: 10px"
@change="valueselectChange"
>
+
+
+
+
+
+
+
{
- var offsetHei = document.documentElement.clientHeight;
- //console.log(offsetHei);
- let boxH = this.$refs.box.offsetHeight;
- this.tableHeight = offsetHei - boxH - 57 - 79; //57为footer高度,79为页面上部标签高度
- //this.tableHeight = offsetHei -260
- });
+ let _this = this
+ window.addEventListener('resize',function(){
+ _this.changeMainTableHeight()
+ })
+ this.getPLChildGroupList()
},
created() {
this.billState.forEach((element, index) => {
@@ -663,6 +684,28 @@ export default {
...mapGetters(["userInfo"]), //获取当前用户信息
},
methods: {
+ // 更改主表格高度
+ changeMainTableHeight(){
+ this.$nextTick(()=>{
+ var offsetHei = document.documentElement.clientHeight;
+ //console.log(offsetHei);
+ let boxH = this.$refs.box.offsetHeight;
+ this.tableHeight = offsetHei - boxH - 37 - 79; //57为footer高度,79为页面上部标签高度
+ //this.tableHeight = offsetHei -260
+ })
+ },
+ // 获取PLChildGroupList
+ getPLChildGroupList(){
+ this.$axios
+ .gets(
+ "/api/newjit/print-template-configuration/list",
+ )
+ .then((response) => {
+ if (response.item !== null) {
+ this.PLChildGroupList= response.item;
+ }
+ });
+ },
//抽屉
handleDrawerOpen(param) {
this.drawer = true;
@@ -861,6 +904,8 @@ export default {
.catch(() => {
this.listLoading = false;
});
+
+ this.changeMainTableHeight()
},
getDetialList(partCode) {
@@ -1506,21 +1551,24 @@ export default {
ptypeselectChange() {
this.$forceUpdate();
//console.log(this.listQuery.productType);
- this.listQuery.productLine = "";
this.PLChildList = this.PLList.filter(
(u) => u.productType === parseInt(this.listQuery.productType)
).sort((a, b) => {
return a.productLineCode - b.productLineCode;
});
+ this.listQuery.productLine = this.PLChildList[0].productLineCode;
+ this.changeMainTableHeight()
//console.log(this.PLList)
//变更打印按钮文字
if (this.listQuery.productType === 1) {
+ this.listQuery.Groupname = undefined
this.$refs.btn1.$el.innerText = "打印门板发货排序单";
this.$refs.btn2.$el.innerText = "重新打印门板发货排序单";
this.$refs.btn3.$el.innerText = "补打门板发货排序单";
this.listQuery.state.push(this.billState[0].id);
this.isShowState = true;
} else if (this.listQuery.productType === 2) {
+ this.listQuery.Groupname = this.PLChildGroupList[0]
this.$refs.btn1.$el.innerText = "打印柱护板发货排序单";
this.$refs.btn2.$el.innerText = "重新打印柱护板发货排序单";
this.$refs.btn3.$el.innerText = "补打柱护板发货排序单";