|
@@ -13,6 +13,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="revokeOutGoods"
|
|
@click="revokeOutGoods"
|
|
|
v-if="form.deliveryStatus !== '录入'"
|
|
v-if="form.deliveryStatus !== '录入'"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>撤销发货</el-button>
|
|
>撤销发货</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
class="el-button--small-yh add-customer-btn"
|
|
@@ -20,16 +21,18 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="sendOutGoods"
|
|
@click="sendOutGoods"
|
|
|
v-if="form.deliveryStatus == '录入'"
|
|
v-if="form.deliveryStatus == '录入'"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>确认发货</el-button>
|
|
>确认发货</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
- type="success" style="right: 140px;" @click="copyOrder">
|
|
|
|
|
|
|
+ type="success" style="right: 140px;" @click="copyOrder"
|
|
|
|
|
+ :disabled="detailData.seeDisabled">
|
|
|
复制新单
|
|
复制新单
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="el-button--small-yh add-customer-btn"
|
|
class="el-button--small-yh add-customer-btn"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
- :disabled="disabled"
|
|
|
|
|
|
|
+ :disabled="disabled || detailData.seeDisabled"
|
|
|
@click="editCustomer(false)"
|
|
@click="editCustomer(false)"
|
|
|
>{{ form.id ? '确认修改' : '确认新增' }}
|
|
>{{ form.id ? '确认修改' : '确认新增' }}
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -44,10 +47,10 @@
|
|
|
<!-- <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple :props="{label:'title'}" v-model="form[item.prop]" placeholder="请选择内容" type="tree" :dic="dic"-->
|
|
<!-- <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple :props="{label:'title'}" v-model="form[item.prop]" placeholder="请选择内容" type="tree" :dic="dic"-->
|
|
|
<!-- ></avue-input-tree>-->
|
|
<!-- ></avue-input-tree>-->
|
|
|
<el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]"
|
|
<el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]"
|
|
|
- size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" :disabled="item.disabled"/>
|
|
|
|
|
|
|
+ size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" :disabled="item.disabled || detailData.seeDisabled"/>
|
|
|
<selectComponent v-else-if="item.prop === 'corpId' || item.prop === 'salesCompany'" v-model="form[item.prop]"
|
|
<selectComponent v-else-if="item.prop === 'corpId' || item.prop === 'salesCompany'" v-model="form[item.prop]"
|
|
|
- :configuration="configuration" style="width: 100%"/>
|
|
|
|
|
- <el-select v-else-if="item.prop === 'deliveryStatus'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="item.disabled">
|
|
|
|
|
|
|
+ :configuration="configuration" style="width: 100%" :disabled="detailData.seeDisabled"/>
|
|
|
|
|
+ <el-select v-else-if="item.prop === 'deliveryStatus'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="item.disabled || detailData.seeDisabled">
|
|
|
<el-option v-for="(item,index) in statusOption" :key="index" :label="item.dictValue" :value="item.dictValue" size="small"></el-option>
|
|
<el-option v-for="(item,index) in statusOption" :key="index" :label="item.dictValue" :value="item.dictValue" size="small"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
<!-- <avue-input-tree-->
|
|
<!-- <avue-input-tree-->
|
|
@@ -62,11 +65,11 @@
|
|
|
<!-- @change="warehouseTreeChange"-->
|
|
<!-- @change="warehouseTreeChange"-->
|
|
|
<!-- >-->
|
|
<!-- >-->
|
|
|
<!-- </avue-input-tree>-->
|
|
<!-- </avue-input-tree>-->
|
|
|
- <el-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small">
|
|
|
|
|
|
|
+ <el-select v-else-if="item.prop === 'storageId'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
|
|
|
<el-option v-for="(item,index) in warehouseName" :key="index" :label="item.cname" :value="item.id" size="small"></el-option>
|
|
<el-option v-for="(item,index) in warehouseName" :key="index" :label="item.cname" :value="item.id" size="small"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <el-input type="textarea" v-else-if="item.type === 'textarea'" v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled"></el-input>
|
|
|
|
|
- <el-input type="age" v-else v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled"></el-input>
|
|
|
|
|
|
|
+ <el-input type="textarea" v-else-if="item.type === 'textarea'" v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled"></el-input>
|
|
|
|
|
+ <el-input type="age" v-else v-model="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -86,21 +89,31 @@
|
|
|
>
|
|
>
|
|
|
<template slot="code" slot-scope="{row,index}">
|
|
<template slot="code" slot-scope="{row,index}">
|
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
|
- <el-button type="text" size="mini" style="float: right" @click="commodityChoice(row)">选择</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="commodityChoice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="text"
|
|
type="text"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="rowCell(row,index)"
|
|
@click="rowCell(row,index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>{{ row.$cellEdit ? '保存' : '修改' }}
|
|
>{{ row.$cellEdit ? '保存' : '修改' }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="rowDel(row, index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
|
|
+ v-if="!row.$cellEdit"
|
|
|
|
|
+ >删 除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="commoditySelection"
|
|
@click="commoditySelection"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>录入明细
|
|
>录入明细
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
|
|
<el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
|
|
@@ -130,7 +143,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot="code" slot-scope="{row,index}">
|
|
<template slot="code" slot-scope="{row,index}">
|
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
<span style="float: left;padding-top: 2px">{{ row.code }}</span>
|
|
|
- <el-button type="text" size="mini" style="float: right" @click="choice(row)">选择</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled">选择</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="corpId" slot-scope="{ row }">
|
|
<template slot="corpId" slot-scope="{ row }">
|
|
|
<selectComponent v-if="row.$cellEdit" v-model="row.corpId"
|
|
<selectComponent v-if="row.$cellEdit" v-model="row.corpId"
|
|
@@ -144,14 +157,24 @@
|
|
|
type="text"
|
|
type="text"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="rowCellTwo(row,index)"
|
|
@click="rowCellTwo(row,index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>{{ row.$cellEdit ? '保存' : '修改' }}
|
|
>{{ row.$cellEdit ? '保存' : '修改' }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="rowDelProject(row, index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
|
|
+ v-if="!row.$cellEdit"
|
|
|
|
|
+ >删 除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
<template slot="menuLeft" slot-scope="{size}">
|
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="costIncrease"
|
|
@click="costIncrease"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
>录入明细
|
|
>录入明细
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -167,7 +190,37 @@
|
|
|
@row-update="rowUpdateBankOfDeposit"
|
|
@row-update="rowUpdateBankOfDeposit"
|
|
|
@row-del="rowDelBankOfDeposit"
|
|
@row-del="rowDelBankOfDeposit"
|
|
|
:upload-after="uploadAfter"
|
|
:upload-after="uploadAfter"
|
|
|
- ></avue-crud>
|
|
|
|
|
|
|
+ ref="uploadCrud"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template slot="menuLeft">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ @click.stop="$refs.uploadCrud.rowAdd()"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
|
|
+ >上传</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template slot="menu" slot-scope="{ row, index }">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="$refs.uploadCrud.rowEdit(row, index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
|
|
+ >编 辑</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="rowDelBankOfDeposit(row, index)"
|
|
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
|
|
+ >删 除</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </avue-crud>
|
|
|
</basic-container>
|
|
</basic-container>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|