| | |
| | | <el-input |
| | | v-if=" |
| | | editConfig.title == '编辑' || |
| | | (editConfig.title == '新建' && |
| | | codenumer && |
| | | (explain != '' || isIdDisabled)) |
| | | (editConfig.title == '新建' && codenumer && (explain != '' || isIdDisabled)) |
| | | " |
| | | :disabled="editConfig.title == '编辑'" |
| | | v-model="editConfig.infomation.number" |
| | | placeholder="请输入编码" |
| | | > |
| | | </el-input> |
| | | <span v-else-if="editConfig.title == '新建'" style="color: #f56c6c" |
| | | <span v-else-if="editConfig.title == '新建'" style="color: #f56c6c" |
| | | >请优先配置编码规范 <el-button type="text" @click="numberClick"> 配置规范 </el-button></span |
| | | > |
| | | <!-- <WordInput |
| | |
| | | <el-input v-model="editConfig.infomation.subject" style="width: 100%"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="客户名称" prop="client_name"> |
| | | <div class="custom-name"> |
| | |
| | | } |
| | | " |
| | | value-key="number" |
| | | :disabled="this.editCommonConfig.infomation.id?true:false" |
| | | :disabled="this.editCommonConfig.infomation.id ? true : false" |
| | | @select="handleSelectClient('serviceContract', $event)" |
| | | style="width: 100%" |
| | | ></el-autocomplete> |
| | | <template v-if='!this.editCommonConfig.infomation.id'> |
| | | <div class="common-select-btn" @click="selClientClick('serviceContract')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div |
| | | v-if=" |
| | | editConfig.infomation.serviceContract_Number && |
| | | editConfig.infomation.serviceContract_Number.length > 0 |
| | | " |
| | | class="common-select-btn" |
| | | @click="clearupClient('serviceContract')" |
| | | > |
| | | <i class="el-icon-remove-outline" title="清除"></i> |
| | | </div> |
| | | </template> |
| | | <template v-if="!this.editCommonConfig.infomation.id"> |
| | | <div class="common-select-btn" @click="selClientClick('serviceContract')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div |
| | | v-if=" |
| | | editConfig.infomation.serviceContract_Number && |
| | | editConfig.infomation.serviceContract_Number.length > 0 |
| | | " |
| | | class="common-select-btn" |
| | | @click="clearupClient('serviceContract')" |
| | | > |
| | | <i class="el-icon-remove-outline" title="清除"></i> |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | } |
| | | " |
| | | value-key="number" |
| | | :disabled="this.editCommonConfig.infomation.id?true:false" |
| | | :disabled="this.editCommonConfig.infomation.id ? true : false" |
| | | @select="handleSelectClient('contract', $event)" |
| | | style="width: 100%" |
| | | ></el-autocomplete> |
| | | <template v-if='!this.editCommonConfig.infomation.id'> |
| | | <div class="common-select-btn" @click="selClientClick('contract')"> |
| | | <template v-if="!this.editCommonConfig.infomation.id"> |
| | | <div class="common-select-btn" @click="selClientClick('contract')"> |
| | | <i class="el-icon-circle-plus-outline" title="选择"></i> |
| | | </div> |
| | | <div |
| | |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, validator: this.validateCheckCode, trigger: ["change",'blur' ] }], |
| | | number: [{ required: true, validator: this.validateCheckCode, trigger: ["change", "blur"] }], |
| | | subject: [{ required: true, message: "请输入主题", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | invoiceTypeId: [{ required: true, message: "请选择票据类型", trigger: "change" }], |
| | |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | SalesDetailsId: this.editCommonConfig.infomation.id, |
| | | serviceContractId: this.editCommonConfig.infomation.id, |
| | | tableData: [] |
| | | tableData: [], |
| | | productId: 1, |
| | | isNoProduct: true |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.$store.dispatch("geSalesDetails") |
| | | this.setTableForm() |
| | | this.getCommonData() |
| | | this.formInfo(); |
| | | this.formInfo() |
| | | }, |
| | | watch:{ |
| | | 'editCommonConfig.visible'(val){ |
| | | if(val){ |
| | | watch: { |
| | | "editCommonConfig.visible"(val) { |
| | | if (val) { |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | formInfo(){ |
| | | this.objCode.type='销售发票编码' |
| | | this.objCode.codeStandID = '' |
| | | if(this.editConfig.infomation.codeStandID){ |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandID; |
| | | formInfo() { |
| | | this.objCode.type = "销售发票编码" |
| | | this.objCode.codeStandID = "" |
| | | if (this.editConfig.infomation.codeStandID) { |
| | | this.objCode.codeStandID = this.editConfig.infomation.codeStandID |
| | | } |
| | | this.getRCodeStandardList(); |
| | | this.getRCodeStandardList() |
| | | }, |
| | | getCommonData() { |
| | | getAllData().then((res) => { |
| | |
| | | this.getInvoiceTypeList() |
| | | this.getInvoiceStatusList() |
| | | this.getCourierCompanyList() |
| | | this.$set(this.editConfig.infomation,'serviceContract_Number',this.editCommonConfig.infomation.keyword) |
| | | this.$set(this.editConfig.infomation,'contract_number',this.editCommonConfig.infomation.keyword) |
| | | this.$set(this.editConfig.infomation, "serviceContract_Number", this.editCommonConfig.infomation.keyword) |
| | | this.$set(this.editConfig.infomation, "contract_number", this.editCommonConfig.infomation.keyword) |
| | | }, |
| | | async getInvoiceTypeList() { |
| | | const res=await getInvoiceTypeList() |
| | | if (res.code == 200) { |
| | | this.invoiceTypeOptions = res.data.data |
| | | } |
| | | const res = await getInvoiceTypeList() |
| | | if (res.code == 200) { |
| | | this.invoiceTypeOptions = res.data.data |
| | | } |
| | | }, |
| | | async getInvoiceStatusList() { |
| | | const res=await getInvoiceStatusList() |
| | | if (res.code == 200) { |
| | | this.invoiceStatusOptions = res.data.data |
| | | } |
| | | const res = await getInvoiceStatusList() |
| | | if (res.code == 200) { |
| | | this.invoiceStatusOptions = res.data.data |
| | | } |
| | | }, |
| | | async getCourierCompanyList() { |
| | | const res=await getCourierCompanyList() |
| | | if (res.code == 200) { |
| | | this.courierCompanyOptions = res.data.data |
| | | } |
| | | const res = await getCourierCompanyList() |
| | | if (res.code == 200) { |
| | | this.courierCompanyOptions = res.data.data |
| | | } |
| | | }, |
| | | // 保存 |
| | | saveClick(formName) { |
| | |
| | | products: this.tableData, |
| | | sourceId: this.editConfig.sourceType === 1 ? this.SalesDetailsId : this.serviceContractId, |
| | | sourceType: this.editConfig.sourceType, |
| | | number:data.number || "", |
| | | number: data.number || "", |
| | | subject: data.subject || "", |
| | | taxpayerIdNumber: data.taxpayerIdNumber || "" |
| | | } |