This commit is contained in:
linfso 2025-02-19 11:29:32 +08:00
parent 485eb807d1
commit f47400b080

View File

@ -14,7 +14,7 @@
<EmisSupplierPicker :placeholder="$t('请选择')" v-model="form.supplierCode" @onChange="onSupplierSelect" ></EmisSupplierPicker> <EmisSupplierPicker :placeholder="$t('请选择')" v-model="form.supplierCode" @onChange="onSupplierSelect" ></EmisSupplierPicker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="6">
<el-form-item label="成本时间" prop="tradeDate" > <el-form-item label="成本时间" prop="tradeDate" >
<el-date-picker <el-date-picker
style="width:100%" style="width:100%"
@ -26,12 +26,12 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="6">
<el-form-item label="账期" prop="billMonth"> <el-form-item label="账期" prop="billMonth">
<el-date-picker style="width:100%" v-model="form.billMonth" type="month" placeholder="账期" value-format="yyyy-MM"></el-date-picker> <el-date-picker style="width:100%" v-model="form.billMonth" type="month" placeholder="账期" value-format="yyyy-MM"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="分摊类型" prop="splitType"> <el-form-item label="分摊类型" prop="splitType">
<el-radio-group v-model="form.splitType"> <el-radio-group v-model="form.splitType">
<el-radio label="1" >按重量分摊</el-radio> <el-radio label="1" >按重量分摊</el-radio>
@ -58,7 +58,7 @@
stripe stripe
:data="form.feeItemList" :data="form.feeItemList"
size="mini" size="mini"
max-height="300px" max-height="200px"
style="width: 100%" style="width: 100%"
show-summary show-summary
:summary-method="getSummaries" :summary-method="getSummaries"
@ -128,6 +128,11 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" rows="1" type="textarea" placeholder="请输入备注" />
</el-form-item>
</el-col>
</el-row> </el-row>
</el-col> </el-col>
@ -196,7 +201,8 @@
</el-col> --> </el-col> -->
<el-col :span="24"> <el-col :span="24" v-if="isShowWaybillList">
<el-form-item label="关联单号" prop="billCode" > <el-form-item label="关联单号" prop="billCode" >
<span slot="label"> <span slot="label">
<span style="color: red">运单列表</span> <span style="color: red">运单列表</span>
@ -206,7 +212,8 @@
<el-button type="primary" @click="addBillToApply">加入单号</el-button> <el-button type="primary" @click="addBillToApply">加入单号</el-button>
</div> </div>
<el-table <el-table
class="cargoList"
class="cargoList"
:cell-style="{ :cell-style="{
'padding': '0px!important', 'padding': '0px!important',
'padding-left': '0px!important', 'padding-left': '0px!important',
@ -220,7 +227,7 @@
:data="form.billRelList" :data="form.billRelList"
size="mini" size="mini"
style="width: 100%" style="width: 100%"
max-height="300px" max-height="200px"
> >
<!-- max-height="500px" --> <!-- max-height="500px" -->
@ -302,11 +309,7 @@
<el-input v-model="form.totalVolume" placeholder="请输入总体积" /> <el-input v-model="form.totalVolume" placeholder="请输入总体积" />
</el-form-item> </el-form-item>
</el-col> --> </el-col> -->
<el-col :span="24">
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" rows="1" type="textarea" placeholder="请输入备注" />
</el-form-item>
</el-col>
</el-row> </el-row>
@ -315,6 +318,7 @@
<el-button type="primary" :loading="isDoing" @click="submitForm">确 定</el-button> <el-button type="primary" :loading="isDoing" @click="submitForm">确 定</el-button>
<el-button type="primary" :loading="isDoing" @click="submitFormAndContinue" >保存并继续录入</el-button> <el-button type="primary" :loading="isDoing" @click="submitFormAndContinue" >保存并继续录入</el-button>
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="showWaybillList" size="mini"><span style="">{{ showListLabel }}</span></el-button>
</div> </div>
</div> </div>
@ -345,6 +349,8 @@ export default {
// 遮罩层 // 遮罩层
loading: true, loading: true,
isDoing:false, isDoing:false,
isShowWaybillList:false,
showListLabel:'显示运单列表',
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
@ -382,6 +388,14 @@ export default {
}, },
methods: { methods: {
showWaybillList(){
this.isShowWaybillList=!this.isShowWaybillList;
if(this.isShowWaybillList){
this.showListLabel='隐藏运单列表';
}else{
this.showListLabel='显示运单列表';
}
},
handleAddFee(){ handleAddFee(){
this.triggerCount++; this.triggerCount++;
}, },
@ -684,11 +698,6 @@ export default {
} }
} }
.el-collapse {
border-top: none!important;
border-bottom: none!important;
}
.el-table .el-table__cell:first-child .cell { .el-table .el-table__cell:first-child .cell {
padding: 0px; padding: 0px;
} }