月结客户导入企业税号单独写

This commit is contained in:
wuteng 2025-08-28 14:59:17 +08:00
parent 0dc3f18bf7
commit da156b824d
2 changed files with 19 additions and 4 deletions

View File

@ -84,3 +84,12 @@ export function delEmisCustomerUser(id) {
method: 'delete'
})
}
//导入企业税号
export function batchImportEnterprise(data) {
return request({
url: '/emis/emisCustomerUser/batchImportEnterprise',
method: 'post',
data: data
})
}

View File

@ -359,7 +359,7 @@
</template>
<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 emisCustomerUserView from '@/views/emis/emisCustomerUser/emisCustomerUserView';
import monthUserForm from '@/views/emis/emisCustomerUser/monthUserForm';
@ -649,7 +649,6 @@ export default {
monthlyPayCode: element['月结编号'],
enterpriseName: element['企业名称'],
enterpriseTaxId: element['企业税号'],
blImport: this.blImport,
}
}
// postData.cosignee= element['']
@ -661,14 +660,21 @@ export default {
if(postData.firstSigningDay){
postData.firstSigningDay=excelDateToJSDate(postData.firstSigningDay).split(' ')[0]
}
if (this.blImport == 1) { //新增
const res = await addMonthUser(postData)
console.log(res);
if (res.code !== 200) {
this.$modal.msgError(JSON.stringify(res.msg))
loadingInstance.close()
return
}
} else { //更新
const res = await batchImportEnterprise(postData)
if (res.code !== 200) {
this.$modal.msgError(JSON.stringify(res.msg))
loadingInstance.close()
return
}
}
loadingInstance.close()
loadingInstance = this.$loading({
text: '正在导入 ' + _index + ' 数据...'