|
@@ -16,7 +16,7 @@
|
|
|
<el-button class="el-button--small-yh" v-if="form.id && form.status == 0" style="margin-left: 6px;"
|
|
|
type="success" size="small" @click="editCustomer(1)" :disabled="form.status == 1">提 交
|
|
|
</el-button>
|
|
|
- <el-dropdown v-if="form.status == 1">
|
|
|
+ <!-- <el-dropdown v-if="form.status == 1">
|
|
|
<el-button style="margin-left: 6px;" type="success" size="small">
|
|
|
审 核<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
@@ -24,7 +24,7 @@
|
|
|
<el-dropdown-item @click.native="auditPlan(2)">通过</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="approve()">驳回</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-top: 50px">
|
|
@@ -34,7 +34,7 @@
|
|
|
<!-- 联系人 -->
|
|
|
<el-select v-model="form.contacts" placeholder="请选择" size="small" style="width:60%" clearable
|
|
|
filterable allow-create default-first-option @change="contactsChange($event)"
|
|
|
- :disabled="editButton || form.status == 2">
|
|
|
+ :disabled="editButton || form.status == 1">
|
|
|
<el-option v-for="item in contactsOption" :key="item.cname" :label="item.cname"
|
|
|
:value="item.contacts" />
|
|
|
</el-select>
|
|
@@ -43,20 +43,20 @@
|
|
|
<dic-select v-model="form.customerName" placeholder="货主" key="id" label="cname" res="records"
|
|
|
url="/blade-sales-part/corpsDesc/list?current=1&size=20&&enableOrNot=1" :filterable="true"
|
|
|
:remote="true" dataName="cname" @selectChange="dicChange('customerName', $event)"
|
|
|
- :disabled="editButton || form.status == 2"></dic-select>
|
|
|
+ :disabled="editButton || form.status == 1"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="storageName">
|
|
|
<dic-select v-model="form.storageName" placeholder="货主" key="id" label="cname" res="records"
|
|
|
url="/blade-sales-part/tire/center/warehouse/storage/list?current=1&size=5"
|
|
|
:filterable="true" :remote="true" dataName="cname"
|
|
|
@selectChange="dicChange('storageName', $event)"
|
|
|
- :disabled="editButton || form.status == 2"></dic-select>
|
|
|
+ :disabled="editButton || form.status == 1"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="warehouseKeeperName">
|
|
|
<dic-select v-model="form.warehouseKeeperName" placeholder="库管" key="id" label="realName"
|
|
|
res="records" url="/blade-user/page?current=1&size=5&userType=2" :filterable="true"
|
|
|
:remote="true" dataName="realName" @selectChange="dicChange('warehouseKeeperName', $event)"
|
|
|
- :disabled="editButton || form.status == 2"></dic-select>
|
|
|
+ :disabled="editButton || form.status == 1"></dic-select>
|
|
|
</tempalte>
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
@@ -69,15 +69,15 @@
|
|
|
@resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.6)"
|
|
|
@saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.6)">
|
|
|
<template slot-scope="{scope,row}" slot="menuLeft">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="small" :disabled="form.status == 2"
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="small" :disabled="form.status == 1"
|
|
|
@click="rowAdd(row, 1)">添加商品</el-button>
|
|
|
- <el-button type="success" size="small" :disabled="form.status == 2"
|
|
|
+ <el-button type="success" size="small" :disabled="form.status == 1"
|
|
|
icon="el-icon-bottom" @click="excelDialogfun('code')">按Code导入
|
|
|
</el-button>
|
|
|
<el-button type="primary" icon="el-icon-printer" size="small"
|
|
|
@click="handlePrint">打印</el-button>
|
|
|
<!-- <el-button type="danger" plain size="small" @click="batchDelete"
|
|
|
- :disabled="form.status == 2">一键删除</el-button> -->
|
|
|
+ :disabled="form.status == 1">一键删除</el-button> -->
|
|
|
<!-- <el-popover width="600" trigger="click">
|
|
|
<avue-crud :data="inventoryData" :option="inventoryOption"></avue-crud>
|
|
|
<el-button type="primary" plain size="small" slot="reference" @click="viewInventory"
|
|
@@ -925,7 +925,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
inEdit() {
|
|
|
- if (this.form.status != 2) {
|
|
|
+ if (this.form.status != 1) {
|
|
|
this.editButton = false
|
|
|
this.$set(this.optionForm, 'disabled', false)
|
|
|
this.$set(this.optionContactsBack, 'disabled', false)
|
|
@@ -1314,7 +1314,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.formContacts.doLayout()
|
|
|
})
|
|
|
- if (res.data.data.status == 2) {
|
|
|
+ if (res.data.data.status == 1) {
|
|
|
this.$set(this.optionForm, 'disabled', true)
|
|
|
this.$set(this.optionContactsBack, 'disabled', true)
|
|
|
this.editButton = true
|