|
@@ -350,8 +350,12 @@ export default {
|
|
form.expenseDate = form.expenseDate + '-01'
|
|
form.expenseDate = form.expenseDate + '-01'
|
|
form.expenseAccountFilesList = this.attachList
|
|
form.expenseAccountFilesList = this.attachList
|
|
// console.log(form)
|
|
// console.log(form)
|
|
|
|
+ // 判断费用归属品类 最少要选择到2级或3级分类
|
|
|
|
+ if (_this.form.productTypeSn1 && !_this.form.productTypeSn2) {
|
|
|
|
+ _this.$message.warning('请选择归属分类(至少选择到2级或3级分类)')
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
-
|
|
|
|
// 从销售单转的费用,直接提交
|
|
// 从销售单转的费用,直接提交
|
|
if (_this.fromPage == 'sales') {
|
|
if (_this.fromPage == 'sales') {
|
|
_this.$emit('expenseSaveOk', form, this.fromPage)
|
|
_this.$emit('expenseSaveOk', form, this.fromPage)
|