| | |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" label-width="120px" label-suffix=":" inline> |
| | | <el-form :model="form" ref="form" label-width="120px" label-suffix=":" :rules="rules" inline> |
| | | <el-form-item label="备注" prop="sysInfo"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 12}" v-model="form.sysInfo" placeholder="请输入备注" :maxlength="5" v-trim/> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 12}" v-model="form.sysInfo" placeholder="请输入备注" :maxlength="50" v-trim/> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | </GlobalAlertWindow> |
| | | </template> |
| | |
| | | form: { |
| | | id: null, |
| | | sysInfo: '' |
| | | // isdeleted: '', |
| | | // name: '', |
| | | // info: '', |
| | | // type: '', |
| | | // module: '', |
| | | // parentId: '', |
| | | // sortnum: '', |
| | | // status: '', |
| | | // imgurl: '' |
| | | }, |
| | | // 验证规则 |
| | | rules: { |
| | | sysInfo: [ |
| | | { required: true, message: '请输入订单备注信息', tigger: 'blur' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | created () { |
| | | this.config({ |
| | | api: '/business/labels', |
| | | api: '/business/goodsorder', |
| | | 'field.id': 'id' |
| | | }) |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.isWorking = true |
| | | this.api.orderRemark(this.form) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('发货成功') |
| | | this.$emit('success') |
| | | }).catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | // 调用新建接口 |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/assets/style/alertstyle.scss"; |
| | | |
| | | |
| | | </style> |