| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalAlertWindow |
| | | v-loading="isUploading" |
| | | :title="title" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" label-width="120px" label-suffix="ï¼" :rules="rules" inline> |
| | | <p class="tip-warn" style="margin: 30px;font-size: 14px;"> |
| | | <i class="el-icon-warning"></i> |
| | | æä½è¯´æï¼æ¨æ£å¨åæ¶è®¢å<span class="red">{{ form.code }} </span>ï¼è¯·è°¨æ
æä½ï¼ï¼</p> |
| | | <el-form-item label="夿³¨" prop="cancelInfo"> |
| | | <el-input type="textarea" :autosize="{ minRows: 4, maxRows:4 }" v-model="form.cancelInfo" placeholder="请è¾å
¥åæ¶è¯´æ" :maxlength="50" v-trim/> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </GlobalAlertWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalAlertWindow from '@/components/common/GlobalAlertWindow' |
| | | export default { |
| | | name: 'OperaOrderCancelWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalAlertWindow }, |
| | | data () { |
| | | return { |
| | | isUploading: false, |
| | | // è¡¨åæ°æ® |
| | | form: { |
| | | id: null, |
| | | cancelInfo: '', |
| | | code: null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | cancelInfo: [ |
| | | { required: false, message: '请è¾å
¥å¤æ³¨ä¿¡æ¯', tigger: 'blur' } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | | this.config({ |
| | | api: '/business/goodsorder', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) { |
| | | return |
| | | } |
| | | this.$dialog.messageWaring(`ç¡®å®åæ¶è®¢åï¼${this.form.code}ï¼`) |
| | | .then(() => { |
| | | this.isWorking = true |
| | | this.api.orderPlanCancelOrder(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> |