diff --git a/src/api/SaleContract.js b/src/api/SaleContract.js
index 34558312..5adf9d29 100644
--- a/src/api/SaleContract.js
+++ b/src/api/SaleContract.js
@@ -30,6 +30,9 @@ export function searchsaleContract(query) {
if (query.number !== '' && query.number !== null && query.number !== undefined) {
params.append('number', query.number) // 你要传给后台的参数值 key/value
}
+ if (query.isActive !== '' && query.isActive !== null && query.isActive !== undefined) {
+ params.append('isActive', query.isActive) // 你要传给后台的参数值 key/value
+ }
if (query.customerType !== '' && query.customerType !== null && query.customerType !== undefined) {
params.append('customerType', query.customerType) // 你要传给后台的参数值 key/value
}
diff --git a/src/views/InstallmentApply/AddInstallmentApply.vue b/src/views/InstallmentApply/AddInstallmentApply.vue
index 89b86568..9bc087a0 100644
--- a/src/views/InstallmentApply/AddInstallmentApply.vue
+++ b/src/views/InstallmentApply/AddInstallmentApply.vue
@@ -590,7 +590,7 @@
- {{ $t('Hmodule.baoc') }}
+ {{ $t('Hmodule.baoc') }}
{{ $t('collectAndPay.lsbc') }}
{{ $t('Hmodule.cancel') }}
@@ -616,7 +616,7 @@
- {{ $t('Hmodule.baoc') }}
+ {{ $t('Hmodule.baoc') }}
{{ $t('Hmodule.cancel') }}
@@ -1505,6 +1505,7 @@ export default {
this.personalForm.consultancyAddressTwo = nowlistdata[1].consultancyAddress
}
}
+ this.isclick = true
const Data2 = this.productForm
for (const key in Data2) {
if (Data2[key] === '' || Data2[key] === undefined || Data2[key] === null) {
@@ -1519,7 +1520,6 @@ export default {
}
}
const parms = JSON.stringify(Data)
- this.isclick = true
this.$refs.personalForm.validate((valid) => {
if (valid) {
this.$refs.upload.submit()
@@ -1563,10 +1563,6 @@ export default {
return false
}
})
-
- setTimeout(() => {
- this.isclick = false
- }, 5000)
},
// 取消操作
handlecancel() {
diff --git a/src/views/InstallmentApply/InstallmentApplyList.vue b/src/views/InstallmentApply/InstallmentApplyList.vue
index f4076ed1..c873caca 100644
--- a/src/views/InstallmentApply/InstallmentApplyList.vue
+++ b/src/views/InstallmentApply/InstallmentApplyList.vue
@@ -764,17 +764,21 @@ export default {
isReview(row) {
if (row.approvalUseVos !== '' && row.approvalUseVos !== null && row.approvalUseVos !== undefined && row.approvalUseVos.length !== 0) {
const approvalUse = row.approvalUseVos
- const index = approvalUse[approvalUse.length - 1].stepHandler.indexOf(',' + this.$store.getters.userId + ',')
- console.log('index', index)
- console.log('this.$store.getters.userId', this.$store.getters.userId)
- console.log('approvalUse[approvalUse.length - 1].stepHandler', approvalUse[approvalUse.length - 1].stepHandler)
- if (index > -1 && (row.judgeStat === 1 || row.judgeStat === 0)) {
- if (row.isInvestigation === 2) {
- return true
+ if (approvalUse[approvalUse.length - 1].stepHandler) {
+ const index = approvalUse[approvalUse.length - 1].stepHandler.indexOf(',' + this.$store.getters.userId + ',')
+ console.log('index', index)
+ console.log('this.$store.getters.userId', this.$store.getters.userId)
+ console.log('approvalUse[approvalUse.length - 1].stepHandler', approvalUse[approvalUse.length - 1].stepHandler)
+ if (index > -1 && (row.judgeStat === 1 || row.judgeStat === 0)) {
+ if (row.isInvestigation === 2) {
+ return true
+ } else {
+ return false
+ }
+ // return true
} else {
return false
}
- // return true
} else {
return false
}
diff --git a/src/views/SaleContract/SaleContractList.vue b/src/views/SaleContract/SaleContractList.vue
index a938b454..0b4e9ea1 100644
--- a/src/views/SaleContract/SaleContractList.vue
+++ b/src/views/SaleContract/SaleContractList.vue
@@ -151,6 +151,7 @@
+
+
diff --git a/src/views/SaleOut/components/MyDetail.vue b/src/views/SaleOut/components/MyDetail.vue
index 8b7f30f1..656a958f 100644
--- a/src/views/SaleOut/components/MyDetail.vue
+++ b/src/views/SaleOut/components/MyDetail.vue
@@ -229,7 +229,9 @@ export default {
this.getemplist.searchRepositoryId = this.query.saleRepositoryId
chooseProduct(this.getemplist).then(res => {
if (res.data.ret === 200) {
- this.list = res.data.data.content.list
+ this.list = res.data.data.content.list.filter(item => {
+ return item.existStock > 0
+ })
this.total = res.data.data.content.totalCount
}
setTimeout(() => {
@@ -271,7 +273,9 @@ export default {
chooseProduct(this.getemplist).then(res => {
if (res.data.ret === 200) {
console.log(res.data.data.content.list)
- this.list = res.data.data.content.list
+ this.list = res.data.data.content.list.filter(item => {
+ return item.existStock > 0
+ })
this.total = res.data.data.content.totalCount
// this.restFilter()
} else {
diff --git a/src/views/SaleOut/components/MyDialog.vue b/src/views/SaleOut/components/MyDialog.vue
index f738293d..708abaf9 100644
--- a/src/views/SaleOut/components/MyDialog.vue
+++ b/src/views/SaleOut/components/MyDialog.vue
@@ -64,7 +64,7 @@
-
+
@@ -348,7 +348,7 @@
-
+
{{ scope.row.batteryCode }}
@@ -504,8 +504,8 @@ import { updatesaleOut } from '@/api/SaleOut'
import { searchCategory } from '@/api/Supplier'
import { searchSaleCategory } from '@/api/SaleCategory'
import { getlocation, locationlist, countlist, batchlist } from '@/api/public'
-import MyEmp from './MyEmp'
-import MyDelivery from './MyDelivery'
+import MyEmp from './MyEmp2'
+import MyDelivery from './MyDelivery2'
import MyDetail from './MyDetail'
import MyApply from './MyApply'
import MySupplier from './MySupplier'
@@ -745,10 +745,33 @@ export default {
watch: {
editcontrol() {
this.editVisible = this.editcontrol
- this.chooseSourceType()
+ // this.chooseSourceType()
},
editdata() {
this.personalForm = this.editdata
+ if (this.personalForm.sourceType === '5' || this.personalForm.sourceType === undefined) {
+ this.Isproduct = false
+ this.IsSourceNumber = true
+ this.personalForm.saleType = '1'
+ // if (this.$refs.editable.getRecords().length !== 0 && this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null) {
+ // this.$refs.editable.clear()
+ // }
+ } else if (this.personalForm.sourceType === '6') {
+ this.IsSourceNumber = true
+ this.Isproduct = true
+ this.personalForm.saleType = '1'
+ } else if (this.personalForm.sourceType === '2') {
+ this.Isproduct = true
+ this.IsSourceNumber = false
+ this.personalForm.saleType = '2'
+ } else {
+ this.Isproduct = true
+ this.IsSourceNumber = false
+ this.personalForm.saleType = '1'
+ // if (this.$refs.editable.getRecords().length !== 0 && this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null) {
+ // this.$refs.editable.clear()
+ // }
+ }
this.personalForm.couponMoney = this.personalForm.couponSupport
console.log('this.personalForm.receivableMoney', this.personalForm.receivableMoney)
if (this.personalForm.couponNumbers === '' || this.personalForm.couponNumbers === null || this.personalForm.couponNumbers === undefined) {
@@ -860,6 +883,24 @@ export default {
_that = this
},
methods: {
+ switchsaletype(val) {
+ console.log('val', val)
+ if (val === '1' && this.personalForm.sourceType === '2') {
+ this.$notify.error({
+ title: 'wrong',
+ message: '该单据为分期',
+ offset: 100
+ })
+ this.personalForm.saleType = '2'
+ } else {
+ this.$notify.error({
+ title: 'wrong',
+ message: '该单据为现金',
+ offset: 100
+ })
+ this.personalForm.saleType = '1'
+ }
+ },
changeCoupon() {
console.log('this.personalForm.couponSupports2', this.personalForm2.couponSupports)
const parms2 = JSON.stringify(this.personalForm2.couponSupports)
@@ -1109,6 +1150,11 @@ export default {
})
}
},
+ isEdit4(row) {
+ console.log('222', row)
+ const re = row.productCode.slice(0, 2)
+ if (re === '05') { return true } else { return false }
+ },
isEdit3(row) {
console.log('222', row)
const re = row.productCode.slice(0, 2)
@@ -1361,24 +1407,34 @@ export default {
})
},
chooseSourceType(val) {
+ this.$refs.editable.clear()
+ this.receivableMoney = ''
+ this.personalForm.ridMoney = ''
+ this.personalForm.ridBikeMoney = ''
console.log(val)
- if (val === '5' || val === '4') {
- this.isEdit = true
- } else {
- this.isEdit = false
- }
+ console.log('this.list2', this.list2)
if (val === '5' || val === undefined) {
this.Isproduct = false
this.IsSourceNumber = true
- if (this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null && this.$refs.editable.getRecords().length !== 0) {
- this.$refs.editable.clear()
- }
+ this.personalForm.saleType = '1'
+ // if (this.$refs.editable.getRecords().length !== 0 && this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null) {
+ // this.$refs.editable.clear()
+ // }
+ } else if (val === '6') {
+ this.IsSourceNumber = true
+ this.Isproduct = true
+ this.personalForm.saleType = '1'
+ } else if (val === '2') {
+ this.Isproduct = true
+ this.IsSourceNumber = false
+ this.personalForm.saleType = '2'
} else {
this.Isproduct = true
this.IsSourceNumber = false
- if (this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null && this.$refs.editable.getRecords().length !== 0) {
- this.$refs.editable.clear()
- }
+ this.personalForm.saleType = '1'
+ // if (this.$refs.editable.getRecords().length !== 0 && this.$refs.editable.getRecords() !== undefined && this.$refs.editable.getRecords() !== null) {
+ // this.$refs.editable.clear()
+ // }
}
},
// 出库仓库focus事件触发
@@ -1414,8 +1470,16 @@ export default {
this.deliverycontrol = true
},
deliveryName(val) {
- this.transferPersonId = val.personName
- this.personalForm.transferPersonId = val.id
+ // this.transferPersonId = val.personName
+ // this.personalForm.transferPersonId = val.id
+ const salepersonids = val.map(item => {
+ return item.id
+ })
+ this.personalForm.transferPersonId = salepersonids.join(',')
+ const salepersonnames = val.map(item => {
+ return item.personName
+ })
+ this.transferPersonId = salepersonnames.join(',')
},
getdatatime() { // 默认显示今天
var date = new Date()
@@ -1869,12 +1933,18 @@ export default {
},
// 销售员回显
stockName(val) {
- this.salePersonId = val.personName
- this.personalForm.salePersonId = val.id
- this.saleRepositoryId = val.repositoryName
- this.personalForm.saleRepositoryId = val.repositoryId
- this.roleId = val.postName
- this.personalForm.roleId = val.postId
+ const salepersonids = val.map(item => {
+ return item.id
+ })
+ this.personalForm.salePersonId = salepersonids.join(',')
+ const salepersonnames = val.map(item => {
+ return item.personName
+ })
+ this.salePersonId = salepersonnames.join(',')
+ // this.saleRepositoryId = val.repositoryName
+ // this.personalForm.saleRepositoryId = val.repositoryId
+ // this.roleId = val.postName
+ // this.personalForm.roleId = val.postId
},
// 清空记录
restAllForm() {
@@ -1943,11 +2013,24 @@ export default {
if (m4 === 1) {
m3 = 2
}
- if (elem.carCode === null || elem.carCode === undefined || elem.carCode === '' || elem.motorCode === null || elem.motorCode === undefined || elem.motorCode === '' || elem.batteryCode === null || elem.batteryCode === undefined || elem.batteryCode === '') {
+ if (elem.carCode === null || elem.carCode === undefined || elem.carCode === '' || elem.motorCode === null || elem.motorCode === undefined || elem.motorCode === '') {
m = 2
}
}
+ if (re === '05') {
+ if (elem.batteryCode === null || elem.batteryCode === undefined || elem.batteryCode === '') {
+ m = 3
+ }
+ }
})
+ if (m === 3) {
+ this.$notify.error({
+ title: 'wrong',
+ message: '电池出库时相关编码必填',
+ offset: 100
+ })
+ return false
+ }
if (m === 2) {
this.$notify.error({
title: 'wrong',
diff --git a/src/views/SaleOut/components/MyEmp2.vue b/src/views/SaleOut/components/MyEmp2.vue
new file mode 100644
index 00000000..861fe28e
--- /dev/null
+++ b/src/views/SaleOut/components/MyEmp2.vue
@@ -0,0 +1,364 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('public.search') }}
+
+ {{ $t('public.filter') }}
+
+
{{ $t('public.search') }}
+
{{ $t('public.add') }}
+
+
+
+
+
+
+
+
+ {{ scope.row.firstName }} {{ scope.row.middleName }} {{ scope.row.lastName }}
+
+
+
+
+ {{ scope.row.gender | genderFilter }}
+
+
+
+
+ {{ scope.row.deptName }}
+
+
+
+
+ {{ scope.row.regionName }}
+
+
+
+
+ {{ scope.row.repositoryName }}
+
+
+
+ {{ $t('Hmodule.sure') }}
+
+
+
+
+
+
+