|
@@ -152,26 +152,27 @@
|
|
|
<el-button type="warning" icon="el-icon-plus" size="small"
|
|
|
:disabled="detailData.status == 1 || orderItemIds.length == 0" @click="getInvoice">生成发货单
|
|
|
</el-button>
|
|
|
- <el-button v-if="goodsEditShow" size="small" type="primary" @click="handleSave">保存明细</el-button>
|
|
|
+ <el-button v-if="goodsEditShow && detailData.status != 1" size="small" type="primary" @click="handleSave">
|
|
|
+ 保存明细</el-button>
|
|
|
<el-button v-if="goodsEditShow" size="small" @click="handleClose">关闭明细</el-button>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<avue-form v-if="goodsEditShow" class="trading-form" v-model="goodsEditForm" :option="goodsEditOption">
|
|
|
<template slot="ename">
|
|
|
<el-input type="textarea" size="small" v-model="goodsEditForm.ename" placeholder="请输入"
|
|
|
- @change="formEditChange(goodsEditForm)" />
|
|
|
+ :disabled="detailData.status == 1" @change="formEditChange(goodsEditForm)" />
|
|
|
</template>
|
|
|
<template slot="itemProp">
|
|
|
<el-input type="textarea" size="small" v-model="goodsEditForm.itemProp" placeholder="请输入"
|
|
|
- @change="formEditChange(goodsEditForm)" />
|
|
|
+ :disabled="detailData.status == 1" @change="formEditChange(goodsEditForm)" />
|
|
|
</template>
|
|
|
<template slot="itemDescription">
|
|
|
<el-input type="textarea" size="small" v-model="goodsEditForm.itemDescription" placeholder="请输入"
|
|
|
- @change="formEditChange(goodsEditForm)" />
|
|
|
+ :disabled="detailData.status == 1" @change="formEditChange(goodsEditForm)" />
|
|
|
</template>
|
|
|
<template slot="partsDescribe">
|
|
|
<el-input type="textarea" size="small" v-model="goodsEditForm.partsDescribe" placeholder="请输入"
|
|
|
- @change="formEditChange(goodsEditForm)" />
|
|
|
+ :disabled="detailData.status == 1" @change="formEditChange(goodsEditForm)" />
|
|
|
</template>
|
|
|
</avue-form>
|
|
|
</el-row>
|
|
@@ -908,6 +909,7 @@ export default {
|
|
|
);
|
|
|
if (this.detailData.status == 1) {
|
|
|
this.option.disabled = true;
|
|
|
+ this.goodsEditOption.disabled = true;
|
|
|
this.bankOption.disabled = true;
|
|
|
this.insuranceOption.disabled = true;
|
|
|
this.markOption.disabled = true;
|
|
@@ -1187,10 +1189,8 @@ export default {
|
|
|
if (row.$cellEdit) {
|
|
|
return this.$message.error("请保存此行内容再操作");
|
|
|
}
|
|
|
- if (this.detailData.status != 1 && !row.$cellEdit) {
|
|
|
- this.goodsEditShow = true
|
|
|
- this.goodsEditForm = row
|
|
|
- }
|
|
|
+ this.goodsEditShow = true
|
|
|
+ this.goodsEditForm = row
|
|
|
},
|
|
|
handleSave() {
|
|
|
this.$set(this.data, this.goodsEditForm.$index, this.goodsEditForm)
|
|
@@ -2064,6 +2064,7 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
this.detailData.status = 2;
|
|
|
this.option = this.$options.data().option;
|
|
|
+ this.goodsEditOption = this.$options.data().goodsEditOption;
|
|
|
this.$refs.crud.refreshTable();
|
|
|
}
|
|
|
});
|