|
|
|
@ -2,12 +2,12 @@
|
|
|
|
|
<div>
|
|
|
|
|
<el-row :gutter="15">
|
|
|
|
|
<el-form ref="elForm" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
|
|
|
|
label-position="right" :disabled="setting.readonly">
|
|
|
|
|
label-position="right" aria-disabled="true">
|
|
|
|
|
<template v-if="!loading && formOperates">
|
|
|
|
|
<el-col :span="6" v-if="judgeShow('documentNo')">
|
|
|
|
|
<el-form-item label="单据编号" prop="documentNo">
|
|
|
|
|
<el-input :disabled="judgeWrite('documentNo')" v-model="dataForm.documentNo"
|
|
|
|
|
placeholder="系统自动生成" readonly>
|
|
|
|
|
placeholder="系统自动生成" disabled >
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
<popupSelect v-model="dataForm.supplierId" placeholder="请选择" clearable field="supplierId"
|
|
|
|
|
interfaceId="389674191453990661" :columnOptions="supplierIdcolumnOptions"
|
|
|
|
|
propsValue="id" relationField="supplier_name" popupType="dialog" popupTitle="选择数据"
|
|
|
|
|
popupWidth="800px" hasPage :pageSize="20" disabled>
|
|
|
|
|
popupWidth="800px" hasPage :pageSize="20" :disabled="true">
|
|
|
|
|
|
|
|
|
|
</popupSelect>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
<el-select :disabled="judgeWrite('paymentType')" v-model="dataForm.paymentType"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-option v-for="(item, index) in paymentTypeOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id" :disabled="item.disabled"></el-option>
|
|
|
|
|
:label="item.fullName" :value="item.id" :disabled="item.disabled" disabled></el-option>
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -104,7 +104,7 @@
|
|
|
|
|
<el-col :span="6" v-if="judgeShow('collectionAccount')">
|
|
|
|
|
<el-form-item label="收款账户" prop="collectionAccount">
|
|
|
|
|
<el-input :disabled="judgeWrite('collectionAccount')" v-model="dataForm.collectionAccount"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -113,7 +113,7 @@
|
|
|
|
|
<el-col :span="6" v-if="judgeShow('colectionBank')">
|
|
|
|
|
<el-form-item label="收款银行" prop="colectionBank">
|
|
|
|
|
<el-input :disabled="judgeWrite('colectionBank')" v-model="dataForm.colectionBank"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -192,7 +192,7 @@
|
|
|
|
|
<el-input v-model="scope.row.amount"
|
|
|
|
|
:disabled="judgeWrite('paymentdocitem0List') || judgeWrite('paymentdocitem0List-amount')"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'
|
|
|
|
|
@change="amountChange(scope.row)">
|
|
|
|
|
@change="amountChange(scope.row)" readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -201,7 +201,7 @@
|
|
|
|
|
订单金额
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.allAmount" placeholder="请输入" clearable
|
|
|
|
|
<el-input class="rt-input" v-model="scope.row.allAmount" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
@ -362,7 +362,7 @@
|
|
|
|
|
width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.purchaseorderNo" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -370,7 +370,7 @@
|
|
|
|
|
:disabled="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.isPay" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' disabled>
|
|
|
|
|
<el-option v-for="(item, index) in advanceOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
@ -380,14 +380,14 @@
|
|
|
|
|
<el-table-column prop="vehicleName" label="车辆" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.vehicleName" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="materialName" label="物料" align="center" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.materialName" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -404,24 +404,24 @@
|
|
|
|
|
<el-table-column prop="poundType" label="磅单类型" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.poundType" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
<el-option v-for="(item, index) in poundTypeOptions"
|
|
|
|
|
:key="index" :label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
|
:disabled="item.disabled" disabled></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="netWeight" label="净重" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.netWeight" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="unit" label="单位" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.unit" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
<el-option v-for="(item, index) in unitOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
@ -432,7 +432,7 @@
|
|
|
|
|
:disabled="true">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.advance" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
<el-option v-for="(item, index) in advanceOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
@ -442,45 +442,45 @@
|
|
|
|
|
<el-table-column prop="purchasePrice" label="单价" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.purchasePrice" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="settlement" label="结算重量 " align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.settlement" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="rate" label="税率 " align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.rate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
<el-option v-for="(item, index) in rateOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
|
:disabled="item.disabled" disabled></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="amount" label="金额" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.amount" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="notAmount" label="不含税金额" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.notAmount" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="remark" label="备注" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.remark" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -547,7 +547,7 @@
|
|
|
|
|
width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.documentno" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -569,7 +569,7 @@
|
|
|
|
|
width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.paymentamount" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
clearable :style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -577,24 +577,24 @@
|
|
|
|
|
width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-select v-model="scope.row.settlementtype" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
<el-option v-for="(item, index) in settlementTypeOptions"
|
|
|
|
|
:key="index" :label="item.fullName" :value="item.id"
|
|
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
|
|
:disabled="item.disabled" disabled></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="remark" label="备注" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.remark" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="creatorUserName" label="付款人" align="center" width="130">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.creatorUserName" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}' :disabled="true">
|
|
|
|
|
:style='{"width":"100%"}' readonly>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -620,8 +620,9 @@
|
|
|
|
|
import {
|
|
|
|
|
getDictionaryDataSelector
|
|
|
|
|
} from '@/api/systemData/dictionary'
|
|
|
|
|
import StyleScript from '@/components/Generator/index/StyleScript'
|
|
|
|
|
export default {
|
|
|
|
|
components: {},
|
|
|
|
|
components: { StyleScript },
|
|
|
|
|
props: [],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -1211,9 +1212,9 @@
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.el-input.is-disabled {
|
|
|
|
|
color: #606266;
|
|
|
|
|
.rt-input.el-input__inner {
|
|
|
|
|
color: red !important;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|