Commit b44291dd authored by zhoutong's avatar zhoutong
parents 2cc8fc4e 13783e1f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('收款账户')" prop="accountNo"> <el-form-item :label="$t('收款账户')" prop="accountNo">
<span>{{ addForm.accountNo }}</span> <span>{{ addForm.accountNo+'('+addForm.accountName+')' }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('实收日期')" prop="amountDate"> <el-form-item :label="$t('实收日期')" prop="amountDate">
<span>{{ addForm.amountDate }}</span> <span>{{ addForm.amountDate }}</span>
...@@ -23,14 +23,7 @@ ...@@ -23,14 +23,7 @@
<span>{{ addForm.amount }}</span> <span>{{ addForm.amount }}</span>
</el-form-item> </el-form-item>
<el-form-item label-width="0px" prop="currencyId"> <el-form-item label-width="0px" prop="currencyId">
<el-select v-model="addForm.currencyId" :disabled="true"> <span>({{getCurrencyLabel(showCurrencyId)}})</span>
<el-option
v-for="item in currencyList"
:key="item.id"
:label="$i18n.locale=='zh_CN'?item.titleZh:item.titleEn"
:value="item.id"
/>
</el-select>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item <el-form-item
......
...@@ -13,12 +13,11 @@ ...@@ -13,12 +13,11 @@
<!-- <el-descriptions :column="3" border>--> <!-- <el-descriptions :column="3" border>-->
<!-- <el-descriptions-item > --> <!-- <el-descriptions-item > -->
<el-form-item <el-form-item
:label="$t('客户')"
style="margin-bottom: 0;margin-top: 20px;" style="margin-bottom: 0;margin-top: 20px;"
prop="customerId" prop="customerId"
:span="4" :span="4"
:rules="{ required: true, trigger: ['blur', 'change'], message: $t('客户不能为空') }"
> >
<span style="margin-right:20px"><span style="color: #ff4949;">*</span>{{$t('客户')}}</span>
<customer-selector <customer-selector
v-model="form.customerId" v-model="form.customerId"
@change="customerChange" @change="customerChange"
...@@ -27,12 +26,11 @@ ...@@ -27,12 +26,11 @@
<!-- </el-descriptions-item> <!-- </el-descriptions-item>
<el-descriptions-item > --> <el-descriptions-item > -->
<el-form-item <el-form-item
:label="$t('部门')"
style="margin-bottom: 0;margin-top: 20px;" style="margin-bottom: 0;margin-top: 20px;"
prop="departmentId" prop="departmentId"
:span="4" :span="4"
:rules="{ required: true, trigger: ['blur', 'change'], message: $t('部门不能为空') }"
> >
<span style="margin-right:20px"><span style="color: #ff4949;">*</span>{{$t('部门')}}:</span>
<el-select <el-select
v-model="form.departmentId" v-model="form.departmentId"
style="width: 300px" style="width: 300px"
...@@ -47,12 +45,11 @@ ...@@ -47,12 +45,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('业务员')"
style="margin-bottom: 0;margin-top: 20px;" style="margin-bottom: 0;margin-top: 20px;"
prop="salesmanId" prop="salesmanId"
:span="4" :span="4"
:rules="{ required: true, trigger: ['blur', 'change'], message: $t('业务员不能为空') }"
> >
<span style="margin-right:20px"><span style="color: #ff4949;">*</span>{{$t('业务员')}}:</span>
<el-select v-model="form.salesmanId" filterable :placeholder="$t('请选择业务员')" @change="v => form.salesmanName = creatorData.find(t => t.id === v).nickname"> <el-select v-model="form.salesmanId" filterable :placeholder="$t('请选择业务员')" @change="v => form.salesmanName = creatorData.find(t => t.id === v).nickname">
<el-option <el-option
v-for="item in creatorData" v-for="item in creatorData"
...@@ -78,11 +75,12 @@ ...@@ -78,11 +75,12 @@
<!-- </el-descriptions-item> <!-- </el-descriptions-item>
<el-descriptions-item > --> <el-descriptions-item > -->
<el-form-item <el-form-item
:label="$t('备注')" :label="$t('备注')+':'"
style="margin-bottom: 0;margin-top: 20px;" style="margin-bottom: 0;margin-top: 20px;"
label-width="55px"
prop="remark" prop="remark"
> >
<el-input v-model="form.remark" :placeholder="$t('备注')"></el-input> <el-input style="display:inline-block;" v-model="form.remark" :placeholder="$t('备注')"></el-input>
</el-form-item> </el-form-item>
<!-- </el-descriptions-item> --> <!-- </el-descriptions-item> -->
<!-- </el-descriptions> --> <!-- </el-descriptions> -->
...@@ -163,12 +161,10 @@ ...@@ -163,12 +161,10 @@
<!-- <el-descriptions :column="2" border class="card"> <!-- <el-descriptions :column="2" border class="card">
<el-descriptions-item > --> <el-descriptions-item > -->
<el-form-item <el-form-item
:label="$t('是否需要开票')+':'"
style="margin-bottom: 0;margin-top: 20px;" style="margin-bottom: 0;margin-top: 20px;"
prop="openInvoice" prop="openInvoice"
required
:rules="{ required: true, trigger: ['blur', 'change'], message: $t('请选择是否需要开票') }"
> >
<span style="margin-right:20px"><span style="color: #ff4949;">*</span>{{$t('是否需要开票')}}:</span>
<el-select <el-select
v-model="form.openInvoice" v-model="form.openInvoice"
:placeholder="$t('请选择是否需要开票')" :placeholder="$t('请选择是否需要开票')"
...@@ -1193,6 +1189,8 @@ export default { ...@@ -1193,6 +1189,8 @@ export default {
discountRemark: this.discountForm.discountRemark, discountRemark: this.discountForm.discountRemark,
orderNo: this.selectListRow.orderNo, orderNo: this.selectListRow.orderNo,
orderId: this.selectListRow.orderId, orderId: this.selectListRow.orderId,
taxPoint:this.selectListRow.taxPoint,
taxAmount:this.selectListRow.taxAmount,
} }
updateReceivableDiscountById(params).then(res => { updateReceivableDiscountById(params).then(res => {
if (this.selectListRow.discountTotal) { if (this.selectListRow.discountTotal) {
...@@ -1251,9 +1249,27 @@ export default { ...@@ -1251,9 +1249,27 @@ export default {
submitForm(addType) { submitForm(addType) {
const params = {...this.form} const params = {...this.form}
params.addType = addType params.addType = addType
// params.receiptAccountList = params.receiptAccountList.map(v => Object.assign(v, { })) // params.receiptAccountList = params.receiptAccountList.map(v => Object.assign(v, { }))
if(!params.customerId){
this.saveBtnLoading = false
this.$modal.msgError(this.$t('客户不能为空'));
return
}
if(!params.departmentId){
this.saveBtnLoading = false
this.$modal.msgError(this.$t('部门不能为空'));
return
}
if(!params.salesmanId){
this.saveBtnLoading = false
this.$modal.msgError(this.$t('业务员不能为空'));
return
}
if(!params.openInvoice){
this.saveBtnLoading = false
this.$modal.msgError(this.$t('请选择是否需要开票'));
return
}
if (this.list && this.list.length > 0) { if (this.list && this.list.length > 0) {
params.receivableVOList = this.list params.receivableVOList = this.list
}else{ }else{
......
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
<el-select v-if="!isView" v-model="addForm.accountId" :placeholder="$t('请选择收款账户')" style="width: 220px" @change="accountChange"> <el-select v-if="!isView" v-model="addForm.accountId" :placeholder="$t('请选择收款账户')" style="width: 220px" @change="accountChange">
<el-option v-for="item in bankData" :key="item.id" :label="item.baAccountName + '(' + item.baAccountNum + ')'" :value="item.id" /> <el-option v-for="item in bankData" :key="item.id" :label="item.baAccountName + '(' + item.baAccountNum + ')'" :value="item.id" />
</el-select> </el-select>
<span v-else>{{ addForm.accountNo }}</span> <span v-else>{{ addForm.accountNo+'('+addForm.accountName+')' }}</span>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
:label="$t('实收日期')" :label="$t('实收日期')"
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
@click="verificationCancelClick(scope.row)" @click="verificationCancelClick(scope.row)"
>{{ $t('查看')}}</el-button> >{{ $t('查看')}}</el-button>
<el-button <el-button
v-if="scope.row.state === 0 || scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3|| scope.row.state == 8" v-if="scope.row.state === 0"
size="mini" size="mini"
type="text" type="text"
v-hasPermi="['ecw:voucher:edit']" v-hasPermi="['ecw:voucher:edit']"
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
>{{ $t('开票') }}</el-button >{{ $t('开票') }}</el-button
> >
<el-button v-if="scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3" v-hasPermi="['ecw:voucher:payment']" size="mini" type="text" @click="verificationCancelClick(scope.row)">{{ $t('收款') }}</el-button> <el-button v-if="scope.row.state == 1 || scope.row.state == 2 || scope.row.state == 3" v-hasPermi="['ecw:voucher:payment']" size="mini" type="text" @click="verificationCancelClick(scope.row)">{{ $t('收款') }}</el-button>
<el-button v-if="[0,1,8].indexOf(scope.row.state) > -1" size="mini" type="text" v-hasPermi="['ecw:voucher:delete']" @click="deleteClick(scope.row)">{{ $t('删除') }}</el-button> <el-button v-if="scope.row.state == 0" size="mini" type="text" v-hasPermi="['ecw:voucher:delete']" @click="deleteClick(scope.row)">{{ $t('删除') }}</el-button>
<el-button <el-button
v-if="scope.row.state != 0 && scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9" v-if="scope.row.state != 0 && scope.row.state != 7 && scope.row.state != 11 && scope.row.state != 8 && scope.row.state != 9"
size="mini" size="mini"
......
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