Commit 1d816b9e authored by dragondean@qq.com's avatar dragondean@qq.com

完善订单转异

parent d63c0790
<script>
import imageUpload from '@/components/ImageUpload/index.vue'
import { batchException } from '@/api/ecw/order'
export default {
name: 'TurnException',
......@@ -9,13 +10,17 @@ export default {
type: String,
default: ''
},
orderId: {
type: [String, Number],
default: ''
}
},
data(){
return {
showDialog: false,
form: {
manualExceptionType: [],
exceptionUrls: [],
exceptionUrls: "",
descZh: ''
}
}
......@@ -46,8 +51,16 @@ export default {
}
});
},
handleSubmit(){
async handleSubmit(){
this.showDialog = false
await batchException({
orderNo: this.orderNo,
manualExceptionType: this.form.manualExceptionType.join(','),
exceptionUrls: this.form.exceptionUrls?.split(",") || [],
descZh: this.form.descZh,
orderIds: [this.orderId]
})
this.$message.success(this.$t('操作成功'))
this.$emit('done')
},
handleCancel(){
......@@ -96,7 +109,7 @@ export default {
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleException">{{
$t("确认并完成入仓")
$t("确认转异")
}}</el-button>
<el-button @click="handleCancel">{{ $t("取消") }}</el-button>
</span>
......
......@@ -1217,6 +1217,7 @@
v-if="!!tureExceptionOrder"
ref="turnException"
:order-no="tureExceptionOrder.orderNo"
:order-id="tureExceptionOrder.orderId"
@done="handleTurnExceptionDone"
@cancel="handleExceptionClose"></turn-exception>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment