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

完善订单转异

parent d63c0790
<script> <script>
import imageUpload from '@/components/ImageUpload/index.vue' import imageUpload from '@/components/ImageUpload/index.vue'
import { batchException } from '@/api/ecw/order'
export default { export default {
name: 'TurnException', name: 'TurnException',
...@@ -9,13 +10,17 @@ export default { ...@@ -9,13 +10,17 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
orderId: {
type: [String, Number],
default: ''
}
}, },
data(){ data(){
return { return {
showDialog: false, showDialog: false,
form: { form: {
manualExceptionType: [], manualExceptionType: [],
exceptionUrls: [], exceptionUrls: "",
descZh: '' descZh: ''
} }
} }
...@@ -46,8 +51,16 @@ export default { ...@@ -46,8 +51,16 @@ export default {
} }
}); });
}, },
handleSubmit(){ async handleSubmit(){
this.showDialog = false 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') this.$emit('done')
}, },
handleCancel(){ handleCancel(){
...@@ -96,7 +109,7 @@ export default { ...@@ -96,7 +109,7 @@ export default {
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="handleException">{{ <el-button type="primary" @click="handleException">{{
$t("确认并完成入仓") $t("确认转异")
}}</el-button> }}</el-button>
<el-button @click="handleCancel">{{ $t("取消") }}</el-button> <el-button @click="handleCancel">{{ $t("取消") }}</el-button>
</span> </span>
......
...@@ -1217,6 +1217,7 @@ ...@@ -1217,6 +1217,7 @@
v-if="!!tureExceptionOrder" v-if="!!tureExceptionOrder"
ref="turnException" ref="turnException"
:order-no="tureExceptionOrder.orderNo" :order-no="tureExceptionOrder.orderNo"
:order-id="tureExceptionOrder.orderId"
@done="handleTurnExceptionDone" @done="handleTurnExceptionDone"
@cancel="handleExceptionClose"></turn-exception> @cancel="handleExceptionClose"></turn-exception>
</div> </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