| | |
| | | <div> |
| | | <vol-box |
| | | v-model="dialogFormVisible" |
| | | :on-model-close="closeCustomModel" |
| | | :lazy="true" |
| | | width="20%" |
| | | :padding="15" |
| | |
| | | formLabelWidth: '160px', |
| | | formFields1: { |
| | | LineCode: "", |
| | | Grade: "0", |
| | | }, |
| | | formRules1:[[ |
| | | { |
| | |
| | | extra: { |
| | | |
| | | }, |
| | | }]], |
| | | }], |
| | | [ |
| | | { |
| | | title: "æ¯å¦ä¼å
", |
| | | field: "Grade", |
| | | data: [], |
| | | required: false, |
| | | type: "switch", |
| | | }, |
| | | ]], |
| | | form: { |
| | | name: '', |
| | | region: '', |
| | |
| | | var keys = this.selection.map((item) => item.id); // è·åéä¸è¡çid |
| | | |
| | | this.http |
| | | .post("api/Task/OutProductTask?stationCode="+this.formFields1.LineCode, keys, "æ°æ®å¤çä¸") |
| | | .post("api/Task/OutProductTask?stationCode="+this.formFields1.LineCode +"&grade="+this.formFields1.Grade, keys, "æ°æ®å¤çä¸") |
| | | .then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.$message.success("æä½æå"); |
| | | this.formFields1.LineCode=""; |
| | | this.formFields1.Grade="0"; |
| | | this.dialogFormVisible=false; |
| | | this.$parent.refresh(); |
| | | this.showDetialBox = false; |
| | | this.$emit("parentCall", ($vue) => { |
| | | $vue.getData(); |
| | | }); |
| | | this.formFields1.LineCode=""; |
| | | this.dialogFormVisible=false; |
| | | this.$parent.refresh(); |
| | | }); |
| | | }, |
| | | setCurrent(row) { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | closeCustomModel() { |
| | | this.formFields1.LineCode=""; |
| | | this.formFields1.Grade="0"; |
| | | this.dialogFormVisible=false; |
| | | this.$parent.refresh(); |
| | | }, |
| | | getDictionary(row, column) { |
| | | if (this.dictionaryList) { |
| | | var item = this.dictionaryList.find((x) => x.dicNo == column.bindKey); |