|
@@ -254,20 +254,20 @@
|
|
|
</div>
|
|
|
<div class="diy-table-1">
|
|
|
<el-row :gutter="0">
|
|
|
- <el-col :span="8" class="item">
|
|
|
+ <el-col :span="12" class="item">
|
|
|
<div class="label">审批人</div>
|
|
|
<div class="value">{{ userName }}</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8" class="item">
|
|
|
- <div class="label">是否计划单</div>
|
|
|
- <div class="value">
|
|
|
- <el-radio-group v-model="examineForm.isPlanOrder" :disabled="websitNumber === 'GZ'">
|
|
|
- <el-radio :label="true">是</el-radio>
|
|
|
- <el-radio :label="false">否</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" class="item">
|
|
|
+ <!-- <el-col :span="8" class="item">-->
|
|
|
+ <!-- <div class="label">是否计划单</div>-->
|
|
|
+ <!-- <div class="value">-->
|
|
|
+ <!-- <el-radio-group v-model="examineForm.isPlanOrder" :disabled="websitNumber === 'GZ'">-->
|
|
|
+ <!-- <el-radio :label="true">是</el-radio>-->
|
|
|
+ <!-- <el-radio :label="false">否</el-radio>-->
|
|
|
+ <!-- </el-radio-group>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <el-col :span="12" class="item">
|
|
|
<div class="label">审批结果</div>
|
|
|
<div class="value">
|
|
|
<el-radio-group v-model="examineForm.examineResult">
|
|
@@ -521,9 +521,9 @@ export default {
|
|
|
|
|
|
// 获取详情
|
|
|
getDetail() {
|
|
|
- if (this.websitNumber === 'GZ') {
|
|
|
- this.examineForm.isPlanOrder = false
|
|
|
- }
|
|
|
+ // if (this.websitNumber === 'GZ') {
|
|
|
+ // this.examineForm.isPlanOrder = false
|
|
|
+ // }
|
|
|
getEnginDetail({ id: this.listItem.enginInfoId }).then(res => {
|
|
|
this.detailData = res.data
|
|
|
this.examineStatus = res.data.examineStatus
|
|
@@ -737,82 +737,82 @@ export default {
|
|
|
},
|
|
|
|
|
|
clickSubmitForm() {
|
|
|
- if (this.websitNumber === 'GZ') {
|
|
|
- if (!this.detailData.serviceId) {
|
|
|
- return this.$errorMsg('请选择业务员')
|
|
|
- }
|
|
|
- this.$confirm('此操作将审批订单, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- const saleManItem = this.salesmanList.find(o => o.adminUserId == this.detailData.serviceId)
|
|
|
- const params = JSON.parse(JSON.stringify(this.detailData))
|
|
|
- params.enginInfoId = this.listItem.enginInfoId
|
|
|
- params.mainId = this.listItem.mainId
|
|
|
- params.examineResult = this.examineForm.examineResult
|
|
|
- params.examineNote = this.examineForm.remark
|
|
|
- params.isPlanOrder = this.examineForm.isPlanOrder
|
|
|
- params.serviceName = saleManItem.nickName
|
|
|
- params.items = this.goodsList
|
|
|
- this.formLoading = true
|
|
|
- examineEngin(params)
|
|
|
- .then(res => {
|
|
|
- this.$successMsg('审批成功')
|
|
|
- this.goBack()
|
|
|
- this.$parent.getList()
|
|
|
- })
|
|
|
- .finally(res => {
|
|
|
- this.formLoading = false
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- return
|
|
|
+ // if (this.websitNumber === 'GZ') {
|
|
|
+ if (!this.detailData.serviceId) {
|
|
|
+ return this.$errorMsg('请选择业务员')
|
|
|
}
|
|
|
- this.$confirm('请确认信息单是否未计划单,请勾选是否计划单选项', '提示', {
|
|
|
- confirmButtonText: '是计划单',
|
|
|
- cancelButtonText: '不是计划单',
|
|
|
+ this.$confirm('此操作将审批订单, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.examineForm.isPlanOrder = true
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.examineForm.isPlanOrder = false
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- if (!this.detailData.serviceId) {
|
|
|
- return this.$errorMsg('请选择业务员')
|
|
|
- }
|
|
|
- this.$confirm('此操作将审批订单, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- const saleManItem = this.salesmanList.find(o => o.adminUserId == this.detailData.serviceId)
|
|
|
- const params = JSON.parse(JSON.stringify(this.detailData))
|
|
|
- params.enginInfoId = this.listItem.enginInfoId
|
|
|
- params.mainId = this.listItem.mainId
|
|
|
- params.examineResult = this.examineForm.examineResult
|
|
|
- params.examineNote = this.examineForm.remark
|
|
|
- params.isPlanOrder = this.examineForm.isPlanOrder
|
|
|
- params.serviceName = saleManItem.nickName
|
|
|
- params.items = this.goodsList
|
|
|
- this.formLoading = true
|
|
|
- examineEngin(params)
|
|
|
- .then(res => {
|
|
|
- this.$successMsg('审批成功')
|
|
|
- this.goBack()
|
|
|
- this.$parent.getList()
|
|
|
- })
|
|
|
- .finally(res => {
|
|
|
- this.formLoading = false
|
|
|
- })
|
|
|
+ const saleManItem = this.salesmanList.find(o => o.adminUserId == this.detailData.serviceId)
|
|
|
+ const params = JSON.parse(JSON.stringify(this.detailData))
|
|
|
+ params.enginInfoId = this.listItem.enginInfoId
|
|
|
+ params.mainId = this.listItem.mainId
|
|
|
+ params.examineResult = this.examineForm.examineResult
|
|
|
+ params.examineNote = this.examineForm.remark
|
|
|
+ params.isPlanOrder = this.examineForm.isPlanOrder
|
|
|
+ params.serviceName = saleManItem.nickName
|
|
|
+ params.items = this.goodsList
|
|
|
+ this.formLoading = true
|
|
|
+ examineEngin(params)
|
|
|
+ .then(res => {
|
|
|
+ this.$successMsg('审批成功')
|
|
|
+ this.goBack()
|
|
|
+ this.$parent.getList()
|
|
|
+ })
|
|
|
+ .finally(res => {
|
|
|
+ this.formLoading = false
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
})
|
|
|
+ .catch(() => {})
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // this.$confirm('请确认信息单是否未计划单,请勾选是否计划单选项', '提示', {
|
|
|
+ // confirmButtonText: '是计划单',
|
|
|
+ // cancelButtonText: '不是计划单',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // this.examineForm.isPlanOrder = true
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // this.examineForm.isPlanOrder = false
|
|
|
+ // })
|
|
|
+ // .finally(() => {
|
|
|
+ // if (!this.detailData.serviceId) {
|
|
|
+ // return this.$errorMsg('请选择业务员')
|
|
|
+ // }
|
|
|
+ // this.$confirm('此操作将审批订单, 是否继续?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // const saleManItem = this.salesmanList.find(o => o.adminUserId == this.detailData.serviceId)
|
|
|
+ // const params = JSON.parse(JSON.stringify(this.detailData))
|
|
|
+ // params.enginInfoId = this.listItem.enginInfoId
|
|
|
+ // params.mainId = this.listItem.mainId
|
|
|
+ // params.examineResult = this.examineForm.examineResult
|
|
|
+ // params.examineNote = this.examineForm.remark
|
|
|
+ // params.isPlanOrder = this.examineForm.isPlanOrder
|
|
|
+ // params.serviceName = saleManItem.nickName
|
|
|
+ // params.items = this.goodsList
|
|
|
+ // this.formLoading = true
|
|
|
+ // examineEngin(params)
|
|
|
+ // .then(res => {
|
|
|
+ // this.$successMsg('审批成功')
|
|
|
+ // this.goBack()
|
|
|
+ // this.$parent.getList()
|
|
|
+ // })
|
|
|
+ // .finally(res => {
|
|
|
+ // this.formLoading = false
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // .catch(() => {})
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
}
|