|
|
@@ -15,12 +15,15 @@
|
|
|
@onTabClick="onTabClick"
|
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
+ <div slot="customOperationBef">
|
|
|
+ <setMaterial v-if="tool.checkAuth($route.name,'setMaterial')" @setSuccess="queryMainData"></setMaterial>
|
|
|
+ </div>
|
|
|
<div slot="customOperation" v-if="Object.keys(mainData).length > 0">
|
|
|
<!-- <Edit class="inline-16" v-if="tool.checkAuth($route.name,'update') && (mainData.status == '新建')" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" /> -->
|
|
|
<Edit style="display: inline-block !important;" v-if="mainData.status === '新建'" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" />
|
|
|
<!-- <Edit class="inline-16" v-if="mainData.status !== '新建' && mainData.status !== '关闭'" :data="mainData" @onSuccess="queryMainData();$refs.prod && $refs.prod.listData()" />-->
|
|
|
<EditRemark style="margin-right: 20px !important;" v-if="mainData.status === '新建'" :data="mainData" @onSuccess="queryMainData"></EditRemark>
|
|
|
- <EditRemark style="margin-right: 20px !important;margin-left: -10px" v-if="mainData.status !== '新建' && tool.checkAuth($route.name,'editRemark')" :data="mainData" @onSuccess="queryMainData"></EditRemark>
|
|
|
+ <EditRemark style="margin-right: 20px !important;margin-left: -2px" v-if="mainData.status !== '新建' && tool.checkAuth($route.name,'editRemark')" :data="mainData" @onSuccess="queryMainData"></EditRemark>
|
|
|
<changeSaler class="inline-16" style="margin-left: -10px" ref="saler" @selectRow="salerChange" :isPlain="true">
|
|
|
<el-button v-if="tool.checkAuth($route.name,'changeSaler')" type="primary" slot="input" size="mini" @click="$refs.saler.visible=true;$refs.saler.listData()">{{$t(`变更业务员`)}}</el-button>
|
|
|
</changeSaler>
|
|
|
@@ -160,6 +163,7 @@ import changeHistory from './tabs/changeHistory.vue'
|
|
|
import importFile from './importFile.vue'
|
|
|
import EditRemark from '../modules/EditRemark.vue'
|
|
|
import dialogTemplate from "@/template/dialogTemplate/index";
|
|
|
+import setMaterial from "./tabs/setMaterial";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
data() {
|
|
|
@@ -208,7 +212,8 @@ export default {
|
|
|
changeHistory,
|
|
|
importFile,
|
|
|
EditRemark,
|
|
|
- dialogTemplate
|
|
|
+ dialogTemplate,
|
|
|
+ setMaterial
|
|
|
},
|
|
|
methods:{
|
|
|
async orderreviewtype () {
|
|
|
@@ -570,25 +575,10 @@ export default {
|
|
|
cancelButtonText: this.$t('取消'),
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
+ console.log(this.tabNow,'tabNow',this.$refs.prod.time)
|
|
|
if (this.tabNow != 'tab0' || this.$refs.prod.time == null){
|
|
|
- const res = await this.$api.requested({
|
|
|
- "id": type === '审核'?20221108153502:20221108153402,
|
|
|
- "content": {
|
|
|
- "sa_orderid": this.mainData.sa_orderid,
|
|
|
- "sys_enterpriseid": this.mainData.sys_enterpriseid,
|
|
|
- "sa_accountclassid": this.mainData.accountclass.sa_accountclassid,
|
|
|
- "reviewtype":type === '审核'?this.value:''
|
|
|
- },
|
|
|
- })
|
|
|
- this.tool.showMessage(res,async ()=>{
|
|
|
- this.queryMainData()
|
|
|
- // if (type == '审核' && (this.siteid == 'HY' || this.siteid == 'YOSTEST1')){
|
|
|
- // this.querySetDay()
|
|
|
- // }else {
|
|
|
- // this.visible = false
|
|
|
- // this.queryMainData()
|
|
|
- // }
|
|
|
- })
|
|
|
+ console.log('2222222222222222222222')
|
|
|
+ this.onSubmitRe(type)
|
|
|
}else {
|
|
|
this.typeNew = type
|
|
|
}
|
|
|
@@ -600,6 +590,27 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ async onSubmitRe(type){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": type === '审核'?20221108153502:20221108153402,
|
|
|
+ "content": {
|
|
|
+ "sa_orderid": this.mainData.sa_orderid,
|
|
|
+ "sys_enterpriseid": this.mainData.sys_enterpriseid,
|
|
|
+ "sa_accountclassid": this.mainData.accountclass.sa_accountclassid,
|
|
|
+ "reviewtype":type === '审核'?this.value:'',
|
|
|
+ "isCheckMaterial":type === '审核'?this.tool.checkAuth(this.$route.name,'setMaterial'):''
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,async ()=>{
|
|
|
+ this.queryMainData()
|
|
|
+ // if (type == '审核' && (this.siteid == 'HY' || this.siteid == 'YOSTEST1')){
|
|
|
+ // this.querySetDay()
|
|
|
+ // }else {
|
|
|
+ // this.visible = false
|
|
|
+ // this.queryMainData()
|
|
|
+ // }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 反审核订单
|
|
|
onReturnCheck () {
|
|
|
this.$confirm(this.$t(`是否反审核该订单`), this.$t('提示'), {
|