|
|
@@ -135,6 +135,7 @@
|
|
|
<el-button type="primary" @click="onRebanck" size="small">{{$t('确 定')}}</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <dialogTemplate ref="dialogRef" @daysSuccess="queryMainData" :data="mainData" ></dialogTemplate>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -156,6 +157,7 @@ import erpHistory from './tabs/erpHistory.vue'
|
|
|
import changeHistory from './tabs/changeHistory.vue'
|
|
|
import importFile from './importFile.vue'
|
|
|
import EditRemark from '../modules/EditRemark.vue'
|
|
|
+import dialogTemplate from "@/template/dialogTemplate/index";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
data() {
|
|
|
@@ -165,6 +167,7 @@ export default {
|
|
|
backreason:'',
|
|
|
options:[],
|
|
|
dialogVisible:false,
|
|
|
+ submitVisible:false,
|
|
|
visible:false,
|
|
|
value:'',
|
|
|
selection:[],
|
|
|
@@ -173,7 +176,8 @@ export default {
|
|
|
isusedrebate:'',
|
|
|
checked:0,
|
|
|
typeNew:'',
|
|
|
- fullscreenLoading:false
|
|
|
+ fullscreenLoading:false,
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
}
|
|
|
},
|
|
|
provide () {
|
|
|
@@ -198,7 +202,8 @@ export default {
|
|
|
erpHistory,
|
|
|
changeHistory,
|
|
|
importFile,
|
|
|
- EditRemark
|
|
|
+ EditRemark,
|
|
|
+ dialogTemplate
|
|
|
},
|
|
|
methods:{
|
|
|
async orderreviewtype () {
|
|
|
@@ -462,34 +467,39 @@ export default {
|
|
|
},
|
|
|
// 提交审核订单
|
|
|
onSubmit (type) {
|
|
|
- this.$confirm(`${this.$t(`是否`)} ${this.$t(type)} ${this.$t(`该订单`)}`, this.$t('提示'), {
|
|
|
- confirmButtonText: this.$t('确定'),
|
|
|
- cancelButtonText: this.$t('取消'),
|
|
|
- type: 'warning'
|
|
|
- }).then(async () => {
|
|
|
- if (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.visible = false
|
|
|
- this.queryMainData()
|
|
|
- })
|
|
|
- }else {
|
|
|
- this.typeNew = type
|
|
|
- }
|
|
|
- }).catch((err) => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: this.$t('已取消')
|
|
|
+ if (this.siteid == 'HY' || this.siteid == 'YOSTEST1'){
|
|
|
+ this.$refs.dialogRef.dialogVisible = true
|
|
|
+ this.$refs.dialogRef.form.reminddays = this.mainData.reminddays
|
|
|
+ }else {
|
|
|
+ this.$confirm(`${this.$t(`是否`)} ${this.$t(type)} ${this.$t(`该订单`)}`, this.$t('提示'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ if (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.visible = false
|
|
|
+ this.queryMainData()
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.typeNew = type
|
|
|
+ }
|
|
|
+ }).catch((err) => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: this.$t('已取消')
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
},
|
|
|
// 反审核订单
|
|
|
onReturnCheck () {
|