|
|
@@ -13,6 +13,7 @@
|
|
|
:statusCheck="[{key:'status',value:'审核'},{key:'status',value:'提交'},{key:'status',value:'关闭'}]"
|
|
|
:tabs="['订单明细','基本信息','订单进度','居间费明细','发货单','物流单','发票记录','收支明细','核销记录','erp对接记录','变更记录']"
|
|
|
@onTabClick="onTabClick"
|
|
|
+ @sysTag="sysTag"
|
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<div slot="customOperationBef">
|
|
|
@@ -27,6 +28,36 @@
|
|
|
<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>
|
|
|
+ <orderChange class="inline-16" btnType="primary" btnTitle="订单变更确认" logTitle="订单变更确认" content="是否确认变更订单明细"
|
|
|
+ logWidth="900px" @showDialog="showDialog" ref="orderChangeRef" v-if="tool.checkAuth($route.name,'orderChangeCheck') && tagChange">
|
|
|
+ <template #formRule>
|
|
|
+ <tableDetail :layout="tablecols" :data="list" :opwidth="200" :custom="true" fixed-name="operation" height="calc(100vh - 460px)">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <div v-if="scope.column.columnname === 'nominalpressure'">
|
|
|
+ {{tool.nominalPressureSet(scope.column.data[scope.column.columnname])}}
|
|
|
+ </div>
|
|
|
+ <div v-else>{{scope.column.data[scope.column.columnname]||scope.column.columnname === 'operation' ? scope.column.data[scope.column.columnname] : '--'}}</div>
|
|
|
+ </template>
|
|
|
+ </tableDetail>
|
|
|
+ <div class="container normal-panel" style="text-align:right;margin-bottom: -10px!important;">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
+ layout="total,sizes, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #footerBtn>
|
|
|
+ <el-button @click="$refs.orderChangeRef.dialogTableVisible = false" size="small" style="width: 100px">{{$t(`取消`)}}</el-button>
|
|
|
+ <el-button type="primary" @click="changeSubmit('驳回')" size="small" plain style="width: 100px;background: #FFFFFF">{{$t(`驳回变更`)}}</el-button>
|
|
|
+ <el-button type="primary" @click="changeSubmit('确认')" size="small" style="width: 100px">{{$t(`确认变更`)}}</el-button>
|
|
|
+ </template>
|
|
|
+ </orderChange>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'confirmDate') && mainData.status === '交期待确认'" class="inline-16" type="primary" size="mini" @click="confirmdate">{{$t(`确认交期`)}}</el-button>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'backconfirmDate') && mainData.status === '交期待确认' || mainData.status === '交期确认'" class="inline-16" type="primary" size="mini" @click="backconfirmdate">{{$t(`交期退回`)}}</el-button>
|
|
|
<confirmDate v-if="tool.checkAuth($route.name,'replyDate')" class="inline-16" :data="mainData" @onSuccess="confirmSuccess"></confirmDate>
|
|
|
@@ -164,6 +195,7 @@ import importFile from './importFile.vue'
|
|
|
import EditRemark from '../modules/EditRemark.vue'
|
|
|
import dialogTemplate from "@/template/dialogTemplate/index";
|
|
|
import setMaterial from "./tabs/setMaterial";
|
|
|
+import orderChange from "@/components/dialogTemplate/index3"
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
data() {
|
|
|
@@ -186,7 +218,23 @@ export default {
|
|
|
siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid,
|
|
|
tabNow:'tab0',
|
|
|
jsYcDay:'',
|
|
|
- jsDay:''
|
|
|
+ jsDay:'',
|
|
|
+ orderParam:{
|
|
|
+ "id": 2026033114535102,
|
|
|
+ "content": {
|
|
|
+ "sa_orderid": 0,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ list:[],
|
|
|
+ tablecols:[],
|
|
|
+ total:0,
|
|
|
+ currentPage:0,
|
|
|
+ tagChange:false
|
|
|
}
|
|
|
},
|
|
|
provide () {
|
|
|
@@ -213,7 +261,8 @@ export default {
|
|
|
importFile,
|
|
|
EditRemark,
|
|
|
dialogTemplate,
|
|
|
- setMaterial
|
|
|
+ setMaterial,
|
|
|
+ orderChange
|
|
|
},
|
|
|
methods:{
|
|
|
async orderreviewtype () {
|
|
|
@@ -221,6 +270,16 @@ export default {
|
|
|
this.options = res.data
|
|
|
this.value = res.data[0].value
|
|
|
},
|
|
|
+ sysTag(val){
|
|
|
+ this.tagChange = false
|
|
|
+ if (val.length > 0){
|
|
|
+ val.forEach(item => {
|
|
|
+ if (item == '变更中'){
|
|
|
+ this.tagChange = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
async queryMainData() {
|
|
|
if (this.typeNew == '提交'){
|
|
|
const res = await this.$api.requested({
|
|
|
@@ -264,6 +323,25 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ async changeSubmit(type){
|
|
|
+ let param = {
|
|
|
+ id:'',
|
|
|
+ content:{
|
|
|
+ sa_orderid:this.$route.query.id
|
|
|
+ },
|
|
|
+ }
|
|
|
+ if (type == '驳回'){
|
|
|
+ param.id = 2026033114542702
|
|
|
+ }else {
|
|
|
+ param.id = 2026033114555002
|
|
|
+ }
|
|
|
+ const res = await this.$api.requested(param)
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.$refs.orderChangeRef.dialogTableVisible = false
|
|
|
+ this.queryMainData()
|
|
|
+ this.$refs.details.$refs.tag.queryTag()
|
|
|
+ })
|
|
|
+ },
|
|
|
changeDataStructure() {
|
|
|
let that = this
|
|
|
this.mainAreaData = that.siteid == 'HY' && this.tool.checkAuth(this.$route.name,'setMaterial')?[
|
|
|
@@ -1173,12 +1251,35 @@ export default {
|
|
|
confirmSuccess(){
|
|
|
this.queryMainData()
|
|
|
this.$refs.prod.listData()
|
|
|
- }
|
|
|
+ },
|
|
|
+ /*订单变更确认*/
|
|
|
+ async showDialog(){
|
|
|
+ this.orderParam.content.pageNumber = 1
|
|
|
+ this.changeListData()
|
|
|
+ },
|
|
|
+ async changeListData(){
|
|
|
+ this.orderParam.content.sa_orderid = this.$route.query.id
|
|
|
+ const res = await this.$api.requested(this.orderParam)
|
|
|
+ this.list = res.data
|
|
|
+ this.total = res.total
|
|
|
+ this.currentPage = res.pageNumber
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ // console.log(`每页 ${val} 条`);
|
|
|
+ this.param.content.pageSize = val
|
|
|
+ this.changeListData()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ // console.log(`当前页: ${val}`);
|
|
|
+ this.param.content.pageNumber = val
|
|
|
+ this.changeListData()
|
|
|
+ },
|
|
|
},
|
|
|
mounted () {
|
|
|
this.queryMainData(this.$route.query.id)
|
|
|
},
|
|
|
created() {
|
|
|
+ this.tablecols = this.tool.tabelCol(this.$route.name).orderChangeTable.tablecols
|
|
|
}
|
|
|
}
|
|
|
</script>
|