在订单创建的时候可以录入系统中不存在模具
This commit is contained in:
parent
50aaceaf0f
commit
46f1aed57b
|
|
@ -151,6 +151,10 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(column.params.inputSaveField ){
|
||||||
|
row[column.params.inputSaveField] = this.textboxValue;
|
||||||
|
}
|
||||||
|
|
||||||
this.getData().then(data => {
|
this.getData().then(data => {
|
||||||
|
|
||||||
this.tablePage.total = data.total;
|
this.tablePage.total = data.total;
|
||||||
|
|
@ -228,6 +232,11 @@ export default {
|
||||||
}
|
}
|
||||||
const cellValue = this.textboxValue;
|
const cellValue = this.textboxValue;
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
if(column.params.inputSaveField ){
|
||||||
|
row[column.params.inputSaveField] = cellValue;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (!cellValue) {
|
if (!cellValue) {
|
||||||
row[column.field] = null;
|
row[column.field] = null;
|
||||||
|
|
@ -296,6 +305,9 @@ export default {
|
||||||
row[item.field] = params.row[item.fromField];
|
row[item.field] = params.row[item.fromField];
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if(column.params.inputSaveField ){
|
||||||
|
row[column.params.inputSaveField] = this.textboxValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.params.$table.$emit("pulldownSelected", { row, selectedData: params.row, column, name: column.params.name, params: this.params });
|
this.params.$table.$emit("pulldownSelected", { row, selectedData: params.row, column, name: column.params.name, params: this.params });
|
||||||
|
|
@ -331,7 +343,10 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(id)
|
if(column.params.inputSaveField ){
|
||||||
|
row[column.params.inputSaveField] = this.textboxValue;
|
||||||
|
}
|
||||||
|
|
||||||
this.modalVisible = false;
|
this.modalVisible = false;
|
||||||
let rows = this.$refs.popup.getConfirmData();
|
let rows = this.$refs.popup.getConfirmData();
|
||||||
this.params.$table.$emit("popupSelected", { rows, name: column.params.name, params: this.params });
|
this.params.$table.$emit("popupSelected", { rows, name: column.params.name, params: this.params });
|
||||||
|
|
@ -367,7 +382,9 @@ export default {
|
||||||
row[item.field] = selectedRow[item.fromField];
|
row[item.field] = selectedRow[item.fromField];
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if(column.params.inputSaveField ){
|
||||||
|
row[column.params.inputSaveField] = this.textboxValue;
|
||||||
|
}
|
||||||
|
|
||||||
this.modalVisible = false;
|
this.modalVisible = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,17 @@
|
||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
|
|
||||||
<vxe-column field="mold_scheme" title="模型" width="160" :params="editor_scheme" formatter="formatRef"
|
<vxe-column field="mold_scheme" title="模型名" width="160" :params="editor_scheme" formatter="formatRef"
|
||||||
:edit-render="{ name: 'MkGridDataSelector' }"></vxe-column>
|
:edit-render="{ name: 'MkGridDataSelector' }">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div>
|
||||||
|
{{ row.mold_name ? row.mold_name : (row.mold_scheme ? (row.mold_scheme.name || '') : '') }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</vxe-column>
|
||||||
|
|
||||||
|
<vxe-column field="mold_code" title="模型编码" width="160"
|
||||||
|
:edit-render="{ name: '$input' }"></vxe-column>
|
||||||
|
|
||||||
<vxe-column field="mold_master_user_detail" title="师傅" width="160" :params="editor_staff" formatter="formatRef"
|
<vxe-column field="mold_master_user_detail" title="师傅" width="160" :params="editor_staff" formatter="formatRef"
|
||||||
:edit-render="{ name: 'MkGridDataSelector' }"></vxe-column>
|
:edit-render="{ name: 'MkGridDataSelector' }"></vxe-column>
|
||||||
|
|
@ -219,8 +227,10 @@ export default {
|
||||||
valueField: "id",
|
valueField: "id",
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MoldScheme',
|
listdataFieldName: 'MoldScheme',
|
||||||
|
inputSaveField:'mold_name',
|
||||||
mapper: [
|
mapper: [
|
||||||
{ fromField: "id", field: "mold_id" }
|
{ fromField: "id", field: "mold_id" },
|
||||||
|
{ fromField: "code", field: "mold_code" },
|
||||||
],
|
],
|
||||||
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
|
dataUrl: `${BASE_URL.BASE_URL}/MoldScheme/v1/mold/scheme/list`
|
||||||
},
|
},
|
||||||
|
|
@ -395,9 +405,8 @@ export default {
|
||||||
// 如果是新增模式,提交的数据中加入id 如果是编辑模式,提交的数据中不加入id
|
// 如果是新增模式,提交的数据中加入id 如果是编辑模式,提交的数据中不加入id
|
||||||
let postdata = Object.assign({}, this.formOptions.data);
|
let postdata = Object.assign({}, this.formOptions.data);
|
||||||
|
|
||||||
console.log(this.dataset.order_molds.fields)
|
|
||||||
postdata.order_molds = this.$mk.getPostFieldValue({
|
postdata.order_molds = this.$mk.getPostFieldValue({
|
||||||
rowFilter: (row) => { return row.id || row.mold_id },
|
rowFilter: (row) => { return row.id || (row.mold_id || row.mold_code) },
|
||||||
dataId: this.getDataId_BigInt(),
|
dataId: this.getDataId_BigInt(),
|
||||||
list: this.detailsData,
|
list: this.detailsData,
|
||||||
deletedList: this.deletedDetailsData,
|
deletedList: this.deletedDetailsData,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue