| | |
| | | </div> |
| | | <!-- 物流信息 --> |
| | | <div v-if="activeName === 'two' && this.workType === 2"> |
| | | <el-form label-position="right" :model="shipmentsInfo" label-width="120px" size="mini" |
| | | <el-form :rules="rules" ref="shipmentsInfo" label-position="right" :model="shipmentsInfo" label-width="120px" size="mini" |
| | | style="margin-top: 20px;"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="承运商"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="联系电话"> |
| | | <el-form-item label="联系电话" prop="receiverPhone"> |
| | | <el-input style="width: 90%;" :disabled="!showFooter" |
| | | v-model="editConfig.infomation.receiverPhone"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="重量"> |
| | | <el-input style="width: 90%;" :disabled="!showFooter" |
| | | <el-input style="width: 90%;" :disabled="!showFooter" type="number" |
| | | v-model="editConfig.infomation.weight"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="物流重量"> |
| | | <el-input style="width: 90%;" :disabled="!showFooter" |
| | | <el-input style="width: 90%;" :disabled="!showFooter" type="number" |
| | | v-model="editConfig.infomation.logisticWeight"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <!-- 尾 --> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <!-- <el-button type="primary" size="small" @click="editConfig.visible = false">保并提交审批</el-button> --> |
| | | <el-button type="primary" size="small" @click="saveClick('form')" :disabled="!showFooter">保存</el-button> |
| | | <el-button type="primary" size="small" @click="saveClick('form','shipmentsInfo')" :disabled="!showFooter">保存</el-button> |
| | | <el-button size="small" @click="editConfig.visible = false">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | operationDate: [{ required: true, message: "请选择日期", trigger: "change" }], |
| | | toLocationId: [{ required: true, message: "请选择仓库位置", trigger: "change" }], |
| | | fromLocationId: [{ required: true, message: "请选择源位置", trigger: "change" }], |
| | | operationTypeId: [{ required: true, message: "请选择入库类型", trigger: "change" }] |
| | | }, |
| | | operationTypeId: [{ required: true, message: "请选择入库类型", trigger: "change" }], |
| | | receiverPhone: [ |
| | | {required: true, message: "请输入手机号", trigger: "change" }, |
| | | { |
| | | pattern: |
| | | /^1(3\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/, |
| | | message: "请输入正确的手机号", |
| | | trigger: ["blur",'change' ], |
| | | }, |
| | | ] |
| | | |
| | | }, |
| | | companyOptions: [], // 公司 |
| | | supplierOptions: [],//供应商 |
| | | clientOptions: [],//客户 |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | localStorage.removeItem('pdfParams'); |
| | | this.getCompanyList() |
| | | this.setStatusList() |
| | | this.setTableForm() |
| | |
| | | }, |
| | | methods: { |
| | | setStatusList() { |
| | | console.log(this.editConfig.infomation, "edit") |
| | | if (this.editConfig.infomation.status === 5) { |
| | | this.list = [ |
| | | { label: "草稿", status: "todo", value: 1 }, |
| | |
| | | }) |
| | | }, |
| | | // 保存 |
| | | saveClick(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | saveClick(formName,shipmentsInfo) { |
| | | this.$refs[formName,shipmentsInfo].validate((valid) => { |
| | | if (valid) { |
| | | for (let i = 0; i < this.tableData.length; i++) { |
| | | if (this.tableData[i].productName.length === 0) { |
| | |
| | | baseOperationType: this.editConfig.infomation.baseOperationType || undefined, |
| | | cutAfterWidth: this.editConfig.infomation.baseOperationType === 2 ? 50.8 : 53.3 |
| | | }; |
| | | localStorage.setItem('pdfParams', JSON.stringify(pdfParams)); |
| | | var { href } = this.$router.resolve({ |
| | | path: '/overview/previewExcel', |
| | | query:{ |
| | | ...pdfParams |
| | | } |
| | | |
| | | }); |
| | | window.open(href, '_blank'); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | } finally { |
| | | var { href } = this.$router.resolve({ |
| | | name: 'previewExcel', |
| | | }); |
| | | window.open(href, '_blank'); |
| | | } |
| | | } |
| | | } |