|
|
@@ -8,6 +8,9 @@
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
<el-button size="small" type="success" style="margin-right: 8px"
|
|
|
+ :loading="saveLoading" >凭证标错
|
|
|
+ </el-button>
|
|
|
+ <el-button size="small" type="primary" style="margin-right: 8px"
|
|
|
:loading="saveLoading" >保 存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -17,175 +20,299 @@
|
|
|
<el-form :model="form" ref="form" label-width="90px" class="demo-ruleForm">
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="凭证来源" prop="voucherSource">
|
|
|
- <el-input style="width: 100%;" v-model="form.voucherSource"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入凭证来源" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
<el-form-item label="凭证类型" prop="voucherType">
|
|
|
- <el-input style="width: 100%;" v-model="form.voucherType"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入凭证类型" >
|
|
|
- </el-input>
|
|
|
+ <search-query :datalist="voucherTypeData"
|
|
|
+ :selectValue="form.voucherType"
|
|
|
+ :clearable="true"
|
|
|
+ :buttonIf="false"
|
|
|
+ :forParameter="{key:'dictKey',label:'dictValue',value:'dictValue',}"
|
|
|
+ placeholder="请输入凭证类型"
|
|
|
+ @corpChange="corpChange($event,'voucherType')">
|
|
|
+ </search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="凭证号" prop="voucherNo">
|
|
|
<el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入凭证号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="凭证日期" prop="voucherDate">
|
|
|
- <el-input style="width: 100%;" v-model="form.voucherDate"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入凭证日期" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="分录摘要" prop="voucherDate">
|
|
|
- <el-input style="width: 100%;" v-model="form.descr"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入分录摘要" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="借方金额" prop="voucherDate">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountDr"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入借方金额(CNY)" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="贷方金额" prop="voucherDate">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountCr"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入贷方金额(CNY)" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="综合 USD" prop="amountDrUsd">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountDrUsd"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入综合 USD" >
|
|
|
- </el-input>
|
|
|
+ <el-date-picker v-model="form.voucherDate" clearable
|
|
|
+ style="width: 100%;"
|
|
|
+ type="date" size="small"
|
|
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
|
+ placeholder="选择凭证日期">
|
|
|
+ </el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="综合 USD" prop="amountCrUsd">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountCrUsd"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入综合 USD" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="合计借方金额" prop="amountDrLoc">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountDrLoc"
|
|
|
- size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入合计本位币借方金额" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="合计贷方金额" prop="amountCrLoc">
|
|
|
- <el-input style="width: 100%;" v-model="form.amountCrLoc"
|
|
|
+ <el-form-item label="凭证来源" prop="voucherSource">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherSource"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入合计本位币贷方金额" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入凭证来源" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="是否外币凭证" prop="isForeign">
|
|
|
- <el-input style="width: 100%;" v-model="form.isForeign"
|
|
|
+ <el-form-item label="REF NO" prop="billNo">
|
|
|
+ <el-input style="width: 100%;" v-model="form.billNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入合计本位币贷方金额" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入编号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="是否数量凭证" prop="isQuantity">
|
|
|
- <el-input style="width: 100%;" v-model="form.isQuantity"
|
|
|
+ <el-form-item label="附件" prop="billNo">
|
|
|
+ <el-input type="" style="width: 100%;" v-model="form.billNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入是否数量凭证" >
|
|
|
+ clearable placeholder="请输入附件" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="复核人" prop="checkUserName">
|
|
|
- <el-input style="width: 100%;" v-model="form.checkUserName"
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card style="margin-top: 10px">
|
|
|
+ <div style="margin-bottom: 10px">
|
|
|
+ <el-button size="small" type="success" style="margin-right: 8px"
|
|
|
+ :loading="saveLoading" >项目属性
|
|
|
+ </el-button>
|
|
|
+ <el-button size="small" type="success" style="margin-right: 8px"
|
|
|
+ :loading="saveLoading" >凭证断号观察器
|
|
|
+ </el-button>
|
|
|
+ <el-button size="small" type="success" style="margin-right: 8px"
|
|
|
+ :loading="saveLoading" >断号优化
|
|
|
+ </el-button>
|
|
|
+ <el-button size="small" type="success" style="margin-right: 8px"
|
|
|
+ :loading="saveLoading" >科目余额查询
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <fromtable-details ></fromtable-details>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-row style="margin-top: 10px">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card class="cardRight">
|
|
|
+ <el-checkbox class="borderCheckbox" style="width: 100%" v-model="checked">数量项目</el-checkbox>
|
|
|
+ <el-form :model="form" ref="form" label-width="70px" class="demo-ruleForm">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="单位:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入单位" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="规格:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入规格" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="借方数量:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入借方数量" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="借方单价:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入借方单价" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="贷方数量:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入贷方数量" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="贷方单价:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入贷方单价" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-card class="cardRight">
|
|
|
+ <el-checkbox class="borderCheckbox" style="width: 100%" v-model="checked">外币项目</el-checkbox>
|
|
|
+ <el-form :model="form" ref="form" label-width="70px" class="demo-ruleForm">
|
|
|
+ <el-form-item label="外币名称:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入复核人" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入外币名称" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="复核时间" prop="checkTime">
|
|
|
- <el-input style="width: 100%;" v-model="form.checkTime"
|
|
|
+ <el-form-item label="汇率:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入复核时间" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入汇率" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="记账人" prop="postUserName">
|
|
|
- <el-input style="width: 100%;" v-model="form.postUserName"
|
|
|
+ <el-form-item label="原币借方:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入记账人" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入原币借方" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="记账时间" prop="postTime">
|
|
|
- <el-input style="width: 100%;" v-model="form.postTime"
|
|
|
+ <el-form-item label="原币货方:" prop="voucherType">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入记账时间" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入原币货方" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="凭证状态" prop="voucherStatus">
|
|
|
- <el-input style="width: 100%;" v-model="form.voucherStatus"
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" class="cardRight" style="margin-right: 0">
|
|
|
+ <el-card>
|
|
|
+ <el-checkbox class="borderCheckbox" style="width: 100%" v-model="checked">核算项目</el-checkbox>
|
|
|
+ <el-form :model="form" ref="form" label-width="70px" class="demo-ruleForm">
|
|
|
+ <el-col :span="7">
|
|
|
+ <el-form-item label="" prop="voucherType" label-width="0px">
|
|
|
+ <el-checkbox v-model="checked">选择类型</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="17">
|
|
|
+ <el-form-item>
|
|
|
+ <span slot="label">
|
|
|
+ <el-checkbox v-model="checked">客户:</el-checkbox>
|
|
|
+ </span>
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入客户" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入凭证状态" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入客户" >
|
|
|
</el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="备注" prop="remarks">
|
|
|
- <el-input style="width: 100%;" v-model="form.remarks"
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item>
|
|
|
+ <span slot="label">
|
|
|
+ <el-checkbox v-model="checked">部门:</el-checkbox>
|
|
|
+ </span>
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入客户" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item>
|
|
|
+ <span slot="label">
|
|
|
+ <el-checkbox v-model="checked">职员:</el-checkbox>
|
|
|
+ </span>
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入客户" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-form-item>
|
|
|
+ <span slot="label">
|
|
|
+ <el-checkbox v-model="checked">项目:</el-checkbox>
|
|
|
+ </span>
|
|
|
+ <el-input style="width: 100%;" v-model="form.voucherNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- clearable placeholder="请输入备注" >
|
|
|
+ :disabled="true"
|
|
|
+ clearable placeholder="请输入客户" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </el-card>
|
|
|
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
+ import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
+ import {finvouchersSubmit} from "@/api/iosBasicData/finvouchers";
|
|
|
+ import {getCurrentDate, getYearDate} from "@/util/date";
|
|
|
+ import fromtableDetails from "@/views/iosBasicData/finvouchers/assembly/fromtableDetails.vue";
|
|
|
+
|
|
|
export default {
|
|
|
+ components: {SearchQuery,fromtableDetails},
|
|
|
data(){
|
|
|
return {
|
|
|
pageLoading:false, // 整个的动画
|
|
|
saveLoading:false, // 按钮动画
|
|
|
- form:{}, // 获取的数据
|
|
|
+ // 获取的数据
|
|
|
+ form:{
|
|
|
+ voucherDate:getCurrentDate(),
|
|
|
+ },
|
|
|
+ voucherTypeData:[], // 凭证字数据
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getWorkDictsfun()
|
|
|
+ },
|
|
|
methods:{
|
|
|
+ // 保存
|
|
|
+ finvouchersSubmitfun(){
|
|
|
+ this.form.billNoFormat = 'PZDH'
|
|
|
+ this.form.businessTypeCode = 'PZDH'
|
|
|
+ finvouchersSubmit().then(res=>{
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 下拉回调
|
|
|
+ corpChange(value,name){
|
|
|
+ if (name == 'voucherType') {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 获取字典数据
|
|
|
+ getWorkDictsfun(){
|
|
|
+ // 凭证字数据
|
|
|
+ getWorkDicts('voucher_word_los').then(res=>{
|
|
|
+ this.voucherTypeData = res.data.data
|
|
|
+ })
|
|
|
+ },
|
|
|
//返回列表
|
|
|
backToList() {
|
|
|
this.$emit('goBack')
|
|
|
@@ -198,4 +325,28 @@
|
|
|
::v-deep.el-form-item {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
+.borderBox {
|
|
|
+ border: 1px solid #b6b6b6;
|
|
|
+ padding: 5px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 2px;
|
|
|
+ position: relative;
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
+.positionCheckbox {
|
|
|
+ position: absolute;
|
|
|
+ top: -10px;
|
|
|
+ left: 10px;
|
|
|
+ background: #fff;
|
|
|
+}
|
|
|
+.cardRight {
|
|
|
+ margin-right: 10px;
|
|
|
+ height: 220px;
|
|
|
+}
|
|
|
+.borderCheckbox {
|
|
|
+ border-bottom: 1px solid #4a9de6;
|
|
|
+ padding-bottom: 5px;
|
|
|
+ color:#4a9de6;
|
|
|
+ margin-bottom: 5px;
|
|
|
+}
|
|
|
</style>
|