| | |
| | | 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-form-item label="同步数据来源" prop="sourceId"> |
| | | <el-input |
| | | v-model="dataForm.sourceId" |
| | | v-model="dataForm.sourceId == 0 ? '同步' : '手动'" |
| | | placeholder="" |
| | | :disabled="!ediSource" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="订单号" prop="customerOrderNo"> |
| | | <el-form-item label="订单号" prop="contractNo"> |
| | | <el-input |
| | | v-model="dataForm.customerOrderNo" |
| | | @blur="dataForm.customerOrderNo = $event.target.value.trim()" |
| | | v-model="dataForm.contractNo" |
| | | @blur="dataForm.contractNo = $event.target.value.trim()" |
| | | placeholder="" |
| | | :disabled="!ediSource" |
| | | ></el-input> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="客户订单状态" prop="coState"> |
| | | <el-select |
| | | v-model="dataForm.coState" |
| | | <el-form-item label="客户订单状态" prop="returnStatus"> |
| | | <el-input |
| | | v-model="dataForm.returnStatus" |
| | | placeholder="" |
| | | filterable |
| | | style="width: 100%" |
| | | disabled></el-input> |
| | | <!-- <el-select |
| | | v-model="dataForm.returnStatus" |
| | | placeholder="" |
| | | filterable |
| | | style="width: 100%" |
| | |
| | | :value="item.value" |
| | | :disabled="!ediSource" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="期望交货时间" prop="wantedDeliveryDate"> |
| | | <el-form-item label="期望交货时间" prop="deliveryDate"> |
| | | <el-date-picker |
| | | v-model="dataForm.wantedDeliveryDate" |
| | | v-model="dataForm.deliveryDate" |
| | | style="width: 100%" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="计划交货时间" prop="plannedDeliveryDate"> |
| | | <el-date-picker |
| | | v-model="dataForm.plannedDeliveryDate" |
| | | style="width: 100%" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="包装要求" prop="packageRequire"> |
| | | <el-form-item label="业务员" prop="salesMan"> |
| | | <el-input |
| | | v-model="dataForm.packageRequire" |
| | | v-model="dataForm.salesMan" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-input v-model="dataForm.partNo" placeholder="" readonly> |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openPartDialog()" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :span="6"> |
| | | <el-form-item label="盘长要求" prop="lengthRequirement"> |
| | | <el-input |
| | | v-model="dataForm.lengthRequirement" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售数量" prop="otcQuantity"> |
| | | <el-input |
| | | v-model="dataForm.otcQuantity" |
| | | placeholder="" |
| | | :disabled="!ediSource" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产品名称" prop="productName"> |
| | | <el-input |
| | | v-model="dataForm.productName" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售件号" prop="salesPartNo"> |
| | | <el-input |
| | | v-model="dataForm.salesPartNo" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售件描述" prop="salesPartName"> |
| | | <el-input |
| | | v-model="dataForm.salesPartName" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="计划交货时间" prop="plannedDeliveryDate"> |
| | | <el-date-picker |
| | | v-model="dataForm.plannedDeliveryDate" |
| | | style="width: 100%" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="包装要求" prop="packageRequire"> |
| | | <el-input |
| | | v-model="dataForm.packageRequire" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="零件号" prop="partNo"> |
| | | <el-input v-model="dataForm.partNo" placeholder="" readonly> |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openPartDialog()" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="盘长要求" prop="lengthRequirement"> |
| | | <el-input |
| | | v-model="dataForm.lengthRequirement" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售数量" prop="buyQtyDue"> |
| | | <el-input |
| | | v-model="dataForm.buyQtyDue" |
| | | placeholder="" |
| | | :disabled="!ediSource" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产品名称" prop="productName"> |
| | | <el-input |
| | | v-model="dataForm.productName" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="隶属品牌" prop="productType"> |
| | | <el-input |
| | | v-model="dataForm.productType" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="销售件号" prop="partNo"> |
| | | <el-input |
| | | v-model="dataForm.partNo" |
| | | placeholder="" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openPartDialog()" |
| | | |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="销售件描述" prop="salesPartName"> |
| | | <el-input |
| | | v-model="dataForm.salesPartName" |
| | | placeholder="" |
| | | disabled |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="openSalesPartDialog()" |
| | | v-show="dataForm.id" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :span="6"> |
| | | <el-form-item label="工艺文件号" prop="docNumber"> |
| | | <el-input |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="业务员" prop="salesmanName"> |
| | | <el-form-item label="工艺文件名称" prop="docName"> |
| | | <el-input |
| | | v-model="dataForm.salesmanName" |
| | | v-model="dataForm.docName" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="单位" prop="otcUnit"> |
| | | <el-select |
| | | v-model="dataForm.otcUnit" |
| | | placeholder="" |
| | | filterable |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in units" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产品型号" prop="customerPartSpec"> |
| | | <el-input |
| | | v-model="dataForm.customerPartSpec" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="质量要求" prop="qualityRequire"> |
| | | <el-input |
| | | v-model="dataForm.qualityRequire" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="生产需求说明" prop="otherProductRequire"> |
| | | <el-input |
| | | v-model="dataForm.otherProductRequire" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="系统" prop="divisionSystem"> |
| | | <el-input |
| | | v-model="dataForm.divisionSystem" |
| | |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="收货地址" prop="shippingAddress"> |
| | | <el-input |
| | | v-model="dataForm.shippingAddress" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="产品类型" prop="remark"> |
| | | <el-input |
| | | v-model="dataForm.productType" |
| | | placeholder="" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="采集性质" prop="centralizedMiningProperty"> |
| | | <el-input |
| | | v-model="dataForm.centralizedMiningProperty" |
| | |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="订单行备注" prop="remark"> |
| | | <el-input |
| | | v-model="dataForm.remark" |
| | |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="收货地址" prop="shippingAddress"> |
| | | <el-input |
| | | v-model="dataForm.shippingAddress" |
| | | placeholder="" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="OTC推送状态" prop="remark"> |
| | | <span>{{ |
| | | dataForm.otcPartSync != null |
| | |
| | | : '' |
| | | }}</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="订单说明" prop="orderDescription"> |
| | | <el-form-item label="订单备注" prop="comment"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | | placeholder="" |
| | | v-model="dataForm.orderDescription" |
| | | v-model="dataForm.comment" |
| | | maxlength="500" |
| | | show-word-limit |
| | | > |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="产品备注" prop="remark"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | | placeholder="" |
| | | v-model="dataForm.remark" |
| | | maxlength="500" |
| | | show-word-limit |
| | | > |
| | |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="lineNumber" align="center" label="行号"> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="lineNumber" align="center" label="行号"> --> |
| | | <!-- </el-table-column> --> |
| | | <el-table-column |
| | | prop="originalFileName" |
| | | align="center" |
| | | label="原文件名" |
| | | width="200" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="fileName" align="center" label="文件名"> |
| | | <el-table-column prop="fileName" align="center" label="文件后缀"> |
| | | </el-table-column> |
| | | <el-table-column prop="createUser" align="center" label="上传人"> |
| | | </el-table-column> |
| | |
| | | <!-- </el-table-column>--> |
| | | <el-table-column fixed="right" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | <!-- <el-button |
| | | @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, |
| | |
| | | dataForm: { |
| | | id: 0, |
| | | sourceId: '', |
| | | customerOrderNo: '', |
| | | contractNo: '', |
| | | customerNo: '', |
| | | customerName: '', |
| | | coState: '', |
| | | coLineNo: '', |
| | | returnStatus: '', |
| | | deliveryDate: '', |
| | | salesMan: '', |
| | | salerWorkCode: '', |
| | | manufactureAttr: '', |
| | | buyQtyDue: 0, |
| | | productName: '', |
| | | productType: '', |
| | | partNo: '', |
| | | technologyDocumentId: '', |
| | | docNumber: '', |
| | | docName: '', |
| | | shippingAddress: '', |
| | | remark: '', |
| | | otcUnit: '', |
| | | coState: '', |
| | | customerPartSpec: '', |
| | | entityName: '', |
| | | factoryPlaceOrderDate: '', |
| | | isCp: '', |
| | | originalContractStatus: '', |
| | | placeOrderDate: '', |
| | | province: '', |
| | | |
| | | customerOrderNo: '', |
| | | coLineNo: '', |
| | | customerPartName: '', |
| | | otcQuantity: '', |
| | | wantedDeliveryDate: '', |
| | |
| | | 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, |
| | | salesmanName: 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 |
| | |
| | | // if (response.data.data.customerOrderList != null) { |
| | | // this.dataForm = response.data.data.customerOrderList |
| | | // |
| | | // console.log('0') |
| | | // if (this.dataForm.OrderOrContract) { |
| | | // console.log('1') |
| | | // // 将订单还是合同转义 |
| | | // if (this.dataForm.OrderOrContract == '0') { |
| | | // this.dataForm.OrderOrContract = '合同' |
| | |
| | | // } |
| | | // } |
| | | // } else { |
| | | // console.log('2') |
| | | this.dataForm = response.data.data |
| | | |
| | | // } |
| | | // this.fileList = response.data.data.customerOrderAttachmentList |
| | | const sourceId = response.data.data.sourceId |
| | | if(sourceId != null){ |
| | | if(sourceId === '0'){ |
| | | this.getFileList() |
| | | } |
| | | this.orderParamList = response.data.data.orderParamList |
| | |
| | | // 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 |
| | |
| | | }, |
| | | getFileList() { |
| | | this.fileList = [] |
| | | const queryParam = { orderNumber: this.dataForm.customerOrderNo } |
| | | const queryParam = { orderNumber: this.dataForm.contractNo } |
| | | getOtcCustomerOrderFileList(queryParam).then((response) => { |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | |
| | | 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 |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 零件选择 |
| | | // 零件选择 |
| | | openPartDialog() { |
| | | if ( |
| | | this.dataForm.coState === '01partUnCheck' || |
| | | this.dataForm.coState === '02technologyUnCheck' |
| | | ) { |
| | | this.showPart = true |
| | | } else { |
| | | this.$message.warning( |
| | | '订单只有在【零件待选】、【工艺文件待选】状态下,才能进行零件修改' |
| | | ) |
| | | } |
| | | this.showPart = true |
| | | }, |
| | | selectPart(part) { |
| | | if (part) { |
| | | this.dataForm.partNo = part.partNo |
| | | this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | } |
| | | }, |
| | | // 零件选择 |
| | | // openPartDialog() { |
| | | // if ( |
| | | // this.dataForm.coState === '01partUnCheck' || |
| | | // this.dataForm.coState === '02technologyUnCheck' |
| | | // ) { |
| | | // this.showPart = true |
| | | // } else { |
| | | // this.$message.warning( |
| | | // '订单只有在【零件待选】、【工艺文件待选】状态下,才能进行零件修改' |
| | | // ) |
| | | // } |
| | | // }, |
| | | // selectPart(part) { |
| | | // if (part) { |
| | | // this.dataForm.partNo = part.partNo |
| | | // this.$refs.dataForm.validateField('partNo', (valid) => {}) |
| | | // } |
| | | // }, |
| | | // 全屏 |
| | | fullscreen() { |
| | | this.isFullScreen = !this.isFullScreen |
| | |
| | | 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 |
| | |
| | | this.getConfigFiles() |
| | | }, |
| | | delProcessConfigFile(row) { |
| | | if (row.lineNumber !== this.dataForm.otcLineNo) { |
| | | this.$message.error('上传文件行号与当前销售订单行号不一致,不允许删除') |
| | | } else { |
| | | this.$confirm('是否删除工艺配置文件', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | .then((data) => { |
| | | this.getConfigFiles() |
| | | }) |
| | | } |
| | | }, |
| | | downloadProcessConfigFile(row) { |
| | | downloadProcessConfigFile( |
| | |
| | | // 保存配置单 |
| | | saveConfig() { |
| | | const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEditOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAddOne(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } else { |
| | | this.$message.error('该销售订单号下,没有其他订单行') |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | } |
| | | }) |
| | | /* const configId = this.configContent.id |
| | | console.log(this.configContent) |
| | | for ( |
| | | let i = this.configContent.processConfigDataList.length - 1; |
| | | i >= 0; |
| | |
| | | } |
| | | if (configId) { |
| | | newProcessConfigEdit(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | }) |
| | | } else { |
| | | newProcessConfigAdd(this.configContent).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code === 0) { |
| | | this.$message.success('保存成功') |
| | | this.init(this.configContent.orderId) |
| | |
| | | // var param = Object.assign({ current: 1, size: 20 }) |
| | | // getProcessConfigPage(param).then((res) => { |
| | | // const list = res.data.data.records |
| | | // console.log(list) |
| | | // }) |
| | | }, |
| | | // 获取确认 |