|
@@ -11,41 +11,32 @@
|
|
|
>返回列表
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <el-button
|
|
|
- class="submit-customer-btn"
|
|
|
- type="primary"
|
|
|
- :disabled="disabled"
|
|
|
- @click="editCustomer('submit')"
|
|
|
- >提交
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- class="add-customer-btn"
|
|
|
- type="primary"
|
|
|
- :disabled="disabled"
|
|
|
- @click="editCustomer('save')"
|
|
|
- >{{ form.id ? "确认修改" : "确认新增" }}
|
|
|
- </el-button>
|
|
|
+ <div class="add-customer-btn">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
+ v-if="detailData.status != 1"
|
|
|
+ @click="editCustomer('submit')"
|
|
|
+ >提交
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
+ @click="editCustomer('save')"
|
|
|
+ v-if="detailData.status != 1"
|
|
|
+ >{{ form.id ? "确认修改" : "确认新增" }}
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div style="margin-top: 60px;margin-bottom:35px">
|
|
|
<containerTitle title="基础信息"></containerTitle>
|
|
|
<basic-container style="margin-bottom: 10px">
|
|
|
<avue-form ref="form" v-model="form" :option="option">
|
|
|
- <template slot="portOfLoad">
|
|
|
- <port-info
|
|
|
- v-model="form.portOfLoad"
|
|
|
- :disabled="$route.query.status == 1"
|
|
|
- />
|
|
|
- </template>
|
|
|
- <template slot="portOfDestination">
|
|
|
- <port-info
|
|
|
- v-model="form.portOfDestination"
|
|
|
- :disabled="$route.query.status == 1"
|
|
|
- />
|
|
|
- </template>
|
|
|
<template slot="corpId">
|
|
|
<select-component
|
|
|
v-model="form.corpId"
|
|
|
:configuration="configuration"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
></select-component>
|
|
|
</template>
|
|
|
</avue-form>
|
|
@@ -65,7 +56,7 @@
|
|
|
size="small"
|
|
|
type="text"
|
|
|
@click="rePick(row, index)"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
class="picker"
|
|
|
style="padding:4px 10px;float:left"
|
|
|
>选择</el-button
|
|
@@ -144,6 +135,7 @@
|
|
|
icon="el-icon-plus"
|
|
|
size="small"
|
|
|
@click.stop="newDetails"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
>新增明细</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -151,6 +143,7 @@
|
|
|
icon="el-icon-printer"
|
|
|
size="small"
|
|
|
@click.stop="openReport()"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
>报 表</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -160,7 +153,7 @@
|
|
|
icon="el-icon-edit"
|
|
|
type="text"
|
|
|
@click="rowCell(row, index)"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="detailData.status == 1"
|
|
|
>{{ row.$cellEdit ? "保存" : "修改" }}</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -272,6 +265,7 @@ export default {
|
|
|
option: {
|
|
|
menuBtn: false,
|
|
|
labelWidth: 100,
|
|
|
+ disabled:false,
|
|
|
column: [
|
|
|
{
|
|
|
label: "客户名称",
|