riku
11 小时以前 8e3f3890e93d097df4be744648b9ac404d20a558
package_supervision/pages/menu_evidence/index.wxml
@@ -1,2 +1,106 @@
<!--package_supervision/pages/menu_evidence/index.wxml-->
<text>package_supervision/pages/menu_evidence/index.wxml</text>
<view class="page">
  <view class="page-header"> </view>
  <view class="page-container">
    <t-form
      id="form"
      class="form"
      data="{{formData}}"
      rules="{{rules}}"
      reset-type="initial"
      show-error-message
      using-custom-navbar
      scrollToFirstError="smooth"
      label-align="left"
      bind:reset="onReset"
      bind:submit="onSubmit"
    >
      <t-form-item label="问题位置" name="locationId">
        <t-dropdown-menu>
          <t-dropdown-item
            options="{{optionLocations}}"
            placement="right"
            value="{{formData.locationId}}"
            bindchange="onLocationChange"
          />
        </t-dropdown-menu>
      </t-form-item>
      <t-form-item label="问题类型" name="_proType">
        <t-dropdown-menu>
          <t-dropdown-item
            options="{{optionProblemTypes}}"
            placement="right"
            value="{{formData._proType}}"
            bindchange="onProblemTypeChange"
          />
        </t-dropdown-menu>
      </t-form-item>
      <t-form-item label="问题描述" name="description">
        <t-dropdown-menu>
          <t-dropdown-item
            options="{{optionDescription}}"
            placement="right"
            value="{{formData.description}}"
            bindchange="onDescriptionChange"
          />
        </t-dropdown-menu>
      </t-form-item>
      <t-form-item label="补充说明" name="proRemark">
        <t-textarea
          value="{{formData.proRemark}}"
          disabled="{{disabled}}"
          class="textarea"
          indicator
          maxlength="{{50}}"
          placeholder="请输入问题补充说明"
          bind:change="onProRemarkChange"
        />
      </t-form-item>
      <t-form-item label="问题建议" name="advice">
        <t-dropdown-menu>
          <t-dropdown-item
            options="{{optionProblemAdvices}}"
            placement="right"
            value="{{formData.advice}}"
            bindchange="onProblemAdvicesChange"
          />
        </t-dropdown-menu>
      </t-form-item>
      <t-form-item label="问题建议修正" name="_adviseEdit">
        <t-textarea
          value="{{formData._adviseEdit}}"
          disabled="{{disabled}}"
          class="textarea"
          indicator
          maxlength="{{50}}"
          placeholder="请输入问题建议修正"
          bind:change="onProAdviseEditChange"
        />
      </t-form-item>
      <t-form-item label="上传照片" name="photo">
        <t-upload
          class="upload"
          files="{{formData.photo}}"
          disabled="{{disabled}}"
          multiple
          max="{{6}}"
          grid-config="{{gridConfig}}"
          bind:fail="onFail"
          bind:progress="onProgress"
          bind:change="onChangeUpload"
          bind:preview="onPreview"
          bind:success="onSuccess"
          bind:remove="onRemove"
        />
      </t-form-item>
      <view class="button-group">
        <t-button theme="primary" formType="submit" size="large" bind:tap="submit">提交</t-button>
        <t-button theme="default" variant="base" formType="reset" size="large" bind:tap="reset"
          >重置</t-button
        >
      </view>
    </t-form>
  </view>
  <view class="page-footer"> </view>
</view>