月结客户导入企业税号单独写
This commit is contained in:
parent
0dc3f18bf7
commit
da156b824d
@ -84,3 +84,12 @@ export function delEmisCustomerUser(id) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//导入企业税号
|
||||||
|
export function batchImportEnterprise(data) {
|
||||||
|
return request({
|
||||||
|
url: '/emis/emisCustomerUser/batchImportEnterprise',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -359,7 +359,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listMonthUser, delEmisCustomerUser,addMonthUser ,resetCustomerUserPwd} from "@/api/emis/emisCustomerUser";
|
import { listMonthUser, delEmisCustomerUser,addMonthUser ,resetCustomerUserPwd, batchImportEnterprise} from "@/api/emis/emisCustomerUser";
|
||||||
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
||||||
// import emisCustomerUserView from '@/views/emis/emisCustomerUser/emisCustomerUserView';
|
// import emisCustomerUserView from '@/views/emis/emisCustomerUser/emisCustomerUserView';
|
||||||
import monthUserForm from '@/views/emis/emisCustomerUser/monthUserForm';
|
import monthUserForm from '@/views/emis/emisCustomerUser/monthUserForm';
|
||||||
@ -649,7 +649,6 @@ export default {
|
|||||||
monthlyPayCode: element['月结编号'],
|
monthlyPayCode: element['月结编号'],
|
||||||
enterpriseName: element['企业名称'],
|
enterpriseName: element['企业名称'],
|
||||||
enterpriseTaxId: element['企业税号'],
|
enterpriseTaxId: element['企业税号'],
|
||||||
blImport: this.blImport,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// postData.cosignee= element['']
|
// postData.cosignee= element['']
|
||||||
@ -661,14 +660,21 @@ export default {
|
|||||||
if(postData.firstSigningDay){
|
if(postData.firstSigningDay){
|
||||||
postData.firstSigningDay=excelDateToJSDate(postData.firstSigningDay).split(' ')[0]
|
postData.firstSigningDay=excelDateToJSDate(postData.firstSigningDay).split(' ')[0]
|
||||||
}
|
}
|
||||||
|
if (this.blImport == 1) { //新增
|
||||||
const res = await addMonthUser(postData)
|
const res = await addMonthUser(postData)
|
||||||
console.log(res);
|
|
||||||
|
|
||||||
if (res.code !== 200) {
|
if (res.code !== 200) {
|
||||||
this.$modal.msgError(JSON.stringify(res.msg))
|
this.$modal.msgError(JSON.stringify(res.msg))
|
||||||
loadingInstance.close()
|
loadingInstance.close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else { //更新
|
||||||
|
const res = await batchImportEnterprise(postData)
|
||||||
|
if (res.code !== 200) {
|
||||||
|
this.$modal.msgError(JSON.stringify(res.msg))
|
||||||
|
loadingInstance.close()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
loadingInstance.close()
|
loadingInstance.close()
|
||||||
loadingInstance = this.$loading({
|
loadingInstance = this.$loading({
|
||||||
text: '正在导入 ' + _index + ' 数据...'
|
text: '正在导入 ' + _index + ' 数据...'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user