| | |
| | | <el-button type="primary" @click="submitForm" :disabled="subDisabled" |
| | | >保 存</el-button |
| | | > |
| | | <el-button type="primary" @click="set_CheckBill(0, form)" :disabled="checkDisabled" |
| | | <!-- <el-button type="primary" @click="set_CheckBill(0, form)" :disabled="checkDisabled" |
| | | >审 核</el-button |
| | | > |
| | | > --> |
| | | <el-button type="primary" @click="close">退 出</el-button> |
| | | <!-- <el-button @click="cancel">取 消</el-button> --> |
| | | </div> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <!-- <el-col :span="6"> |
| | | <el-form-item label="父级" prop="HParentName"> |
| | | <el-input v-model="form.HParentName" placeholder="请选择父级" disabled> |
| | | <el-button |
| | |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="6"> |
| | | <el-form-item label="车架号" prop="HCarSN"> |
| | | <el-input v-model="form.HCarSN" placeholder="请输入车架号"></el-input> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="16"> |
| | | <!-- <el-col :span="16"> |
| | | <el-form-item label="车辆行驶证照片" prop="HCarCardIDPic" label-width="8em"> |
| | | <div |
| | | class="image-input-outer" |
| | |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="8"> |
| | | <el-form-item label="车辆年检日期" prop="HCarCheckDate" label-width="7em"> |
| | | <el-date-picker |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="16"> |
| | | <!-- <el-col :span="16"> |
| | | <el-form-item label="车辆照片" prop="HCarPric" label-width="8em"> |
| | | <div class="image-input-outer" @click="openImagePreview('HCarPric')"> |
| | | <el-input v-model="form.HCarPric"> </el-input> |
| | |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="8"> |
| | | <el-form-item label="车型" prop="HCarTypeName"> |
| | | <el-input v-model="form.HCarTypeName" placeholder="请选择车型" disabled> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="所属公司" prop="HCompName"> |
| | | <el-input v-model="form.HCompName" placeholder="请选择所属公司" disabled> |
| | | <el-form-item label="所属供应商" prop="HCompName"> |
| | | <el-input v-model="form.HCompName" placeholder="请选择所属供应商" disabled> |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | class="select-btn-primary" |
| | | class="select-btn-disabled" |
| | | disabled |
| | | @click.stop="openDataDialog(3)" |
| | | ></el-button> |
| | | </el-input> |
| | |
| | | rules: { |
| | | HNumber: [{ required: true, message: "车牌号不能为空", trigger: "blur" }], |
| | | HName: [{ required: true, message: "车辆名称不能为空", trigger: "blur" }], |
| | | HCarTypeName:[{required: true, message: "车型请选择", trigger: "blur"}], |
| | | }, |
| | | preUploadFiles: { |
| | | HCarPric: [], // 车辆照片 文件缓存(只保存一张) |
| | |
| | | formData.append("HUserName", sessionStorage["HUserName"]); |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Car/Gy_Car_UploadFile", |
| | | url: this.$baseUrl + "/Gy_Car/Gy_Car_UploadFile", |
| | | data: formData, |
| | | headers: { |
| | | "Content-Type": "multipart/form-data", |
| | |
| | | }, |
| | | getHSourceBillType() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetHSourceBillType", { |
| | | .get(this.$baseUrl + "/Web/GetHSourceBillType", { |
| | | params: { HName: "退货通知单", Num: 2 }, |
| | | }) |
| | | .then((res) => { |
| | |
| | | }, |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .get(this.$baseUrl + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data.map((item) => { |
| | |
| | | //根据主内码与子内码获取源单销售订单数据 |
| | | getPushSourceBillInit(HSourceInterID, HSourceEntryID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", { |
| | | params: { |
| | | HInterID: HSourceInterID, |
| | | HSubID: HSourceEntryID, |
| | |
| | | HCarTypeName: "", |
| | | HCarPric: "", |
| | | HCarCardIDPic: "", |
| | | HCompID: 0, |
| | | HCompName: "", |
| | | HCompID: sessionStorage["HSupID"], |
| | | HCompName: sessionStorage["HSupName"], |
| | | HModel: "", |
| | | HColor: "", |
| | | HBuyDate: dayjs(new Date()).format("YYYY-MM-DD"), |
| | |
| | | //根据用户获取对应职员、部门、销售主管 |
| | | getCzyglByUser() { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCzyglByUser", { |
| | | params: { CurUserName: sessionStorage["HUserName"] }, |
| | | }) |
| | | .then((response) => { |
| | |
| | | //新增获取单据号 |
| | | // this.getHBillNo(); |
| | | let date = new Date(); |
| | | this.form.HCompID = sessionStorage["HSupID"]; |
| | | this.form.HCompName = sessionStorage["HSupName"]; |
| | | this.form.HDate = moment(date).format("YYYY-MM-DDTHH:mm:ss"); |
| | | this.resetForm(); |
| | | if (this.OperationType == 1) { |
| | |
| | | this.reset(); |
| | | let rowHmainid = this.HInterID; |
| | | axios |
| | | .get(this.baseURL + "/Gy_Car/GetGy_CarDetail", { |
| | | .get(this.$baseUrl + "/Gy_Car/GetGy_CarDetail", { |
| | | params: { HID: rowHmainid }, |
| | | }) |
| | | .then((res) => { |
| | |
| | | HCarCheckDate: data.车辆年检日期 |
| | | ? dayjs(data.车辆年检日期).format("YYYY-MM-DD") |
| | | : "", |
| | | HCarTypeID: data.车型, |
| | | HCarTypeName: data.车型名称 || "", |
| | | HCarTypeID: data.HCarTypeID, |
| | | HCarTypeName: data.车型 || "", |
| | | HCarPric: data.车辆照片, |
| | | HCarCardIDPic: data.车辆行驶证照片, |
| | | HCompID: data.HCompID, |
| | | HCompName: data.所属公司, |
| | | HCompName: data.所属供应商, |
| | | HModel: data.车辆型号, |
| | | HColor: data.车辆颜色, |
| | | HBuyDate: data.购买日期 ? dayjs(data.购买日期).format("YYYY-MM-DD") : "", |
| | |
| | | HModifyTime: data.修改时间 |
| | | ? dayjs(data.修改时间).format("YYYY-MM-DD") |
| | | : "", |
| | | |
| | | }, |
| | | }; |
| | | |
| | |
| | | }); |
| | | } else { |
| | | // 编辑模式下 生成图片预览src 复制模式下需重新上传图片 |
| | | let apiIndex = this.baseURL.indexOf("/API/"); |
| | | let filePath = this.baseURL.slice(0, apiIndex) + "/"; |
| | | let apiIndex = this.$baseUrl.indexOf("/API/"); |
| | | let filePath = this.$baseUrl.slice(0, apiIndex) + "/"; |
| | | |
| | | this.imagePreviewSrc.HCarPric = data.车辆照片 |
| | | ? `${filePath}Files/Gy_Car/${data.车牌号}/HCarPric/${data.车辆照片}` |
| | |
| | | //根据客户带出联系人、联系电话 |
| | | getCustomerByCusID(HCusID) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | .get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", { |
| | | params: { |
| | | HCusID: HCusID, |
| | | }, |
| | |
| | | |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Car/SaveGy_Car", |
| | | url: this.$baseUrl + "/Gy_Car/SaveGy_Car", |
| | | data: { |
| | | msg: sMainStr, |
| | | }, |
| | |
| | | this.subDisabled = true; //设置保存按钮不可用 |
| | | this.$modal.msgSuccess(response.data.Message); |
| | | this.addBtnShow = true; |
| | | }else { |
| | | // 显示后端返回的错误(车牌号重复、保存失败等) |
| | | this.$modal.msgError(response.data.Message); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | }, |
| | | // 反审核/审核数据 |
| | | set_CheckBill(num, form) { |
| | | var InterID = form.hmainid || form.HInterID; |
| | | console.log(form) |
| | | var InterID = form.hmainid || form.HInterID || form.HItemID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Kf_SellOutBill/AuditKf_SellOutBill", { |
| | | .get(this.$baseUrl + "/Gy_Car/AuditGy_Car", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |
| | |
| | | let result = response.data; |
| | | if (result.code == 1) { |
| | | this.$modal.msgSuccess("操作成功"); |
| | | this.subDisabled = true |
| | | this.checkDisabled = true |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | | } |
| | |
| | | // 所属公司 |
| | | this.iframeUrl = "/iframe/GySupplier"; |
| | | |
| | | this.dialogTitle = "所属公司"; |
| | | this.dialogTitle = "所属供应商"; |
| | | // this.materialShow = true; |
| | | this.openData = true; |
| | | } |
| | |
| | | color: #fff !important; |
| | | } |
| | | |
| | | .select-btn-disabled { |
| | | background-color: rgba(245, 247, 250, 1) !important; |
| | | color: #000 !important; |
| | | } |
| | | |
| | | .image-input-outer { |
| | | display: inline-flex; |
| | | width: 60%; |