代码上传

This commit is contained in:
jia 2024-01-05 11:53:18 +08:00
parent cf7dc23a47
commit 25e6a92261
3 changed files with 24 additions and 7 deletions

View File

@ -257,8 +257,6 @@
<el-input v-model="row.total_amount" /> <el-input v-model="row.total_amount" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</el-form> </el-form>

View File

@ -101,7 +101,19 @@
</el-form-item></el-col> </el-form-item>
</el-col>
</el-row>
<div style=" display: flex;justify-content: flex-end;margin-bottom: 30px;">
<el-button @click="showDialog1 = true" type="primary" plain>选择项目MRP缺口</el-button>
<el-button @click="showDialog1 = true" type="primary" plain>选择订单MRP缺口</el-button>
<el-button @click="showDialog2 = true" type="primary" plain>添加产品</el-button>
<el-button @click="showDialog1 = true" type="primary" plain>下载导入表</el-button>
<el-button @click="showDialog1 = true" type="primary" plain>导入产品</el-button>
</div>
<el-row>
<el-col :span="24"> <el-col :span="24">
<div style="margin-bottom: 30px;">采购合同明细</div> <div style="margin-bottom: 30px;">采购合同明细</div>
<div style="margin-bottom: 30px;"> <div style="margin-bottom: 30px;">
@ -212,6 +224,9 @@
<el-dialog v-model="showDialog1" title="选择供应商" width="70%"> <el-dialog v-model="showDialog1" title="选择供应商" width="70%">
<suppliertable @customEvent="customEvent1"></suppliertable> <suppliertable @customEvent="customEvent1"></suppliertable>
</el-dialog> </el-dialog>
<el-dialog v-model="showDialog2" title="选择产品" width="70%">
<prodctTable @customEvent="customEvent2"></prodctTable>
</el-dialog>
</div> </div>
</template> </template>
@ -220,7 +235,7 @@ import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue' import Popup from '@/components/popup/index.vue'
import projectTable from '@/components/project/index.vue' import projectTable from '@/components/project/index.vue'
import suppliertable from '@/components/supplier/index.vue' import suppliertable from '@/components/supplier/index.vue'
import prodctTable from '@/components/product/index.vue'
const list1 = reactive([]) const list1 = reactive([])
const list2 = reactive([]) const list2 = reactive([])
import { deptAll } from '@/api/org/department' import { deptAll } from '@/api/org/department'
@ -240,6 +255,7 @@ const popupRef = shallowRef<InstanceType<typeof Popup>>()
const mode = ref('add') const mode = ref('add')
const showDialog = ref(false) const showDialog = ref(false)
const showDialog1 = ref(false) const showDialog1 = ref(false)
const showDialog2 = ref(false)
const project_name = ref('') const project_name = ref('')
const project_code = ref('') const project_code = ref('')
const supplier_name = ref('') const supplier_name = ref('')
@ -372,6 +388,9 @@ const customEvent1 = (e: any) => {
supplier_name.value = e.supplier_name supplier_name.value = e.supplier_name
showDialog1.value = false; showDialog1.value = false;
}; };
const customEvent2 = (e: any) => {
showDialog2.value = false;
}
// //
const formRules = reactive<any>({ const formRules = reactive<any>({

View File

@ -2,8 +2,8 @@
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline> <el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="客户" prop="customer_id"> <el-form-item label="客户" prop="custom_id">
<el-select class="flex-1" v-model="queryParams.contract_id" clearable placeholder="请选择客户"> <el-select class="flex-1" v-model="queryParams.custom_id" clearable placeholder="请选择客户">
<el-option v-for="(item, index) in customerList" :key="index" :label="item.name" :value="parseInt(item.id)" /> <el-option v-for="(item, index) in customerList" :key="index" :label="item.name" :value="parseInt(item.id)" />
</el-select> </el-select>
@ -95,7 +95,7 @@ const customerList = ref([])
// //
const queryParams = reactive({ const queryParams = reactive({
customer_id: '', custom_id: '',
code: '', code: '',
create_user: '', create_user: '',
invoice_type: '' invoice_type: ''