| | |
| | | > |
| | | </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> |
| | | |
| | |
| | | showCustomerorderReturn: false, |
| | | scheduleVisible: false, |
| | | showDocument: false, |
| | | sourceIdList: [{ |
| | | label: '外部', |
| | | value: '0', |
| | | },{ |
| | | label: '内部', |
| | | value: '1', |
| | | }], |
| | | stateTagArr: [ |
| | | { |
| | | label: '标记零件待选', |
| | |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '订单说明', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.openCustomerOrder |
| | | }, |
| | | { |
| | | text: '查看库存', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.stockHandle |
| | | }, |
| | | // { |
| | | // text: '订单说明', |
| | | // type: 'text', |
| | | // size: 'small', |
| | | // fun: this.openCustomerOrder |
| | | // }, |
| | | // { |
| | | // text: '查看库存', |
| | | // type: 'text', |
| | | // size: 'small', |
| | | // fun: this.stockHandle |
| | | // }, |
| | | { |
| | | text: '作废', |
| | | type: 'text', |
| | |
| | | '01partUnCheck', |
| | | '02technologyUnCheck', |
| | | '03plan' |
| | | // '04planed' |
| | | ], |
| | | key: 'coState' |
| | | } |
| | |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: 260, |
| | | width: 100, |
| | | minWidth: 100 |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | 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, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getSourceId(row, column, cellValue) { |
| | | this.sourceIdList.forEach((obj) => { |
| | | if (obj.value === cellValue) { |
| | | cellValue = obj.label |
| | | } |
| | | }) |
| | | return cellValue |
| | | }, |
| | | getOtcPartSyncOptionList() { |
| | | return this.otcPartSyncOptionList |
| | | }, |
| | |
| | | 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) { |
| | |
| | | '存在销售订单已关联工艺文件,如需更改,请先解除关联' |
| | | ) |
| | | } |
| | | if (item.salesPartNo == null || item.salesPartNo === '') { |
| | | status = true |
| | | this.$message.error('存在销售订单未绑定销售件,请先绑定') |
| | | } |
| | | // if (item.salesPartNo == null || item.salesPartNo === '') { |
| | | // status = true |
| | | // this.$message.error('存在销售订单未绑定销售件,请先绑定') |
| | | // } |
| | | if (item.partNo != firstPartNo) { |
| | | status = true |
| | | this.$message.error('订单零件号不一致') |