全局重命名: 序列号→身份证 (product.serial_number)
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-grid">
|
||||
<view class="info-item"><text class="label">序列号</text><text class="value sn">{{ product.serial_number }}</text></view>
|
||||
<view class="info-item"><text class="label">身份证</text><text class="value sn">{{ product.serial_number }}</text></view>
|
||||
<view class="info-item"><text class="label">物料名称</text><text class="value">{{ product.material_name || product.material_id || '—' }}</text></view>
|
||||
<view class="info-item"><text class="label">规格型号</text><text class="value">{{ product.spec_model || '—' }}</text></view>
|
||||
<view class="info-item"><text class="label">订单编号</text><text class="value">{{ product.order_no || '—' }}</text></view>
|
||||
@ -62,8 +62,8 @@
|
||||
<text class="popup-title">编辑产品</text>
|
||||
<view class="field-label">订单编号</view>
|
||||
<input v-model="editForm.order_no" class="popup-input" placeholder="请输入订单编号" />
|
||||
<view class="field-label" style="margin-top:10px;">外部序列号</view>
|
||||
<input v-model="editForm.external_serial" class="popup-input" placeholder="请输入外部序列号" />
|
||||
<view class="field-label" style="margin-top:10px;">外部身份证</view>
|
||||
<input v-model="editForm.external_serial" class="popup-input" placeholder="请输入外部身份证" />
|
||||
<view class="popup-btns"><button class="btn-cancel" @tap="editProductVisible = false">取消</button><button class="btn-primary" :disabled="editSaving" @tap="doEditProduct">{{ editSaving ? '保存中...' : '保存' }}</button></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<!-- 手动输入 -->
|
||||
<view class="manual-input">
|
||||
<input v-model="serialNumber" class="input" type="text" maxlength="16"
|
||||
placeholder="手动输入16位序列号" @confirm="handleSearch" />
|
||||
placeholder="手动输入16位身份证" @confirm="handleSearch" />
|
||||
<button class="search-btn" @tap="handleSearch" :disabled="loading">
|
||||
{{ loading ? '查询中' : '查询' }}
|
||||
</button>
|
||||
@ -24,7 +24,7 @@
|
||||
<!-- 空状态 -->
|
||||
<view v-if="!loading && !error" class="empty">
|
||||
<text class="empty-icon">📱</text>
|
||||
<text class="empty-text">扫码或手动输入序列号查询产品进度</text>
|
||||
<text class="empty-text">扫码或手动输入身份证查询产品进度</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -43,7 +43,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async doQuery(sn) {
|
||||
if (!sn || sn.length < 8) { this.error = "序列号至少需要 8 位"; return; }
|
||||
if (!sn || sn.length < 8) { this.error = "身份证至少需要 8 位"; return; }
|
||||
this.serialNumber = sn;
|
||||
this.lastScanned = sn;
|
||||
this.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user