Browse Source

2024-10-12

master
qiezi 1 year ago
parent
commit
338a9f24ad
  1. 4
      src/assets/scss/global.scss
  2. 22
      src/views/modules/proofing/requestForProofing.vue
  3. 23
      src/views/modules/quotation/requestForQuote.vue

4
src/assets/scss/global.scss

@ -513,3 +513,7 @@ input[type="number"] {
-moz-appearance: textfield; /* Firefox */
text-align: right;
}
.auto .el-form-item__content{
height: auto;
line-height: 1.5;
}

22
src/views/modules/proofing/requestForProofing.vue

@ -313,7 +313,7 @@
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.proofingStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectSubmit">驳回</el-button>
<el-button v-if="modalData.proofingStatus === '审批中' && modalData.isReject === 'Y'" @click="rejectVisible = true" type="primary">驳回</el-button>
</el-footer>
</el-dialog>
@ -1016,7 +1016,17 @@
<el-button type="primary" @click="delegateAccessVisible=false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="rejectVisible" width="500px">
<el-form label-position="top">
<el-form-item label="驳回意见" class="auto">
<el-input type="textarea" v-model="rejectOpinion" :rows="3"></el-input>
</el-form-item>
</el-form>
<el-footer style="text-align:center;height: 30px;line-height: 30px;">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="rejectVisible = false">取消</el-button>
</el-footer>
</el-dialog>
<!-- 上传文件的modal -->
<proofingUploadFile ref="proofingUploadFile" @refreshPageTables="getFileContentData()" v-drag></proofingUploadFile>
</div>
@ -1120,6 +1130,11 @@ export default {
this.$refs.projectPartTable.clearSelection();
}
},
rejectVisible(newVal,oldVal){
if (newVal === false){
this.rejectOpinion = ''
}
}
},
computed: {
delegateAccessName: {
@ -2277,6 +2292,8 @@ export default {
columnWidth: 140
}
],
rejectVisible: false,
rejectOpinion: '',
}
},
mounted() {
@ -3638,6 +3655,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.modalData.rejectOpinion = this.rejectOpinion
this.modalData.nodeConclusion = 'N'
this.submitData()
})

23
src/views/modules/quotation/requestForQuote.vue

@ -370,7 +370,7 @@
<el-button type="primary" @click="saveData()">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<el-button v-if="modalData.quotationStatus === '审批中'" type="primary" @click="agreeSubmit">同意</el-button>
<el-button v-if="modalData.quotationStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectSubmit">驳回</el-button>
<el-button v-if="modalData.quotationStatus === '审批中' && modalData.isReject === 'Y'" type="primary" @click="rejectVisible = true">驳回</el-button>
</el-footer>
</el-dialog>
<!--选择项目模态框-->
@ -561,6 +561,19 @@
</el-footer>
</el-dialog>
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="rejectVisible" width="500px">
<el-form label-position="top">
<el-form-item label="驳回意见" class="auto">
<el-input type="textarea" v-model="rejectOpinion" :rows="3"></el-input>
</el-form-item>
</el-form>
<el-footer style="text-align:center;height: 30px;line-height: 30px;">
<el-button type="primary" @click="rejectSubmit">确定</el-button>
<el-button type="primary" @click="rejectVisible = false">取消</el-button>
</el-footer>
</el-dialog>
<!-- 页签 -->
<el-tabs v-model="activeTable" type="border-card" style="margin-top: 0px;"
@tab-click="tabClick" class="customer-tab">
@ -993,6 +1006,11 @@ export default {
this.$refs.projectPartTable.clearSelection();
}
},
rejectVisible(newVal,oldVal){
if (newVal === false){
this.rejectOpinion = ''
}
}
},
data() {
@ -2080,6 +2098,8 @@ export default {
columnWidth: 140
}
],
rejectVisible:false,
rejectOpinion:'',
}
},
mounted() {
@ -3386,6 +3406,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.modalData.rejectOpinion = this.rejectOpinion
this.modalData.nodeConclusion = 'N'
this.submitData()
})

Loading…
Cancel
Save