| | |
| | | > |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <el-button |
| | | <!-- <el-button |
| | | v-if="permissions.customerorder_ifs_line" |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="pullIfsLineNo" |
| | | >获取OTC行号</el-button |
| | | > |
| | | <el-button |
| | | > --> |
| | | <!-- <el-button |
| | | v-if="permissions.customerorder_push_otc" |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="pushOtc" |
| | | >推送OTC</el-button |
| | | > |
| | | > --> |
| | | <!-- <el-button |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | |
| | | @click="exportStandBook" |
| | | >导出台账</el-button |
| | | > --> |
| | | <el-button |
| | | <!-- <el-button |
| | | v-if="permissions.plan_customerorder_return" |
| | | style="margin-left:10px;" |
| | | type="primary" |
| | | @click="returnOrder" |
| | | >订单退回</el-button |
| | | > |
| | | > --> |
| | | </template> |
| | | </ttable> |
| | | |
| | |
| | | sourceIdList: [{ |
| | | label: '外部', |
| | | value: '0', |
| | | type: 'success', |
| | | },{ |
| | | label: '内部', |
| | | value: '1', |
| | | type: '' |
| | | }], |
| | | stateTagArr: [ |
| | | { |
| | |
| | | '01partUnCheck', |
| | | '02technologyUnCheck', |
| | | '03plan' |
| | | // '04planed' |
| | | ], |
| | | key: 'coState' |
| | | } |
| | |
| | | } |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.initQueryParams() |
| | |
| | | } |
| | | if (this.permissions.customerorder_submit_oa) { |
| | | this.table.toolbar.push({ |
| | | text: '提交审核', |
| | | text: '提交OA审核', |
| | | type: 'primary', |
| | | fun: this.auditCustomerOrder, |
| | | disabled: false, |
| | |
| | | prop: 'coState', |
| | | searchInfoType: 'select', |
| | | // propVal: '01partUnCheck' |
| | | propVal: '02technologyUnCheck' |
| | | }) |
| | | ) |
| | | this.$refs.customerOrderTable.setQueryParam(queryParam) |
| | |
| | | } |
| | | } |
| | | this.scheduleVisible = true |
| | | console.log(this.multipleSelection); |
| | | this.$nextTick(() => { |
| | | this.$refs.schedule.init(this.multipleSelection) |
| | | }) |
| | |
| | | }, |
| | | // 作废 |
| | | cancelHandle(row) { |
| | | this.$confirm('是否确认作废销售订单号为' + row.customerOrderNo + '提示', { |
| | | this.$confirm('确认作废销售订单号为【' + row.contractNo + '】的数据?','提示' , { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | closeOnClickModal: false, |
| | | type: 'warning' |
| | | }).then(() => { |
| | | dropByContractNo(row.customerOrderNo).then((res) => { |
| | | dropByContractNo({id:row.id}).then((res) => { |
| | | if (res.data.code === 0) { |
| | | this.$message.success('作废成功') |
| | | this.getData() |
| | |
| | | this.$message.error('作废失败') |
| | | } |
| | | }) |
| | | }) |
| | | // .then(() => { |
| | | // markPlanned([row.id], '05cancel').then((response) => { |
| | | // var data = response.data |
| | | // if (data.code === 0) { |
| | | // this.$message.success('作废成功') |
| | | // this.getData() |
| | | // } else { |
| | | // this.$message.error('作废失败') |
| | | // } |
| | | // }) |
| | | // }) |
| | | // .then((data) => { |
| | | // this.$message.success('作废成功') |
| | | // this.getData() |
| | | // }) |
| | | }).catch(()=>{ }) |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |