<van-form bind:submit="onSubmit">
  <van-image
    width="20rem"
    height="20rem"
    fit="contain"
    src="https://img.yzcdn.cn/vant/cat.jpeg"
  />

  <van-field
    value="{{formData.name}}"
    label="订单名称"
    placeholder="请输入订单名称"
    required
    bind:input="onNameInput"
  />

  <van-field
    value="{{formData.date_order}}"
    label="日期"
    placeholder="请选择日期"
    is-link
    readonly
    name="datePicker"
    bind:click="showDatePicker"
  />
  <van-popup show="{{showDatePicker}}" position="bottom">
    <van-datetime-picker
      type="datetime"
      value="{{currentDate}}"
      bind:confirm="onDateConfirm"
      bind:cancel="onDateCancel"
    />
  </van-popup>

  <van-field
    value="{{formData.orde_ddje}}"
    label="订单金额"
    placeholder="请输入订单金额"
    type="number"
    required
    bind:input="onOrdeDdjeInput"
  />
  <!-- 渲染 fineCode_Text 的 <van-tag> 标签 -->
  <van-tag
    plain
    type="success"
    wx:for="{{orderLines}}"
    wx:key="index"
  >
    {{item.fineCode_Text}}
  </van-tag>

  <van-field
    value="{{formData.partner_id}}"
    label="合作伙伴"
    placeholder="请选择合作伙伴"
    is-link
    readonly
    name="partnerPicker"
    bind:click="showPartnerPicker"
  />
  <van-popup show="{{showPartnerPicker}}" position="bottom">
    <van-picker
      show-toolbar
      columns="{{partnerColumns}}"
      bind:confirm="onPartnerConfirm"
      bind:cancel="onPartnerCancel"
    />
  </van-popup>

  <van-button round block type="info" native-type="submit">
    提交
  </van-button>
</van-form>