在订单创建的时候可以录入系统中不存在模具
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.tablePage.total = data.total;
|
||||
|
|
@ -227,12 +231,17 @@ export default {
|
|||
return false;
|
||||
}
|
||||
const cellValue = this.textboxValue;
|
||||
this.loading = true
|
||||
this.loading = true
|
||||
if(column.params.inputSaveField ){
|
||||
row[column.params.inputSaveField] = cellValue;
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (!cellValue) {
|
||||
row[column.field] = null;
|
||||
}
|
||||
|
||||
|
||||
this.getData(cellValue).then(data => {
|
||||
|
||||
this.loading = false
|
||||
|
|
@ -296,6 +305,9 @@ export default {
|
|||
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 });
|
||||
|
|
@ -331,7 +343,10 @@ export default {
|
|||
})
|
||||
}
|
||||
|
||||
console.log(id)
|
||||
if(column.params.inputSaveField ){
|
||||
row[column.params.inputSaveField] = this.textboxValue;
|
||||
}
|
||||
|
||||
this.modalVisible = false;
|
||||
let rows = this.$refs.popup.getConfirmData();
|
||||
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];
|
||||
})
|
||||
}
|
||||
|
||||
if(column.params.inputSaveField ){
|
||||
row[column.params.inputSaveField] = this.textboxValue;
|
||||
}
|
||||
|
||||
this.modalVisible = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,9 +60,17 @@
|
|||
</template>
|
||||
</vxe-column>
|
||||
|
||||
<vxe-column field="mold_scheme" title="模型" width="160" :params="editor_scheme" formatter="formatRef"
|
||||
:edit-render="{ name: 'MkGridDataSelector' }"></vxe-column>
|
||||
|
||||
<vxe-column field="mold_scheme" title="模型名" width="160" :params="editor_scheme" formatter="formatRef"
|
||||
: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"
|
||||
:edit-render="{ name: 'MkGridDataSelector' }"></vxe-column>
|
||||
|
|
@ -219,8 +227,10 @@ export default {
|
|||
valueField: "id",
|
||||
textField: "name",
|
||||
listdataFieldName: 'MoldScheme',
|
||||
inputSaveField:'mold_name',
|
||||
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`
|
||||
},
|
||||
|
|
@ -394,10 +404,9 @@ export default {
|
|||
let action = !this.isEdit ? this.actions.create : this.actions.update;
|
||||
// 如果是新增模式,提交的数据中加入id 如果是编辑模式,提交的数据中不加入id
|
||||
let postdata = Object.assign({}, this.formOptions.data);
|
||||
|
||||
console.log(this.dataset.order_molds.fields)
|
||||
|
||||
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(),
|
||||
list: this.detailsData,
|
||||
deletedList: this.deletedDetailsData,
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export default {
|
|||
editor_scheme: {
|
||||
dataType: "object",
|
||||
valueField: "id",
|
||||
textField: "name",
|
||||
textField: "name",
|
||||
listdataFieldName: 'MoldScheme',
|
||||
mapper: [
|
||||
{ fromField: "id", field: "mold_id" }
|
||||
|
|
|
|||
Loading…
Reference in New Issue