|
|
@@ -6,21 +6,35 @@
|
|
|
:rules="rules"
|
|
|
ref="form"
|
|
|
label-width="140px"
|
|
|
- style="padding-right: 130px;"
|
|
|
+ style="padding-right: 130px"
|
|
|
>
|
|
|
- <el-form-item label="缴费信息" prop="reHearPayment">
|
|
|
- <el-input v-model="form.reHearPayment" placeholder="请输入" clearable></el-input>
|
|
|
+ <el-form-item prop="supplierPartnerId" label="供应商">
|
|
|
+ <el-select v-model="form.supplierPartnerId" clearable filterable placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in supplierPartnerIdOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="缴费证明" prop="attachment1">
|
|
|
- <attachment-upload
|
|
|
- v-model="form.attachment1"
|
|
|
- :fileSize.sync="form.attachment1.size"
|
|
|
- ></attachment-upload>
|
|
|
+ <el-form-item prop="supplierNo" label="供应商案号">
|
|
|
+ <el-input v-model="form.supplierNo" placeholder="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="supplierSubmitPeriod" label="指定提交期限">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="form.supplierSubmitPeriod"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
- <el-button style="width: 150px;" size="normal" type="primary" @click="onSubmit">提交</el-button>
|
|
|
- <el-button style="width: 120px;" size="normal" @click="show = false">取消</el-button>
|
|
|
+ <el-button style="width: 150px" size="normal" type="primary" @click="onSubmit">提交</el-button>
|
|
|
+ <el-button style="width: 120px" size="normal" @click="show = false">取消</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
@@ -35,25 +49,34 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- form: {
|
|
|
- attachment1: { attachmentName: '复审缴费证明', fileName: '', url: '', remark: '', size: '' }
|
|
|
- },
|
|
|
+ form: {},
|
|
|
show: false,
|
|
|
rules: {
|
|
|
- reHearPayment: { required: true, message: '请输入缴费信息', trigger: 'blur' },
|
|
|
- attachment1: {
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (!value.url) {
|
|
|
- callback(new Error('请上传缴费证明'));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- },
|
|
|
- trigger: 'change'
|
|
|
- }
|
|
|
- }
|
|
|
+ supplierPartnerId: { required: true, message: '请选择供应商', trigger: 'change' },
|
|
|
+ supplierNo: { required: true, message: '请输入供应商案号', trigger: 'blur' },
|
|
|
+ supplierSubmitPeriod: { required: true, message: '请选择制定提交期限', trigger: 'change' }
|
|
|
+ },
|
|
|
+ supplierPartnerIdOptions: []
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.$http
|
|
|
+ .post('/partner/all', { size: 1000, query: { del: false, type: 'SUPPLIER' } }, { body: 'json' })
|
|
|
+ .then(res => {
|
|
|
+ if (res.content.length > 0) {
|
|
|
+ this.supplierPartnerIdOptions = res.content.map(item => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(valid => {
|
|
|
@@ -66,11 +89,11 @@ export default {
|
|
|
},
|
|
|
submit() {
|
|
|
let info = { ...this.info };
|
|
|
+ info.supplierPartnerId = this.form.supplierPartnerId;
|
|
|
+ info.supplierNo = this.form.supplierNo;
|
|
|
+ info.supplierSubmitPeriod = this.form.supplierSubmitPeriod;
|
|
|
|
|
|
- info.reHearPayment = this.form.reHearPayment;
|
|
|
-
|
|
|
- this.$emit('uploadAttement', this.form.attachment1);
|
|
|
- info.logoWorkflow = 'REVIEW';
|
|
|
+ info.workflow = 'SUPPLIER_MATERIALS';
|
|
|
|
|
|
this.$emit('submit', info);
|
|
|
this.show = false;
|
|
|
@@ -78,5 +101,11 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
-<style></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.el-select {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+.el-date-editor.el-input {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+</style>
|