|
@@ -1162,12 +1162,13 @@ const submit = function () {
|
|
|
d.origin_form = form.value
|
|
|
console.log(d, 'form data')
|
|
|
loading.value = true
|
|
|
+ submited.value = true
|
|
|
request
|
|
|
.post('/Shipping_tracking/createShippingTracking', d)
|
|
|
.then((res) => {
|
|
|
const d = res.data
|
|
|
console.log(d, 'create approval')
|
|
|
- if (d.result.code === 200) {
|
|
|
+ if (d.result.code === 200 && d.code === 1) {
|
|
|
ElNotification({
|
|
|
duration: 0,
|
|
|
type: 'success',
|
|
@@ -1177,13 +1178,12 @@ const submit = function () {
|
|
|
setTimeout(() => {
|
|
|
redirectToCRM()
|
|
|
}, 3500)
|
|
|
- submited.value = true
|
|
|
} else {
|
|
|
ElNotification({
|
|
|
duration: 0,
|
|
|
type: 'error',
|
|
|
- title: '创建审核单出错!',
|
|
|
- message: d.result.message.errmsg || '',
|
|
|
+ title: '创建审核单出错!请联系管理员',
|
|
|
+ message: d.result.message?.errmsg || d.msg || '',
|
|
|
})
|
|
|
}
|
|
|
})
|