|
@@ -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>
|
|
@@ -71,15 +71,15 @@
|
|
|
@saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)">
|
|
|
<template slot-scope="{scope,row}" slot="menuLeft">
|
|
|
<el-button type="primary" icon="el-icon-plus" size="small"
|
|
|
- :disabled="editButton || form.status == 2" @click="rowAdd(row)">添加商品
|
|
|
+ :disabled="editButton || form.status == 1" @click="rowAdd(row)">添加商品
|
|
|
</el-button>
|
|
|
- <el-button type="success" size="small" :disabled="editButton || form.status == 2"
|
|
|
+ <el-button type="success" size="small" :disabled="editButton || 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="editButton || form.status == 2 || selectionMultilist.length == 0">
|
|
|
+ :disabled="editButton || form.status == 1 || selectionMultilist.length == 0">
|
|
|
一键删除
|
|
|
</el-button> -->
|
|
|
</template>
|
|
@@ -117,11 +117,11 @@
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
|
<template slot-scope="{type,size,row,index,disabled}" slot="menu">
|
|
|
- <el-button :size="size" :disabled="editButton || form.status == 2" :type="type"
|
|
|
+ <el-button :size="size" :disabled="editButton || form.status == 1" :type="type"
|
|
|
:icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
|
|
|
@click="rowEdit(row, index)">{{ row.$cellEdit ? '保存' : '编辑' }}
|
|
|
</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :disabled="editButton || form.status == 2"
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :disabled="editButton || form.status == 1"
|
|
|
:type="type" @click="rowDel(row, index, 'planItemsList')">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -161,11 +161,11 @@
|
|
|
<span v-else>{{ row.goodsNum }}</span>
|
|
|
</tempalte>
|
|
|
<template slot-scope="{type,size,row,index,disabled}" slot="menu">
|
|
|
- <el-button :size="size" :disabled="editButton || form.status == 2" :type="type"
|
|
|
+ <el-button :size="size" :disabled="editButton || form.status == 1" :type="type"
|
|
|
:icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
|
|
|
@click="rowEdit(row, index)">{{ row.$cellEdit ? '保存' : '编辑' }}
|
|
|
</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :disabled="editButton || form.status == 2"
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :disabled="editButton || form.status == 1"
|
|
|
:type="type" @click="rowDel(row, index, 'centerShipCostList')">删除
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -832,7 +832,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
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)
|
|
@@ -1220,7 +1220,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
|