Commit e7ca4e9c authored by 吴春's avatar 吴春

1

parent 281a6ea1
...@@ -592,8 +592,8 @@ ...@@ -592,8 +592,8 @@
</i> </i>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" <el-tooltip class="item"
v-if="scope.row.KingdeeInvoice>0&&scope.row.KingdeeInvoice!=3&&scope.row.Type==2&&IsUpdatePayment" v-if="scope.row.KingdeeInvoice!=3&&scope.row.Type==2&&IsUpdatePayment"
:content="scope.row.KingdeeInvoice==1?'不需要发票':'需要发票'" :content="(scope.row.KingdeeInvoice==1||scope.row.KingdeeInvoice==0)?'不需要发票':'需要发票'"
placement="top"> placement="top">
<i style="width: 30px; <i style="width: 30px;
height: 30px; height: 30px;
...@@ -608,7 +608,7 @@ ...@@ -608,7 +608,7 @@
:style="{ :style="{
'background-color':scope.row.KingdeeInvoice!=3?'#47BF8C':'rgba(71,191,140,0.5)' 'background-color':scope.row.KingdeeInvoice!=3?'#47BF8C':'rgba(71,191,140,0.5)'
}" }"
:class="[scope.row.KingdeeInvoice==1?'el-icon-open':'el-icon-turn-off']" :class="[(scope.row.KingdeeInvoice==1||scope.row.KingdeeInvoice==0)?'el-icon-open':'el-icon-turn-off']"
@click="EditInvoiceStatus(scope.row)"> @click="EditInvoiceStatus(scope.row)">
</i> </i>
</el-tooltip> </el-tooltip>
...@@ -1008,7 +1008,7 @@ ...@@ -1008,7 +1008,7 @@
// 是否需要发票 // 是否需要发票
EditInvoiceStatus(row){ EditInvoiceStatus(row){
let KingdeeInvoice let KingdeeInvoice
if(row.KingdeeInvoice==1){ if(row.KingdeeInvoice==1||row.KingdeeInvoice==0){
KingdeeInvoice = 2 KingdeeInvoice = 2
}else if(row.KingdeeInvoice==2){ }else if(row.KingdeeInvoice==2){
KingdeeInvoice = 1 KingdeeInvoice = 1
......
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,7 @@
<div class="empBankAccountTableLayer" v-show="outerVisible"> <div class="empBankAccountTableLayer" v-show="outerVisible">
<p> <p>
{{ dialogTitle }} {{ dialogTitle }}
<span style="font-size:12px;color:red;">*如果是个人则无需填写税号,如是供应商则必填税号;</span>
<span class="fr"> <span class="fr">
<button <button
class="hollowFixedBtn" class="hollowFixedBtn"
...@@ -182,7 +183,7 @@ ...@@ -182,7 +183,7 @@
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item :label="nameC" prop="CardNum"> <el-form-item :label="nameC" prop="CardNum">
<el-input type="text" v-model="addMsg.CardNum"></el-input> <el-input type="text" v-model="addMsg.CardNum" onkeyup="value=value.replace(/[^\w\u4E00-\u9FA5]/g, '')" placeholder="卡号请输入中文、数字、字母"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
...@@ -230,6 +231,16 @@ ...@@ -230,6 +231,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="税号:" prop="DutyNo" >
<el-input type="text" v-model="addMsg.DutyNo"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="供应商:" prop="SupplierName" >
<el-input type="text" v-model="addMsg.SupplierName"></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<div <div
...@@ -526,6 +537,8 @@ export default { ...@@ -526,6 +537,8 @@ export default {
AccountType: "1", AccountType: "1",
AccountClassify: "2", AccountClassify: "2",
Type: "", Type: "",
DutyNo:'',
SupplierName:'',
}, },
rules: { rules: {
BankName: [ BankName: [
...@@ -835,6 +848,12 @@ export default { ...@@ -835,6 +848,12 @@ export default {
}, },
addData() { addData() {
//添加角色 //添加角色
if (this.addMsg.Type!=7&&this.addMsg.Type!=9&&this.addMsg.Type!=10) {
if(this.addMsg.DutyNo==''||this.addMsg.DutyNo==undefined){
this.$message.error('请填写税号')
return
}
}
if(this.$route.query.id) this.addMsg.ObjID = this.$route.query.id; if(this.$route.query.id) this.addMsg.ObjID = this.$route.query.id;
if(this.supplierMsg.Type==10) this.addMsg.ObjID = this.addMsg.CreateBy if(this.supplierMsg.Type==10) this.addMsg.ObjID = this.addMsg.CreateBy
if ( if (
...@@ -862,6 +881,7 @@ export default { ...@@ -862,6 +881,7 @@ export default {
this.$message.error(this.$t("visaT.Pleasefillin") + this.nameE); this.$message.error(this.$t("visaT.Pleasefillin") + this.nameE);
return; return;
} }
// 查询是否有冲突的账户信息 // 查询是否有冲突的账户信息
this.checkCanAdd(); this.checkCanAdd();
}, },
...@@ -884,23 +904,25 @@ export default { ...@@ -884,23 +904,25 @@ export default {
); );
}, },
checkCanAdd() { checkCanAdd() {
this.apipost( this.$confirm("客户类型与税号请务必填写正确,避免单据驳回!!", "提示", {
"admin_post_GetBackAccount", confirmButtonText: "确定",
{ RB_Group_Id: this.addMsg.ObjID, ...this.addMsg }, cancelButtonText: "取消",
(res) => { type: "warning"
if (res.data.resultCode == 1) { })
if (res.data.data && res.data.data.length) { .then(() => {
this.accountList = res.data.data; this.apipost('admin_post_GetBackAccount',{RB_Group_Id: this.addMsg.ObjID, ...this.addMsg},res=>{
} else { if(res.data.resultCode==1){
this.addAccount(); if(res.data.data && res.data.data.length) {
} this.accountList = res.data.data
} else { } else {
this.$message.error(res.data.message); this.addAccount()
} }
}, }else{
(err) => {} this.$message.error(res.data.message)}
); },err=>{})
}, })
.catch(() => {});
},
updateData(id) { updateData(id) {
//修改角色 //修改角色
this.apipost( this.apipost(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment