| | |
| | | data() { |
| | | return { |
| | | title: this.translateSys("sorting"), |
| | | ClsID: "Sorting_Detail", |
| | | ClsID2: "Sorting_Result", |
| | | ClsID: "Distribution_CNTR_Detail", |
| | | ClsID2: "Picking_Result", |
| | | param: {}, |
| | | focusFieldId: "", |
| | | focusOldFieldId: "", |
| | |
| | | var $this = this; |
| | | |
| | | console.log(item); |
| | | if (item.oldvalue != item.value) { |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | }, |
| | | onEnterChange(item) { //回车,点击按钮,取消节点事件 |
| | | // console.log(item); |
| | | if (item.oldvalue != item.value) { |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | data.forEach(async (ele2, index) => { |
| | | if (ele.fieldId == ele2 |
| | | .attr) { |
| | | if (ele.name == |
| | | 'Select' && |
| | | ele2 |
| | | .choice_list) { |
| | | const |
| | | dictItemList = []; |
| | | const |
| | | choiceList = |
| | | ele2 |
| | | .choice_list || |
| | | []; |
| | | for (let d in |
| | | choiceList) { |
| | | const val = |
| | | choiceList[ |
| | | d]; |
| | | dictItemList |
| | | .push({ |
| | | text: val, |
| | | value: val |
| | | }); |
| | | } |
| | | ele.dict = |
| | | dictItemList; |
| | | } |
| | | ele.value = ele2 |
| | | .value; |
| | | |
| | | } |
| | | }); |
| | | }); |