|
|
|
@ -10,21 +10,21 @@
|
|
|
|
|
<el-form-item label="单据编号"
|
|
|
|
|
prop="documentNo">
|
|
|
|
|
<el-input v-model="dataForm.documentNo"
|
|
|
|
|
placeholder="系统自动生成" readonly>
|
|
|
|
|
placeholder="系统自动生成" readonly :disabled="true">
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="申请时间"
|
|
|
|
|
prop="businessDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.businessDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="datetime"
|
|
|
|
|
format="yyyy-MM-dd HH:mm:ss" value-format="timestamp">
|
|
|
|
|
<!-- <el-col :span="8">-->
|
|
|
|
|
<!-- <el-form-item label="申请时间"-->
|
|
|
|
|
<!-- prop="businessDate">-->
|
|
|
|
|
<!-- <el-date-picker v-model="dataForm.businessDate"-->
|
|
|
|
|
<!-- placeholder="请选择" clearable :style='{"width":"100%"}' type="datetime"-->
|
|
|
|
|
<!-- format="yyyy-MM-dd HH:mm:ss" value-format="timestamp">-->
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- </el-date-picker>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="供应商名称"
|
|
|
|
|
prop="supplierName">
|
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
:columnOptions="supplierNamecolumnOptions" propsValue="supplier_name"
|
|
|
|
|
relationField="supplier_name" popupType="dialog"
|
|
|
|
|
popupTitle="选择数据" popupWidth="800px"
|
|
|
|
|
hasPage :pageSize="20"
|
|
|
|
|
hasPage :pageSize="20" @change="popupSelectourceNo">
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
</popupSelect>
|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
|
<el-form-item label="申请金额"
|
|
|
|
|
prop="ramount">
|
|
|
|
|
<el-input v-model="dataForm.ramount"
|
|
|
|
|
placeholder="请输入" readonly clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" readonly clearable :style='{"width":"100%"}' @input="inputChange()" :disabled="true">
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -160,21 +160,21 @@
|
|
|
|
|
<el-table-column prop="amount" label="申请金额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.amount"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable @input="inputChange()" :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="creatorUserId" label="订单金额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.creatorUserId"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="creatorUserName" label="已付金额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.creatorUserName"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<popupSelect v-model="scope.row.purchaseorderId"
|
|
|
|
|
placeholder="请选择" clearable :field="'purchaseorderId'+scope.$index"
|
|
|
|
|
interfaceId="393348986343324485" :bissId="dataForm.supplierName"
|
|
|
|
|
interfaceId="393348986343324485" :bissId="dataForm.supplierName" :excludeFields="excludeFields"
|
|
|
|
|
:columnOptions="paymentdoc_item0purchaseorderIdcolumnOptions" propsValue="id"
|
|
|
|
|
relationField="document_no" popupType="dialog"
|
|
|
|
|
popupWidth="800px" @change="popupSelectorder"
|
|
|
|
@ -193,56 +193,56 @@
|
|
|
|
|
<el-table-column prop="lastModifyUserId" label="合同编号" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.lastModifyUserId"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="lastModifyUserName" label="重量" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.lastModifyUserName"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="deleteMark" label="税率(%)">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.deleteMark"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="departmentId" label="垫资金额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.departmentId"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="orgnizeId" label="税额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.orgnizeId"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="deleteUserId" label="不含税金额">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.deleteUserId"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="deleteUserName" label="业务类型">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.deleteUserName"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="creatorTime" label="业务日期">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.creatorTime"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -277,10 +277,12 @@
|
|
|
|
|
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
components: {},
|
|
|
|
|
props: [],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
excludeFields: [],
|
|
|
|
|
visible: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
isDetail: false,
|
|
|
|
@ -308,13 +310,21 @@
|
|
|
|
|
activeshpeyb: '0',
|
|
|
|
|
rules:
|
|
|
|
|
{
|
|
|
|
|
collectionAccount: [
|
|
|
|
|
supplierName: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入',
|
|
|
|
|
message: '请输入供应商',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
dueDate: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入应付日期',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
amount: [{ required: true, message: '请输入', trigger: 'blur' }]
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
@ -355,8 +365,25 @@
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
inputChange(value){
|
|
|
|
|
var amount = 0;
|
|
|
|
|
for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) {
|
|
|
|
|
amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount);
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.ramount = amount;
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
popupSelectourceNo(e, d) {
|
|
|
|
|
this.excludeFields = [];
|
|
|
|
|
this.dataForm.paymentdoc_item0List = [];
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
popupSelectorder(a, b) {
|
|
|
|
|
var excludeFields = [];
|
|
|
|
|
var amount = 0;
|
|
|
|
|
for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) {
|
|
|
|
|
excludeFields.push(this.dataForm.paymentdoc_item0List[i].purchaseorderId);
|
|
|
|
|
if (a == this.dataForm.paymentdoc_item0List[i].purchaseorderId) {
|
|
|
|
|
this.dataForm.paymentdoc_item0List[i].lastModifyUserId = b.contract_code
|
|
|
|
|
this.dataForm.paymentdoc_item0List[i].lastModifyUserName = b.num
|
|
|
|
@ -364,10 +391,12 @@
|
|
|
|
|
this.dataForm.paymentdoc_item0List[i].orgnizeId = b.rate
|
|
|
|
|
this.dataForm.paymentdoc_item0List[i].deleteUserId = b.not_amount
|
|
|
|
|
|
|
|
|
|
this.dataForm.ramount = parseFloat(this.dataForm.ramount) + parseFloat(b.amount)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount);
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.ramount = amount;
|
|
|
|
|
|
|
|
|
|
this.excludeFields = excludeFields;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
paymentdoc_item0Exist() {
|
|
|
|
|