Commit 70cb478e by 前端

提测前代码提交

1 parent be47bd44
...@@ -103,66 +103,17 @@ export default { ...@@ -103,66 +103,17 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
console.log('this.recordInfo', this.recordInfo);
params.id = this.recordInfo.id params.id = this.recordInfo.id
console.log(params); console.log(params);
// // // 商户类型 1-服务中心 2-客户
// // params.merchantType = 2
// if (this.routeInfo.editType == 'edit') {
// params.yqMerchantId = this.editForm.merchantId
// // params.serviceCenterMerchantId = this.editForm.yqMerchantId
// }
// // 判断省市地址填写
// if (!params.provinceName || !params.cityName || !params.merchantAddress || !params.latitude || !params.longitude) {
// this.$message({
// message: '请选择省市地址',
// type: 'error'
// })
// return
// }
// if (!this.editForm.merchantBrandList?.length) {
// this.$message({
// message: '请选择主营品牌',
// type: 'error'
// })
// return
// }
// params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
// delete params.merchantBrandList
// delete params.merchantBrandIds
// // params.sceneList = []
// // this.baseData.sceneList.forEach(item => {
// // const productCodeIds = item.productList.map(k => k.productCode)
// // if (this.hasDuplicate(productCodeIds, this.editForm.productCodeList)) {
// // params.sceneList.push(item.sceneCode)
// // }
// // })
// this.$confirm('<strong>是否确定提交?</strong> <div>提交服务中心开通申请,进入开店审核,审核通过后将为您自动' + (this.routeInfo.editType == 'add' ? '创建' : '编辑') + '服务中心</div> ', '提示', {
// dangerouslyUseHTMLString: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(() => {
// const apiName = this.routeInfo.editType == 'edit' ? 'updateServiceCenter' : 'saveServiceCenter'
// this.loading = true
this.$apis.performanceManage.correctApi(params) this.$apis.performanceManage.correctApi(params)
.then(res => { .then(res => {
this.$message({ this.$notify({
message: res.code == '0' ? '操作成功' : res.message, type: 'success',
type: res.code == '0' ? 'success' : 'error' title: res.message || '操作成功'
}) })
if (res.code == '0') {
this.handleClose() this.handleClose()
}
}) })
// .finally(() => {
// this.loading = false
// })
// })
// .catch(() => { })
} }
}) })
}, },
......
...@@ -122,8 +122,9 @@ export default { ...@@ -122,8 +122,9 @@ export default {
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm.staffUuid = this.recordInfo.staffUuid // this.tableSearchForm.staffUuid = this.recordInfo.staffUuid
this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth // this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth
this.tableSearchForm.id = this.recordInfo.id
resolve() resolve()
}) })
}, },
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<ResidentCorrectionDialog v-if="isCorrectionVisible" <ResidentCorrectionDialog v-if="isCorrectionVisible"
:isVisible="isCorrectionVisible" :isVisible="isCorrectionVisible"
:recordInfo="recordInfo" :recordInfo="recordInfo"
@handleClose="handleCorrection"></ResidentCorrectionDialog> @handleClose="handleCorrectionClose"></ResidentCorrectionDialog>
</div> </div>
</template> </template>
...@@ -402,7 +402,10 @@ export default { ...@@ -402,7 +402,10 @@ export default {
this.recordInfo = row ? row : {} this.recordInfo = row ? row : {}
this.isCorrectionVisible = !this.isCorrectionVisible this.isCorrectionVisible = !this.isCorrectionVisible
}, },
handleCorrectionClose() {
this.isCorrectionVisible = !this.isCorrectionVisible
this.$refs.residentRef.refreshTable()
},
// 下发操作 // 下发操作
distribute(row) { distribute(row) {
var selectedData = [] var selectedData = []
......
...@@ -71,66 +71,16 @@ export default { ...@@ -71,66 +71,16 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
console.log('this.recordInfo', this.recordInfo);
params.id = this.recordInfo.id params.id = this.recordInfo.id
console.log(params); console.log(params);
// // // 商户类型 1-服务中心 2-客户
// // params.merchantType = 2
// if (this.routeInfo.editType == 'edit') {
// params.yqMerchantId = this.editForm.merchantId
// // params.serviceCenterMerchantId = this.editForm.yqMerchantId
// }
// // 判断省市地址填写
// if (!params.provinceName || !params.cityName || !params.merchantAddress || !params.latitude || !params.longitude) {
// this.$message({
// message: '请选择省市地址',
// type: 'error'
// })
// return
// }
// if (!this.editForm.merchantBrandList?.length) {
// this.$message({
// message: '请选择主营品牌',
// type: 'error'
// })
// return
// }
// params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
// delete params.merchantBrandList
// delete params.merchantBrandIds
// // params.sceneList = []
// // this.baseData.sceneList.forEach(item => {
// // const productCodeIds = item.productList.map(k => k.productCode)
// // if (this.hasDuplicate(productCodeIds, this.editForm.productCodeList)) {
// // params.sceneList.push(item.sceneCode)
// // }
// // })
// this.$confirm('<strong>是否确定提交?</strong> <div>提交服务中心开通申请,进入开店审核,审核通过后将为您自动' + (this.routeInfo.editType == 'add' ? '创建' : '编辑') + '服务中心</div> ', '提示', {
// dangerouslyUseHTMLString: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(() => {
// const apiName = this.routeInfo.editType == 'edit' ? 'updateServiceCenter' : 'saveServiceCenter'
// this.loading = true
this.$apis.performanceManage.correctApi(params) this.$apis.performanceManage.correctApi(params)
.then(res => { .then(res => {
this.$message({ this.$notify({
message: res.code == '0' ? '操作成功' : res.message, type: 'success',
type: res.code == '0' ? 'success' : 'error' title: res.message || '操作成功'
}) })
if (res.code == '0') {
this.handleClose() this.handleClose()
}
}) })
// .finally(() => {
// this.loading = false
// })
// })
// .catch(() => { })
} }
}) })
}, },
......
...@@ -133,8 +133,9 @@ export default { ...@@ -133,8 +133,9 @@ export default {
methods: { methods: {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm.staffUuid = this.recordInfo.staffUuid // this.tableSearchForm.staffUuid = this.recordInfo.staffUuid
this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth // this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth
this.tableSearchForm.id = this.recordInfo.id
resolve() resolve()
}) })
}, },
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<TechnicianCorrectionDialog v-if="isCorrectionVisible" <TechnicianCorrectionDialog v-if="isCorrectionVisible"
:isVisible="isCorrectionVisible" :isVisible="isCorrectionVisible"
:recordInfo="recordInfo" :recordInfo="recordInfo"
@handleClose="handleCorrection"></TechnicianCorrectionDialog> @handleClose="handleCorrectionClose"></TechnicianCorrectionDialog>
</div> </div>
</template> </template>
...@@ -328,7 +328,10 @@ export default { ...@@ -328,7 +328,10 @@ export default {
this.recordInfo = row ? row : {} this.recordInfo = row ? row : {}
this.isCorrectionVisible = !this.isCorrectionVisible this.isCorrectionVisible = !this.isCorrectionVisible
}, },
handleCorrectionClose() {
this.isCorrectionVisible = !this.isCorrectionVisible
this.$refs.residentRef.refreshTable()
},
// 下发操作 // 下发操作
distribute(row) { distribute(row) {
var selectedData = [] var selectedData = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!