|
@@ -348,31 +348,31 @@ export default {
|
|
|
dataList: [],
|
|
|
dicUrlWithCustomId: '',
|
|
|
sharedCompanyId: 0,
|
|
|
- isAddBtn: true,
|
|
|
- isSaveBtn: false,
|
|
|
- viewDisabled: false,
|
|
|
- isAdd: false,
|
|
|
- editButton: true,
|
|
|
- isEditButton: false,
|
|
|
+ isAddBtn: true, // 添加轮胎的是否禁用
|
|
|
+ isSaveBtn: false, // 大保存的是否禁用
|
|
|
+ viewDisabled: false, // 大审批的是否禁用
|
|
|
+ isAdd: false, // 表格按钮的是否点击
|
|
|
+ editButton: true, // 大编辑大隐藏显示
|
|
|
+ isEditButton: false, // 大编辑是否禁用
|
|
|
goods: [],
|
|
|
- isDisabled: false,
|
|
|
- isDisabledTask: false,
|
|
|
+ isDisabled: false, // 表格删除的是否禁用
|
|
|
+ isDisabledTask: false, // 撤销任务和生成任务的是否禁用
|
|
|
contactsOption: [],
|
|
|
- isContacts: false,
|
|
|
+ isContacts: false, // 表单的联系人是否禁用
|
|
|
checkData: {},
|
|
|
- buttonText: '生成任务',
|
|
|
- buttonColor: 'success', // 初始颜色为success
|
|
|
- checkScheduleDialog: false,
|
|
|
- isApplySettlement: true,
|
|
|
- isConfirmRefundBtn: true,
|
|
|
- isExamineBtn: true,
|
|
|
- isRevocationRequest: true,
|
|
|
- checkDialog: false,
|
|
|
+ buttonText: '生成任务', // 生成任务和撤销任务文本
|
|
|
+ buttonColor: 'success', // 初始颜色为success 生成任务和撤销任务颜色状态
|
|
|
+ checkScheduleDialog: false, // 审批进度的弹窗开启关闭
|
|
|
+ isApplySettlement: true, // 申请退款的是否禁用
|
|
|
+ isConfirmRefundBtn: true, // 确认退款的是否禁用
|
|
|
+ isExamineBtn: true, // 审批是否禁用
|
|
|
+ isRevocationRequest: true, // 撤销审核是否禁用
|
|
|
+ checkDialog: false, // 审核弹窗的开启关闭
|
|
|
checkId: '',
|
|
|
batchNo: '',
|
|
|
- switchDialog: false,
|
|
|
+ switchDialog: false, // 打印弹窗的开启和关闭
|
|
|
activeName: "sale_detail",
|
|
|
- disabled: false,
|
|
|
+ disabled: false, // 表格按钮的禁用
|
|
|
key: 0,
|
|
|
form: {
|
|
|
orderItemsList: [],
|
|
@@ -1152,14 +1152,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // 获取明细信息
|
|
|
+ // 获取详细明细信息
|
|
|
getDetailsfun(){
|
|
|
getDetails({
|
|
|
id:this.detailData.id
|
|
|
}).then(res=>{
|
|
|
- console.log(res.data,1131)
|
|
|
this.form = res.data.data
|
|
|
this.form.orderItemsList = res.data.data.orderItemsList
|
|
|
+
|
|
|
+ console.log(this.isEditButton,'bianj')
|
|
|
+ console.log(this.isDisabledTask,'chexiao')
|
|
|
+ console.log(this.buttonColor,'123')
|
|
|
+ // if (this.form.status == '待发货') {
|
|
|
+ //
|
|
|
+ // }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
// 获取左侧筛选
|
|
@@ -1423,6 +1430,7 @@ export default {
|
|
|
}
|
|
|
if (this.form.status == '待发货') {
|
|
|
this.isAddBtn = true
|
|
|
+
|
|
|
}
|
|
|
this.optionContactsBack.column.forEach(its => {
|
|
|
if (its.prop == 'goodsId' || its.prop == 'goodsNum' || its.prop == 'price' || its.prop == 'dot' || its.prop == 'remarks') {
|
|
@@ -1549,6 +1557,7 @@ export default {
|
|
|
this.isContacts = true
|
|
|
//删除按钮
|
|
|
this.isDisabled = false
|
|
|
+
|
|
|
// this.optionForm.column.forEach(item => {
|
|
|
// item.disabled = false
|
|
|
// })
|
|
@@ -1583,6 +1592,8 @@ export default {
|
|
|
this.isDisabledTask = false;
|
|
|
this.viewDisabled = false;
|
|
|
this.isDisabled = true
|
|
|
+
|
|
|
+ this.isAdd = true
|
|
|
}
|
|
|
// this.$set(this.form, 'shipType', '物流')
|
|
|
// this.$set(this.form, 'receivableType', '现金')
|
|
@@ -1650,6 +1661,7 @@ export default {
|
|
|
this.isAdd = true
|
|
|
this.isDisabled = true
|
|
|
this.isAddBtn = true
|
|
|
+ this.editButton = true // 把编辑按钮显示出来
|
|
|
}).finally(() => {
|
|
|
loading.close();
|
|
|
});
|
|
@@ -1694,6 +1706,7 @@ export default {
|
|
|
this.$set(this.optionContactsBack, 'disabled', true)
|
|
|
this.isContacts = true
|
|
|
this.isDisabled = true
|
|
|
+ this.editButton = true // 把编辑按钮显示出来
|
|
|
//添加删除按钮禁用
|
|
|
this.isAdd = true
|
|
|
if (this.form.businessSource == "外部销售") {
|
|
@@ -1795,6 +1808,7 @@ export default {
|
|
|
this.refresh(res.data.data.id)
|
|
|
this.isDisabledTask = false
|
|
|
this.editButton = true
|
|
|
+
|
|
|
loading.close();
|
|
|
}).finally(() => {
|
|
|
loading.close();
|