| | |
| | | import { axios } from '@/utils/request' |
| | | |
| | | /** |
| | | * 查询往来关系 |
| | | * 查询往来单位 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 往来关系列表 |
| | | * 往来单位列表 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 添加往来关系 |
| | | * 添加往来单位 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 编辑往来关系 |
| | | * 编辑往来单位 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除往来关系 |
| | | * 删除往来单位 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | |
| | | |
| | | /** |
| | | * 导出往来关系的Excel文件 |
| | | * 导出往来单位的Excel文件 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 导入往来关系的Excel文件 |
| | | * 导入往来单位的Excel文件 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | |
| | | |
| | | /** |
| | | * 下载往来关系的Excel导入模板 |
| | | * 下载往来单位的Excel导入模板 |
| | | * |
| | | * @author ly |
| | | */ |
| | |
| | | <template> |
| | | <a-modal title="新增往来关系" :width="1100" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | <a-modal title="新增往来单位" :width="1100" :visible="visible" :confirmLoading="confirmLoading" @ok="handleSubmit" |
| | | @cancel="handleCancel"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form :form="form"> |
| | |
| | | <template> |
| | | <a-modal |
| | | title="编辑往来关系" |
| | | title="编辑往来单位" |
| | | :width="1100" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | |
| | | <a-button type="info" v-if="hasPerm('BaseCustomer:exportExcel')" icon="download" @click="BaseCustomerToExcel()"> |
| | | 导出 |
| | | </a-button> |
| | | <a-button type="primary" v-if="hasPerm('BaseCustomer:add')" icon="plus" @click="$refs.addForm.add()">新增往来关系</a-button> |
| | | <a-button type="primary" v-if="hasPerm('BaseCustomer:add')" icon="plus" @click="$refs.addForm.add()">新增往来单位</a-button> |
| | | </div> |
| | | </template> |
| | | <span slot="custTypescopedSlots" slot-scope="text"> |
| | |
| | | <!-- <a-input placeholder="请输入容器类型ID" v-decorator="['containerTypeId', {rules: [{required: true, message: '请输入容器类型ID!'}]}]" /> --> |
| | | |
| | | <a-select style="width: 100%" placeholder="请选择容器类型名称" v-decorator="['containerTypeId', {rules: [{required: true, message: '请输入容器类型名称!'}]}]"> |
| | | <a-select-option v-for="(item, index) in selectTypeData" :key="index" :value="item.typeCode">{{ item.typeName |
| | | <a-select-option v-for="(item, index) in selectTypeData" :key="index" :value="item.id">{{ item.typeName |
| | | }}</a-select-option> |
| | | </a-select> |
| | | |
| | |
| | | </a-form-item> --> |
| | | <a-form-item label="物料类型名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-select style="width: 100%" placeholder="请选择物料类型名称" v-decorator="['materialTypeId', {rules: [{required: true, message: '请输入物料类型名称!'}]}]"> |
| | | <a-select-option v-for="(item, index) in selectTypeData2" :key="index" :value="item.materialTypeCode">{{ |
| | | <a-select-option v-for="(item, index) in selectTypeData2" :key="index" :value="item.id">{{ |
| | | item.materialTypeName }}</a-select-option> |
| | | </a-select> |
| | | |
| | |
| | | <!-- <a-input placeholder="请输入容器类型ID" v-decorator="['containerTypeId', {rules: [{required: true, message: '请输入容器类型ID!'}]}]" /> --> |
| | | |
| | | <a-select style="width: 100%" placeholder="请选择容器类型名称" v-decorator="['containerTypeId', {rules: [{required: true, message: '请输入容器类型名称!'}]}]"> |
| | | <a-select-option v-for="(item, index) in selectTypeData" :key="index" :value="item.typeCode">{{ item.typeName |
| | | <a-select-option v-for="(item, index) in selectTypeData" :key="index" :value="item.id">{{ item.typeName |
| | | }}</a-select-option> |
| | | </a-select> |
| | | |
| | |
| | | </a-form-item> --> |
| | | <a-form-item label="物料类型名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> |
| | | <a-select style="width: 100%" placeholder="请选择物料类型名称" v-decorator="['materialTypeId', {rules: [{required: true, message: '请输入物料类型名称!'}]}]"> |
| | | <a-select-option v-for="(item, index) in selectTypeData2" :key="index" :value="item.materialTypeCode">{{ |
| | | <a-select-option v-for="(item, index) in selectTypeData2" :key="index" :value="item.id">{{ |
| | | item.materialTypeName }}</a-select-option> |
| | | </a-select> |
| | | |
| | |
| | | BaseCustomerList = this.$refs.addFormBaseCustomer.list |
| | | |
| | | } |
| | | console.log(6666666666666 + '往来关系集合') |
| | | console.log(6666666666666 + '往来单位集合') |
| | | |
| | | // console.log(6666666666666 + '包装关系') |
| | | // console.log(this.$refs.addFormContainerPackagingRef.list) |
| | |
| | | MaterialInput: values, |
| | | ControlRuleld: ControlRuleld, //控制属性 |
| | | SubstituteGoodList: SubstituteGoodList, //替代品 |
| | | BaseCustomerList: a1, //往来关系集合 |
| | | BaseCustomerList: a1, //往来单位集合 |
| | | // ContainerPackagingList: this.$refs.addFormContainerPackagingRef.list //包装关系 |
| | | } |
| | | this.confirmLoading = true |
| | |
| | | <template> |
| | | <a-modal |
| | | title="新增往来关系" |
| | | title="新增往来单位" |
| | | :width="900" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | |
| | | <template> |
| | | <a-modal |
| | | title="编辑往来关系" |
| | | title="编辑往来单位" |
| | | :width="900" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | |
| | | <a-button type="info" v-if="hasPerm('BaseCustomer:exportExcel')" icon="download" @click="BaseCustomerToExcel()"> |
| | | 导出 |
| | | </a-button> |
| | | <a-button type="primary" v-if="hasPerm('BaseCustomer:add')" icon="plus" @click="$refs.addForm.add()">新增往来关系</a-button> |
| | | <a-button type="primary" v-if="hasPerm('BaseCustomer:add')" icon="plus" @click="$refs.addForm.add()">新增往来单位</a-button> |
| | | </div> --> |
| | | </template> |
| | | <span slot="custTypescopedSlots" slot-scope="text"> |