|
@@ -10,14 +10,14 @@
|
|
<el-button class="el-button--small-yh" type="primary" size="small"
|
|
<el-button class="el-button--small-yh" type="primary" size="small"
|
|
v-if="form.id" @click="confirmEditing">编辑
|
|
v-if="form.id" @click="confirmEditing">编辑
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button class="el-button--small-yh" type="primary" size="small" v-if="form.statusName != '已入库'"
|
|
|
|
|
|
+ <el-button class="el-button--small-yh" type="primary" :disabled="isButton" size="small" v-if="form.statusName != '已入库'"
|
|
@click="editCustomer">保存数据
|
|
@click="editCustomer">保存数据
|
|
</el-button>
|
|
</el-button>
|
|
<el-button class="el-button--small-yh" type="success" size="small"
|
|
<el-button class="el-button--small-yh" type="success" size="small"
|
|
- v-if="form.statusName == '待入库' || form.statusName == '已撤销'" @click="complete">入库完成
|
|
|
|
|
|
+ v-if="form.statusName == '待入库' || form.statusName == '已撤销'" @click="complete" :disabled="isButton">入库完成
|
|
</el-button>
|
|
</el-button>
|
|
<el-button class="el-button--small-yh" type="success" size="small" v-if="form.statusName == '已入库'"
|
|
<el-button class="el-button--small-yh" type="success" size="small" v-if="form.statusName == '已入库'"
|
|
- @click="revoke">撤销入库
|
|
|
|
|
|
+ @click="revoke" :disabled="isButton">撤销入库
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -109,6 +109,7 @@ export default {
|
|
switchDialog: false,
|
|
switchDialog: false,
|
|
isEdit:false,
|
|
isEdit:false,
|
|
isEdits:false,
|
|
isEdits:false,
|
|
|
|
+ isButton:false,
|
|
activeName: "sale_detail",
|
|
activeName: "sale_detail",
|
|
disabled: false,
|
|
disabled: false,
|
|
isrowAdd: true,
|
|
isrowAdd: true,
|
|
@@ -596,6 +597,7 @@ export default {
|
|
this.optionPaymentDetails = await this.getColumnData(this.getColumnName(274.2), this.optionPaymentDetailsBack);
|
|
this.optionPaymentDetails = await this.getColumnData(this.getColumnName(274.2), this.optionPaymentDetailsBack);
|
|
this.optionOutboundRecords = await this.getColumnData(this.getColumnName(274.3), this.optionOutboundRecordsBack);
|
|
this.optionOutboundRecords = await this.getColumnData(this.getColumnName(274.3), this.optionOutboundRecordsBack);
|
|
this.key++
|
|
this.key++
|
|
|
|
+ this.isButton = true
|
|
if (this.onLoad.id && this.detailData.id) {
|
|
if (this.onLoad.id && this.detailData.id) {
|
|
this.refresh(this.onLoad.id, true)
|
|
this.refresh(this.onLoad.id, true)
|
|
this.$set(this.optionForm, 'disabled', true)
|
|
this.$set(this.optionForm, 'disabled', true)
|
|
@@ -679,6 +681,7 @@ export default {
|
|
},
|
|
},
|
|
//编辑
|
|
//编辑
|
|
confirmEditing() {
|
|
confirmEditing() {
|
|
|
|
+ this.isButton = false
|
|
if (this.form.statusName == '待入库') {
|
|
if (this.form.statusName == '待入库') {
|
|
this.isEdit = false
|
|
this.isEdit = false
|
|
this.isrowAdd = false
|
|
this.isrowAdd = false
|