|
|
@@ -20,28 +20,30 @@
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="江苏省商标委托代理合同(双方盖章)">
|
|
|
- <attachment-upload v-model="form.attachment1" :fileSize.sync="form.attachment1.size">
|
|
|
- </attachment-upload>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="收款回执">
|
|
|
- <attachment-upload v-model="form.attachment2" :fileSize.sync="form.attachment2.size">
|
|
|
- </attachment-upload>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item prop="payRatio" label="支付比例">
|
|
|
- <el-select style="width: 100%;" v-model="form.payRatio" clearable filterable placeholder="请选择">
|
|
|
- <el-option
|
|
|
- v-for="item in payRatioOptions"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <template v-if="form.check">
|
|
|
+ <el-form-item label="江苏省商标委托代理合同(双方盖章)">
|
|
|
+ <attachment-upload v-model="form.attachment1" :fileSize.sync="form.attachment1.size">
|
|
|
+ </attachment-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="收款回执">
|
|
|
+ <attachment-upload v-model="form.attachment2" :fileSize.sync="form.attachment2.size">
|
|
|
+ </attachment-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="payRatio" label="支付比例">
|
|
|
+ <el-select style="width: 100%;" v-model="form.payRatio" clearable filterable placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in payRatioOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
<el-form-item>
|
|
|
<el-button style="width: 150px;" @click="onSave" type="primary">提交</el-button>
|
|
|
- <el-button style="width: 120px;" @click="cancel">返回</el-button>
|
|
|
+ <el-button style="width: 120px;" @click="show = false">返回</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
@@ -95,19 +97,22 @@ export default {
|
|
|
let info = { ...this.info };
|
|
|
|
|
|
info.check = this.form.check;
|
|
|
- info.payRatio = this.form.payRatio;
|
|
|
- if (!info.attachment) {
|
|
|
- info.attachment = [];
|
|
|
- }
|
|
|
|
|
|
- this.$emit('uploadAttement', this.form.attachment1);
|
|
|
- this.$emit('uploadAttement', this.form.attachment2);
|
|
|
+ if (info.check) {
|
|
|
+ info.payRatio = this.form.payRatio;
|
|
|
+ if (!info.attachment) {
|
|
|
+ info.attachment = [];
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$emit('uploadAttement', this.form.attachment1);
|
|
|
+ this.$emit('uploadAttement', this.form.attachment2);
|
|
|
|
|
|
- let index = [...this.logoWorkflowOptions].findIndex(item => {
|
|
|
- return item.value === info.logoWorkflow;
|
|
|
- });
|
|
|
+ let index = [...this.logoWorkflowOptions].findIndex(item => {
|
|
|
+ return item.value === info.logoWorkflow;
|
|
|
+ });
|
|
|
|
|
|
- info.logoWorkflow = [...this.logoWorkflowOptions][index + 1].value;
|
|
|
+ info.logoWorkflow = [...this.logoWorkflowOptions][index + 1].value;
|
|
|
+ }
|
|
|
|
|
|
this.$emit('submit', info);
|
|
|
this.show = false;
|