Merge remote-tracking branch 'origin/master'
| | |
| | | // 作废 |
| | | export function dropByContractNo(contractNo) { |
| | | return request({ |
| | | url: '/mes/plan/customerOrder/dropByContractNo/' + contractNo, |
| | | method: 'get' |
| | | url: '/mes/plan/customerOrder/dropByContractNo', |
| | | method: 'get', |
| | | params: contractNo |
| | | }) |
| | | } |
| | | |
| | | export function chooseStaff() { |
| | | return request({ |
| | | url: '/mes/plan/customerOrder/chooseStaff', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | export function updateCustomerOrderById(obj) { |
| | | return request({ |
| | | url: '/mes/plan/customerOrder/updateById', |
| | | method: 'put', |
| | | data: obj |
| | | }) |
| | | } |
| | |
| | | minWidth: 200, |
| | | span: 24 |
| | | }, { |
| | | label: '隶属品牌', |
| | | prop: 'productType', |
| | | cell: true, |
| | | type: 'input', |
| | | minWidth: 200, |
| | | span: 24 |
| | | }, { |
| | | label: '单位', |
| | | prop: 'otcUnit', |
| | | slot: true, |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.command" |
| | | v-for="item in documentTagArr" |
| | | :disabled="item.disabled" |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="客户订单状态" prop="returnStatus"> |
| | | <el-form-item label="客户订单状态" prop="coState"> |
| | | <el-input |
| | | v-model="dataForm.returnStatus" |
| | | v-model="dataForm.coState" |
| | | placeholder="" |
| | | filterable |
| | | style="width: 100%" |
| | |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | <!-- <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | ></el-button> |
| | | ></el-button> --> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | ) |
| | | } |
| | | } |
| | | let val="" |
| | | this.coStates.forEach(item=>{ |
| | | if(item.value==this.dataForm.coState){ |
| | | val=item.label |
| | | } |
| | | }) |
| | | this.dataForm.coState=val |
| | | }) |
| | | } else { |
| | | this.title = '新增' |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | getFileList() { |
| | | this.fileList = [] |
| | | const queryParam = { orderNumber: this.dataForm.contractNo } |
| | |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | if (this.dataForm.id) { |
| | | updateCustomerOrderById(this.dataForm) |
| | | .then((data) => { |
| | | updateCustomerOrderById(this.dataForm).then((data) => { |
| | | this.$message.success('修改成功') |
| | | this.visible = false |
| | | this.buttonDisable = false |
| | | this.$emit('refreshDataList', 1) |
| | | }) |
| | | .catch((error) => { |
| | | }).catch((error) => { |
| | | this.buttonDisable = false |
| | | }) |
| | | } else { |
| | | addCustomerOrder(this.dataForm) |
| | | .then((data) => { |
| | | addCustomerOrder(this.dataForm).then((data) => { |
| | | this.$message.success('添加成功') |
| | | this.visible = false |
| | | this.buttonDisable = false |
| | | this.$emit('refreshDataList', 1) |
| | | }) |
| | | .catch((error) => { |
| | | }).catch((error) => { |
| | | this.buttonDisable = false |
| | | }) |
| | | } |
| | |
| | | this.getConfigFiles() |
| | | }, |
| | | delProcessConfigFile(row) { |
| | | if (row.lineNumber !== this.dataForm.otcLineNo) { |
| | | this.$message.error('上传文件行号与当前销售订单行号不一致,不允许删除') |
| | | } else { |
| | | this.$confirm('是否删除工艺配置文件', '提示', { |
| | | // if (row.lineNumber !== this.dataForm.otcLineNo) { |
| | | // this.$message.error('上传文件行号与当前销售订单行号不一致,不允许删除') |
| | | // } else { |
| | | // this.$confirm('是否删除工艺配置文件', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning', |
| | | // closeOnClickModal: false |
| | | // }) |
| | | // .then(function() { |
| | | // return deleteProcessConfigFile(row.id) |
| | | // }) |
| | | // .then((data) => { |
| | | // this.getConfigFiles() |
| | | // }) |
| | | // } |
| | | this.$confirm('是否删除工艺配置文件', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | |
| | | .then((data) => { |
| | | this.getConfigFiles() |
| | | }) |
| | | } |
| | | }, |
| | | downloadProcessConfigFile(row) { |
| | | downloadProcessConfigFile( |
| | |
| | | { |
| | | minWidth: '100', |
| | | width: '100px', |
| | | prop: 'customerOrderNo', |
| | | prop: 'contractNo', |
| | | label: '合同编号', |
| | | sort: true, |
| | | isTrue: true, |
| | |
| | | } |
| | | if (this.permissions.customerorder_submit_oa) { |
| | | this.table.toolbar.push({ |
| | | text: '提交审核', |
| | | text: '提交OA审核', |
| | | type: 'primary', |
| | | fun: this.auditCustomerOrder, |
| | | disabled: false, |
| | |
| | | }, |
| | | // 作废 |
| | | cancelHandle(row) { |
| | | this.$confirm('是否确认作废销售订单号为' + row.id + '提示', { |
| | | this.$confirm('确认作废销售订单号为【' + row.contractNo + '】的数据?','提示' , { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | closeOnClickModal: false, |
| | |
| | | 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) { |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="业务员" prop="salesMan"> |
| | | <el-select @change="selsctionSales" v-model="salesSelectData" style="width:100%"> |
| | | <el-option v-for="(item,index) in staffOptions" :key="index" :value="item" :label="item.staffName"/> |
| | | <el-select @change="selsctionSales" filterable v-model="salesSelectData" style="width:100%"> |
| | | <el-option v-for="(item,index) in staffOptions" :key="index" :value="item.staffNo+','+item.staffName" :label="item.staffName"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | import PartDialog from '@/views/common/part.vue' |
| | | import { validateSixDecimal } from '@/util/validate' |
| | | import {dateFormat} from '@/util/date' |
| | | // import { chooseStaff } from '@/api/admin/productType' |
| | | import { chooseStaff } from '@/api/plan/customerorder' |
| | | import { tableOption } from '@/const/crud/customerOrder/customerOrderForm' |
| | | |
| | | export default { |
| | |
| | | this.tableData.splice(index,1) |
| | | }, |
| | | selsctionSales(data){ |
| | | this.dataForm.salesMan = data.staffName |
| | | this.dataForm.salerWorkCode = data.staffNo |
| | | if(data){ |
| | | let arr = data.split(",") |
| | | this.dataForm.salesMan = arr[1] |
| | | this.dataForm.salerWorkCode = arr[0] |
| | | } |
| | | }, |
| | | getStaffOptions(){ |
| | | // chooseStaff().then((response)=>{ |
| | | // this.staffOptions = response.data.data |
| | | // }) |
| | | chooseStaff().then((response)=>{ |
| | | this.staffOptions = response.data.data |
| | | }) |
| | | }, |
| | | init(id) { |
| | | this.initDataForm() |
| | |
| | | this.tableData[index].partNo = part.partNo |
| | | this.tableData[index].customerPartSpec = part.specs |
| | | this.tableData[index].productName = part.partName |
| | | this.tableData[index].otcUnit = part.unit |
| | | this.tableData[index].buyQtyDue = part.numCount |
| | | this.tableData[index].manufactureAttr = part.materialAttribute |
| | | |
| | | } |
| | | }, |
| | | // 全屏 |
| | |
| | | label="本次计划数量" |
| | | > |
| | | <template scope="scope"> |
| | | <el-form-item |
| | | <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> |
| | | <!-- <el-form-item |
| | | :prop="'customer.' + scope.$index" |
| | | :rules="rules.qtyPlaned" |
| | | > |
| | | <el-input |
| | | v-model="scope.row.qtyPlaned" |
| | | placeholder="请输入本次计划数量" |
| | | ></el-input> |
| | | </el-form-item> |
| | | ></el-input> --> |
| | | <!-- </el-form-item> --> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | customerList.push(item) |
| | | }) |
| | | this.dataForm.customer = JSON.parse(JSON.stringify(customerList)) |
| | | this.dataForm.customer.forEach(item=>{ |
| | | item.qtyPlaned=item.buyQtyDue |
| | | }) |
| | | }) |
| | | }, |
| | | dataFormSubmit() { |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.command" |
| | | v-for="item in taskTypeArr" |
| | | :disabled="canCreateTask" |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.command" |
| | | v-for="item in stateTagArr" |
| | | :disabled="item.disabled" |
| | |
| | | unit: item.unit, |
| | | workShop: null, |
| | | workshopTypeCode: 'M', |
| | | requiredDate: null, |
| | | requiredDate: this.masterProduction.requiredDate, |
| | | id: item.id, |
| | | manufactureAttr: this.masterProduction.manufactureAttr, |
| | | isReportOperation: this.isReportOperation |
| | |
| | | 车间订单<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :command="item.command" v-for="item in orderTypeArr" :disabled="item.disabled">{{ |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in orderTypeArr" :disabled="item.disabled">{{ |
| | | item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | 状态改变<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :command="item.command" v-for="item in stateTagArr" :disabled="item.disabled">{{ |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in stateTagArr" :disabled="item.disabled">{{ |
| | | item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | 工艺文件<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :command="item.command" v-for="item in documentTagArr" :disabled="item.disabled"> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in documentTagArr" :disabled="item.disabled"> |
| | | {{ item.label }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |
| | |
| | | 审核状态改变<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item :command="item.command" v-for="item in commitStateTagArr" :disabled="item.disabled">{{item.label }}</el-dropdown-item> |
| | | <el-dropdown-item :key="item" :command="item.command" v-for="item in commitStateTagArr" :disabled="item.disabled">{{item.label }}</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | <el-button v-if="permissions.masterproductionschedule_submit_oa" @click="commitOa()" type="primary" |
| | |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | >SCM状态变更 |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | | >新增采购计划 |
| | | </el-button> --> |
| | | </el-button> |
| | | </template> |
| | | </ttable> |
| | | |
| | |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'outerColor', |
| | | label: '外护颜色', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'lengthRequirement', |
| | | label: '盘长要求', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'printRequirement', |
| | | label: '印字要求', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text' |
| | | }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'outerColor', |
| | | // label: '外护颜色', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'lengthRequirement', |
| | | // label: '盘长要求', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | // { |
| | | // minWidth: '140', |
| | | // prop: 'printRequirement', |
| | | // label: '印字要求', |
| | | // sort: true, |
| | | // isTrue: true, |
| | | // isSearch: true, |
| | | // searchInfoType: 'text' |
| | | // }, |
| | | { |
| | | minWidth: '140', |
| | | prop: 'orderRemark', |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.command" |
| | | v-for="item in stateTagArr" |
| | | :disabled="item.disabled" |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.command" |
| | | v-for="item in stateTagArr" |
| | | :disabled="item.disabled" |
| | |
| | | <template v-for="item in stateTagArr"> |
| | | <el-dropdown-item |
| | | :command="item.command" |
| | | :disabled="item.disabled" |
| | | >{{ item.eventName }}</el-dropdown-item |
| | | > |
| | | :disabled="item.disabled"> |
| | | {{ item.eventName }} |
| | | </el-dropdown-item> |
| | | </template> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <template v-for="item in oaStateTagArr"> |
| | | <el-dropdown-item :command="item.command" v-if="item.isShow" |
| | | <el-dropdown-item :key="item" :command="item.command" v-if="item.isShow" |
| | | >{{ item.eventName }} |
| | | </el-dropdown-item> |
| | | </template> |
| | |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item |
| | | :key="item" |
| | | :command="item.ref" |
| | | v-for="item in toolbarIsQualified" |
| | | :disabled="item.disabled" |
| | | v-if="item.isShow" |
| | | v-show="item.isShow" |
| | | >{{ item.text }} |
| | | </el-dropdown-item> |
| | | </el-dropdown-menu> |