|
@@ -17,7 +17,7 @@
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="customOperation" class="inline-16">
|
|
|
<el-button v-if="tool.checkAuth($route.name,'examine')" :disabled="mainData.status !== '提交'" type="primary" size="mini" @click="onSubmit('审核')">审 核</el-button>
|
|
|
- <el-button v-if="tool.checkAuth($route.name,'reback')" :disabled="mainData.status !== '审核'" type="primary" size="mini">退 回</el-button>
|
|
|
+ <el-button v-if="tool.checkAuth($route.name,'reback')" :disabled="mainData.status !== '提交'" type="primary" size="mini" @click="dialogVisible = true">退 回</el-button>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'submit')" :disabled="mainData.status !== '新建'" type="primary" size="mini" @click="onSubmit('提交')">提 交</el-button>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'close')" type="primary" size="mini">关 闭</el-button>
|
|
|
</div>
|
|
@@ -28,6 +28,13 @@
|
|
|
<product-list></product-list>
|
|
|
</div>
|
|
|
</basicDetails>
|
|
|
+ <el-dialog append-to-body title="退回原因" :visible.sync="dialogVisible" width="400px">
|
|
|
+ <el-input v-model="backreason" type="textarea" placeholder="请输入退回原因"></el-input>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false" size="small">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="onRebanck" size="small">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -40,7 +47,9 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
mainData:{},
|
|
|
- mainAreaData:{}
|
|
|
+ mainAreaData:{},
|
|
|
+ backreason:'',
|
|
|
+ dialogVisible:false
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
@@ -99,8 +108,8 @@ export default {
|
|
|
this.$router.replace({path:'/orderdetail',query:{id:id,rowindex:rowindex}})
|
|
|
this.queryMainData(id)
|
|
|
},
|
|
|
+ // 提交审核订单
|
|
|
onSubmit (type) {
|
|
|
-
|
|
|
this.$confirm(`是否${type}该订单`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -123,7 +132,24 @@ export default {
|
|
|
message: err
|
|
|
});
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ async onRebanck () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": 20221108161902,
|
|
|
+ "content": {
|
|
|
+ "sys_enterpriseid":this.mainData.sys_enterpriseid,
|
|
|
+ "sa_accountclassid":this.mainData.accountclass.sa_accountclassid,
|
|
|
+ "sa_orderid": this.mainData.sa_orderid,
|
|
|
+ "backreason": this.backreason //退回原因,可选
|
|
|
+ },
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.queryMainData()
|
|
|
+ this.dialogVisible = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
mounted () {
|
|
|
this.queryMainData(this.$route.query.id)
|