Commit 493fb359 authored by 我在何方's avatar 我在何方

收款单bug修复

parent 35d96a0c
...@@ -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
......
...@@ -867,6 +867,13 @@ export default { ...@@ -867,6 +867,13 @@ export default {
}); });
}, },
computed: { computed: {
rules(){
return {
customerId : [{required: true, message: this.$t('客户不能为空')}],
departmentId : [{required: true, message: this.$t('部门不能为空')}],
salesmanId: [{required: true, message: this.$t('业务员不能为空')}],
}
},
expoerCityList() { expoerCityList() {
// return this.tradeCityList.filter((item) => item.type == 2); // return this.tradeCityList.filter((item) => item.type == 2);
return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3) return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3)
...@@ -1193,6 +1200,8 @@ export default { ...@@ -1193,6 +1200,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,7 +1260,11 @@ export default { ...@@ -1251,7 +1260,11 @@ export default {
submitForm(addType) { submitForm(addType) {
const params = {...this.form} const params = {...this.form}
params.addType = addType params.addType = addType
this.$refs["form"].validate((valid, errors) => {
if (!valid) {
return this.$showFormValidateErrors(errors)
}
})
// params.receiptAccountList = params.receiptAccountList.map(v => Object.assign(v, { })) // params.receiptAccountList = params.receiptAccountList.map(v => Object.assign(v, { }))
if (this.list && this.list.length > 0) { if (this.list && this.list.length > 0) {
......
...@@ -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