|
|
@ -7,7 +7,7 @@ |
|
|
|
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="disabled" @click="handleSubmit()">提交 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small">打印</el-button> |
|
|
|
<!-- <el-button type="primary" size="small">打印</el-button>--> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -24,35 +24,43 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label">部门名称</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
{{ temp.orgName }} |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label">业务员</span></el-form-item> |
|
|
|
<el-form-item><span slot="label">销售专员</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
{{ temp.staffName }} <!-- ?? --> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label">虚拟订单类型</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="20" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<span>{{temp.depositBillType}}</span> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- <el-row>--> |
|
|
|
<!-- <el-col :span="4" class="tleftb">--> |
|
|
|
<!-- <el-form-item><span slot="label">虚拟订单类型</span></el-form-item>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- <el-col :span="20" class="trightb">--> |
|
|
|
<!-- <el-form-item>--> |
|
|
|
<!-- <span>{{temp.depositBillType}}</span>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- </el-row>--> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>付款人</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.draweeName" class="addinputw" placeholder="" |
|
|
|
clearable/> |
|
|
@ -61,7 +69,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>联系电话</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="12" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.draweeMobile" class="addinputw" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -71,7 +79,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label">车辆台数</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.vehicleNum" class="addinputw" placeholder="" |
|
|
|
clearable/> |
|
|
@ -80,7 +88,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>订金金额</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" class="trightb"> |
|
|
|
<el-col :span="12" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.deposit" class="addinputw" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -88,10 +96,10 @@ |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>付款日期</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-date-picker |
|
|
|
v-model="temp.paymentDate" |
|
|
@ -101,26 +109,48 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>付款方式</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-select v-model="temp.payType" class="addinputw" placeholder="" @change="changePaymentType"> |
|
|
|
<el-option v-for="(item, index) in paymentType_list" :key="index.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
<el-option v-for="(item, index) in paymentType_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="3" class="tleftb"> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>付款银行账号</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.payBankAcc" class="addinputw" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>收款银行</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-select v-model="temp.proBankValue" class="addinputw" placeholder="" @change="changeproBank"> |
|
|
|
<el-option v-for="(item, index) in proBank_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<el-form-item><span slot="label"><span class="icon">*</span>收款银行账号</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="5" class="trightb"> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.proBankAcc" class="addinputw" placeholder="" |
|
|
|
clearable/> |
|
|
|
<el-select v-model="temp.proBankAccValue" class="addinputw" placeholder="" @change="changeProBankAccValue"> |
|
|
|
<el-option v-for="(item, index) in ProBankAcc_list" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="trightb"> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
@ -128,8 +158,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="20" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="temp.remarks" class="addinputw" placeholder="" |
|
|
|
clearable/> |
|
|
|
<el-input v-model="temp.remarks" class="addinputw" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -218,6 +247,8 @@ |
|
|
|
list: [], |
|
|
|
paymentType_list: [], |
|
|
|
customer_list: [], |
|
|
|
proBank_list: [], |
|
|
|
ProBankAcc_list: [], |
|
|
|
temp: { |
|
|
|
sid: '', |
|
|
|
billNo: '', |
|
|
@ -272,8 +303,9 @@ |
|
|
|
}, |
|
|
|
created() { |
|
|
|
// 初始化变量 |
|
|
|
this.init(); |
|
|
|
this.getPaymentType(); |
|
|
|
this.init() |
|
|
|
this.getPaymentType() |
|
|
|
this.getProBank() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// --------------页面初始化-------------- |
|
|
@ -402,7 +434,57 @@ |
|
|
|
this.temp.payTypeKey = bb.key |
|
|
|
console.log('name', this.temp.payType) |
|
|
|
}, |
|
|
|
//--------------功能实现-------------- |
|
|
|
getProBank() { |
|
|
|
typeValues({ |
|
|
|
type: 'receiptBank' |
|
|
|
}).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.proBank_list = res.data |
|
|
|
console.log('下拉框请求111', res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeproBank(value) { |
|
|
|
console.log('触发下拉框按钮') |
|
|
|
let bb = null |
|
|
|
this.proBank_list.forEach((e) => { |
|
|
|
if (e.dictKey == value) { |
|
|
|
bb = { |
|
|
|
type: e.dictType, |
|
|
|
name: e.dictValue, |
|
|
|
key: e.dictKey, |
|
|
|
sid: e.sid |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.temp.proBankValue = bb.name |
|
|
|
this.temp.proBankKey = bb.key |
|
|
|
this.getProBankAcc(bb.sid) |
|
|
|
}, |
|
|
|
getProBankAcc(sid) { |
|
|
|
typeValues({ psid: sid, type: 'receiptAccount' }).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.ProBankAcc_list = res.data |
|
|
|
console.log('下拉框请求111', res.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeProBankAccValue(value) { |
|
|
|
console.log('触发下拉框按钮') |
|
|
|
let bb = null |
|
|
|
this.ProBankAcc_list.forEach((e) => { |
|
|
|
if (e.dictKey == value) { |
|
|
|
bb = { |
|
|
|
type: e.dictType, |
|
|
|
name: e.dictValue, |
|
|
|
key: e.dictKey, |
|
|
|
sid: e.sid |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.temp.proBankAccValue = bb.name |
|
|
|
this.temp.proBankAccKey = bb.key |
|
|
|
}, |
|
|
|
// 添加数据 |
|
|
|
handleCreate() { |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
@ -411,7 +493,7 @@ |
|
|
|
if (valid) { |
|
|
|
this.FormLoading = true |
|
|
|
this.dialogStatus = 'create' |
|
|
|
if (this.stateId === '0') { |
|
|
|
// if (this.stateId === '0') { |
|
|
|
this.temp.staffSid = this.YongHuid.staffSid |
|
|
|
this.temp.staffName = this.staffName |
|
|
|
this.temp.orgName = this.orgName |
|
|
@ -437,34 +519,35 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.temp.staffSid = this.YongHuid.staffSid |
|
|
|
this.temp.orgSid = this.YongHuid.organizationSid |
|
|
|
this.temp.orgName = this.orgName |
|
|
|
this.temp.staffName = this.staffName |
|
|
|
this.temp.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
this.temp.customerList = this.list |
|
|
|
this.getUrl() |
|
|
|
update(this.temp).then((response) => { |
|
|
|
this.dialogStatus = 'update' |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '修改成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000, |
|
|
|
}) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
|
title: '失败', |
|
|
|
message: '修改失败', |
|
|
|
type: 'error', |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
// } |
|
|
|
// else { |
|
|
|
// this.temp.staffSid = this.YongHuid.staffSid |
|
|
|
// this.temp.orgSid = this.YongHuid.organizationSid |
|
|
|
// this.temp.orgName = this.orgName |
|
|
|
// this.temp.staffName = this.staffName |
|
|
|
// this.temp.userSid = window.sessionStorage.getItem('userSid') |
|
|
|
// this.temp.customerList = this.list |
|
|
|
// this.getUrl() |
|
|
|
// update(this.temp).then((response) => { |
|
|
|
// this.dialogStatus = 'update' |
|
|
|
// this.FormLoading = false |
|
|
|
// if (response.code === '200') { |
|
|
|
// this.$notify({ |
|
|
|
// title: '提示', |
|
|
|
// message: '修改成功', |
|
|
|
// type: 'success', |
|
|
|
// duration: 2000, |
|
|
|
// }) |
|
|
|
// this.handleReturn('true') |
|
|
|
// } else { |
|
|
|
// this.$notify({ |
|
|
|
// title: '失败', |
|
|
|
// message: '修改失败', |
|
|
|
// type: 'error', |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// } |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|