+
-
@@ -392,6 +397,18 @@ export default {
textField: 'name'
},
editorMaterial: {
+ dataUrl: `${BASE_URL.BASE_URL}/BathroomMaterial/v1/bathroom/material/list`,
+ listdataFieldName: 'BathroomMaterial',
+ columns: [
+ { field: 'name', title: '名称' },
+ { field: 'remark', title: '备注' }
+ ],
+ placeholder: "请输入名称",
+ searchFieldNames: ['name'],
+ textField: 'name'
+ },
+
+ editorMaterial2: {
dataUrl: `${BASE_URL.BASE_URL}/BathroomMaterial/v1/bathroom/material/list`,
listdataFieldName: 'BathroomMaterial',
columns: [
@@ -400,6 +417,7 @@ export default {
],
placeholder: "请输入名称",
searchFieldNames: ['name'],
+ extendData : [{id:'封边条', name : '封边条'}],
textField: 'name'
},
editorBanding: {
@@ -1015,13 +1033,7 @@ export default {
},
material_beforeEditMethod({ column, row }) {
console.log(row, column);
-
- if (column.field == "material" && (row.isMain || row.isBanding)) {
- return false;
- }
- if (column.field == 'quantity_formula' && (row.isMain)) {
- return false;
- }
+
return true;
},
material_afterEditEvent({ column, row }) {
@@ -1091,12 +1103,7 @@ export default {
paintMaterial_beforeEditMethod({ column, row }) {
console.log(row, column);
- if (column.field == "material" && (row.isMain || row.isBanding)) {
- return false;
- }
- if (column.field == 'quantity_formula' && (row.isMain)) {
- return false;
- }
+
return true;
},
paintMaterial_afterEditEvent({ column, row }) {
@@ -1426,6 +1433,10 @@ export default {
this.modalVisible = true;
this.scheme_load();
},
+ previewScheme(){
+ let dataId = this.getDataId();
+ this.$openPage("/BathroomQuotation/BathroomQuotationUpdate/d" + dataId); // 打开页面
+ },
confirmSelectScheme() {
let row = this.$refs.scheme_grid.getCurrentRecord(); // 获取当前行
diff --git a/src/pages/Middle/bathroom/BathroomScheme/BathroomScheme/List copy.vue b/src/pages/Middle/bathroom/BathroomScheme/BathroomScheme/List copy.vue
deleted file mode 100644
index c84f288..0000000
--- a/src/pages/Middle/bathroom/BathroomScheme/BathroomScheme/List copy.vue
+++ /dev/null
@@ -1,461 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 批量删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/Middle/bathroom/basic/EditExpressions.vue b/src/pages/Middle/bathroom/basic/EditExpressions.vue
index 0ac557a..38c6bd4 100644
--- a/src/pages/Middle/bathroom/basic/EditExpressions.vue
+++ b/src/pages/Middle/bathroom/basic/EditExpressions.vue
@@ -3,7 +3,7 @@
+ @click="clickEvent" @change="textChange">
@@ -41,8 +41,8 @@ export default {
actions: {
},
textboxValue: '',
- expressions_list: settings.expressions_list,
- sourceValue:'',
+ expressions_list: [],
+ sourceValue: '',
row: null,
column: null,
loading: false
@@ -54,11 +54,11 @@ export default {
this.$nextTick(() => {
this.$refs.inputx.focus();
this.$refs.xDown.showPanel()
- })
+ })
},
- beforeDestroy() {
+ beforeDestroy() {
},
- methods: {
+ methods: {
addText(item) {
const { row, column } = this.params
if (!this.textboxValue) {
@@ -68,20 +68,20 @@ export default {
this.$refs.inputx.focus();
- row[column.field] = this.textboxValue;
+ row[column.field] = this.textboxValue;
},
- setText(){
+ setText() {
const { row, column } = this.params
this.textboxValue = this.sourceValue;
- row[column.field] = this.textboxValue;
-
+ row[column.field] = this.textboxValue;
+
this.$refs.inputx.focus();
},
- textChange(){
+ textChange() {
const { row, column } = this.params
- row[column.field] = this.textboxValue;
+ row[column.field] = this.textboxValue;
},
load() {
const { row, column } = this.params
@@ -90,11 +90,27 @@ export default {
this.textboxValue = row[column.field]
- if(row.source && row.source[column.field]){
+ if (row.source && row.source[column.field]) {
this.sourceValue = row.source[column.field];
}
-
+ this.expressions_list = settings.expressions_list;
+
+ if (column.params && column.params.hasTotalQuantity) {
+ if (row.material && row.material[1]) {
+ let name = this.formatName(row.material[1]);
+ if(name == '封边条'){
+ this.expressions_list = ['封边条用量合计', ... this.expressions_list]
+ }else{
+ this.expressions_list = [name + '的总用量', ... this.expressions_list]
+ }
+ }
+ }
+
+ },
+ formatName(v) {
+ return (v || "").replace("\r", "").replace("\n", "").replace("\t", "").replace(" ", "");
+
},
clickEvent() {
this.$refs.xDown.showPanel()
@@ -109,7 +125,7 @@ export default {
this.$refs.xDown.togglePanel()
},
-
+
}
}
@@ -129,25 +145,28 @@ export default {
box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
line-height: 180%;
font-size: 14px;
-overflow:auto;
-
+ overflow: auto;
+
+
-
}
-.edit-expressions-wrapper ul{
+
+.edit-expressions-wrapper ul {
list-style: none;
padding-left: 20px;
}
-.sourceValue{
+
+.sourceValue {
padding-left: 20px;
cursor: pointer;
}
+
.edit-expressions-wrapper li {
- list-style: none;
- }
- .edit-expressions-wrapper a {
- color: #4286eb;
+ list-style: none;
+}
+
+.edit-expressions-wrapper a {
+ color: #4286eb;
cursor: pointer;
- }
-
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/src/pages/Middle/bathroom/basic/settings.js b/src/pages/Middle/bathroom/basic/settings.js
index 4318127..1eeaa69 100644
--- a/src/pages/Middle/bathroom/basic/settings.js
+++ b/src/pages/Middle/bathroom/basic/settings.js
@@ -142,7 +142,7 @@ var config = {
- table_min_count: 4,
+ table_min_count: 1,
getGuid: () => {