ci-plus 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/fileRelated/uploadV5.vue +23 -3
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -306,13 +306,32 @@ const submitUpload = () => {
|
|
|
306
306
|
if (!fileList.value || !fileList.value.length) {
|
|
307
307
|
return ElMessage.warning(t('fileRelated.pleaseFile'))
|
|
308
308
|
}
|
|
309
|
+
|
|
310
|
+
// 判断是否归属公司必选并且选择了值
|
|
311
|
+
console.log(
|
|
312
|
+
'%c Line:312 🍤 判断',
|
|
313
|
+
'color:#33a5ff',
|
|
314
|
+
requiredAffiliation.value && !datas.value.factory_affiliation_id,
|
|
315
|
+
requiredAffiliation.value,
|
|
316
|
+
datas.value.factory_affiliation_id
|
|
317
|
+
)
|
|
309
318
|
console.log(fileList.value.length)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
319
|
+
console.log(
|
|
320
|
+
'%c Line:312 🍤 判断',
|
|
321
|
+
'color:#33a5ff',
|
|
322
|
+
requiredAffiliation.value && !datas.value.factory_affiliation_id,
|
|
323
|
+
requiredAffiliation.value,
|
|
324
|
+
datas.value.factory_affiliation_id
|
|
325
|
+
)
|
|
326
|
+
console.log('%c Line:312 🍎 选中归属公司', 'color:#ed9ec7', datas.value.factory_affiliation_id)
|
|
327
|
+
console.log('%c Line:319 🍔 必填', 'color:#93c0a4', requiredAffiliation.value)
|
|
313
328
|
if (!datas.value.factory_affiliation_id && requiredAffiliation.value) {
|
|
314
329
|
return ElMessage.warning(t('fileRelated.selectCompany'))
|
|
315
330
|
}
|
|
331
|
+
// 判断 出库是否必填 并且选择了值
|
|
332
|
+
if (!datas.value.warehouse_id && requiredWarehouse.value) {
|
|
333
|
+
return ElMessage.warning(t('fileRelated.pleaseSelectWarehouse'))
|
|
334
|
+
}
|
|
316
335
|
// exporLoading.value = ElLoading.service({ text: t('fileRelated.importing') })
|
|
317
336
|
exporLoading.value = true
|
|
318
337
|
console.log('upload.value', upload.value)
|
|
@@ -439,6 +458,7 @@ onMounted(async () => {
|
|
|
439
458
|
// 判断是否默认选中归属公司
|
|
440
459
|
if (ifDefaultAffiliation.value) {
|
|
441
460
|
affiliationAll.value = defaultAffiliationOrgid.value
|
|
461
|
+
datas.value.factory_affiliation_id = defaultAffiliationOrgid.value
|
|
442
462
|
}
|
|
443
463
|
})
|
|
444
464
|
</script>
|