| | |
| | | class="l-mes" |
| | | :disabled="!editable" |
| | | > |
| | | <el-tabs type="border-card" ref="tabs"> |
| | | <el-tabs type="border-card" ref="tabs" @tab-click="tabsClick"> |
| | | <el-tab-pane label="主要" type="card"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="客户订单状态" prop="returnStatus"> |
| | | <el-select |
| | | <el-input |
| | | v-model="dataForm.returnStatus" |
| | | placeholder="" |
| | | filterable |
| | | style="width: 100%" |
| | | disabled></el-input> |
| | | <!-- <el-select |
| | | v-model="dataForm.returnStatus" |
| | | placeholder="" |
| | | filterable |
| | |
| | | :value="item.value" |
| | | :disabled="!ediSource" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | @click="synchronizeFile(scope.row)" |
| | | type="text" |
| | | size="small" |
| | | :disabled="scope.row.lineNumber !== dataForm.otcLineNo" |
| | | :disabled="scope.row.lineNumber !== dataForm.customerNo" |
| | | >同步</el-button |
| | | > |
| | | <el-button |
| | | @click="delProcessConfigFile(scope.row)" |
| | | type="text" |
| | | size="small" |
| | | :disabled="scope.row.lineNumber !== dataForm.otcLineNo" |
| | | :disabled="scope.row.lineNumber !== dataForm.customerNo" |
| | | >删除</el-button |
| | | > |
| | | <el-button |
| | |
| | | getCustomerOrder, |
| | | addCustomerOrder, |
| | | putCustomerOrder, |
| | | updateCustomerOrderById, |
| | | download, |
| | | getOtcCustomerOrderFileList, |
| | | otcDownload, |
| | |
| | | showSynchronize: false, |
| | | selectOrderParam: null, |
| | | selectOrderObj: {}, |
| | | aaaaa:{}, |
| | | dataForm: { |
| | | id: 0, |
| | | sourceId: '', |
| | | contractNo: '', |
| | | customerOrderNo: '', |
| | | returnStatus: '', |
| | | deliveryDate: '', |
| | | customerNo: '', |
| | | customerName: '', |
| | | coState: '', |
| | | coLineNo: '', |
| | | returnStatus: '', |
| | | deliveryDate: '', |
| | | salesMan: '', |
| | | salerWorkCode: '', |
| | | manufactureAttr: '', |
| | | buyQtyDue: 0, |
| | | productName: '', |
| | | productType: '', |
| | | partNo: '', |
| | | docNumber: '', |
| | | shippingAddress: '', |
| | | remark: '', |
| | | otcUnit: '', |
| | | coState: '', |
| | | customerPartSpec: '', |
| | | entityName: '', |
| | | factoryPlaceOrderDate: '', |
| | | isCp: '', |
| | | originalContractStatus: '', |
| | | placeOrderDate: '', |
| | | province: '', |
| | | |
| | | customerOrderNo: '', |
| | | coLineNo: '', |
| | | customerPartName: '', |
| | | otcQuantity: '', |
| | | buyQtyDue: '', |
| | | wantedDeliveryDate: '', |
| | | plannedDeliveryDate: '', |
| | | customerPoNo: '', |
| | |
| | | ifsSalesUnit: null, |
| | | ifsConvFactor: null, |
| | | unit: null, |
| | | otcUnit: null, |
| | | otcQuantity: null, |
| | | docNumber: null, |
| | | manufactureAttr: 'N', |
| | | customerPartSpec: null, |
| | | division: null, |
| | | printType: null, |
| | | printingRequirements: null, |
| | |
| | | qualityRequire: null, |
| | | otherProductRequire: null, |
| | | divisionSystem: null, |
| | | shippingAddress: null, |
| | | salesMan: null, |
| | | lengthRequirement: null, |
| | | remark: null, |
| | | otcPartSync: null, |
| | | finalCustomerName: null, |
| | | productGroup: null, |
| | | productType: null, |
| | | centralizedMiningProperty: null, |
| | | orderDescription: null, |
| | | otcLineNo: null, |
| | |
| | | this.getManufactureAttrs('manufacture_attr_type') |
| | | }, |
| | | methods: { |
| | | tabsClick(tab,even){ |
| | | if(tab.index == 2){ |
| | | this.getConfigFiles(); |
| | | } |
| | | }, |
| | | init(id) { |
| | | this.orderParamList = [] |
| | | this.dataForm.id = id || 0 |
| | |
| | | this.dataForm = response.data.data |
| | | // } |
| | | // this.fileList = response.data.data.customerOrderAttachmentList |
| | | console.log(response.data.data.sourceId); |
| | | const sourceId = response.data.data.sourceId |
| | | if(sourceId === '0'){ |
| | | this.getFileList() |
| | |
| | | // this.this.configContent.modelType = '01' |
| | | // this.configContent.orderId = this.dataForm.id |
| | | // this.configContent.orderId = response.data.data.customerOrderNo |
| | | console.log(response.data.data) |
| | | if (response.data.data.processConfigDTO) { |
| | | // 有保存的数据 |
| | | this.configContent = response.data.data.processConfigDTO |
| | |
| | | this.$refs.dataForm.validate((valid) => { |
| | | if (valid) { |
| | | if (this.dataForm.id) { |
| | | putCustomerOrder(this.dataForm) |
| | | updateCustomerOrderById(this.dataForm) |
| | | .then((data) => { |
| | | this.$message.success('修改成功') |
| | | this.visible = false |
| | |
| | | delOutPutBatch(row) {}, |
| | | addOutPutBatch() {}, |
| | | submitUpload() { |
| | | this.paramData.orderNumber = this.dataForm.customerOrderNo |
| | | this.paramData.lineNumber = this.dataForm.otcLineNo |
| | | this.paramData.orderNumber = this.dataForm.contractNo |
| | | this.paramData.lineNumber = this.dataForm.customerNo |
| | | this.progrecessFileLoading = true |
| | | }, |
| | | uploadSuccess() { |
| | |
| | | }, |
| | | getConfigFiles() { |
| | | const param = { |
| | | orderNumber: this.dataForm.customerOrderNo, |
| | | lineNumber: this.dataForm.otcLineNo |
| | | orderNumber: this.dataForm.contractNo, |
| | | lineNumber: this.dataForm.customerNo |
| | | } |
| | | getProcessConfigFiles(param).then((res) => { |
| | | this.processConfigFileTableData = res.data.data |